1<html><body>
2<style>
3
4body, 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
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, 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_v3.html">Cloud Monitoring API</a> . <a href="monitoring_v3.services.html">services</a> . <a href="monitoring_v3.services.serviceLevelObjectives.html">serviceLevelObjectives</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, serviceLevelObjectiveId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Create a ServiceLevelObjective for the given Service.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Delete the given ServiceLevelObjective.</p>
86<p class="toc_element">
87  <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Get a ServiceLevelObjective by name.</p>
89<p class="toc_element">
90  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
91<p class="firstline">List the ServiceLevelObjectives for the given Service.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</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, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Update the given ServiceLevelObjective.</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, serviceLevelObjectiveId=None, x__xgafv=None)</code>
106  <pre>Create a ServiceLevelObjective for the given Service.
107
108Args:
109  parent: string, Required. Resource name of the parent Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]  (required)
110  body: object, The request body.
111    The object takes the form of:
112
113{ # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
114  &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
115  &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
116  &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
117  &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
118  &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
119  &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
120    &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
121      &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
122      },
123      &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
124        &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
125      },
126      &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
127        &quot;A String&quot;,
128      ],
129      &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
130        &quot;A String&quot;,
131      ],
132      &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
133        &quot;A String&quot;,
134      ],
135    },
136    &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
137      &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
138        &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
139        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
140          &quot;max&quot;: 3.14, # Range maximum.
141          &quot;min&quot;: 3.14, # Range minimum.
142        },
143      },
144      &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
145        &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
146        &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
147        &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
148      },
149    },
150    &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
151      &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
152      &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
153        &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
154          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
155          },
156          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
157            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
158          },
159          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
160            &quot;A String&quot;,
161          ],
162          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
163            &quot;A String&quot;,
164          ],
165          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
166            &quot;A String&quot;,
167          ],
168        },
169        &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
170          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
171            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
172            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
173              &quot;max&quot;: 3.14, # Range maximum.
174              &quot;min&quot;: 3.14, # Range minimum.
175            },
176          },
177          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
178            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
179            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
180            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
181          },
182        },
183        &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
184      },
185      &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
186        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
187          &quot;max&quot;: 3.14, # Range maximum.
188          &quot;min&quot;: 3.14, # Range minimum.
189        },
190        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
191      },
192      &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
193        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
194          &quot;max&quot;: 3.14, # Range maximum.
195          &quot;min&quot;: 3.14, # Range minimum.
196        },
197        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
198      },
199      &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
200    },
201  },
202  &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
203    &quot;a_key&quot;: &quot;A String&quot;,
204  },
205}
206
207  serviceLevelObjectiveId: string, Optional. The ServiceLevelObjective id to use for this ServiceLevelObjective. If omitted, an id will be generated instead. Must match the pattern [a-z0-9\-]+
208  x__xgafv: string, V1 error format.
209    Allowed values
210      1 - v1 error format
211      2 - v2 error format
212
213Returns:
214  An object of the form:
215
216    { # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
217  &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
218  &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
219  &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
220  &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
221  &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
222  &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
223    &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
224      &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
225      },
226      &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
227        &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
228      },
229      &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
230        &quot;A String&quot;,
231      ],
232      &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
233        &quot;A String&quot;,
234      ],
235      &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
236        &quot;A String&quot;,
237      ],
238    },
239    &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
240      &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
241        &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
242        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
243          &quot;max&quot;: 3.14, # Range maximum.
244          &quot;min&quot;: 3.14, # Range minimum.
245        },
246      },
247      &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
248        &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
249        &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
250        &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
251      },
252    },
253    &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
254      &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
255      &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
256        &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
257          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
258          },
259          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
260            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
261          },
262          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
263            &quot;A String&quot;,
264          ],
265          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
266            &quot;A String&quot;,
267          ],
268          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
269            &quot;A String&quot;,
270          ],
271        },
272        &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
273          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
274            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
275            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
276              &quot;max&quot;: 3.14, # Range maximum.
277              &quot;min&quot;: 3.14, # Range minimum.
278            },
279          },
280          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
281            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
282            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
283            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
284          },
285        },
286        &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
287      },
288      &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
289        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
290          &quot;max&quot;: 3.14, # Range maximum.
291          &quot;min&quot;: 3.14, # Range minimum.
292        },
293        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
294      },
295      &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
296        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
297          &quot;max&quot;: 3.14, # Range maximum.
298          &quot;min&quot;: 3.14, # Range minimum.
299        },
300        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
301      },
302      &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
303    },
304  },
305  &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
306    &quot;a_key&quot;: &quot;A String&quot;,
307  },
308}</pre>
309</div>
310
311<div class="method">
312    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
313  <pre>Delete the given ServiceLevelObjective.
314
315Args:
316  name: string, Required. Resource name of the ServiceLevelObjective to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]  (required)
317  x__xgafv: string, V1 error format.
318    Allowed values
319      1 - v1 error format
320      2 - v2 error format
321
322Returns:
323  An object of the form:
324
325    { # 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); } The JSON representation for Empty is empty JSON object {}.
326}</pre>
327</div>
328
329<div class="method">
330    <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
331  <pre>Get a ServiceLevelObjective by name.
332
333Args:
334  name: string, Required. Resource name of the ServiceLevelObjective to get. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]  (required)
335  view: string, View of the ServiceLevelObjective to return. If DEFAULT, return the ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed.
336    Allowed values
337      VIEW_UNSPECIFIED - Same as FULL.
338      FULL - Return the embedded ServiceLevelIndicator in the form in which it was defined. If it was defined using a BasicSli, return that BasicSli.
339      EXPLICIT - For ServiceLevelIndicators using BasicSli articulation, instead return the ServiceLevelIndicator with its mode of computation fully spelled out as a RequestBasedSli. For ServiceLevelIndicators using RequestBasedSli or WindowsBasedSli, return the ServiceLevelIndicator as it was provided.
340  x__xgafv: string, V1 error format.
341    Allowed values
342      1 - v1 error format
343      2 - v2 error format
344
345Returns:
346  An object of the form:
347
348    { # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
349  &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
350  &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
351  &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
352  &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
353  &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
354  &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
355    &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
356      &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
357      },
358      &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
359        &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
360      },
361      &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
362        &quot;A String&quot;,
363      ],
364      &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
365        &quot;A String&quot;,
366      ],
367      &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
368        &quot;A String&quot;,
369      ],
370    },
371    &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
372      &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
373        &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
374        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
375          &quot;max&quot;: 3.14, # Range maximum.
376          &quot;min&quot;: 3.14, # Range minimum.
377        },
378      },
379      &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
380        &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
381        &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
382        &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
383      },
384    },
385    &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
386      &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
387      &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
388        &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
389          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
390          },
391          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
392            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
393          },
394          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
395            &quot;A String&quot;,
396          ],
397          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
398            &quot;A String&quot;,
399          ],
400          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
401            &quot;A String&quot;,
402          ],
403        },
404        &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
405          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
406            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
407            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
408              &quot;max&quot;: 3.14, # Range maximum.
409              &quot;min&quot;: 3.14, # Range minimum.
410            },
411          },
412          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
413            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
414            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
415            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
416          },
417        },
418        &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
419      },
420      &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
421        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
422          &quot;max&quot;: 3.14, # Range maximum.
423          &quot;min&quot;: 3.14, # Range minimum.
424        },
425        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
426      },
427      &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
428        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
429          &quot;max&quot;: 3.14, # Range maximum.
430          &quot;min&quot;: 3.14, # Range minimum.
431        },
432        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
433      },
434      &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
435    },
436  },
437  &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
438    &quot;a_key&quot;: &quot;A String&quot;,
439  },
440}</pre>
441</div>
442
443<div class="method">
444    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
445  <pre>List the ServiceLevelObjectives for the given Service.
446
447Args:
448  parent: string, Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Workspace. The formats are: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-  (required)
449  filter: string, A filter specifying what ServiceLevelObjectives to return.
450  pageSize: integer, A non-negative number that is the maximum number of results to return. When 0, use default page size.
451  pageToken: string, 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.
452  view: string, View of the ServiceLevelObjectives to return. If DEFAULT, return each ServiceLevelObjective as originally defined. If EXPLICIT and the ServiceLevelObjective is defined in terms of a BasicSli, replace the BasicSli with a RequestBasedSli spelling out how the SLI is computed.
453    Allowed values
454      VIEW_UNSPECIFIED - Same as FULL.
455      FULL - Return the embedded ServiceLevelIndicator in the form in which it was defined. If it was defined using a BasicSli, return that BasicSli.
456      EXPLICIT - For ServiceLevelIndicators using BasicSli articulation, instead return the ServiceLevelIndicator with its mode of computation fully spelled out as a RequestBasedSli. For ServiceLevelIndicators using RequestBasedSli or WindowsBasedSli, return the ServiceLevelIndicator as it was provided.
457  x__xgafv: string, V1 error format.
458    Allowed values
459      1 - v1 error format
460      2 - v2 error format
461
462Returns:
463  An object of the form:
464
465    { # The ListServiceLevelObjectives response.
466  &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.
467  &quot;serviceLevelObjectives&quot;: [ # The ServiceLevelObjectives matching the specified filter.
468    { # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
469      &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
470      &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
471      &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
472      &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
473      &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
474      &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
475        &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
476          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
477          },
478          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
479            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
480          },
481          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
482            &quot;A String&quot;,
483          ],
484          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
485            &quot;A String&quot;,
486          ],
487          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
488            &quot;A String&quot;,
489          ],
490        },
491        &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
492          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
493            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
494            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
495              &quot;max&quot;: 3.14, # Range maximum.
496              &quot;min&quot;: 3.14, # Range minimum.
497            },
498          },
499          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
500            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
501            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
502            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
503          },
504        },
505        &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
506          &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
507          &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
508            &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
509              &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
510              },
511              &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
512                &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
513              },
514              &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
515                &quot;A String&quot;,
516              ],
517              &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
518                &quot;A String&quot;,
519              ],
520              &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
521                &quot;A String&quot;,
522              ],
523            },
524            &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
525              &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
526                &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
527                &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
528                  &quot;max&quot;: 3.14, # Range maximum.
529                  &quot;min&quot;: 3.14, # Range minimum.
530                },
531              },
532              &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
533                &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
534                &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
535                &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
536              },
537            },
538            &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
539          },
540          &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
541            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
542              &quot;max&quot;: 3.14, # Range maximum.
543              &quot;min&quot;: 3.14, # Range minimum.
544            },
545            &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
546          },
547          &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
548            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
549              &quot;max&quot;: 3.14, # Range maximum.
550              &quot;min&quot;: 3.14, # Range minimum.
551            },
552            &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
553          },
554          &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
555        },
556      },
557      &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
558        &quot;a_key&quot;: &quot;A String&quot;,
559      },
560    },
561  ],
562}</pre>
563</div>
564
565<div class="method">
566    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
567  <pre>Retrieves the next page of results.
568
569Args:
570  previous_request: The request for the previous page. (required)
571  previous_response: The response from the request for the previous page. (required)
572
573Returns:
574  A request object that you can call &#x27;execute()&#x27; on to request the next
575  page. Returns None if there are no more items in the collection.
576    </pre>
577</div>
578
579<div class="method">
580    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
581  <pre>Update the given ServiceLevelObjective.
582
583Args:
584  name: string, Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]  (required)
585  body: object, The request body.
586    The object takes the form of:
587
588{ # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
589  &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
590  &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
591  &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
592  &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
593  &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
594  &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
595    &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
596      &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
597      },
598      &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
599        &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
600      },
601      &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
602        &quot;A String&quot;,
603      ],
604      &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
605        &quot;A String&quot;,
606      ],
607      &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
608        &quot;A String&quot;,
609      ],
610    },
611    &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
612      &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
613        &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
614        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
615          &quot;max&quot;: 3.14, # Range maximum.
616          &quot;min&quot;: 3.14, # Range minimum.
617        },
618      },
619      &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
620        &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
621        &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
622        &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
623      },
624    },
625    &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
626      &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
627      &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
628        &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
629          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
630          },
631          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
632            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
633          },
634          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
635            &quot;A String&quot;,
636          ],
637          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
638            &quot;A String&quot;,
639          ],
640          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
641            &quot;A String&quot;,
642          ],
643        },
644        &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
645          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
646            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
647            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
648              &quot;max&quot;: 3.14, # Range maximum.
649              &quot;min&quot;: 3.14, # Range minimum.
650            },
651          },
652          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
653            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
654            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
655            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
656          },
657        },
658        &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
659      },
660      &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
661        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
662          &quot;max&quot;: 3.14, # Range maximum.
663          &quot;min&quot;: 3.14, # Range minimum.
664        },
665        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
666      },
667      &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
668        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
669          &quot;max&quot;: 3.14, # Range maximum.
670          &quot;min&quot;: 3.14, # Range minimum.
671        },
672        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
673      },
674      &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
675    },
676  },
677  &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
678    &quot;a_key&quot;: &quot;A String&quot;,
679  },
680}
681
682  updateMask: string, A set of field paths defining which fields to use for the update.
683  x__xgafv: string, V1 error format.
684    Allowed values
685      1 - v1 error format
686      2 - v2 error format
687
688Returns:
689  An object of the form:
690
691    { # A Service-Level Objective (SLO) describes a level of desired good service. It consists of a service-level indicator (SLI), a performance goal, and a period over which the objective is to be evaluated against that goal. The SLO can use SLIs defined in a number of different manners. Typical SLOs might include &quot;99% of requests in each rolling week have latency below 200 milliseconds&quot; or &quot;99.5% of requests in each calendar month return successfully.&quot;
692  &quot;calendarPeriod&quot;: &quot;A String&quot;, # A calendar period, semantically &quot;since the start of the current &quot;. At this time, only DAY, WEEK, FORTNIGHT, and MONTH are supported.
693  &quot;displayName&quot;: &quot;A String&quot;, # Name used for UI elements listing this SLO.
694  &quot;goal&quot;: 3.14, # The fraction of service that must be good in order for this objective to be met. 0 &lt; goal &lt;= 0.999.
695  &quot;name&quot;: &quot;A String&quot;, # Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceLevelObjectives/[SLO_NAME]
696  &quot;rollingPeriod&quot;: &quot;A String&quot;, # A rolling time period, semantically &quot;in the past &quot;. Must be an integer multiple of 1 day no larger than 30 days.
697  &quot;serviceLevelIndicator&quot;: { # A Service-Level Indicator (SLI) describes the &quot;performance&quot; of a service. For some services, the SLI is well-defined. In such cases, the SLI can be described easily by referencing the well-known SLI and providing the needed parameters. Alternatively, a &quot;custom&quot; SLI can be defined with a query to the underlying metric store. An SLI is defined to be good_service / total_service over any queried time interval. The value of performance always falls into the range 0 &lt;= performance &lt;= 1. A custom SLI describes how to compute this ratio, whether this is by dividing values from a pair of time series, cutting a Distribution into good and bad counts, or counting time windows in which the service complies with a criterion. For separation of concerns, a single Service-Level Indicator measures performance for only one aspect of service quality, such as fraction of successful queries or fast-enough queries. # The definition of good service, used to measure and calculate the quality of the Service&#x27;s performance with respect to a single aspect of service quality.
698    &quot;basicSli&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # Basic SLI on a well-known service type.
699      &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
700      },
701      &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
702        &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
703      },
704      &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
705        &quot;A String&quot;,
706      ],
707      &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
708        &quot;A String&quot;,
709      ],
710      &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
711        &quot;A String&quot;,
712      ],
713    },
714    &quot;requestBased&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # Request-based SLIs
715      &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
716        &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
717        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
718          &quot;max&quot;: 3.14, # Range maximum.
719          &quot;min&quot;: 3.14, # Range minimum.
720        },
721      },
722      &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
723        &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
724        &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
725        &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
726      },
727    },
728    &quot;windowsBased&quot;: { # A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion. # Windows-based SLIs
729      &quot;goodBadMetricFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.
730      &quot;goodTotalRatioThreshold&quot;: { # A PerformanceThreshold is used when each window is good when that window has a sufficiently high performance. # A window is good if its performance is high enough.
731        &quot;basicSliPerformance&quot;: { # An SLI measuring performance on a well-known service type. Performance will be computed on the basis of pre-defined metrics. The type of the service_resource determines the metrics to use and the service_resource.labels and metric_labels are used to construct a monitoring filter to filter that metric down to just the data relevant to this service. # BasicSli to evaluate to judge window quality.
732          &quot;availability&quot;: { # Future parameters for the availability SLI. # Good service is defined to be the count of requests made to this service that return successfully.
733          },
734          &quot;latency&quot;: { # Parameters for a latency threshold SLI. # Good service is defined to be the count of requests made to this service that are fast enough with respect to latency.threshold.
735            &quot;threshold&quot;: &quot;A String&quot;, # Good service is defined to be the count of requests made to this service that return in no more than threshold.
736          },
737          &quot;location&quot;: [ # OPTIONAL: The set of locations to which this SLI is relevant. Telemetry from other locations will not be used to calculate performance for this SLI. If omitted, this SLI applies to all locations in which the Service has activity. For service types that don&#x27;t support breaking down by location, setting this field will result in an error.
738            &quot;A String&quot;,
739          ],
740          &quot;method&quot;: [ # OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from other methods will not be used to calculate performance for this SLI. If omitted, this SLI applies to all the Service&#x27;s methods. For service types that don&#x27;t support breaking down by method, setting this field will result in an error.
741            &quot;A String&quot;,
742          ],
743          &quot;version&quot;: [ # OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry from other API versions will not be used to calculate performance for this SLI. If omitted, this SLI applies to all API versions. For service types that don&#x27;t support breaking down by version, setting this field will result in an error.
744            &quot;A String&quot;,
745          ],
746        },
747        &quot;performance&quot;: { # Service Level Indicators for which atomic units of service are counted directly. # RequestBasedSli to evaluate to judge window quality.
748          &quot;distributionCut&quot;: { # A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max. # distribution_cut is used when good_service is a count of values aggregated in a Distribution that fall into a good range. The total_service is the total count of all values aggregated in the Distribution.
749            &quot;distributionFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.
750            &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
751              &quot;max&quot;: 3.14, # Range maximum.
752              &quot;min&quot;: 3.14, # Range minimum.
753            },
754          },
755          &quot;goodTotalRatio&quot;: { # A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed. # good_total_ratio is used when the ratio of good_service to total_service is computed from two TimeSeries.
756            &quot;badServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
757            &quot;goodServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
758            &quot;totalServiceFilter&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.
759          },
760        },
761        &quot;threshold&quot;: 3.14, # If window performance &gt;= threshold, the window is counted as good.
762      },
763      &quot;metricMeanInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, averaged across returned streams.
764        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
765          &quot;max&quot;: 3.14, # Range maximum.
766          &quot;min&quot;: 3.14, # Range minimum.
767        },
768        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
769      },
770      &quot;metricSumInRange&quot;: { # A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min &lt;= x &lt;= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE. # A window is good if the metric&#x27;s value is in a good range, summed across returned streams.
771        &quot;range&quot;: { # Range of numerical values within min and max. # Range of values considered &quot;good.&quot; For a one-sided range, set one bound to an infinite value.
772          &quot;max&quot;: 3.14, # Range maximum.
773          &quot;min&quot;: 3.14, # Range minimum.
774        },
775        &quot;timeSeries&quot;: &quot;A String&quot;, # A monitoring filter (https://cloud.google.com/monitoring/api/v3/filters) specifying the TimeSeries to use for evaluating window quality.
776      },
777      &quot;windowPeriod&quot;: &quot;A String&quot;, # Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.
778    },
779  },
780  &quot;userLabels&quot;: { # Labels which have been used to annotate the service-level objective. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.
781    &quot;a_key&quot;: &quot;A String&quot;,
782  },
783}</pre>
784</div>
785
786</body></html>