blob: cdf7c8bfcbef2a86dd0e9224b6eee97f8c419dd8 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="servicecontrol_v1.html">Service Control API</a> . <a href="servicecontrol_v1.services.html">services</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#allocateQuota">allocateQuota(serviceName, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Attempts to allocate quota for the specified consumer. It should be called</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#check">check(serviceName, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Checks whether an operation on a service should be allowed to proceed</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#report">report(serviceName, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080085<p class="firstline">Reports operation results to Google Service Control, such as logs and</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<h3>Method Details</h3>
87<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070088 <code class="details" id="allocateQuota">allocateQuota(serviceName, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040089 <pre>Attempts to allocate quota for the specified consumer. It should be called
90before the operation is executed.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070091
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040092This method requires the `servicemanagement.services.quota`
93permission on the specified service. For more information, see
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094[Cloud IAM](https://cloud.google.com/iam).
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070095
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096**NOTE:** The client **must** fail-open on server errors `INTERNAL`,
97`UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
98reliability, the server may inject these errors to prohibit any hard
99dependency on the quota functionality.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700100
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700101Args:
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400102 serviceName: string, Name of the service as specified in the service configuration. For example,
Bu Sun Kim65020912020-05-20 12:08:20 -0700103`&quot;pubsub.googleapis.com&quot;`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104
105See google.api.Service for the definition of a service name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700106 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700107 The object takes the form of:
108
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400109{ # Request message for the AllocateQuota method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Specifies which version of service configuration should be used to process
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400111 # the request. If unspecified or no matching version can be found, the latest
112 # one will be used.
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 &quot;allocateOperation&quot;: { # Represents information regarding a quota operation. # Operation that describes the quota allocation.
114 &quot;quotaMetrics&quot;: [ # Represents information about this operation. Each MetricValueSet
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700115 # corresponds to a metric defined in the service configuration.
116 # The data type used in the MetricValueSet must agree with
117 # the data type specified in the metric definition.
118 #
119 # Within a single operation, it is not allowed to have more than one
120 # MetricValue instances that have the same metric names and identical
121 # label value combinations. If a request has such duplicated MetricValue
122 # instances, the entire request is rejected with
123 # an invalid argument error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 #
125 # This field is mutually exclusive with method_name.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700126 { # Represents a set of metric values in the same metric.
127 # Each metric value in the set should have a unique combination of start time,
128 # end time, and label values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;metricValues&quot;: [ # The values in this metric.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700130 { # Represents a single metric value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
132 # applies.
133 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
134 # applies. The time period has different semantics for different metric
135 # types (cumulative, delta, and gauge). See the metric definition
136 # documentation in the service configuration for details.
137 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
138 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
139 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
140 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
141 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400142 # The value must be between -999,999,999 and +999,999,999 inclusive.
143 # If `units` is positive, `nanos` must be positive or zero.
144 # If `units` is zero, `nanos` can be positive, zero, or negative.
145 # If `units` is negative, `nanos` must be negative or zero.
146 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400147 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
149 &quot;labels&quot;: { # The labels describing the metric value.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700150 # See comments on google.api.servicecontrol.v1.Operation.labels for
151 # the overriding relationship.
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 # Note that this map must not contain monitored resource labels.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700154 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700155 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
156 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
157 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700158 # points. It contains the size of the population of sample points plus
159 # additional optional information:
160 #
161 # - the arithmetic mean of the samples
162 # - the minimum and maximum of the samples
163 # - the sum-squared-deviation of the samples, used to compute variance
164 # - a histogram of the values of the sample points
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
166 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
167 # buckets. Note that a list of length N-1 defines N buckets because
168 # of fenceposting. See comments on `bucket_options` for details.
169 #
170 # The i&#x27;th finite bucket covers the interval
171 # [bound[i-1], bound[i])
172 # where i ranges from 1 to bound_size() - 1. Note that there are no
173 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
174 # that special case the single bound defines the boundary between the
175 # underflow and overflow buckets.
176 #
177 # bucket number lower bound upper bound
178 # i == 0 (underflow) -inf bound[i]
179 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
180 # i == bound_size() (overflow) bound[i-1] +inf
181 3.14,
182 ],
183 },
184 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
185 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 # Sum[i=1..count]((x_i - mean)^2)
187 # where each x_i is a sample values. If `count` is zero then this field
188 # must be zero, otherwise validation of the request fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700190 { # Exemplars are example points that may be used to annotate aggregated
191 # distribution values. They are metadata that gives information about a
192 # particular value added to a Distribution bucket, such as a trace ID that
193 # was active when a value was added. They may contain further information,
194 # such as a example values and timestamps, origin, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
196 # exemplar belongs.
197 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
198 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
Dan O'Mearadd494642020-05-01 07:42:23 -0700199 #
200 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
201 #
202 # Literal string: type.googleapis.com/google.protobuf.StringValue
203 #
204 # Labels dropped during aggregation:
205 # type.googleapis.com/google.monitoring.v3.DroppedLabels
206 #
207 # There may be only a single attachment of any given message type in a
208 # single exemplar, and this is enforced by the system.
209 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700211 },
212 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700213 },
214 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
216 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
217 # [scale * growth_factor^(i-1), scale * growth_factor^i)
218 # where i ranges from 1 to num_finite_buckets inclusive.
219 # Must be larger than 1.0.
220 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
221 # [scale * growth_factor^(i-1), scale * growth_factor^i)
222 # where i ranges from 1 to num_finite_buckets inclusive.
223 # Must be &gt; 0.
224 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
225 # the total number of buckets is `num_finite_buckets` + 2.
226 # See comments on `bucket_options` for details.
227 },
228 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
229 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
230 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400231 # [offset + (i-1) * width, offset + i * width)
232 # where i ranges from 1 to num_finite_buckets, inclusive.
233 # Must be strictly positive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700234 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400235 # [offset + (i-1) * width, offset + i * width)
236 # where i ranges from 1 to num_finite_buckets, inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
238 # the total number of buckets is `num_finite_buckets` + 2.
239 # See comments on `bucket_options` for details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400240 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400242 # zero then this field must be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
244 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
245 # optional. If present, they must sum to the `count` value.
246 #
247 # The buckets are defined below in `bucket_option`. There are N buckets.
248 # `bucket_counts[0]` is the number of samples in the underflow bucket.
249 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
250 # in each of the finite buckets. And `bucket_counts[N] is the number
251 # of samples in the overflow bucket. See the comments of `bucket_option`
252 # below for more details.
253 #
254 # Any suffix of trailing zeros may be omitted.
255 &quot;A String&quot;,
256 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;boolValue&quot;: True or False, # A boolean value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400259 },
260 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400262 },
263 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;labels&quot;: { # Labels describing the operation.
265 &quot;a_key&quot;: &quot;A String&quot;,
266 },
267 &quot;consumerId&quot;: &quot;A String&quot;, # Identity of the consumer for whom this quota operation is being performed.
268 #
269 # This can be in one of the following formats:
270 # project:&lt;project_id&gt;,
271 # project_number:&lt;project_number&gt;,
272 # api_key:&lt;api_key&gt;.
273 &quot;operationId&quot;: &quot;A String&quot;, # Identity of the operation. This is expected to be unique within the scope
274 # of the service that generated the operation, and guarantees idempotency in
275 # case of retries.
276 #
277 # In order to ensure best performance and latency in the Quota backends,
278 # operation_ids are optimally associated with time, so that related
279 # operations can be accessed fast in storage. For this reason, the
280 # recommended token for services that intend to operate at a high QPS is
281 # Unix time in nanos + UUID
282 &quot;methodName&quot;: &quot;A String&quot;, # Fully qualified name of the API method for which this quota operation is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400283 # requested. This name is used for matching quota rules or metric rules and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284 # billing status rules defined in service configuration.
285 #
286 # This field should not be set if any of the following is true:
287 # (1) the quota operation is performed on non-API resources.
288 # (2) quota_metrics is set because the caller is doing quota override.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400289 #
290 # Example of an RPC method name:
291 # google.example.library.v1.LibraryService.CreateShelf
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &quot;quotaMode&quot;: &quot;A String&quot;, # Quota mode for this operation.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400293 },
294 }
295
296 x__xgafv: string, V1 error format.
297 Allowed values
298 1 - v1 error format
299 2 - v2 error format
300
301Returns:
302 An object of the form:
303
304 { # Response message for the AllocateQuota method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;serviceConfigId&quot;: &quot;A String&quot;, # ID of the actual config used to process the request.
306 &quot;allocateInfo&quot;: { # WARNING: DO NOT use this field until this warning message is removed.
307 &quot;unusedArguments&quot;: [ # A list of label keys that were unused by the server in processing the
308 # request. Thus, for similar requests repeated in a certain future time
309 # window, the caller can choose to ignore these labels in the requests
310 # to achieve better client-side cache hits and quota aggregation for rate
311 # quota. This field is not populated for allocation quota checks.
312 &quot;A String&quot;,
313 ],
314 },
315 &quot;allocateErrors&quot;: [ # Indicates the decision of the allocate.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 { # Represents error information for QuotaOperation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;subject&quot;: &quot;A String&quot;, # Subject to whom this error applies. See the specific enum for more details
318 # on this field. For example, &quot;clientip:&lt;ip address of client&gt;&quot; or
319 # &quot;project:&lt;Google developer project id&gt;&quot;.
320 &quot;description&quot;: &quot;A String&quot;, # Free-form text that provides details on the cause of the error.
321 &quot;code&quot;: &quot;A String&quot;, # Error code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700322 },
323 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 &quot;quotaMetrics&quot;: [ # Quota metrics to indicate the result of allocation. Depending on the
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400325 # request, one or more of the following metrics will be included:
326 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327 # 1. Per quota group or per quota metric incremental usage will be specified
328 # using the following delta metric :
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 # &quot;serviceruntime.googleapis.com/api/consumer/quota_used_count&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400330 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 # 2. The quota limit reached condition will be specified using the following
332 # boolean metric :
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 # &quot;serviceruntime.googleapis.com/quota/exceeded&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400334 { # Represents a set of metric values in the same metric.
335 # Each metric value in the set should have a unique combination of start time,
336 # end time, and label values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700337 &quot;metricValues&quot;: [ # The values in this metric.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 { # Represents a single metric value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
340 # applies.
341 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
342 # applies. The time period has different semantics for different metric
343 # types (cumulative, delta, and gauge). See the metric definition
344 # documentation in the service configuration for details.
345 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
346 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
347 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
348 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
349 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400350 # The value must be between -999,999,999 and +999,999,999 inclusive.
351 # If `units` is positive, `nanos` must be positive or zero.
352 # If `units` is zero, `nanos` can be positive, zero, or negative.
353 # If `units` is negative, `nanos` must be negative or zero.
354 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400355 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
357 &quot;labels&quot;: { # The labels describing the metric value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400358 # See comments on google.api.servicecontrol.v1.Operation.labels for
359 # the overriding relationship.
Dan O'Mearadd494642020-05-01 07:42:23 -0700360 # Note that this map must not contain monitored resource labels.
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400362 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700363 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
364 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
365 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400366 # points. It contains the size of the population of sample points plus
367 # additional optional information:
368 #
369 # - the arithmetic mean of the samples
370 # - the minimum and maximum of the samples
371 # - the sum-squared-deviation of the samples, used to compute variance
372 # - a histogram of the values of the sample points
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
374 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
375 # buckets. Note that a list of length N-1 defines N buckets because
376 # of fenceposting. See comments on `bucket_options` for details.
377 #
378 # The i&#x27;th finite bucket covers the interval
379 # [bound[i-1], bound[i])
380 # where i ranges from 1 to bound_size() - 1. Note that there are no
381 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
382 # that special case the single bound defines the boundary between the
383 # underflow and overflow buckets.
384 #
385 # bucket number lower bound upper bound
386 # i == 0 (underflow) -inf bound[i]
387 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
388 # i == bound_size() (overflow) bound[i-1] +inf
389 3.14,
390 ],
391 },
392 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
393 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
Dan O'Mearadd494642020-05-01 07:42:23 -0700394 # Sum[i=1..count]((x_i - mean)^2)
395 # where each x_i is a sample values. If `count` is zero then this field
396 # must be zero, otherwise validation of the request fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 { # Exemplars are example points that may be used to annotate aggregated
399 # distribution values. They are metadata that gives information about a
400 # particular value added to a Distribution bucket, such as a trace ID that
401 # was active when a value was added. They may contain further information,
402 # such as a example values and timestamps, origin, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
404 # exemplar belongs.
405 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
406 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
Dan O'Mearadd494642020-05-01 07:42:23 -0700407 #
408 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
409 #
410 # Literal string: type.googleapis.com/google.protobuf.StringValue
411 #
412 # Labels dropped during aggregation:
413 # type.googleapis.com/google.monitoring.v3.DroppedLabels
414 #
415 # There may be only a single attachment of any given message type in a
416 # single exemplar, and this is enforced by the system.
417 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700419 },
420 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700421 },
422 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
424 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
425 # [scale * growth_factor^(i-1), scale * growth_factor^i)
426 # where i ranges from 1 to num_finite_buckets inclusive.
427 # Must be larger than 1.0.
428 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
429 # [scale * growth_factor^(i-1), scale * growth_factor^i)
430 # where i ranges from 1 to num_finite_buckets inclusive.
431 # Must be &gt; 0.
432 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
433 # the total number of buckets is `num_finite_buckets` + 2.
434 # See comments on `bucket_options` for details.
435 },
436 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
437 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
438 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400439 # [offset + (i-1) * width, offset + i * width)
440 # where i ranges from 1 to num_finite_buckets, inclusive.
441 # Must be strictly positive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400443 # [offset + (i-1) * width, offset + i * width)
444 # where i ranges from 1 to num_finite_buckets, inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
446 # the total number of buckets is `num_finite_buckets` + 2.
447 # See comments on `bucket_options` for details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400448 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400450 # zero then this field must be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
452 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
453 # optional. If present, they must sum to the `count` value.
454 #
455 # The buckets are defined below in `bucket_option`. There are N buckets.
456 # `bucket_counts[0]` is the number of samples in the underflow bucket.
457 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
458 # in each of the finite buckets. And `bucket_counts[N] is the number
459 # of samples in the overflow bucket. See the comments of `bucket_option`
460 # below for more details.
461 #
462 # Any suffix of trailing zeros may be omitted.
463 &quot;A String&quot;,
464 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400465 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 &quot;boolValue&quot;: True or False, # A boolean value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400467 },
468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400470 },
471 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 &quot;operationId&quot;: &quot;A String&quot;, # The same operation_id value used in the AllocateQuotaRequest. Used for
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400473 # logging and diagnostics purposes.
474 }</pre>
475</div>
476
477<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 <code class="details" id="check">check(serviceName, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700479 <pre>Checks whether an operation on a service should be allowed to proceed
480based on the configuration of the service and related policies. It must be
481called before the operation is executed.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400482
483If feasible, the client should cache the check results and reuse them for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070048460 seconds. In case of any server errors, the client should rely on the
485cached results for much longer time to avoid outage.
486WARNING: There is general 60s delay for the configuration and policy
487propagation, therefore callers MUST NOT depend on the `Check` method having
488the latest policy information.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400489
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490NOTE: the CheckRequest has the size limit of 64KB.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400491
492This method requires the `servicemanagement.services.check` permission
493on the specified service. For more information, see
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700494[Cloud IAM](https://cloud.google.com/iam).
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400495
496Args:
497 serviceName: string, The service name as specified in its service configuration. For example,
Bu Sun Kim65020912020-05-20 12:08:20 -0700498`&quot;pubsub.googleapis.com&quot;`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400499
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500See
501[google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
502for the definition of a service name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700503 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400504 The object takes the form of:
505
506{ # Request message for the Check method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700507 &quot;skipActivationCheck&quot;: True or False, # Indicates if service activation check should be skipped for this request.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400508 # Default behavior is to perform the check and apply relevant quota.
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 # WARNING: Setting this flag to &quot;true&quot; will disable quota enforcement.
510 &quot;operation&quot;: { # Represents information regarding an operation. # The operation to be checked.
511 &quot;traceSpans&quot;: [ # Unimplemented. A list of Cloud Trace spans. The span names shall contain
Dan O'Mearadd494642020-05-01 07:42:23 -0700512 # the id of the destination project which can be either the produce or the
513 # consumer project.
514 { # A span represents a single operation within a trace. Spans can be
515 # nested to form a trace tree. Often, a trace contains a root span
516 # that describes the end-to-end latency, and one or more subspans for
517 # its sub-operations. A trace can also contain multiple root spans,
518 # or none at all. Spans do not need to be contiguous&amp;mdash;there may be
519 # gaps or overlaps between spans in a trace.
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the span. You can have up to 32 attributes per
Dan O'Mearadd494642020-05-01 07:42:23 -0700521 # span.
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Dan O'Mearadd494642020-05-01 07:42:23 -0700523 # because their keys are too long or because there are too many attributes.
524 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -0700525 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
Dan O'Mearadd494642020-05-01 07:42:23 -0700526 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
527 # or the Boolean values `true` and `false`. For example:
528 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 # &quot;/instance_id&quot;: &quot;my-instance&quot;
530 # &quot;/http/user_agent&quot;: &quot;&quot;
531 # &quot;/http/request_bytes&quot;: 300
532 # &quot;abc.com/myattribute&quot;: true
533 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
534 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
535 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
536 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
537 # value is 0, then the string was not shortened.
538 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 # bytes long and the limit of the string is 128 bytes, then
540 # `value` contains the first 128 bytes of the 500-byte string.
541 #
542 # Truncation always happens on a UTF8 character boundary. If there
543 # are multi-byte characters in the string, then the length of the
544 # shortened string might be less than the size limit.
Dan O'Mearadd494642020-05-01 07:42:23 -0700545 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700547 },
548 },
549 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] portion of the span&#x27;s resource name.
551 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
552 # then this field must be empty.
553 &quot;endTime&quot;: &quot;A String&quot;, # The end time of the span. On the client side, this is the time kept by
Dan O'Mearadd494642020-05-01 07:42:23 -0700554 # the local machine where the span execution ends. On the server side, this
555 # is the time when the server application handler stops running.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 &quot;startTime&quot;: &quot;A String&quot;, # The start time of the span. On the client side, this is the time kept by
557 # the local machine where the span execution starts. On the server side, this
558 # is the time when the server&#x27;s application handler starts running.
559 &quot;spanKind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example,
560 # two spans with the same name may be distinguished using `CLIENT` (caller)
561 # and `SERVER` (callee) to identify an RPC call.
562 &quot;displayName&quot;: { # Represents a string that might be shortened to a specified length. # A description of the span&#x27;s operation (up to 128 bytes).
563 # Stackdriver Trace displays the description in the
564 # Google Cloud Platform Console.
565 # For example, the display name can be a qualified method name or a file name
566 # and a line number where the operation is called. A best practice is to use
567 # the same display name within an application and at the same call point.
568 # This makes it easier to correlate spans in different traces.
569 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
570 # value is 0, then the string was not shortened.
571 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
572 # bytes long and the limit of the string is 128 bytes, then
573 # `value` contains the first 128 bytes of the 500-byte string.
574 #
575 # Truncation always happens on a UTF8 character boundary. If there
576 # are multi-byte characters in the string, then the length of the
577 # shortened string might be less than the size limit.
578 },
579 &quot;childSpanCount&quot;: 42, # An optional number of child spans that were generated while this span
580 # was active. If set, allows implementation to detect missing child spans.
581 &quot;sameProcessAsParentSpan&quot;: True or False, # (Optional) Set this parameter to indicate whether this span is in
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 # the same process as its parent. If you do not set this parameter,
583 # Stackdriver Trace is unable to take advantage of this helpful
584 # information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700585 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # An optional final status for this span.
586 # different programming environments, including REST APIs and RPC APIs. It is
587 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
588 # three pieces of data: error code, error message, and error details.
589 #
590 # You can find out more about this error model and how to work with it in the
591 # [API Design Guide](https://cloud.google.com/apis/design/errors).
592 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
593 # message types for APIs to use.
594 {
595 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
596 },
597 ],
598 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
599 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
600 # user-facing error message should be localized and sent in the
601 # google.rpc.Status.details field, or localized by the client.
602 },
603 &quot;name&quot;: &quot;A String&quot;, # The resource name of the span in the following format:
604 #
605 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
606 # it is a 32-character hexadecimal encoding of a 16-byte array.
607 #
608 # [SPAN_ID] is a unique identifier for a span within a trace; it
609 # is a 16-character hexadecimal encoding of an 8-byte array.
Dan O'Mearadd494642020-05-01 07:42:23 -0700610 },
611 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;quotaProperties&quot;: { # Represents the properties needed for quota operations. # Represents the properties needed for quota check. Applicable only if this
613 # operation is for a quota check request. If this is not specified, no quota
614 # check will be performed.
615 &quot;quotaMode&quot;: &quot;A String&quot;, # Quota mode for this operation.
616 },
617 &quot;consumerId&quot;: &quot;A String&quot;, # Identity of the consumer who is using the service.
618 # This field should be filled in for the operations initiated by a
619 # consumer, but not for service-initiated operations that are
620 # not related to a specific consumer.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400621 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 # - This can be in one of the following formats:
623 # - project:PROJECT_ID,
624 # - project`_`number:PROJECT_NUMBER,
625 # - projects/PROJECT_ID or PROJECT_NUMBER,
626 # - folders/FOLDER_NUMBER,
627 # - organizations/ORGANIZATION_NUMBER,
628 # - api`_`key:API_KEY.
629 &quot;operationId&quot;: &quot;A String&quot;, # Identity of the operation. This must be unique within the scope of the
630 # service that generated the operation. If the service calls
631 # Check() and Report() on the same operation, the two calls should carry
632 # the same id.
633 #
634 # UUID version 4 is recommended, though not required.
635 # In scenarios where an operation is computed from existing information
636 # and an idempotent id is desirable for deduplication purpose, UUID version 5
637 # is recommended. See RFC 4122 for details.
638 &quot;operationName&quot;: &quot;A String&quot;, # Fully qualified name of the operation. Reserved for future use.
639 &quot;endTime&quot;: &quot;A String&quot;, # End time of the operation.
640 # Required when the operation is used in ServiceController.Report,
641 # but optional when the operation is used in ServiceController.Check.
642 &quot;startTime&quot;: &quot;A String&quot;, # Required. Start time of the operation.
643 &quot;importance&quot;: &quot;A String&quot;, # DO NOT USE. This is an experimental field.
644 &quot;labels&quot;: { # Labels describing the operation. Only the following labels are allowed:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700645 #
646 # - Labels describing monitored resources as defined in
647 # the service configuration.
648 # - Default labels of metric values. When specified, labels defined in the
649 # metric value override these default.
650 # - The following labels defined by Google Cloud Platform:
651 # - `cloud.googleapis.com/location` describing the location where the
652 # operation happened,
653 # - `servicecontrol.googleapis.com/user_agent` describing the user agent
654 # of the API request,
655 # - `servicecontrol.googleapis.com/service_agent` describing the service
656 # used to handle the API request (e.g. ESP),
657 # - `servicecontrol.googleapis.com/platform` describing the platform
658 # where the API is served, such as App Engine, Compute Engine, or
659 # Kubernetes Engine.
Bu Sun Kim65020912020-05-20 12:08:20 -0700660 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700661 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;resources&quot;: [ # The resources that are involved in the operation.
663 # The maximum supported number of entries in this field is 100.
664 { # Describes a resource associated with this operation.
665 &quot;resourceContainer&quot;: &quot;A String&quot;, # The identifier of the parent of this resource instance.
666 # Must be in one of the following formats:
667 # - “projects/&lt;project-id or project-number&gt;”
668 # - “folders/&lt;folder-id&gt;”
669 # - “organizations/&lt;organization-id&gt;”
670 &quot;resourceName&quot;: &quot;A String&quot;, # Name of the resource. This is used for auditing purposes.
671 &quot;resourceLocation&quot;: &quot;A String&quot;, # The location of the resource. If not empty, the resource will be checked
672 # against location policy. The value must be a valid zone, region or
673 # multiregion. For example: &quot;europe-west4&quot; or &quot;northamerica-northeast1-a&quot;
674 },
675 ],
676 &quot;logEntries&quot;: [ # Represents information to be logged.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700677 { # An individual log entry.
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;timestamp&quot;: &quot;A String&quot;, # The time the event described by the log entry occurred. If
679 # omitted, defaults to operation start time.
680 &quot;httpRequest&quot;: { # A common proto for logging HTTP requests. Only contains semantics # Optional. Information about the HTTP request associated with this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 # log entry, if applicable.
682 # defined by the HTTP specification. Product-specific logging
683 # information MUST be defined in a separate message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700684 &quot;latency&quot;: &quot;A String&quot;, # The request processing latency on the server, from the time the request was
685 # received until the response was sent.
686 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent sent by the client. Example:
687 # `&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
688 # CLR 1.0.3705)&quot;`.
689 &quot;cacheFillBytes&quot;: &quot;A String&quot;, # The number of HTTP response bytes inserted into cache. Set only when a
690 # cache fill was attempted.
691 &quot;requestMethod&quot;: &quot;A String&quot;, # The request method. Examples: `&quot;GET&quot;`, `&quot;HEAD&quot;`, `&quot;PUT&quot;`, `&quot;POST&quot;`.
692 &quot;requestSize&quot;: &quot;A String&quot;, # The size of the HTTP request message in bytes, including the request
693 # headers and the request body.
694 &quot;responseSize&quot;: &quot;A String&quot;, # The size of the HTTP response message sent back to the client, in bytes,
695 # including the response headers and the response body.
696 &quot;protocol&quot;: &quot;A String&quot;, # Protocol used for the request. Examples: &quot;HTTP/1.1&quot;, &quot;HTTP/2&quot;, &quot;websocket&quot;
697 &quot;requestUrl&quot;: &quot;A String&quot;, # The scheme (http, https), the host name, the path, and the query
698 # portion of the URL that was requested.
699 # Example: `&quot;http://example.com/some/info?color=red&quot;`.
700 &quot;remoteIp&quot;: &quot;A String&quot;, # The IP address (IPv4 or IPv6) of the client that issued the HTTP
701 # request. Examples: `&quot;192.168.1.1&quot;`, `&quot;FE80::0202:B3FF:FE1E:8329&quot;`.
702 &quot;serverIp&quot;: &quot;A String&quot;, # The IP address (IPv4 or IPv6) of the origin server that the request was
703 # sent to.
704 &quot;cacheLookup&quot;: True or False, # Whether or not a cache lookup was attempted.
705 &quot;cacheHit&quot;: True or False, # Whether or not an entity was served from cache
706 # (with or without validation).
707 &quot;cacheValidatedWithOriginServer&quot;: True or False, # Whether or not the response was validated with the origin server before
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700708 # being served from cache. This field is only meaningful if `cache_hit` is
709 # True.
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;status&quot;: 42, # The response code indicating the status of the response.
711 # Examples: 200, 404.
712 &quot;referer&quot;: &quot;A String&quot;, # The referer URL of the request, as defined in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 # [HTTP/1.1 Header Field
714 # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 &quot;name&quot;: &quot;A String&quot;, # Required. The log to which this log entry belongs. Examples: `&quot;syslog&quot;`,
717 # `&quot;book_log&quot;`.
718 &quot;insertId&quot;: &quot;A String&quot;, # A unique ID for the log entry used for deduplication. If omitted,
719 # the implementation will generate one based on operation_id.
720 &quot;operation&quot;: { # Additional information about a potentially long-running operation with which # Optional. Information about an operation associated with the log entry, if
721 # applicable.
722 # a log entry is associated.
723 &quot;last&quot;: True or False, # Optional. Set this to True if this is the last log entry in the operation.
724 &quot;id&quot;: &quot;A String&quot;, # Optional. An arbitrary operation identifier. Log entries with the
725 # same identifier are assumed to be part of the same operation.
726 &quot;producer&quot;: &quot;A String&quot;, # Optional. An arbitrary producer identifier. The combination of
727 # `id` and `producer` must be globally unique. Examples for `producer`:
728 # `&quot;MyDivision.MyBigCompany.com&quot;`, `&quot;github.com/MyProject/MyApplication&quot;`.
729 &quot;first&quot;: True or False, # Optional. Set this to True if this is the first log entry in the operation.
730 },
731 &quot;textPayload&quot;: &quot;A String&quot;, # The log entry payload, represented as a Unicode string (UTF-8).
732 &quot;protoPayload&quot;: { # The log entry payload, represented as a protocol buffer that is
733 # expressed as a JSON object. The only accepted type currently is
734 # AuditLog.
735 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
736 },
737 &quot;trace&quot;: &quot;A String&quot;, # Optional. Resource name of the trace associated with the log entry, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 # If this field contains a relative resource name, you can assume the name is
739 # relative to `//tracing.googleapis.com`. Example:
740 # `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;labels&quot;: { # A set of user-defined (key, value) data that provides additional
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700742 # information about the log entry.
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700744 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 &quot;severity&quot;: &quot;A String&quot;, # The severity of the log entry. The default value is
746 # `LogSeverity.DEFAULT`.
747 &quot;sourceLocation&quot;: { # Additional information about the source code location that produced the log # Optional. Source code location information associated with the log entry,
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 # if any.
749 # entry.
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 &quot;file&quot;: &quot;A String&quot;, # Optional. Source file name. Depending on the runtime environment, this
751 # might be a simple name or a fully-qualified name.
752 &quot;function&quot;: &quot;A String&quot;, # Optional. Human-readable name of the function or method being invoked, with
Dan O'Mearadd494642020-05-01 07:42:23 -0700753 # optional context such as the class or package name. This information may be
754 # used in contexts such as the logs viewer, where a file and line number are
755 # less meaningful. The format can vary by language. For example:
756 # `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
757 # (Python).
Bu Sun Kim65020912020-05-20 12:08:20 -0700758 &quot;line&quot;: &quot;A String&quot;, # Optional. Line within the source file. 1-based; 0 indicates no line number
Dan O'Mearadd494642020-05-01 07:42:23 -0700759 # available.
Dan O'Mearadd494642020-05-01 07:42:23 -0700760 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;structPayload&quot;: { # The log entry payload, represented as a structure that
762 # is expressed as a JSON object.
763 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
764 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700765 },
766 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700767 &quot;userLabels&quot;: { # User defined labels for the resource that this operation is associated
768 # with. Only a combination of 1000 user labels per consumer project are
769 # allowed.
770 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;metricValueSets&quot;: [ # Represents information about this operation. Each MetricValueSet
773 # corresponds to a metric defined in the service configuration.
774 # The data type used in the MetricValueSet must agree with
775 # the data type specified in the metric definition.
Dan O'Mearadd494642020-05-01 07:42:23 -0700776 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700777 # Within a single operation, it is not allowed to have more than one
778 # MetricValue instances that have the same metric names and identical
779 # label value combinations. If a request has such duplicated MetricValue
780 # instances, the entire request is rejected with
781 # an invalid argument error.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400782 { # Represents a set of metric values in the same metric.
783 # Each metric value in the set should have a unique combination of start time,
784 # end time, and label values.
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 &quot;metricValues&quot;: [ # The values in this metric.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400786 { # Represents a single metric value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700787 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
788 # applies.
789 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
790 # applies. The time period has different semantics for different metric
791 # types (cumulative, delta, and gauge). See the metric definition
792 # documentation in the service configuration for details.
793 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
794 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
795 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
796 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
797 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400798 # The value must be between -999,999,999 and +999,999,999 inclusive.
799 # If `units` is positive, `nanos` must be positive or zero.
800 # If `units` is zero, `nanos` can be positive, zero, or negative.
801 # If `units` is negative, `nanos` must be negative or zero.
802 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400803 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
805 &quot;labels&quot;: { # The labels describing the metric value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400806 # See comments on google.api.servicecontrol.v1.Operation.labels for
807 # the overriding relationship.
Dan O'Mearadd494642020-05-01 07:42:23 -0700808 # Note that this map must not contain monitored resource labels.
Bu Sun Kim65020912020-05-20 12:08:20 -0700809 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400810 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
812 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
813 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400814 # points. It contains the size of the population of sample points plus
815 # additional optional information:
816 #
817 # - the arithmetic mean of the samples
818 # - the minimum and maximum of the samples
819 # - the sum-squared-deviation of the samples, used to compute variance
820 # - a histogram of the values of the sample points
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
822 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
823 # buckets. Note that a list of length N-1 defines N buckets because
824 # of fenceposting. See comments on `bucket_options` for details.
825 #
826 # The i&#x27;th finite bucket covers the interval
827 # [bound[i-1], bound[i])
828 # where i ranges from 1 to bound_size() - 1. Note that there are no
829 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
830 # that special case the single bound defines the boundary between the
831 # underflow and overflow buckets.
832 #
833 # bucket number lower bound upper bound
834 # i == 0 (underflow) -inf bound[i]
835 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
836 # i == bound_size() (overflow) bound[i-1] +inf
837 3.14,
838 ],
839 },
840 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
841 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
Dan O'Mearadd494642020-05-01 07:42:23 -0700842 # Sum[i=1..count]((x_i - mean)^2)
843 # where each x_i is a sample values. If `count` is zero then this field
844 # must be zero, otherwise validation of the request fails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
Dan O'Mearadd494642020-05-01 07:42:23 -0700846 { # Exemplars are example points that may be used to annotate aggregated
847 # distribution values. They are metadata that gives information about a
848 # particular value added to a Distribution bucket, such as a trace ID that
849 # was active when a value was added. They may contain further information,
850 # such as a example values and timestamps, origin, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700851 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
852 # exemplar belongs.
853 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
854 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
Dan O'Mearadd494642020-05-01 07:42:23 -0700855 #
856 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
857 #
858 # Literal string: type.googleapis.com/google.protobuf.StringValue
859 #
860 # Labels dropped during aggregation:
861 # type.googleapis.com/google.monitoring.v3.DroppedLabels
862 #
863 # There may be only a single attachment of any given message type in a
864 # single exemplar, and this is enforced by the system.
865 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700867 },
868 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700869 },
870 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
872 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
873 # [scale * growth_factor^(i-1), scale * growth_factor^i)
874 # where i ranges from 1 to num_finite_buckets inclusive.
875 # Must be larger than 1.0.
876 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
877 # [scale * growth_factor^(i-1), scale * growth_factor^i)
878 # where i ranges from 1 to num_finite_buckets inclusive.
879 # Must be &gt; 0.
880 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
881 # the total number of buckets is `num_finite_buckets` + 2.
882 # See comments on `bucket_options` for details.
883 },
884 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
885 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
886 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400887 # [offset + (i-1) * width, offset + i * width)
888 # where i ranges from 1 to num_finite_buckets, inclusive.
889 # Must be strictly positive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700890 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400891 # [offset + (i-1) * width, offset + i * width)
892 # where i ranges from 1 to num_finite_buckets, inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
894 # the total number of buckets is `num_finite_buckets` + 2.
895 # See comments on `bucket_options` for details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400896 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700897 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
898 # zero then this field must be zero.
899 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
900 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
901 # optional. If present, they must sum to the `count` value.
902 #
903 # The buckets are defined below in `bucket_option`. There are N buckets.
904 # `bucket_counts[0]` is the number of samples in the underflow bucket.
905 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
906 # in each of the finite buckets. And `bucket_counts[N] is the number
907 # of samples in the overflow bucket. See the comments of `bucket_option`
908 # below for more details.
909 #
910 # Any suffix of trailing zeros may be omitted.
911 &quot;A String&quot;,
912 ],
913 },
914 &quot;boolValue&quot;: True or False, # A boolean value.
915 },
916 ],
917 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
918 },
919 ],
920 },
921 &quot;requestProjectSettings&quot;: True or False, # Requests the project settings to be returned as part of the check response.
922 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Specifies which version of service configuration should be used to process
923 # the request.
924 #
925 # If unspecified or no matching version can be found, the
926 # latest one will be used.
927 }
928
929 x__xgafv: string, V1 error format.
930 Allowed values
931 1 - v1 error format
932 2 - v2 error format
933
934Returns:
935 An object of the form:
936
937 { # Response message for the Check method.
938 &quot;checkInfo&quot;: { # Contains additional information about the check operation. # Feedback data returned from the server during processing a Check request.
939 &quot;unusedArguments&quot;: [ # A list of fields and label keys that are ignored by the server.
940 # The client doesn&#x27;t need to send them for following requests to improve
941 # performance and allow better aggregation.
942 &quot;A String&quot;,
943 ],
944 &quot;consumerInfo&quot;: { # `ConsumerInfo` provides information about the consumer. # Consumer info of this check.
945 &quot;consumerNumber&quot;: &quot;A String&quot;, # The consumer identity number, can be Google cloud project number, folder
946 # number or organization number e.g. 1234567890. A value of 0 indicates no
947 # consumer number is found.
948 &quot;type&quot;: &quot;A String&quot;, # The type of the consumer which should have been defined in
949 # [Google Resource Manager](https://cloud.google.com/resource-manager/).
950 &quot;projectNumber&quot;: &quot;A String&quot;, # The Google cloud project number, e.g. 1234567890. A value of 0 indicates
951 # no project number is found.
952 #
953 # NOTE: This field is deprecated after Chemist support flexible consumer
954 # id. New code should not depend on this field anymore.
955 },
956 },
957 &quot;quotaInfo&quot;: { # Contains the quota information for a quota check response. # Quota information for the check request associated with this response.
958 &quot;limitExceeded&quot;: [ # Quota Metrics that have exceeded quota limits.
959 # For QuotaGroup-based quota, this is QuotaGroup.name
960 # For QuotaLimit-based quota, this is QuotaLimit.name
961 # See: google.api.Quota
962 # Deprecated: Use quota_metrics to get per quota group limit exceeded status.
963 &quot;A String&quot;,
964 ],
965 &quot;quotaConsumed&quot;: { # Map of quota group name to the actual number of tokens consumed. If the
966 # quota check was not successful, then this will not be populated due to no
967 # quota consumption.
968 #
969 # We are not merging this field with &#x27;quota_metrics&#x27; field because of the
970 # complexity of scaling in Chemist client code base. For simplicity, we will
971 # keep this field for Castor (that scales quota usage) and &#x27;quota_metrics&#x27;
972 # for SuperQuota (that doesn&#x27;t scale quota usage).
973 &quot;a_key&quot;: 42,
974 },
975 &quot;quotaMetrics&quot;: [ # Quota metrics to indicate the usage. Depending on the check request, one or
976 # more of the following metrics will be included:
977 #
978 # 1. For rate quota, per quota group or per quota metric incremental usage
979 # will be specified using the following delta metric:
980 # &quot;serviceruntime.googleapis.com/api/consumer/quota_used_count&quot;
981 #
982 # 2. For allocation quota, per quota metric total usage will be specified
983 # using the following gauge metric:
984 # &quot;serviceruntime.googleapis.com/allocation/consumer/quota_used_count&quot;
985 #
986 # 3. For both rate quota and allocation quota, the quota limit reached
987 # condition will be specified using the following boolean metric:
988 # &quot;serviceruntime.googleapis.com/quota/exceeded&quot;
989 { # Represents a set of metric values in the same metric.
990 # Each metric value in the set should have a unique combination of start time,
991 # end time, and label values.
992 &quot;metricValues&quot;: [ # The values in this metric.
993 { # Represents a single metric value.
994 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
995 # applies.
996 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
997 # applies. The time period has different semantics for different metric
998 # types (cumulative, delta, and gauge). See the metric definition
999 # documentation in the service configuration for details.
1000 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
1001 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1002 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1003 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1004 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1005 # The value must be between -999,999,999 and +999,999,999 inclusive.
1006 # If `units` is positive, `nanos` must be positive or zero.
1007 # If `units` is zero, `nanos` can be positive, zero, or negative.
1008 # If `units` is negative, `nanos` must be negative or zero.
1009 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1010 },
1011 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
1012 &quot;labels&quot;: { # The labels describing the metric value.
1013 # See comments on google.api.servicecontrol.v1.Operation.labels for
1014 # the overriding relationship.
1015 # Note that this map must not contain monitored resource labels.
1016 &quot;a_key&quot;: &quot;A String&quot;,
1017 },
1018 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
1019 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
1020 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
1021 # points. It contains the size of the population of sample points plus
1022 # additional optional information:
1023 #
1024 # - the arithmetic mean of the samples
1025 # - the minimum and maximum of the samples
1026 # - the sum-squared-deviation of the samples, used to compute variance
1027 # - a histogram of the values of the sample points
1028 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
1029 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001030 # buckets. Note that a list of length N-1 defines N buckets because
1031 # of fenceposting. See comments on `bucket_options` for details.
1032 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 # The i&#x27;th finite bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001034 # [bound[i-1], bound[i])
1035 # where i ranges from 1 to bound_size() - 1. Note that there are no
Bu Sun Kim65020912020-05-20 12:08:20 -07001036 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001037 # that special case the single bound defines the boundary between the
1038 # underflow and overflow buckets.
1039 #
1040 # bucket number lower bound upper bound
1041 # i == 0 (underflow) -inf bound[i]
Dan O'Mearadd494642020-05-01 07:42:23 -07001042 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001043 # i == bound_size() (overflow) bound[i-1] +inf
1044 3.14,
1045 ],
1046 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
1048 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
1049 # Sum[i=1..count]((x_i - mean)^2)
1050 # where each x_i is a sample values. If `count` is zero then this field
1051 # must be zero, otherwise validation of the request fails.
1052 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
1053 { # Exemplars are example points that may be used to annotate aggregated
1054 # distribution values. They are metadata that gives information about a
1055 # particular value added to a Distribution bucket, such as a trace ID that
1056 # was active when a value was added. They may contain further information,
1057 # such as a example values and timestamps, origin, etc.
1058 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
1059 # exemplar belongs.
1060 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
1061 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
1062 #
1063 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
1064 #
1065 # Literal string: type.googleapis.com/google.protobuf.StringValue
1066 #
1067 # Labels dropped during aggregation:
1068 # type.googleapis.com/google.monitoring.v3.DroppedLabels
1069 #
1070 # There may be only a single attachment of any given message type in a
1071 # single exemplar, and this is enforced by the system.
1072 {
1073 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1074 },
1075 ],
1076 },
1077 ],
1078 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
1079 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1080 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1081 # where i ranges from 1 to num_finite_buckets inclusive.
1082 # Must be larger than 1.0.
1083 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1084 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1085 # where i ranges from 1 to num_finite_buckets inclusive.
1086 # Must be &gt; 0.
1087 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1088 # the total number of buckets is `num_finite_buckets` + 2.
1089 # See comments on `bucket_options` for details.
1090 },
1091 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
1092 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
1093 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
1094 # [offset + (i-1) * width, offset + i * width)
1095 # where i ranges from 1 to num_finite_buckets, inclusive.
1096 # Must be strictly positive.
1097 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
1098 # [offset + (i-1) * width, offset + i * width)
1099 # where i ranges from 1 to num_finite_buckets, inclusive.
1100 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1101 # the total number of buckets is `num_finite_buckets` + 2.
1102 # See comments on `bucket_options` for details.
1103 },
1104 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001105 # zero then this field must be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -07001106 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
1107 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
1108 # optional. If present, they must sum to the `count` value.
1109 #
1110 # The buckets are defined below in `bucket_option`. There are N buckets.
1111 # `bucket_counts[0]` is the number of samples in the underflow bucket.
1112 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
1113 # in each of the finite buckets. And `bucket_counts[N] is the number
1114 # of samples in the overflow bucket. See the comments of `bucket_option`
1115 # below for more details.
1116 #
1117 # Any suffix of trailing zeros may be omitted.
1118 &quot;A String&quot;,
1119 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001120 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001121 &quot;boolValue&quot;: True or False, # A boolean value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001122 },
1123 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001124 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001125 },
1126 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001127 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001128 &quot;serviceConfigId&quot;: &quot;A String&quot;, # The actual config id used to process the request.
1129 &quot;serviceRolloutId&quot;: &quot;A String&quot;, # The current service rollout id used to process the request.
1130 &quot;checkErrors&quot;: [ # Indicate the decision of the check.
1131 #
1132 # If no check errors are present, the service should process the operation.
1133 # Otherwise the service should use the list of errors to determine the
1134 # appropriate action.
1135 { # Defines the errors to be returned in
1136 # google.api.servicecontrol.v1.CheckResponse.check_errors.
1137 &quot;detail&quot;: &quot;A String&quot;, # Free-form text providing details on the error cause of the error.
1138 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Contains public information about the check error. If available,
1139 # `status.code` will be non zero and client can propagate it out as public
1140 # error.
1141 # different programming environments, including REST APIs and RPC APIs. It is
1142 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1143 # three pieces of data: error code, error message, and error details.
1144 #
1145 # You can find out more about this error model and how to work with it in the
1146 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1147 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1148 # message types for APIs to use.
1149 {
1150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1151 },
1152 ],
1153 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1154 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1155 # user-facing error message should be localized and sent in the
1156 # google.rpc.Status.details field, or localized by the client.
1157 },
1158 &quot;subject&quot;: &quot;A String&quot;, # Subject to whom this error applies. See the specific code enum for more
1159 # details on this field. For example:
1160 #
1161 # - &quot;project:&lt;project-id or project-number&gt;&quot;
1162 # - &quot;folder:&lt;folder-id&gt;&quot;
1163 # - &quot;organization:&lt;organization-id&gt;&quot;
1164 &quot;code&quot;: &quot;A String&quot;, # The error code.
1165 },
1166 ],
1167 &quot;operationId&quot;: &quot;A String&quot;, # The same operation_id value used in the CheckRequest.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001168 # Used for logging and diagnostics purposes.
1169 }</pre>
1170</div>
1171
1172<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001173 <code class="details" id="report">report(serviceName, body=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001174 <pre>Reports operation results to Google Service Control, such as logs and
1175metrics. It should be called after an operation is completed.
1176
1177If feasible, the client should aggregate reporting data for up to 5
1178seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
1179reduce data loss during client crashes. Clients should carefully choose
1180the aggregation time window to avoid data loss risk more than 0.01%
1181for business and compliance reasons.
1182
Dan O'Mearadd494642020-05-01 07:42:23 -07001183NOTE: the ReportRequest has the size limit (wire-format byte size) of
11841MB.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001185
1186This method requires the `servicemanagement.services.report` permission
1187on the specified service. For more information, see
1188[Google Cloud IAM](https://cloud.google.com/iam).
1189
1190Args:
1191 serviceName: string, The service name as specified in its service configuration. For example,
Bu Sun Kim65020912020-05-20 12:08:20 -07001192`&quot;pubsub.googleapis.com&quot;`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001193
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001194See
1195[google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
1196for the definition of a service name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001197 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001198 The object takes the form of:
1199
1200{ # Request message for the Report method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001201 &quot;operations&quot;: [ # Operations to be reported.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001202 #
1203 # Typically the service should report one operation per request.
1204 # Putting multiple operations into a single request is allowed, but should
1205 # be used only when multiple operations are natually available at the time
1206 # of the report.
1207 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001208 # There is no limit on the number of operations in the same ReportRequest,
1209 # however the ReportRequest size should be no larger than 1MB. See
1210 # ReportResponse.report_errors for partial failure behavior.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001211 { # Represents information regarding an operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;traceSpans&quot;: [ # Unimplemented. A list of Cloud Trace spans. The span names shall contain
Dan O'Mearadd494642020-05-01 07:42:23 -07001213 # the id of the destination project which can be either the produce or the
1214 # consumer project.
1215 { # A span represents a single operation within a trace. Spans can be
1216 # nested to form a trace tree. Often, a trace contains a root span
1217 # that describes the end-to-end latency, and one or more subspans for
1218 # its sub-operations. A trace can also contain multiple root spans,
1219 # or none at all. Spans do not need to be contiguous&amp;mdash;there may be
1220 # gaps or overlaps between spans in a trace.
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;attributes&quot;: { # A set of attributes, each in the format `[KEY]:[VALUE]`. # A set of attributes on the span. You can have up to 32 attributes per
Dan O'Mearadd494642020-05-01 07:42:23 -07001222 # span.
Bu Sun Kim65020912020-05-20 12:08:20 -07001223 &quot;droppedAttributesCount&quot;: 42, # The number of attributes that were discarded. Attributes can be discarded
Dan O'Mearadd494642020-05-01 07:42:23 -07001224 # because their keys are too long or because there are too many attributes.
1225 # If this value is 0 then all attributes are valid.
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 &quot;attributeMap&quot;: { # The set of attributes. Each attribute&#x27;s key can be up to 128 bytes
Dan O'Mearadd494642020-05-01 07:42:23 -07001227 # long. The value can be a string up to 256 bytes, a signed 64-bit integer,
1228 # or the Boolean values `true` and `false`. For example:
1229 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 # &quot;/instance_id&quot;: &quot;my-instance&quot;
1231 # &quot;/http/user_agent&quot;: &quot;&quot;
1232 # &quot;/http/request_bytes&quot;: 300
1233 # &quot;abc.com/myattribute&quot;: true
1234 &quot;a_key&quot;: { # The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
1235 &quot;intValue&quot;: &quot;A String&quot;, # A 64-bit signed integer.
1236 &quot;stringValue&quot;: { # Represents a string that might be shortened to a specified length. # A string up to 256 bytes long.
1237 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
1238 # value is 0, then the string was not shortened.
1239 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
Dan O'Mearadd494642020-05-01 07:42:23 -07001240 # bytes long and the limit of the string is 128 bytes, then
1241 # `value` contains the first 128 bytes of the 500-byte string.
1242 #
1243 # Truncation always happens on a UTF8 character boundary. If there
1244 # are multi-byte characters in the string, then the length of the
1245 # shortened string might be less than the size limit.
Dan O'Mearadd494642020-05-01 07:42:23 -07001246 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001247 &quot;boolValue&quot;: True or False, # A Boolean value represented by `true` or `false`.
Dan O'Mearadd494642020-05-01 07:42:23 -07001248 },
1249 },
1250 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001251 &quot;spanId&quot;: &quot;A String&quot;, # The [SPAN_ID] portion of the span&#x27;s resource name.
1252 &quot;parentSpanId&quot;: &quot;A String&quot;, # The [SPAN_ID] of this span&#x27;s parent span. If this is a root span,
1253 # then this field must be empty.
1254 &quot;endTime&quot;: &quot;A String&quot;, # The end time of the span. On the client side, this is the time kept by
Dan O'Mearadd494642020-05-01 07:42:23 -07001255 # the local machine where the span execution ends. On the server side, this
1256 # is the time when the server application handler stops running.
Bu Sun Kim65020912020-05-20 12:08:20 -07001257 &quot;startTime&quot;: &quot;A String&quot;, # The start time of the span. On the client side, this is the time kept by
1258 # the local machine where the span execution starts. On the server side, this
1259 # is the time when the server&#x27;s application handler starts running.
1260 &quot;spanKind&quot;: &quot;A String&quot;, # Distinguishes between spans generated in a particular context. For example,
1261 # two spans with the same name may be distinguished using `CLIENT` (caller)
1262 # and `SERVER` (callee) to identify an RPC call.
1263 &quot;displayName&quot;: { # Represents a string that might be shortened to a specified length. # A description of the span&#x27;s operation (up to 128 bytes).
1264 # Stackdriver Trace displays the description in the
1265 # Google Cloud Platform Console.
1266 # For example, the display name can be a qualified method name or a file name
1267 # and a line number where the operation is called. A best practice is to use
1268 # the same display name within an application and at the same call point.
1269 # This makes it easier to correlate spans in different traces.
1270 &quot;truncatedByteCount&quot;: 42, # The number of bytes removed from the original string. If this
1271 # value is 0, then the string was not shortened.
1272 &quot;value&quot;: &quot;A String&quot;, # The shortened string. For example, if the original string is 500
1273 # bytes long and the limit of the string is 128 bytes, then
1274 # `value` contains the first 128 bytes of the 500-byte string.
1275 #
1276 # Truncation always happens on a UTF8 character boundary. If there
1277 # are multi-byte characters in the string, then the length of the
1278 # shortened string might be less than the size limit.
1279 },
1280 &quot;childSpanCount&quot;: 42, # An optional number of child spans that were generated while this span
1281 # was active. If set, allows implementation to detect missing child spans.
1282 &quot;sameProcessAsParentSpan&quot;: True or False, # (Optional) Set this parameter to indicate whether this span is in
Dan O'Mearadd494642020-05-01 07:42:23 -07001283 # the same process as its parent. If you do not set this parameter,
1284 # Stackdriver Trace is unable to take advantage of this helpful
1285 # information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001286 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # An optional final status for this span.
1287 # different programming environments, including REST APIs and RPC APIs. It is
1288 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1289 # three pieces of data: error code, error message, and error details.
1290 #
1291 # You can find out more about this error model and how to work with it in the
1292 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1293 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1294 # message types for APIs to use.
1295 {
1296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1297 },
1298 ],
1299 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1300 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1301 # user-facing error message should be localized and sent in the
1302 # google.rpc.Status.details field, or localized by the client.
1303 },
1304 &quot;name&quot;: &quot;A String&quot;, # The resource name of the span in the following format:
1305 #
1306 # projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project;
1307 # it is a 32-character hexadecimal encoding of a 16-byte array.
1308 #
1309 # [SPAN_ID] is a unique identifier for a span within a trace; it
1310 # is a 16-character hexadecimal encoding of an 8-byte array.
Dan O'Mearadd494642020-05-01 07:42:23 -07001311 },
1312 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;quotaProperties&quot;: { # Represents the properties needed for quota operations. # Represents the properties needed for quota check. Applicable only if this
1314 # operation is for a quota check request. If this is not specified, no quota
1315 # check will be performed.
1316 &quot;quotaMode&quot;: &quot;A String&quot;, # Quota mode for this operation.
1317 },
1318 &quot;consumerId&quot;: &quot;A String&quot;, # Identity of the consumer who is using the service.
1319 # This field should be filled in for the operations initiated by a
1320 # consumer, but not for service-initiated operations that are
1321 # not related to a specific consumer.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001322 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 # - This can be in one of the following formats:
1324 # - project:PROJECT_ID,
1325 # - project`_`number:PROJECT_NUMBER,
1326 # - projects/PROJECT_ID or PROJECT_NUMBER,
1327 # - folders/FOLDER_NUMBER,
1328 # - organizations/ORGANIZATION_NUMBER,
1329 # - api`_`key:API_KEY.
1330 &quot;operationId&quot;: &quot;A String&quot;, # Identity of the operation. This must be unique within the scope of the
1331 # service that generated the operation. If the service calls
1332 # Check() and Report() on the same operation, the two calls should carry
1333 # the same id.
1334 #
1335 # UUID version 4 is recommended, though not required.
1336 # In scenarios where an operation is computed from existing information
1337 # and an idempotent id is desirable for deduplication purpose, UUID version 5
1338 # is recommended. See RFC 4122 for details.
1339 &quot;operationName&quot;: &quot;A String&quot;, # Fully qualified name of the operation. Reserved for future use.
1340 &quot;endTime&quot;: &quot;A String&quot;, # End time of the operation.
1341 # Required when the operation is used in ServiceController.Report,
1342 # but optional when the operation is used in ServiceController.Check.
1343 &quot;startTime&quot;: &quot;A String&quot;, # Required. Start time of the operation.
1344 &quot;importance&quot;: &quot;A String&quot;, # DO NOT USE. This is an experimental field.
1345 &quot;labels&quot;: { # Labels describing the operation. Only the following labels are allowed:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001346 #
1347 # - Labels describing monitored resources as defined in
1348 # the service configuration.
1349 # - Default labels of metric values. When specified, labels defined in the
1350 # metric value override these default.
1351 # - The following labels defined by Google Cloud Platform:
1352 # - `cloud.googleapis.com/location` describing the location where the
1353 # operation happened,
1354 # - `servicecontrol.googleapis.com/user_agent` describing the user agent
1355 # of the API request,
1356 # - `servicecontrol.googleapis.com/service_agent` describing the service
1357 # used to handle the API request (e.g. ESP),
1358 # - `servicecontrol.googleapis.com/platform` describing the platform
1359 # where the API is served, such as App Engine, Compute Engine, or
1360 # Kubernetes Engine.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001362 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001363 &quot;resources&quot;: [ # The resources that are involved in the operation.
1364 # The maximum supported number of entries in this field is 100.
1365 { # Describes a resource associated with this operation.
1366 &quot;resourceContainer&quot;: &quot;A String&quot;, # The identifier of the parent of this resource instance.
1367 # Must be in one of the following formats:
1368 # - “projects/&lt;project-id or project-number&gt;”
1369 # - “folders/&lt;folder-id&gt;”
1370 # - “organizations/&lt;organization-id&gt;”
1371 &quot;resourceName&quot;: &quot;A String&quot;, # Name of the resource. This is used for auditing purposes.
1372 &quot;resourceLocation&quot;: &quot;A String&quot;, # The location of the resource. If not empty, the resource will be checked
1373 # against location policy. The value must be a valid zone, region or
1374 # multiregion. For example: &quot;europe-west4&quot; or &quot;northamerica-northeast1-a&quot;
1375 },
1376 ],
1377 &quot;logEntries&quot;: [ # Represents information to be logged.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001378 { # An individual log entry.
Bu Sun Kim65020912020-05-20 12:08:20 -07001379 &quot;timestamp&quot;: &quot;A String&quot;, # The time the event described by the log entry occurred. If
1380 # omitted, defaults to operation start time.
1381 &quot;httpRequest&quot;: { # A common proto for logging HTTP requests. Only contains semantics # Optional. Information about the HTTP request associated with this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001382 # log entry, if applicable.
1383 # defined by the HTTP specification. Product-specific logging
1384 # information MUST be defined in a separate message.
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;latency&quot;: &quot;A String&quot;, # The request processing latency on the server, from the time the request was
1386 # received until the response was sent.
1387 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent sent by the client. Example:
1388 # `&quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
1389 # CLR 1.0.3705)&quot;`.
1390 &quot;cacheFillBytes&quot;: &quot;A String&quot;, # The number of HTTP response bytes inserted into cache. Set only when a
1391 # cache fill was attempted.
1392 &quot;requestMethod&quot;: &quot;A String&quot;, # The request method. Examples: `&quot;GET&quot;`, `&quot;HEAD&quot;`, `&quot;PUT&quot;`, `&quot;POST&quot;`.
1393 &quot;requestSize&quot;: &quot;A String&quot;, # The size of the HTTP request message in bytes, including the request
1394 # headers and the request body.
1395 &quot;responseSize&quot;: &quot;A String&quot;, # The size of the HTTP response message sent back to the client, in bytes,
1396 # including the response headers and the response body.
1397 &quot;protocol&quot;: &quot;A String&quot;, # Protocol used for the request. Examples: &quot;HTTP/1.1&quot;, &quot;HTTP/2&quot;, &quot;websocket&quot;
1398 &quot;requestUrl&quot;: &quot;A String&quot;, # The scheme (http, https), the host name, the path, and the query
1399 # portion of the URL that was requested.
1400 # Example: `&quot;http://example.com/some/info?color=red&quot;`.
1401 &quot;remoteIp&quot;: &quot;A String&quot;, # The IP address (IPv4 or IPv6) of the client that issued the HTTP
1402 # request. Examples: `&quot;192.168.1.1&quot;`, `&quot;FE80::0202:B3FF:FE1E:8329&quot;`.
1403 &quot;serverIp&quot;: &quot;A String&quot;, # The IP address (IPv4 or IPv6) of the origin server that the request was
1404 # sent to.
1405 &quot;cacheLookup&quot;: True or False, # Whether or not a cache lookup was attempted.
1406 &quot;cacheHit&quot;: True or False, # Whether or not an entity was served from cache
1407 # (with or without validation).
1408 &quot;cacheValidatedWithOriginServer&quot;: True or False, # Whether or not the response was validated with the origin server before
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001409 # being served from cache. This field is only meaningful if `cache_hit` is
1410 # True.
Bu Sun Kim65020912020-05-20 12:08:20 -07001411 &quot;status&quot;: 42, # The response code indicating the status of the response.
1412 # Examples: 200, 404.
1413 &quot;referer&quot;: &quot;A String&quot;, # The referer URL of the request, as defined in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001414 # [HTTP/1.1 Header Field
1415 # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001416 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;name&quot;: &quot;A String&quot;, # Required. The log to which this log entry belongs. Examples: `&quot;syslog&quot;`,
1418 # `&quot;book_log&quot;`.
1419 &quot;insertId&quot;: &quot;A String&quot;, # A unique ID for the log entry used for deduplication. If omitted,
1420 # the implementation will generate one based on operation_id.
1421 &quot;operation&quot;: { # Additional information about a potentially long-running operation with which # Optional. Information about an operation associated with the log entry, if
1422 # applicable.
1423 # a log entry is associated.
1424 &quot;last&quot;: True or False, # Optional. Set this to True if this is the last log entry in the operation.
1425 &quot;id&quot;: &quot;A String&quot;, # Optional. An arbitrary operation identifier. Log entries with the
1426 # same identifier are assumed to be part of the same operation.
1427 &quot;producer&quot;: &quot;A String&quot;, # Optional. An arbitrary producer identifier. The combination of
1428 # `id` and `producer` must be globally unique. Examples for `producer`:
1429 # `&quot;MyDivision.MyBigCompany.com&quot;`, `&quot;github.com/MyProject/MyApplication&quot;`.
1430 &quot;first&quot;: True or False, # Optional. Set this to True if this is the first log entry in the operation.
1431 },
1432 &quot;textPayload&quot;: &quot;A String&quot;, # The log entry payload, represented as a Unicode string (UTF-8).
1433 &quot;protoPayload&quot;: { # The log entry payload, represented as a protocol buffer that is
1434 # expressed as a JSON object. The only accepted type currently is
1435 # AuditLog.
1436 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1437 },
1438 &quot;trace&quot;: &quot;A String&quot;, # Optional. Resource name of the trace associated with the log entry, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001439 # If this field contains a relative resource name, you can assume the name is
1440 # relative to `//tracing.googleapis.com`. Example:
1441 # `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
Bu Sun Kim65020912020-05-20 12:08:20 -07001442 &quot;labels&quot;: { # A set of user-defined (key, value) data that provides additional
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001443 # information about the log entry.
Bu Sun Kim65020912020-05-20 12:08:20 -07001444 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001445 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001446 &quot;severity&quot;: &quot;A String&quot;, # The severity of the log entry. The default value is
1447 # `LogSeverity.DEFAULT`.
1448 &quot;sourceLocation&quot;: { # Additional information about the source code location that produced the log # Optional. Source code location information associated with the log entry,
Dan O'Mearadd494642020-05-01 07:42:23 -07001449 # if any.
1450 # entry.
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &quot;file&quot;: &quot;A String&quot;, # Optional. Source file name. Depending on the runtime environment, this
1452 # might be a simple name or a fully-qualified name.
1453 &quot;function&quot;: &quot;A String&quot;, # Optional. Human-readable name of the function or method being invoked, with
Dan O'Mearadd494642020-05-01 07:42:23 -07001454 # optional context such as the class or package name. This information may be
1455 # used in contexts such as the logs viewer, where a file and line number are
1456 # less meaningful. The format can vary by language. For example:
1457 # `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
1458 # (Python).
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;line&quot;: &quot;A String&quot;, # Optional. Line within the source file. 1-based; 0 indicates no line number
Dan O'Mearadd494642020-05-01 07:42:23 -07001460 # available.
Dan O'Mearadd494642020-05-01 07:42:23 -07001461 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001462 &quot;structPayload&quot;: { # The log entry payload, represented as a structure that
1463 # is expressed as a JSON object.
1464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
1465 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001466 },
1467 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 &quot;userLabels&quot;: { # User defined labels for the resource that this operation is associated
1469 # with. Only a combination of 1000 user labels per consumer project are
1470 # allowed.
1471 &quot;a_key&quot;: &quot;A String&quot;,
1472 },
1473 &quot;metricValueSets&quot;: [ # Represents information about this operation. Each MetricValueSet
1474 # corresponds to a metric defined in the service configuration.
1475 # The data type used in the MetricValueSet must agree with
1476 # the data type specified in the metric definition.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001477 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001478 # Within a single operation, it is not allowed to have more than one
1479 # MetricValue instances that have the same metric names and identical
1480 # label value combinations. If a request has such duplicated MetricValue
1481 # instances, the entire request is rejected with
1482 # an invalid argument error.
1483 { # Represents a set of metric values in the same metric.
1484 # Each metric value in the set should have a unique combination of start time,
1485 # end time, and label values.
1486 &quot;metricValues&quot;: [ # The values in this metric.
1487 { # Represents a single metric value.
1488 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
1489 # applies.
1490 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
1491 # applies. The time period has different semantics for different metric
1492 # types (cumulative, delta, and gauge). See the metric definition
1493 # documentation in the service configuration for details.
1494 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
1495 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1496 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1497 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1498 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
1499 # The value must be between -999,999,999 and +999,999,999 inclusive.
1500 # If `units` is positive, `nanos` must be positive or zero.
1501 # If `units` is zero, `nanos` can be positive, zero, or negative.
1502 # If `units` is negative, `nanos` must be negative or zero.
1503 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1504 },
1505 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
1506 &quot;labels&quot;: { # The labels describing the metric value.
1507 # See comments on google.api.servicecontrol.v1.Operation.labels for
1508 # the overriding relationship.
1509 # Note that this map must not contain monitored resource labels.
1510 &quot;a_key&quot;: &quot;A String&quot;,
1511 },
1512 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
1513 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
1514 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
1515 # points. It contains the size of the population of sample points plus
1516 # additional optional information:
1517 #
1518 # - the arithmetic mean of the samples
1519 # - the minimum and maximum of the samples
1520 # - the sum-squared-deviation of the samples, used to compute variance
1521 # - a histogram of the values of the sample points
1522 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
1523 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
1524 # buckets. Note that a list of length N-1 defines N buckets because
1525 # of fenceposting. See comments on `bucket_options` for details.
1526 #
1527 # The i&#x27;th finite bucket covers the interval
1528 # [bound[i-1], bound[i])
1529 # where i ranges from 1 to bound_size() - 1. Note that there are no
1530 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
1531 # that special case the single bound defines the boundary between the
1532 # underflow and overflow buckets.
1533 #
1534 # bucket number lower bound upper bound
1535 # i == 0 (underflow) -inf bound[i]
1536 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
1537 # i == bound_size() (overflow) bound[i-1] +inf
1538 3.14,
1539 ],
1540 },
1541 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
1542 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
1543 # Sum[i=1..count]((x_i - mean)^2)
1544 # where each x_i is a sample values. If `count` is zero then this field
1545 # must be zero, otherwise validation of the request fails.
1546 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
1547 { # Exemplars are example points that may be used to annotate aggregated
1548 # distribution values. They are metadata that gives information about a
1549 # particular value added to a Distribution bucket, such as a trace ID that
1550 # was active when a value was added. They may contain further information,
1551 # such as a example values and timestamps, origin, etc.
1552 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
1553 # exemplar belongs.
1554 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
1555 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
1556 #
1557 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
1558 #
1559 # Literal string: type.googleapis.com/google.protobuf.StringValue
1560 #
1561 # Labels dropped during aggregation:
1562 # type.googleapis.com/google.monitoring.v3.DroppedLabels
1563 #
1564 # There may be only a single attachment of any given message type in a
1565 # single exemplar, and this is enforced by the system.
1566 {
1567 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1568 },
1569 ],
1570 },
1571 ],
1572 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
1573 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1574 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1575 # where i ranges from 1 to num_finite_buckets inclusive.
1576 # Must be larger than 1.0.
1577 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1578 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1579 # where i ranges from 1 to num_finite_buckets inclusive.
1580 # Must be &gt; 0.
1581 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1582 # the total number of buckets is `num_finite_buckets` + 2.
1583 # See comments on `bucket_options` for details.
1584 },
1585 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
1586 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
1587 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
1588 # [offset + (i-1) * width, offset + i * width)
1589 # where i ranges from 1 to num_finite_buckets, inclusive.
1590 # Must be strictly positive.
1591 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
1592 # [offset + (i-1) * width, offset + i * width)
1593 # where i ranges from 1 to num_finite_buckets, inclusive.
1594 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1595 # the total number of buckets is `num_finite_buckets` + 2.
1596 # See comments on `bucket_options` for details.
1597 },
1598 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
1599 # zero then this field must be zero.
1600 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
1601 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
1602 # optional. If present, they must sum to the `count` value.
1603 #
1604 # The buckets are defined below in `bucket_option`. There are N buckets.
1605 # `bucket_counts[0]` is the number of samples in the underflow bucket.
1606 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
1607 # in each of the finite buckets. And `bucket_counts[N] is the number
1608 # of samples in the overflow bucket. See the comments of `bucket_option`
1609 # below for more details.
1610 #
1611 # Any suffix of trailing zeros may be omitted.
1612 &quot;A String&quot;,
1613 ],
1614 },
1615 &quot;boolValue&quot;: True or False, # A boolean value.
1616 },
1617 ],
1618 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
1619 },
1620 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001621 },
1622 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001623 &quot;serviceConfigId&quot;: &quot;A String&quot;, # Specifies which version of service config should be used to process the
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001624 # request.
1625 #
1626 # If unspecified or no matching version can be found, the
1627 # latest one will be used.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001628 }
1629
1630 x__xgafv: string, V1 error format.
1631 Allowed values
1632 1 - v1 error format
1633 2 - v2 error format
1634
1635Returns:
1636 An object of the form:
1637
1638 { # Response message for the Report method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 &quot;reportErrors&quot;: [ # Partial failures, one for each `Operation` in the request that failed
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001640 # processing. There are three possible combinations of the RPC status:
1641 #
1642 # 1. The combination of a successful RPC status and an empty `report_errors`
1643 # list indicates a complete success where all `Operations` in the
1644 # request are processed successfully.
1645 # 2. The combination of a successful RPC status and a non-empty
1646 # `report_errors` list indicates a partial success where some
1647 # `Operations` in the request succeeded. Each
1648 # `Operation` that failed processing has a corresponding item
1649 # in this list.
1650 # 3. A failed RPC status indicates a general non-deterministic failure.
Bu Sun Kim65020912020-05-20 12:08:20 -07001651 # When this happens, it&#x27;s impossible to know which of the
1652 # &#x27;Operations&#x27; in the request succeeded or failed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001653 { # Represents the processing error of one Operation in the request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001654 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # Details of the error when processing the Operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001655 # different programming environments, including REST APIs and RPC APIs. It is
1656 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1657 # three pieces of data: error code, error message, and error details.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001658 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001659 # You can find out more about this error model and how to work with it in the
1660 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07001661 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001662 # message types for APIs to use.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001663 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001665 },
1666 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001667 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1668 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1669 # user-facing error message should be localized and sent in the
1670 # google.rpc.Status.details field, or localized by the client.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001671 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001672 &quot;operationId&quot;: &quot;A String&quot;, # The Operation.operation_id value from the request.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001673 },
1674 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001675 &quot;serviceRolloutId&quot;: &quot;A String&quot;, # The current service rollout id used to process the request.
1676 &quot;reportInfos&quot;: [ # Quota usage for each quota release `Operation` request.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001677 #
1678 # Fully or partially failed quota release request may or may not be present
1679 # in `report_quota_info`. For example, a failed quota release request will
1680 # have the current quota usage info when precise quota library returns the
1681 # info. A deadline exceeded quota request will not have quota usage info.
1682 #
1683 # If there is no quota release request, report_quota_info will be empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001684 { # Contains additional info about the report operation.
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;operationId&quot;: &quot;A String&quot;, # The Operation.operation_id value from the request.
1686 &quot;quotaInfo&quot;: { # Contains the quota information for a quota check response. # Quota usage info when processing the `Operation`.
1687 &quot;limitExceeded&quot;: [ # Quota Metrics that have exceeded quota limits.
1688 # For QuotaGroup-based quota, this is QuotaGroup.name
1689 # For QuotaLimit-based quota, this is QuotaLimit.name
1690 # See: google.api.Quota
1691 # Deprecated: Use quota_metrics to get per quota group limit exceeded status.
1692 &quot;A String&quot;,
1693 ],
1694 &quot;quotaConsumed&quot;: { # Map of quota group name to the actual number of tokens consumed. If the
Dan O'Mearadd494642020-05-01 07:42:23 -07001695 # quota check was not successful, then this will not be populated due to no
1696 # quota consumption.
1697 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001698 # We are not merging this field with &#x27;quota_metrics&#x27; field because of the
Dan O'Mearadd494642020-05-01 07:42:23 -07001699 # complexity of scaling in Chemist client code base. For simplicity, we will
Bu Sun Kim65020912020-05-20 12:08:20 -07001700 # keep this field for Castor (that scales quota usage) and &#x27;quota_metrics&#x27;
1701 # for SuperQuota (that doesn&#x27;t scale quota usage).
1702 &quot;a_key&quot;: 42,
Dan O'Mearadd494642020-05-01 07:42:23 -07001703 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001704 &quot;quotaMetrics&quot;: [ # Quota metrics to indicate the usage. Depending on the check request, one or
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001705 # more of the following metrics will be included:
1706 #
1707 # 1. For rate quota, per quota group or per quota metric incremental usage
1708 # will be specified using the following delta metric:
Bu Sun Kim65020912020-05-20 12:08:20 -07001709 # &quot;serviceruntime.googleapis.com/api/consumer/quota_used_count&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001710 #
1711 # 2. For allocation quota, per quota metric total usage will be specified
1712 # using the following gauge metric:
Bu Sun Kim65020912020-05-20 12:08:20 -07001713 # &quot;serviceruntime.googleapis.com/allocation/consumer/quota_used_count&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001714 #
1715 # 3. For both rate quota and allocation quota, the quota limit reached
1716 # condition will be specified using the following boolean metric:
Bu Sun Kim65020912020-05-20 12:08:20 -07001717 # &quot;serviceruntime.googleapis.com/quota/exceeded&quot;
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001718 { # Represents a set of metric values in the same metric.
1719 # Each metric value in the set should have a unique combination of start time,
1720 # end time, and label values.
Bu Sun Kim65020912020-05-20 12:08:20 -07001721 &quot;metricValues&quot;: [ # The values in this metric.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001722 { # Represents a single metric value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001723 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time period over which this metric value&#x27;s measurement
1724 # applies.
1725 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time period over which this metric value&#x27;s measurement
1726 # applies. The time period has different semantics for different metric
1727 # types (cumulative, delta, and gauge). See the metric definition
1728 # documentation in the service configuration for details.
1729 &quot;moneyValue&quot;: { # Represents an amount of money with its currency type. # A money value.
1730 &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount.
1731 # For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
1732 &quot;currencyCode&quot;: &quot;A String&quot;, # The 3-letter currency code defined in ISO 4217.
1733 &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001734 # The value must be between -999,999,999 and +999,999,999 inclusive.
1735 # If `units` is positive, `nanos` must be positive or zero.
1736 # If `units` is zero, `nanos` can be positive, zero, or negative.
1737 # If `units` is negative, `nanos` must be negative or zero.
1738 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001739 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001740 &quot;stringValue&quot;: &quot;A String&quot;, # A text string value.
1741 &quot;labels&quot;: { # The labels describing the metric value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001742 # See comments on google.api.servicecontrol.v1.Operation.labels for
1743 # the overriding relationship.
Dan O'Mearadd494642020-05-01 07:42:23 -07001744 # Note that this map must not contain monitored resource labels.
Bu Sun Kim65020912020-05-20 12:08:20 -07001745 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001746 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001747 &quot;doubleValue&quot;: 3.14, # A double precision floating point value.
1748 &quot;int64Value&quot;: &quot;A String&quot;, # A signed 64-bit integer value.
1749 &quot;distributionValue&quot;: { # Distribution represents a frequency distribution of double-valued sample # A distribution value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001750 # points. It contains the size of the population of sample points plus
1751 # additional optional information:
1752 #
1753 # - the arithmetic mean of the samples
1754 # - the minimum and maximum of the samples
1755 # - the sum-squared-deviation of the samples, used to compute variance
1756 # - a histogram of the values of the sample points
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 &quot;explicitBuckets&quot;: { # Describing buckets with arbitrary user-provided width. # Buckets with arbitrary user-provided width.
1758 &quot;bounds&quot;: [ # &#x27;bound&#x27; is a list of strictly increasing boundaries between
1759 # buckets. Note that a list of length N-1 defines N buckets because
1760 # of fenceposting. See comments on `bucket_options` for details.
1761 #
1762 # The i&#x27;th finite bucket covers the interval
1763 # [bound[i-1], bound[i])
1764 # where i ranges from 1 to bound_size() - 1. Note that there are no
1765 # finite buckets at all if &#x27;bound&#x27; only contains a single element; in
1766 # that special case the single bound defines the boundary between the
1767 # underflow and overflow buckets.
1768 #
1769 # bucket number lower bound upper bound
1770 # i == 0 (underflow) -inf bound[i]
1771 # 0 &lt; i &lt; bound_size() bound[i-1] bound[i]
1772 # i == bound_size() (overflow) bound[i-1] +inf
1773 3.14,
1774 ],
1775 },
1776 &quot;maximum&quot;: 3.14, # The maximum of the population of values. Ignored if `count` is zero.
1777 &quot;sumOfSquaredDeviation&quot;: 3.14, # The sum of squared deviations from the mean:
Dan O'Mearadd494642020-05-01 07:42:23 -07001778 # Sum[i=1..count]((x_i - mean)^2)
1779 # where each x_i is a sample values. If `count` is zero then this field
1780 # must be zero, otherwise validation of the request fails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001781 &quot;exemplars&quot;: [ # Example points. Must be in increasing order of `value` field.
Dan O'Mearadd494642020-05-01 07:42:23 -07001782 { # Exemplars are example points that may be used to annotate aggregated
1783 # distribution values. They are metadata that gives information about a
1784 # particular value added to a Distribution bucket, such as a trace ID that
1785 # was active when a value was added. They may contain further information,
1786 # such as a example values and timestamps, origin, etc.
Bu Sun Kim65020912020-05-20 12:08:20 -07001787 &quot;value&quot;: 3.14, # Value of the exemplar point. This value determines to which bucket the
1788 # exemplar belongs.
1789 &quot;timestamp&quot;: &quot;A String&quot;, # The observation (sampling) time of the above value.
1790 &quot;attachments&quot;: [ # Contextual information about the example value. Examples are:
Dan O'Mearadd494642020-05-01 07:42:23 -07001791 #
1792 # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
1793 #
1794 # Literal string: type.googleapis.com/google.protobuf.StringValue
1795 #
1796 # Labels dropped during aggregation:
1797 # type.googleapis.com/google.monitoring.v3.DroppedLabels
1798 #
1799 # There may be only a single attachment of any given message type in a
1800 # single exemplar, and this is enforced by the system.
1801 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001803 },
1804 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001805 },
1806 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001807 &quot;exponentialBuckets&quot;: { # Describing buckets with exponentially growing width. # Buckets with exponentially growing width.
1808 &quot;growthFactor&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1809 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1810 # where i ranges from 1 to num_finite_buckets inclusive.
1811 # Must be larger than 1.0.
1812 &quot;scale&quot;: 3.14, # The i&#x27;th exponential bucket covers the interval
1813 # [scale * growth_factor^(i-1), scale * growth_factor^i)
1814 # where i ranges from 1 to num_finite_buckets inclusive.
1815 # Must be &gt; 0.
1816 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1817 # the total number of buckets is `num_finite_buckets` + 2.
1818 # See comments on `bucket_options` for details.
1819 },
1820 &quot;minimum&quot;: 3.14, # The minimum of the population of values. Ignored if `count` is zero.
1821 &quot;linearBuckets&quot;: { # Describing buckets with constant width. # Buckets with constant width.
1822 &quot;width&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001823 # [offset + (i-1) * width, offset + i * width)
1824 # where i ranges from 1 to num_finite_buckets, inclusive.
1825 # Must be strictly positive.
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 &quot;offset&quot;: 3.14, # The i&#x27;th linear bucket covers the interval
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001827 # [offset + (i-1) * width, offset + i * width)
1828 # where i ranges from 1 to num_finite_buckets, inclusive.
Bu Sun Kim65020912020-05-20 12:08:20 -07001829 &quot;numFiniteBuckets&quot;: 42, # The number of finite buckets. With the underflow and overflow buckets,
1830 # the total number of buckets is `num_finite_buckets` + 2.
1831 # See comments on `bucket_options` for details.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001832 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001833 &quot;mean&quot;: 3.14, # The arithmetic mean of the samples in the distribution. If `count` is
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001834 # zero then this field must be zero.
Bu Sun Kim65020912020-05-20 12:08:20 -07001835 &quot;count&quot;: &quot;A String&quot;, # The total number of samples in the distribution. Must be &gt;= 0.
1836 &quot;bucketCounts&quot;: [ # The number of samples in each histogram bucket. `bucket_counts` are
1837 # optional. If present, they must sum to the `count` value.
1838 #
1839 # The buckets are defined below in `bucket_option`. There are N buckets.
1840 # `bucket_counts[0]` is the number of samples in the underflow bucket.
1841 # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
1842 # in each of the finite buckets. And `bucket_counts[N] is the number
1843 # of samples in the overflow bucket. See the comments of `bucket_option`
1844 # below for more details.
1845 #
1846 # Any suffix of trailing zeros may be omitted.
1847 &quot;A String&quot;,
1848 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001849 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001850 &quot;boolValue&quot;: True or False, # A boolean value.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001851 },
1852 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001853 &quot;metricName&quot;: &quot;A String&quot;, # The metric name defined in the service configuration.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001854 },
1855 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001856 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001857 },
1858 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001859 &quot;serviceConfigId&quot;: &quot;A String&quot;, # The actual config id used to process the request.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001860 }</pre>
1861</div>
1862
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001863</body></html>