google-cloud-service_control-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-service_control-v1.rb +21 -0
- data/lib/google/api/servicecontrol/v1/check_error_pb.rb +50 -0
- data/lib/google/api/servicecontrol/v1/distribution_pb.rb +48 -0
- data/lib/google/api/servicecontrol/v1/http_request_pb.rb +37 -0
- data/lib/google/api/servicecontrol/v1/log_entry_pb.rb +53 -0
- data/lib/google/api/servicecontrol/v1/metric_value_pb.rb +38 -0
- data/lib/google/api/servicecontrol/v1/operation_pb.rb +40 -0
- data/lib/google/api/servicecontrol/v1/quota_controller_pb.rb +67 -0
- data/lib/google/api/servicecontrol/v1/quota_controller_services_pb.rb +58 -0
- data/lib/google/api/servicecontrol/v1/service_controller_pb.rb +74 -0
- data/lib/google/api/servicecontrol/v1/service_controller_services_pb.rb +79 -0
- data/lib/google/cloud/service_control/v1.rb +36 -0
- data/lib/google/cloud/service_control/v1/quota_controller.rb +51 -0
- data/lib/google/cloud/service_control/v1/quota_controller/client.rb +389 -0
- data/lib/google/cloud/service_control/v1/quota_controller/credentials.rb +52 -0
- data/lib/google/cloud/service_control/v1/service_controller.rb +51 -0
- data/lib/google/cloud/service_control/v1/service_controller/client.rb +507 -0
- data/lib/google/cloud/service_control/v1/service_controller/credentials.rb +52 -0
- data/lib/google/cloud/service_control/v1/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/api/servicecontrol/v1/check_error.rb +125 -0
- data/proto_docs/google/api/servicecontrol/v1/distribution.rb +148 -0
- data/proto_docs/google/api/servicecontrol/v1/http_request.rb +95 -0
- data/proto_docs/google/api/servicecontrol/v1/log_entry.rb +136 -0
- data/proto_docs/google/api/servicecontrol/v1/metric_value.rb +86 -0
- data/proto_docs/google/api/servicecontrol/v1/operation.rb +128 -0
- data/proto_docs/google/api/servicecontrol/v1/quota_controller.rb +227 -0
- data/proto_docs/google/api/servicecontrol/v1/service_controller.rb +206 -0
- data/proto_docs/google/logging/type/log_severity.rb +69 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +222 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceControl
|
23
|
+
module V1
|
24
|
+
# Distribution represents a frequency distribution of double-valued sample
|
25
|
+
# points. It contains the size of the population of sample points plus
|
26
|
+
# additional optional information:
|
27
|
+
#
|
28
|
+
# - the arithmetic mean of the samples
|
29
|
+
# - the minimum and maximum of the samples
|
30
|
+
# - the sum-squared-deviation of the samples, used to compute variance
|
31
|
+
# - a histogram of the values of the sample points
|
32
|
+
# @!attribute [rw] count
|
33
|
+
# @return [::Integer]
|
34
|
+
# The total number of samples in the distribution. Must be >= 0.
|
35
|
+
# @!attribute [rw] mean
|
36
|
+
# @return [::Float]
|
37
|
+
# The arithmetic mean of the samples in the distribution. If `count` is
|
38
|
+
# zero then this field must be zero.
|
39
|
+
# @!attribute [rw] minimum
|
40
|
+
# @return [::Float]
|
41
|
+
# The minimum of the population of values. Ignored if `count` is zero.
|
42
|
+
# @!attribute [rw] maximum
|
43
|
+
# @return [::Float]
|
44
|
+
# The maximum of the population of values. Ignored if `count` is zero.
|
45
|
+
# @!attribute [rw] sum_of_squared_deviation
|
46
|
+
# @return [::Float]
|
47
|
+
# The sum of squared deviations from the mean:
|
48
|
+
# Sum[i=1..count]((x_i - mean)^2)
|
49
|
+
# where each x_i is a sample values. If `count` is zero then this field
|
50
|
+
# must be zero, otherwise validation of the request fails.
|
51
|
+
# @!attribute [rw] bucket_counts
|
52
|
+
# @return [::Array<::Integer>]
|
53
|
+
# The number of samples in each histogram bucket. `bucket_counts` are
|
54
|
+
# optional. If present, they must sum to the `count` value.
|
55
|
+
#
|
56
|
+
# The buckets are defined below in `bucket_option`. There are N buckets.
|
57
|
+
# `bucket_counts[0]` is the number of samples in the underflow bucket.
|
58
|
+
# `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
|
59
|
+
# in each of the finite buckets. And `bucket_counts[N] is the number
|
60
|
+
# of samples in the overflow bucket. See the comments of `bucket_option`
|
61
|
+
# below for more details.
|
62
|
+
#
|
63
|
+
# Any suffix of trailing zeros may be omitted.
|
64
|
+
# @!attribute [rw] linear_buckets
|
65
|
+
# @return [::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets]
|
66
|
+
# Buckets with constant width.
|
67
|
+
# @!attribute [rw] exponential_buckets
|
68
|
+
# @return [::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets]
|
69
|
+
# Buckets with exponentially growing width.
|
70
|
+
# @!attribute [rw] explicit_buckets
|
71
|
+
# @return [::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets]
|
72
|
+
# Buckets with arbitrary user-provided width.
|
73
|
+
class Distribution
|
74
|
+
include ::Google::Protobuf::MessageExts
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
76
|
+
|
77
|
+
# Describing buckets with constant width.
|
78
|
+
# @!attribute [rw] num_finite_buckets
|
79
|
+
# @return [::Integer]
|
80
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
81
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
82
|
+
# See comments on `bucket_options` for details.
|
83
|
+
# @!attribute [rw] width
|
84
|
+
# @return [::Float]
|
85
|
+
# The i'th linear bucket covers the interval
|
86
|
+
# [offset + (i-1) * width, offset + i * width)
|
87
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
88
|
+
# Must be strictly positive.
|
89
|
+
# @!attribute [rw] offset
|
90
|
+
# @return [::Float]
|
91
|
+
# The i'th linear bucket covers the interval
|
92
|
+
# [offset + (i-1) * width, offset + i * width)
|
93
|
+
# where i ranges from 1 to num_finite_buckets, inclusive.
|
94
|
+
class LinearBuckets
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
end
|
98
|
+
|
99
|
+
# Describing buckets with exponentially growing width.
|
100
|
+
# @!attribute [rw] num_finite_buckets
|
101
|
+
# @return [::Integer]
|
102
|
+
# The number of finite buckets. With the underflow and overflow buckets,
|
103
|
+
# the total number of buckets is `num_finite_buckets` + 2.
|
104
|
+
# See comments on `bucket_options` for details.
|
105
|
+
# @!attribute [rw] growth_factor
|
106
|
+
# @return [::Float]
|
107
|
+
# The i'th exponential bucket covers the interval
|
108
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
109
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
110
|
+
# Must be larger than 1.0.
|
111
|
+
# @!attribute [rw] scale
|
112
|
+
# @return [::Float]
|
113
|
+
# The i'th exponential bucket covers the interval
|
114
|
+
# [scale * growth_factor^(i-1), scale * growth_factor^i)
|
115
|
+
# where i ranges from 1 to num_finite_buckets inclusive.
|
116
|
+
# Must be > 0.
|
117
|
+
class ExponentialBuckets
|
118
|
+
include ::Google::Protobuf::MessageExts
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
120
|
+
end
|
121
|
+
|
122
|
+
# Describing buckets with arbitrary user-provided width.
|
123
|
+
# @!attribute [rw] bounds
|
124
|
+
# @return [::Array<::Float>]
|
125
|
+
# 'bound' is a list of strictly increasing boundaries between
|
126
|
+
# buckets. Note that a list of length N-1 defines N buckets because
|
127
|
+
# of fenceposting. See comments on `bucket_options` for details.
|
128
|
+
#
|
129
|
+
# The i'th finite bucket covers the interval
|
130
|
+
# [bound[i-1], bound[i])
|
131
|
+
# where i ranges from 1 to bound_size() - 1. Note that there are no
|
132
|
+
# finite buckets at all if 'bound' only contains a single element; in
|
133
|
+
# that special case the single bound defines the boundary between the
|
134
|
+
# underflow and overflow buckets.
|
135
|
+
#
|
136
|
+
# bucket number lower bound upper bound
|
137
|
+
# i == 0 (underflow) -inf bound[i]
|
138
|
+
# 0 < i < bound_size() bound[i-1] bound[i]
|
139
|
+
# i == bound_size() (overflow) bound[i-1] +inf
|
140
|
+
class ExplicitBuckets
|
141
|
+
include ::Google::Protobuf::MessageExts
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceControl
|
23
|
+
module V1
|
24
|
+
# A common proto for logging HTTP requests. Only contains semantics
|
25
|
+
# defined by the HTTP specification. Product-specific logging
|
26
|
+
# information MUST be defined in a separate message.
|
27
|
+
# @!attribute [rw] request_method
|
28
|
+
# @return [::String]
|
29
|
+
# The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
30
|
+
# @!attribute [rw] request_url
|
31
|
+
# @return [::String]
|
32
|
+
# The scheme (http, https), the host name, the path, and the query
|
33
|
+
# portion of the URL that was requested.
|
34
|
+
# Example: `"http://example.com/some/info?color=red"`.
|
35
|
+
# @!attribute [rw] request_size
|
36
|
+
# @return [::Integer]
|
37
|
+
# The size of the HTTP request message in bytes, including the request
|
38
|
+
# headers and the request body.
|
39
|
+
# @!attribute [rw] status
|
40
|
+
# @return [::Integer]
|
41
|
+
# The response code indicating the status of the response.
|
42
|
+
# Examples: 200, 404.
|
43
|
+
# @!attribute [rw] response_size
|
44
|
+
# @return [::Integer]
|
45
|
+
# The size of the HTTP response message sent back to the client, in bytes,
|
46
|
+
# including the response headers and the response body.
|
47
|
+
# @!attribute [rw] user_agent
|
48
|
+
# @return [::String]
|
49
|
+
# The user agent sent by the client. Example:
|
50
|
+
# `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET
|
51
|
+
# CLR 1.0.3705)"`.
|
52
|
+
# @!attribute [rw] remote_ip
|
53
|
+
# @return [::String]
|
54
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP
|
55
|
+
# request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
56
|
+
# @!attribute [rw] server_ip
|
57
|
+
# @return [::String]
|
58
|
+
# The IP address (IPv4 or IPv6) of the origin server that the request was
|
59
|
+
# sent to.
|
60
|
+
# @!attribute [rw] referer
|
61
|
+
# @return [::String]
|
62
|
+
# The referer URL of the request, as defined in
|
63
|
+
# [HTTP/1.1 Header Field
|
64
|
+
# Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
65
|
+
# @!attribute [rw] latency
|
66
|
+
# @return [::Google::Protobuf::Duration]
|
67
|
+
# The request processing latency on the server, from the time the request was
|
68
|
+
# received until the response was sent.
|
69
|
+
# @!attribute [rw] cache_lookup
|
70
|
+
# @return [::Boolean]
|
71
|
+
# Whether or not a cache lookup was attempted.
|
72
|
+
# @!attribute [rw] cache_hit
|
73
|
+
# @return [::Boolean]
|
74
|
+
# Whether or not an entity was served from cache
|
75
|
+
# (with or without validation).
|
76
|
+
# @!attribute [rw] cache_validated_with_origin_server
|
77
|
+
# @return [::Boolean]
|
78
|
+
# Whether or not the response was validated with the origin server before
|
79
|
+
# being served from cache. This field is only meaningful if `cache_hit` is
|
80
|
+
# True.
|
81
|
+
# @!attribute [rw] cache_fill_bytes
|
82
|
+
# @return [::Integer]
|
83
|
+
# The number of HTTP response bytes inserted into cache. Set only when a
|
84
|
+
# cache fill was attempted.
|
85
|
+
# @!attribute [rw] protocol
|
86
|
+
# @return [::String]
|
87
|
+
# Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
88
|
+
class HttpRequest
|
89
|
+
include ::Google::Protobuf::MessageExts
|
90
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,136 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceControl
|
23
|
+
module V1
|
24
|
+
# An individual log entry.
|
25
|
+
# @!attribute [rw] name
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The log to which this log entry belongs. Examples: `"syslog"`,
|
28
|
+
# `"book_log"`.
|
29
|
+
# @!attribute [rw] timestamp
|
30
|
+
# @return [::Google::Protobuf::Timestamp]
|
31
|
+
# The time the event described by the log entry occurred. If
|
32
|
+
# omitted, defaults to operation start time.
|
33
|
+
# @!attribute [rw] severity
|
34
|
+
# @return [::Google::Logging::Type::LogSeverity]
|
35
|
+
# The severity of the log entry. The default value is
|
36
|
+
# `LogSeverity.DEFAULT`.
|
37
|
+
# @!attribute [rw] http_request
|
38
|
+
# @return [::Google::Cloud::ServiceControl::V1::HttpRequest]
|
39
|
+
# Optional. Information about the HTTP request associated with this
|
40
|
+
# log entry, if applicable.
|
41
|
+
# @!attribute [rw] trace
|
42
|
+
# @return [::String]
|
43
|
+
# Optional. Resource name of the trace associated with the log entry, if any.
|
44
|
+
# If this field contains a relative resource name, you can assume the name is
|
45
|
+
# relative to `//tracing.googleapis.com`. Example:
|
46
|
+
# `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
|
47
|
+
# @!attribute [rw] insert_id
|
48
|
+
# @return [::String]
|
49
|
+
# A unique ID for the log entry used for deduplication. If omitted,
|
50
|
+
# the implementation will generate one based on operation_id.
|
51
|
+
# @!attribute [rw] labels
|
52
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
53
|
+
# A set of user-defined (key, value) data that provides additional
|
54
|
+
# information about the log entry.
|
55
|
+
# @!attribute [rw] proto_payload
|
56
|
+
# @return [::Google::Protobuf::Any]
|
57
|
+
# The log entry payload, represented as a protocol buffer that is
|
58
|
+
# expressed as a JSON object. The only accepted type currently is
|
59
|
+
# [AuditLog][google.cloud.audit.AuditLog].
|
60
|
+
# @!attribute [rw] text_payload
|
61
|
+
# @return [::String]
|
62
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
63
|
+
# @!attribute [rw] struct_payload
|
64
|
+
# @return [::Google::Protobuf::Struct]
|
65
|
+
# The log entry payload, represented as a structure that
|
66
|
+
# is expressed as a JSON object.
|
67
|
+
# @!attribute [rw] operation
|
68
|
+
# @return [::Google::Cloud::ServiceControl::V1::LogEntryOperation]
|
69
|
+
# Optional. Information about an operation associated with the log entry, if
|
70
|
+
# applicable.
|
71
|
+
# @!attribute [rw] source_location
|
72
|
+
# @return [::Google::Cloud::ServiceControl::V1::LogEntrySourceLocation]
|
73
|
+
# Optional. Source code location information associated with the log entry,
|
74
|
+
# if any.
|
75
|
+
class LogEntry
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
|
79
|
+
# @!attribute [rw] key
|
80
|
+
# @return [::String]
|
81
|
+
# @!attribute [rw] value
|
82
|
+
# @return [::String]
|
83
|
+
class LabelsEntry
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Additional information about a potentially long-running operation with which
|
90
|
+
# a log entry is associated.
|
91
|
+
# @!attribute [rw] id
|
92
|
+
# @return [::String]
|
93
|
+
# Optional. An arbitrary operation identifier. Log entries with the
|
94
|
+
# same identifier are assumed to be part of the same operation.
|
95
|
+
# @!attribute [rw] producer
|
96
|
+
# @return [::String]
|
97
|
+
# Optional. An arbitrary producer identifier. The combination of
|
98
|
+
# `id` and `producer` must be globally unique. Examples for `producer`:
|
99
|
+
# `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
|
100
|
+
# @!attribute [rw] first
|
101
|
+
# @return [::Boolean]
|
102
|
+
# Optional. Set this to True if this is the first log entry in the operation.
|
103
|
+
# @!attribute [rw] last
|
104
|
+
# @return [::Boolean]
|
105
|
+
# Optional. Set this to True if this is the last log entry in the operation.
|
106
|
+
class LogEntryOperation
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
111
|
+
# Additional information about the source code location that produced the log
|
112
|
+
# entry.
|
113
|
+
# @!attribute [rw] file
|
114
|
+
# @return [::String]
|
115
|
+
# Optional. Source file name. Depending on the runtime environment, this
|
116
|
+
# might be a simple name or a fully-qualified name.
|
117
|
+
# @!attribute [rw] line
|
118
|
+
# @return [::Integer]
|
119
|
+
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
120
|
+
# available.
|
121
|
+
# @!attribute [rw] function
|
122
|
+
# @return [::String]
|
123
|
+
# Optional. Human-readable name of the function or method being invoked, with
|
124
|
+
# optional context such as the class or package name. This information may be
|
125
|
+
# used in contexts such as the logs viewer, where a file and line number are
|
126
|
+
# less meaningful. The format can vary by language. For example:
|
127
|
+
# `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
|
128
|
+
# (Python).
|
129
|
+
class LogEntrySourceLocation
|
130
|
+
include ::Google::Protobuf::MessageExts
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ServiceControl
|
23
|
+
module V1
|
24
|
+
# Represents a single metric value.
|
25
|
+
# @!attribute [rw] labels
|
26
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
27
|
+
# The labels describing the metric value.
|
28
|
+
# See comments on {::Google::Cloud::ServiceControl::V1::Operation#labels google.api.servicecontrol.v1.Operation.labels} for
|
29
|
+
# the overriding relationship.
|
30
|
+
# Note that this map must not contain monitored resource labels.
|
31
|
+
# @!attribute [rw] start_time
|
32
|
+
# @return [::Google::Protobuf::Timestamp]
|
33
|
+
# The start of the time period over which this metric value's measurement
|
34
|
+
# applies. The time period has different semantics for different metric
|
35
|
+
# types (cumulative, delta, and gauge). See the metric definition
|
36
|
+
# documentation in the service configuration for details.
|
37
|
+
# @!attribute [rw] end_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# The end of the time period over which this metric value's measurement
|
40
|
+
# applies.
|
41
|
+
# @!attribute [rw] bool_value
|
42
|
+
# @return [::Boolean]
|
43
|
+
# A boolean value.
|
44
|
+
# @!attribute [rw] int64_value
|
45
|
+
# @return [::Integer]
|
46
|
+
# A signed 64-bit integer value.
|
47
|
+
# @!attribute [rw] double_value
|
48
|
+
# @return [::Float]
|
49
|
+
# A double precision floating point value.
|
50
|
+
# @!attribute [rw] string_value
|
51
|
+
# @return [::String]
|
52
|
+
# A text string value.
|
53
|
+
# @!attribute [rw] distribution_value
|
54
|
+
# @return [::Google::Cloud::ServiceControl::V1::Distribution]
|
55
|
+
# A distribution value.
|
56
|
+
class MetricValue
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
|
60
|
+
# @!attribute [rw] key
|
61
|
+
# @return [::String]
|
62
|
+
# @!attribute [rw] value
|
63
|
+
# @return [::String]
|
64
|
+
class LabelsEntry
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Represents a set of metric values in the same metric.
|
71
|
+
# Each metric value in the set should have a unique combination of start time,
|
72
|
+
# end time, and label values.
|
73
|
+
# @!attribute [rw] metric_name
|
74
|
+
# @return [::String]
|
75
|
+
# The metric name defined in the service configuration.
|
76
|
+
# @!attribute [rw] metric_values
|
77
|
+
# @return [::Array<::Google::Cloud::ServiceControl::V1::MetricValue>]
|
78
|
+
# The values in this metric.
|
79
|
+
class MetricValueSet
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|