google-api-client 0.13.4 → 0.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +4 -3
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +33 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +16 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +10 -1
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -253
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -99
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +12 -6
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +72 -15
- data/generated/google/apis/container_v1/representations.rb +7 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +58 -15
- data/generated/google/apis/container_v1beta1/representations.rb +5 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +16 -0
- data/generated/google/apis/content_v2/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +87 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +46 -0
- data/generated/google/apis/datastore_v1beta1.rb +38 -0
- data/generated/google/apis/datastore_v1beta1/classes.rb +567 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +191 -0
- data/generated/google/apis/datastore_v1beta1/service.rb +137 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/service.rb +142 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/firebaseremoteconfig_v1.rb +32 -0
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +180 -0
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +87 -0
- data/generated/google/apis/firebaseremoteconfig_v1/service.rb +153 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +444 -18
- data/generated/google/apis/logging_v2/representations.rb +119 -0
- data/generated/google/apis/logging_v2/service.rb +808 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +367 -18
- data/generated/google/apis/logging_v2beta1/representations.rb +88 -0
- data/generated/google/apis/logging_v2beta1/service.rb +4 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1 -254
- data/generated/google/apis/ml_v1/representations.rb +0 -99
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +213 -0
- data/generated/google/apis/monitoring_v3/representations.rb +61 -0
- data/generated/google/apis/monitoring_v3/service.rb +4 -4
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +37 -0
- data/generated/google/apis/people_v1/representations.rb +18 -0
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +13 -3
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +5 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +48 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +48 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +137 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +80 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2beta1
|
27
27
|
VERSION = 'V2beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170828'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,6 +22,64 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2beta1
|
24
24
|
|
25
|
+
# BucketOptions describes the bucket boundaries used to create a histogram for
|
26
|
+
# the distribution. The buckets can be in a linear sequence, an exponential
|
27
|
+
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
28
|
+
# include the number of values in each bucket.A bucket has an inclusive lower
|
29
|
+
# bound and exclusive upper bound for the values that are counted for that
|
30
|
+
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
31
|
+
# bound. The sequence of N buckets for a distribution consists of an underflow
|
32
|
+
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
33
|
+
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
34
|
+
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
35
|
+
# span the whole range of finite values: lower bound of the underflow bucket is -
|
36
|
+
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
37
|
+
# buckets are so-called because both bounds are finite.
|
38
|
+
class BucketOptions
|
39
|
+
include Google::Apis::Core::Hashable
|
40
|
+
|
41
|
+
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
42
|
+
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
43
|
+
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
44
|
+
# least one element. If bounds has only one element, then there are no finite
|
45
|
+
# buckets, and that single element is the common boundary of the overflow and
|
46
|
+
# underflow buckets.
|
47
|
+
# Corresponds to the JSON property `explicitBuckets`
|
48
|
+
# @return [Google::Apis::LoggingV2beta1::Explicit]
|
49
|
+
attr_accessor :explicit_buckets
|
50
|
+
|
51
|
+
# Specifies an exponential sequence of buckets that have a width that is
|
52
|
+
# proportional to the value of the lower bound. Each bucket represents a
|
53
|
+
# constant relative uncertainty on a specific value in the bucket.There are
|
54
|
+
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
55
|
+
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
56
|
+
# N): scale * (growth_factor ^ (i - 1)).
|
57
|
+
# Corresponds to the JSON property `exponentialBuckets`
|
58
|
+
# @return [Google::Apis::LoggingV2beta1::Exponential]
|
59
|
+
attr_accessor :exponential_buckets
|
60
|
+
|
61
|
+
# Specifies a linear sequence of buckets that all have the same width (except
|
62
|
+
# overflow and underflow). Each bucket represents a constant absolute
|
63
|
+
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
64
|
+
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
65
|
+
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
66
|
+
# .
|
67
|
+
# Corresponds to the JSON property `linearBuckets`
|
68
|
+
# @return [Google::Apis::LoggingV2beta1::Linear]
|
69
|
+
attr_accessor :linear_buckets
|
70
|
+
|
71
|
+
def initialize(**args)
|
72
|
+
update!(**args)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update properties of this object
|
76
|
+
def update!(**args)
|
77
|
+
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
78
|
+
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
79
|
+
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
25
83
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
26
84
|
# messages in your APIs. A typical example is to use it as the request or the
|
27
85
|
# response type of an API method. For instance:
|
@@ -41,6 +99,66 @@ module Google
|
|
41
99
|
end
|
42
100
|
end
|
43
101
|
|
102
|
+
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
103
|
+
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
104
|
+
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
105
|
+
# least one element. If bounds has only one element, then there are no finite
|
106
|
+
# buckets, and that single element is the common boundary of the overflow and
|
107
|
+
# underflow buckets.
|
108
|
+
class Explicit
|
109
|
+
include Google::Apis::Core::Hashable
|
110
|
+
|
111
|
+
# The values must be monotonically increasing.
|
112
|
+
# Corresponds to the JSON property `bounds`
|
113
|
+
# @return [Array<Float>]
|
114
|
+
attr_accessor :bounds
|
115
|
+
|
116
|
+
def initialize(**args)
|
117
|
+
update!(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Update properties of this object
|
121
|
+
def update!(**args)
|
122
|
+
@bounds = args[:bounds] if args.key?(:bounds)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# Specifies an exponential sequence of buckets that have a width that is
|
127
|
+
# proportional to the value of the lower bound. Each bucket represents a
|
128
|
+
# constant relative uncertainty on a specific value in the bucket.There are
|
129
|
+
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
130
|
+
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
131
|
+
# N): scale * (growth_factor ^ (i - 1)).
|
132
|
+
class Exponential
|
133
|
+
include Google::Apis::Core::Hashable
|
134
|
+
|
135
|
+
# Must be greater than 1.
|
136
|
+
# Corresponds to the JSON property `growthFactor`
|
137
|
+
# @return [Float]
|
138
|
+
attr_accessor :growth_factor
|
139
|
+
|
140
|
+
# Must be greater than 0.
|
141
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
142
|
+
# @return [Fixnum]
|
143
|
+
attr_accessor :num_finite_buckets
|
144
|
+
|
145
|
+
# Must be greater than 0.
|
146
|
+
# Corresponds to the JSON property `scale`
|
147
|
+
# @return [Float]
|
148
|
+
attr_accessor :scale
|
149
|
+
|
150
|
+
def initialize(**args)
|
151
|
+
update!(**args)
|
152
|
+
end
|
153
|
+
|
154
|
+
# Update properties of this object
|
155
|
+
def update!(**args)
|
156
|
+
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
157
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
158
|
+
@scale = args[:scale] if args.key?(:scale)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
44
162
|
# A common proto for logging HTTP requests. Only contains semantics defined by
|
45
163
|
# the HTTP specification. Product-specific logging information MUST be defined
|
46
164
|
# in a separate message.
|
@@ -190,6 +308,42 @@ module Google
|
|
190
308
|
end
|
191
309
|
end
|
192
310
|
|
311
|
+
# Specifies a linear sequence of buckets that all have the same width (except
|
312
|
+
# overflow and underflow). Each bucket represents a constant absolute
|
313
|
+
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
314
|
+
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
315
|
+
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
316
|
+
# .
|
317
|
+
class Linear
|
318
|
+
include Google::Apis::Core::Hashable
|
319
|
+
|
320
|
+
# Must be greater than 0.
|
321
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
322
|
+
# @return [Fixnum]
|
323
|
+
attr_accessor :num_finite_buckets
|
324
|
+
|
325
|
+
# Lower bound of the first bucket.
|
326
|
+
# Corresponds to the JSON property `offset`
|
327
|
+
# @return [Float]
|
328
|
+
attr_accessor :offset
|
329
|
+
|
330
|
+
# Must be greater than 0.
|
331
|
+
# Corresponds to the JSON property `width`
|
332
|
+
# @return [Float]
|
333
|
+
attr_accessor :width
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
342
|
+
@offset = args[:offset] if args.key?(:offset)
|
343
|
+
@width = args[:width] if args.key?(:width)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
193
347
|
# The parameters to ListLogEntries.
|
194
348
|
class ListLogEntriesRequest
|
195
349
|
include Google::Apis::Core::Hashable
|
@@ -420,8 +574,8 @@ module Google
|
|
420
574
|
# Optional. A unique identifier for the log entry. If you provide a value, then
|
421
575
|
# Stackdriver Logging considers other log entries in the same project, with the
|
422
576
|
# same timestamp, and with the same insert_id to be duplicates which can be
|
423
|
-
# removed. If omitted in new log entries, then Stackdriver Logging
|
424
|
-
#
|
577
|
+
# removed. If omitted in new log entries, then Stackdriver Logging assigns its
|
578
|
+
# own unique identifier. The insert_id is also used to order log entries that
|
425
579
|
# have the same timestamp value.
|
426
580
|
# Corresponds to the JSON property `insertId`
|
427
581
|
# @return [String]
|
@@ -507,11 +661,12 @@ module Google
|
|
507
661
|
# @return [String]
|
508
662
|
attr_accessor :text_payload
|
509
663
|
|
510
|
-
# Optional. The time the event described by the log entry occurred.
|
511
|
-
#
|
512
|
-
#
|
513
|
-
#
|
514
|
-
# past
|
664
|
+
# Optional. The time the event described by the log entry occurred. This time is
|
665
|
+
# used to compute the log entry's age and to enforce the logs retention period.
|
666
|
+
# If this field is omitted in a new log entry, then Stackdriver Logging assigns
|
667
|
+
# it the current time.Incoming log entries should have timestamps that are no
|
668
|
+
# more than the logs retention period in the past, and no more than 24 hours in
|
669
|
+
# the future. See the entries.write API method for more information.
|
515
670
|
# Corresponds to the JSON property `timestamp`
|
516
671
|
# @return [String]
|
517
672
|
attr_accessor :timestamp
|
@@ -666,10 +821,31 @@ module Google
|
|
666
821
|
end
|
667
822
|
|
668
823
|
# Describes a logs-based metric. The value of the metric is the number of log
|
669
|
-
# entries that match a logs filter in a given time interval.
|
824
|
+
# entries that match a logs filter in a given time interval.Logs-based metric
|
825
|
+
# can also be used to extract values from logs and create a a distribution of
|
826
|
+
# the values. The distribution records the statistics of the extracted values
|
827
|
+
# along with an optional histogram of the values as specified by the bucket
|
828
|
+
# options.
|
670
829
|
class LogMetric
|
671
830
|
include Google::Apis::Core::Hashable
|
672
831
|
|
832
|
+
# BucketOptions describes the bucket boundaries used to create a histogram for
|
833
|
+
# the distribution. The buckets can be in a linear sequence, an exponential
|
834
|
+
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
835
|
+
# include the number of values in each bucket.A bucket has an inclusive lower
|
836
|
+
# bound and exclusive upper bound for the values that are counted for that
|
837
|
+
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
838
|
+
# bound. The sequence of N buckets for a distribution consists of an underflow
|
839
|
+
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
840
|
+
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
841
|
+
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
842
|
+
# span the whole range of finite values: lower bound of the underflow bucket is -
|
843
|
+
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
844
|
+
# buckets are so-called because both bounds are finite.
|
845
|
+
# Corresponds to the JSON property `bucketOptions`
|
846
|
+
# @return [Google::Apis::LoggingV2beta1::BucketOptions]
|
847
|
+
attr_accessor :bucket_options
|
848
|
+
|
673
849
|
# Optional. A description of this metric, which is used in documentation.
|
674
850
|
# Corresponds to the JSON property `description`
|
675
851
|
# @return [String]
|
@@ -682,6 +858,27 @@ module Google
|
|
682
858
|
# @return [String]
|
683
859
|
attr_accessor :filter
|
684
860
|
|
861
|
+
# Optional. A map from a label key string to an extractor expression which is
|
862
|
+
# used to extract data from a log entry field and assign as the label value.
|
863
|
+
# Each label key specified in the LabelDescriptor must have an associated
|
864
|
+
# extractor expression in this map. The syntax of the extractor expression is
|
865
|
+
# the same as for the value_extractor field.The extracted value is converted to
|
866
|
+
# the type defined in the label descriptor. If the either the extraction or the
|
867
|
+
# type conversion fails, the label will have a default value. The default value
|
868
|
+
# for a string label is an empty string, for an integer label its 0, and for a
|
869
|
+
# boolean label its false.Note that there are upper bounds on the maximum number
|
870
|
+
# of labels and the number of active time series that are allowed in a project.
|
871
|
+
# Corresponds to the JSON property `labelExtractors`
|
872
|
+
# @return [Hash<String,String>]
|
873
|
+
attr_accessor :label_extractors
|
874
|
+
|
875
|
+
# Defines a metric type and its schema. Once a metric descriptor is created,
|
876
|
+
# deleting or altering it stops data collection and makes the metric type's
|
877
|
+
# existing data unusable.
|
878
|
+
# Corresponds to the JSON property `metricDescriptor`
|
879
|
+
# @return [Google::Apis::LoggingV2beta1::MetricDescriptor]
|
880
|
+
attr_accessor :metric_descriptor
|
881
|
+
|
685
882
|
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
686
883
|
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
687
884
|
# include only the following characters: A-Z, a-z, 0-9, and the special
|
@@ -695,6 +892,23 @@ module Google
|
|
695
892
|
# @return [String]
|
696
893
|
attr_accessor :name
|
697
894
|
|
895
|
+
# Optional. A value_extractor is required when using a distribution logs-based
|
896
|
+
# metric to extract the values to record from a log entry. Two functions are
|
897
|
+
# supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex).
|
898
|
+
# The argument are: 1. field: The name of the log entry field from which the
|
899
|
+
# value is to be extracted. 2. regex: A regular expression using the Google
|
900
|
+
# RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture
|
901
|
+
# group to extract data from the specified log entry field. The value of the
|
902
|
+
# field is converted to a string before applying the regex. It is an error to
|
903
|
+
# specify a regex that does not include exactly one capture group.The result of
|
904
|
+
# the extraction must be convertible to a double type, as the distribution
|
905
|
+
# always records double values. If either the extraction or the conversion to
|
906
|
+
# double fails, then those values are not recorded in the distribution.Example:
|
907
|
+
# REGEXP_EXTRACT(jsonPayload.request, ".*quantity=(\d+).*")
|
908
|
+
# Corresponds to the JSON property `valueExtractor`
|
909
|
+
# @return [String]
|
910
|
+
attr_accessor :value_extractor
|
911
|
+
|
698
912
|
# Deprecated. The API version that created or updated this metric. The v2 format
|
699
913
|
# is used by default and cannot be changed.
|
700
914
|
# Corresponds to the JSON property `version`
|
@@ -707,9 +921,13 @@ module Google
|
|
707
921
|
|
708
922
|
# Update properties of this object
|
709
923
|
def update!(**args)
|
924
|
+
@bucket_options = args[:bucket_options] if args.key?(:bucket_options)
|
710
925
|
@description = args[:description] if args.key?(:description)
|
711
926
|
@filter = args[:filter] if args.key?(:filter)
|
927
|
+
@label_extractors = args[:label_extractors] if args.key?(:label_extractors)
|
928
|
+
@metric_descriptor = args[:metric_descriptor] if args.key?(:metric_descriptor)
|
712
929
|
@name = args[:name] if args.key?(:name)
|
930
|
+
@value_extractor = args[:value_extractor] if args.key?(:value_extractor)
|
713
931
|
@version = args[:version] if args.key?(:version)
|
714
932
|
end
|
715
933
|
end
|
@@ -818,6 +1036,132 @@ module Google
|
|
818
1036
|
end
|
819
1037
|
end
|
820
1038
|
|
1039
|
+
# Defines a metric type and its schema. Once a metric descriptor is created,
|
1040
|
+
# deleting or altering it stops data collection and makes the metric type's
|
1041
|
+
# existing data unusable.
|
1042
|
+
class MetricDescriptor
|
1043
|
+
include Google::Apis::Core::Hashable
|
1044
|
+
|
1045
|
+
# A detailed description of the metric, which can be used in documentation.
|
1046
|
+
# Corresponds to the JSON property `description`
|
1047
|
+
# @return [String]
|
1048
|
+
attr_accessor :description
|
1049
|
+
|
1050
|
+
# A concise name for the metric, which can be displayed in user interfaces. Use
|
1051
|
+
# sentence case without an ending period, for example "Request count".
|
1052
|
+
# Corresponds to the JSON property `displayName`
|
1053
|
+
# @return [String]
|
1054
|
+
attr_accessor :display_name
|
1055
|
+
|
1056
|
+
# The set of labels that can be used to describe a specific instance of this
|
1057
|
+
# metric type. For example, the appengine.googleapis.com/http/server/
|
1058
|
+
# response_latencies metric type has a label for the HTTP response code,
|
1059
|
+
# response_code, so you can look at latencies for successful responses or just
|
1060
|
+
# for responses that failed.
|
1061
|
+
# Corresponds to the JSON property `labels`
|
1062
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
1063
|
+
attr_accessor :labels
|
1064
|
+
|
1065
|
+
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
1066
|
+
# combinations of metric_kind and value_type might not be supported.
|
1067
|
+
# Corresponds to the JSON property `metricKind`
|
1068
|
+
# @return [String]
|
1069
|
+
attr_accessor :metric_kind
|
1070
|
+
|
1071
|
+
# The resource name of the metric descriptor. Depending on the implementation,
|
1072
|
+
# the name typically includes: (1) the parent resource name that defines the
|
1073
|
+
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
1074
|
+
# which also appears in the type field of this descriptor. For example,
|
1075
|
+
# following is the resource name of a custom metric within the GCP project my-
|
1076
|
+
# project-id:
|
1077
|
+
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
1078
|
+
# 2Fpaid%2Famount"
|
1079
|
+
# Corresponds to the JSON property `name`
|
1080
|
+
# @return [String]
|
1081
|
+
attr_accessor :name
|
1082
|
+
|
1083
|
+
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
1084
|
+
# All user-defined custom metric types have the DNS name custom.googleapis.com.
|
1085
|
+
# Metric types should use a natural hierarchical grouping. For example:
|
1086
|
+
# "custom.googleapis.com/invoice/paid/amount"
|
1087
|
+
# "appengine.googleapis.com/http/server/response_latencies"
|
1088
|
+
# Corresponds to the JSON property `type`
|
1089
|
+
# @return [String]
|
1090
|
+
attr_accessor :type
|
1091
|
+
|
1092
|
+
# The unit in which the metric value is reported. It is only applicable if the
|
1093
|
+
# value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
|
1094
|
+
# of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
|
1095
|
+
# standard:Basic units (UNIT)
|
1096
|
+
# bit bit
|
1097
|
+
# By byte
|
1098
|
+
# s second
|
1099
|
+
# min minute
|
1100
|
+
# h hour
|
1101
|
+
# d dayPrefixes (PREFIX)
|
1102
|
+
# k kilo (10**3)
|
1103
|
+
# M mega (10**6)
|
1104
|
+
# G giga (10**9)
|
1105
|
+
# T tera (10**12)
|
1106
|
+
# P peta (10**15)
|
1107
|
+
# E exa (10**18)
|
1108
|
+
# Z zetta (10**21)
|
1109
|
+
# Y yotta (10**24)
|
1110
|
+
# m milli (10**-3)
|
1111
|
+
# u micro (10**-6)
|
1112
|
+
# n nano (10**-9)
|
1113
|
+
# p pico (10**-12)
|
1114
|
+
# f femto (10**-15)
|
1115
|
+
# a atto (10**-18)
|
1116
|
+
# z zepto (10**-21)
|
1117
|
+
# y yocto (10**-24)
|
1118
|
+
# Ki kibi (2**10)
|
1119
|
+
# Mi mebi (2**20)
|
1120
|
+
# Gi gibi (2**30)
|
1121
|
+
# Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
|
1122
|
+
# s.The grammar also includes these connectors:
|
1123
|
+
# / division (as an infix operator, e.g. 1/s).
|
1124
|
+
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
|
1125
|
+
# as follows:
|
1126
|
+
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
1127
|
+
# Component = [ PREFIX ] UNIT [ Annotation ]
|
1128
|
+
# | Annotation
|
1129
|
+
# | "1"
|
1130
|
+
# ;
|
1131
|
+
# Annotation = "`" NAME "`" ;
|
1132
|
+
# Notes:
|
1133
|
+
# Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
|
1134
|
+
# it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
|
1135
|
+
# s.
|
1136
|
+
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
|
1137
|
+
# or '`'.
|
1138
|
+
# Corresponds to the JSON property `unit`
|
1139
|
+
# @return [String]
|
1140
|
+
attr_accessor :unit
|
1141
|
+
|
1142
|
+
# Whether the measurement is an integer, a floating-point number, etc. Some
|
1143
|
+
# combinations of metric_kind and value_type might not be supported.
|
1144
|
+
# Corresponds to the JSON property `valueType`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :value_type
|
1147
|
+
|
1148
|
+
def initialize(**args)
|
1149
|
+
update!(**args)
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# Update properties of this object
|
1153
|
+
def update!(**args)
|
1154
|
+
@description = args[:description] if args.key?(:description)
|
1155
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1156
|
+
@labels = args[:labels] if args.key?(:labels)
|
1157
|
+
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
1158
|
+
@name = args[:name] if args.key?(:name)
|
1159
|
+
@type = args[:type] if args.key?(:type)
|
1160
|
+
@unit = args[:unit] if args.key?(:unit)
|
1161
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
1162
|
+
end
|
1163
|
+
end
|
1164
|
+
|
821
1165
|
# An object representing a resource that can be used for monitoring, logging,
|
822
1166
|
# billing, or other purposes. Examples include virtual machine instances,
|
823
1167
|
# databases, and storage devices such as disks. The type field identifies a
|
@@ -1210,16 +1554,21 @@ module Google
|
|
1210
1554
|
class WriteLogEntriesRequest
|
1211
1555
|
include Google::Apis::Core::Hashable
|
1212
1556
|
|
1213
|
-
# Required. The log entries to
|
1214
|
-
#
|
1215
|
-
#
|
1216
|
-
#
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1222
|
-
#
|
1557
|
+
# Required. The log entries to send to Stackdriver Logging. The order of log
|
1558
|
+
# entries in this list does not matter. Values supplied in this method's
|
1559
|
+
# log_name, resource, and labels fields are copied into those log entries in
|
1560
|
+
# this list that do not include values for their corresponding fields. For more
|
1561
|
+
# information, see the LogEntry type.If the timestamp or insert_id fields are
|
1562
|
+
# missing in log entries, then this method supplies the current time or a unique
|
1563
|
+
# identifier, respectively. The supplied values are chosen so that, among the
|
1564
|
+
# log entries that did not supply their own values, the entries earlier in the
|
1565
|
+
# list will sort before the entries later in the list. See entries.list.Log
|
1566
|
+
# entries with timestamps that are more than the logs retention period in the
|
1567
|
+
# past or more than 24 hours in the future might be discarded. Discarding does
|
1568
|
+
# not return an error.To improve throughput and to avoid exceeding the quota
|
1569
|
+
# limit for calls to entries.write, you should try to include several log
|
1570
|
+
# entries in this list, rather than calling this method for each individual log
|
1571
|
+
# entry.
|
1223
1572
|
# Corresponds to the JSON property `entries`
|
1224
1573
|
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
1225
1574
|
attr_accessor :entries
|