google-api-client 0.9.26 → 0.9.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/api_names.yaml +36326 -36213
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
- data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
- data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
- data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
- data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +12 -0
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
- data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
- data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +26 -0
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +38 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +4 -4
- data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
- data/generated/google/apis/genomics_v1/representations.rb +476 -476
- data/generated/google/apis/genomics_v1/service.rb +1038 -1038
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +82 -1
- data/generated/google/apis/gmail_v1/representations.rb +33 -0
- data/generated/google/apis/gmail_v1/service.rb +215 -5
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +446 -343
- data/generated/google/apis/iam_v1/representations.rb +112 -85
- data/generated/google/apis/iam_v1/service.rb +248 -192
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +15 -15
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +396 -396
- data/generated/google/apis/language_v1beta1/representations.rb +97 -97
- data/generated/google/apis/language_v1beta1/service.rb +42 -42
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
- data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
- data/generated/google/apis/logging_v2beta1/service.rb +214 -214
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +551 -551
- data/generated/google/apis/monitoring_v3/representations.rb +123 -123
- data/generated/google/apis/monitoring_v3/service.rb +80 -80
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1/classes.rb +391 -391
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +257 -257
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
- data/generated/google/apis/sheets_v4/representations.rb +861 -861
- data/generated/google/apis/sheets_v4/service.rb +191 -191
- data/generated/google/apis/slides_v1.rb +7 -7
- data/generated/google/apis/slides_v1/classes.rb +2726 -2555
- data/generated/google/apis/slides_v1/representations.rb +678 -607
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
- data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
- data/generated/google/apis/speech_v1beta1/service.rb +63 -63
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -3
- data/generated/google/apis/vision_v1/classes.rb +925 -925
- data/generated/google/apis/vision_v1/representations.rb +134 -134
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +234 -1
- data/generated/google/apis/youtube_v3/representations.rb +83 -0
- data/generated/google/apis/youtube_v3/service.rb +55 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
- data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
- data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
- data/lib/google/apis/core/api_command.rb +11 -5
- data/lib/google/apis/core/base_service.rb +7 -5
- data/lib/google/apis/errors.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +28 -28
@@ -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 = '20170130'
|
29
29
|
|
30
30
|
# View your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
@@ -22,29 +22,21 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module LoggingV2beta1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Result returned from ListMonitoredResourceDescriptors.
|
26
|
+
class ListMonitoredResourceDescriptorsResponse
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
# Corresponds to the JSON property `
|
31
|
-
# @return [
|
32
|
-
attr_accessor :
|
33
|
-
|
34
|
-
# App-provided log message.
|
35
|
-
# Corresponds to the JSON property `logMessage`
|
36
|
-
# @return [String]
|
37
|
-
attr_accessor :log_message
|
38
|
-
|
39
|
-
# Specifies a location in a source code file.
|
40
|
-
# Corresponds to the JSON property `sourceLocation`
|
41
|
-
# @return [Google::Apis::LoggingV2beta1::SourceLocation]
|
42
|
-
attr_accessor :source_location
|
29
|
+
# A list of resource descriptors.
|
30
|
+
# Corresponds to the JSON property `resourceDescriptors`
|
31
|
+
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
|
32
|
+
attr_accessor :resource_descriptors
|
43
33
|
|
44
|
-
#
|
45
|
-
#
|
34
|
+
# If there might be more results than those appearing in this response, then
|
35
|
+
# nextPageToken is included. To get the next set of results, call this method
|
36
|
+
# again using the value of nextPageToken as pageToken.
|
37
|
+
# Corresponds to the JSON property `nextPageToken`
|
46
38
|
# @return [String]
|
47
|
-
attr_accessor :
|
39
|
+
attr_accessor :next_page_token
|
48
40
|
|
49
41
|
def initialize(**args)
|
50
42
|
update!(**args)
|
@@ -52,28 +44,27 @@ module Google
|
|
52
44
|
|
53
45
|
# Update properties of this object
|
54
46
|
def update!(**args)
|
55
|
-
@
|
56
|
-
@
|
57
|
-
@source_location = args[:source_location] if args.key?(:source_location)
|
58
|
-
@time = args[:time] if args.key?(:time)
|
47
|
+
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
48
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
59
49
|
end
|
60
50
|
end
|
61
51
|
|
62
|
-
#
|
63
|
-
|
52
|
+
# A reference to a particular snapshot of the source tree used to build and
|
53
|
+
# deploy an application.
|
54
|
+
class SourceReference
|
64
55
|
include Google::Apis::Core::Hashable
|
65
56
|
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
|
57
|
+
# The canonical and persistent identifier of the deployed revision. Example (git)
|
58
|
+
# : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
|
59
|
+
# Corresponds to the JSON property `revisionId`
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :revision_id
|
70
62
|
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
# Corresponds to the JSON property `nextPageToken`
|
63
|
+
# Optional. A URI string identifying the repository. Example: "https://github.
|
64
|
+
# com/GoogleCloudPlatform/kubernetes.git"
|
65
|
+
# Corresponds to the JSON property `repository`
|
75
66
|
# @return [String]
|
76
|
-
attr_accessor :
|
67
|
+
attr_accessor :repository
|
77
68
|
|
78
69
|
def initialize(**args)
|
79
70
|
update!(**args)
|
@@ -81,116 +72,90 @@ module Google
|
|
81
72
|
|
82
73
|
# Update properties of this object
|
83
74
|
def update!(**args)
|
84
|
-
@
|
85
|
-
@
|
75
|
+
@revision_id = args[:revision_id] if args.key?(:revision_id)
|
76
|
+
@repository = args[:repository] if args.key?(:repository)
|
86
77
|
end
|
87
78
|
end
|
88
79
|
|
89
|
-
#
|
90
|
-
|
80
|
+
# Additional information about a potentially long-running operation with which a
|
81
|
+
# log entry is associated.
|
82
|
+
class LogEntryOperation
|
91
83
|
include Google::Apis::Core::Hashable
|
92
84
|
|
93
|
-
# Optional.
|
94
|
-
#
|
95
|
-
#
|
96
|
-
|
97
|
-
|
98
|
-
# @return [String]
|
99
|
-
attr_accessor :trace
|
100
|
-
|
101
|
-
# Optional. A set of user-defined (key, value) data that provides additional
|
102
|
-
# information about the log entry.
|
103
|
-
# Corresponds to the JSON property `labels`
|
104
|
-
# @return [Hash<String,String>]
|
105
|
-
attr_accessor :labels
|
85
|
+
# Optional. Set this to True if this is the last log entry in the operation.
|
86
|
+
# Corresponds to the JSON property `last`
|
87
|
+
# @return [Boolean]
|
88
|
+
attr_accessor :last
|
89
|
+
alias_method :last?, :last
|
106
90
|
|
107
|
-
# Optional.
|
108
|
-
#
|
109
|
-
# Corresponds to the JSON property `
|
91
|
+
# Optional. An arbitrary operation identifier. Log entries with the same
|
92
|
+
# identifier are assumed to be part of the same operation.
|
93
|
+
# Corresponds to the JSON property `id`
|
110
94
|
# @return [String]
|
111
|
-
attr_accessor :
|
112
|
-
|
113
|
-
# Additional information about the source code location that produced the log
|
114
|
-
# entry.
|
115
|
-
# Corresponds to the JSON property `sourceLocation`
|
116
|
-
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
|
117
|
-
attr_accessor :source_location
|
95
|
+
attr_accessor :id
|
118
96
|
|
119
|
-
# Optional.
|
120
|
-
#
|
121
|
-
#
|
97
|
+
# Optional. An arbitrary producer identifier. The combination of id and producer
|
98
|
+
# must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
|
99
|
+
# "github.com/MyProject/MyApplication".
|
100
|
+
# Corresponds to the JSON property `producer`
|
122
101
|
# @return [String]
|
123
|
-
attr_accessor :
|
102
|
+
attr_accessor :producer
|
124
103
|
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
|
129
|
-
|
130
|
-
# be less than 512 characters long and can only include the following characters:
|
131
|
-
# upper and lower case alphanumeric characters, forward-slash, underscore,
|
132
|
-
# hyphen, and period.For backward compatibility, if log_name begins with a
|
133
|
-
# forward-slash, such as /projects/..., then the log entry is ingested as usual
|
134
|
-
# but the forward-slash is removed. Listing the log entry will not show the
|
135
|
-
# leading slash and filtering for a log name with a leading slash will never
|
136
|
-
# return any results.
|
137
|
-
# Corresponds to the JSON property `logName`
|
138
|
-
# @return [String]
|
139
|
-
attr_accessor :log_name
|
104
|
+
# Optional. Set this to True if this is the first log entry in the operation.
|
105
|
+
# Corresponds to the JSON property `first`
|
106
|
+
# @return [Boolean]
|
107
|
+
attr_accessor :first
|
108
|
+
alias_method :first?, :first
|
140
109
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
# Corresponds to the JSON property `httpRequest`
|
145
|
-
# @return [Google::Apis::LoggingV2beta1::HttpRequest]
|
146
|
-
attr_accessor :http_request
|
110
|
+
def initialize(**args)
|
111
|
+
update!(**args)
|
112
|
+
end
|
147
113
|
|
148
|
-
#
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
# zone":
|
157
|
-
# ` "type": "gce_instance",
|
158
|
-
# "labels": ` "instance_id": "12345678901234",
|
159
|
-
# "zone": "us-central1-a" ``
|
160
|
-
# Corresponds to the JSON property `resource`
|
161
|
-
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
162
|
-
attr_accessor :resource
|
114
|
+
# Update properties of this object
|
115
|
+
def update!(**args)
|
116
|
+
@last = args[:last] if args.key?(:last)
|
117
|
+
@id = args[:id] if args.key?(:id)
|
118
|
+
@producer = args[:producer] if args.key?(:producer)
|
119
|
+
@first = args[:first] if args.key?(:first)
|
120
|
+
end
|
121
|
+
end
|
163
122
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
attr_accessor :json_payload
|
123
|
+
# Describes a logs-based metric. The value of the metric is the number of log
|
124
|
+
# entries that match a logs filter in a given time interval.
|
125
|
+
class LogMetric
|
126
|
+
include Google::Apis::Core::Hashable
|
169
127
|
|
170
|
-
#
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
174
|
-
|
128
|
+
# Output only. The API version that created or updated this metric. The version
|
129
|
+
# also dictates the syntax of the filter expression. When a value for this field
|
130
|
+
# is missing, the default value of V2 should be assumed.
|
131
|
+
# Corresponds to the JSON property `version`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :version
|
175
134
|
|
176
|
-
#
|
177
|
-
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
# Corresponds to the JSON property `insertId`
|
135
|
+
# Required. An advanced logs filter which is used to match log entries. Example:
|
136
|
+
# "resource.type=gae_app AND severity>=ERROR"
|
137
|
+
# The maximum length of the filter is 20000 characters.
|
138
|
+
# Corresponds to the JSON property `filter`
|
181
139
|
# @return [String]
|
182
|
-
attr_accessor :
|
140
|
+
attr_accessor :filter
|
183
141
|
|
184
|
-
# The
|
185
|
-
#
|
142
|
+
# Required. The client-assigned metric identifier. Examples: "error_count", "
|
143
|
+
# nginx/requests".Metric identifiers are limited to 100 characters and can
|
144
|
+
# include only the following characters: A-Z, a-z, 0-9, and the special
|
145
|
+
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
146
|
+
# of name pieces, and it cannot be the first character of the name.The metric
|
147
|
+
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
148
|
+
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
149
|
+
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
150
|
+
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
151
|
+
# Corresponds to the JSON property `name`
|
186
152
|
# @return [String]
|
187
|
-
attr_accessor :
|
153
|
+
attr_accessor :name
|
188
154
|
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
|
193
|
-
attr_accessor :proto_payload
|
155
|
+
# Optional. A description of this metric, which is used in documentation.
|
156
|
+
# Corresponds to the JSON property `description`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :description
|
194
159
|
|
195
160
|
def initialize(**args)
|
196
161
|
update!(**args)
|
@@ -198,30 +163,15 @@ module Google
|
|
198
163
|
|
199
164
|
# Update properties of this object
|
200
165
|
def update!(**args)
|
201
|
-
@
|
202
|
-
@
|
203
|
-
@
|
204
|
-
@
|
205
|
-
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
206
|
-
@log_name = args[:log_name] if args.key?(:log_name)
|
207
|
-
@http_request = args[:http_request] if args.key?(:http_request)
|
208
|
-
@resource = args[:resource] if args.key?(:resource)
|
209
|
-
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
210
|
-
@operation = args[:operation] if args.key?(:operation)
|
211
|
-
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
212
|
-
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
213
|
-
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
166
|
+
@version = args[:version] if args.key?(:version)
|
167
|
+
@filter = args[:filter] if args.key?(:filter)
|
168
|
+
@name = args[:name] if args.key?(:name)
|
169
|
+
@description = args[:description] if args.key?(:description)
|
214
170
|
end
|
215
171
|
end
|
216
172
|
|
217
|
-
#
|
218
|
-
|
219
|
-
# response type of an API method. For instance:
|
220
|
-
# service Foo `
|
221
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
222
|
-
# `
|
223
|
-
# The JSON representation for Empty is empty JSON object ``.
|
224
|
-
class Empty
|
173
|
+
# Result returned from WriteLogEntries. empty
|
174
|
+
class WriteLogEntriesResponse
|
225
175
|
include Google::Apis::Core::Hashable
|
226
176
|
|
227
177
|
def initialize(**args)
|
@@ -233,29 +183,34 @@ module Google
|
|
233
183
|
end
|
234
184
|
end
|
235
185
|
|
236
|
-
#
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
# method (Java), dir/package.func (Go), function (Python).
|
251
|
-
# Corresponds to the JSON property `functionName`
|
252
|
-
# @return [String]
|
253
|
-
attr_accessor :function_name
|
186
|
+
# An object representing a resource that can be used for monitoring, logging,
|
187
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
188
|
+
# databases, and storage devices such as disks. The type field identifies a
|
189
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
190
|
+
# Information in the labels field identifies the actual resource and its
|
191
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
192
|
+
# VM instance could be represented by the following object, because the
|
193
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
194
|
+
# zone":
|
195
|
+
# ` "type": "gce_instance",
|
196
|
+
# "labels": ` "instance_id": "12345678901234",
|
197
|
+
# "zone": "us-central1-a" ``
|
198
|
+
class MonitoredResource
|
199
|
+
include Google::Apis::Core::Hashable
|
254
200
|
|
255
|
-
#
|
256
|
-
#
|
201
|
+
# Required. The monitored resource type. This field must match the type field of
|
202
|
+
# a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
|
203
|
+
# database is "cloudsql_database".
|
204
|
+
# Corresponds to the JSON property `type`
|
257
205
|
# @return [String]
|
258
|
-
attr_accessor :
|
206
|
+
attr_accessor :type
|
207
|
+
|
208
|
+
# Required. Values for all of the labels listed in the associated monitored
|
209
|
+
# resource descriptor. For example, Cloud SQL databases use the labels "
|
210
|
+
# database_id" and "zone".
|
211
|
+
# Corresponds to the JSON property `labels`
|
212
|
+
# @return [Hash<String,String>]
|
213
|
+
attr_accessor :labels
|
259
214
|
|
260
215
|
def initialize(**args)
|
261
216
|
update!(**args)
|
@@ -263,65 +218,80 @@ module Google
|
|
263
218
|
|
264
219
|
# Update properties of this object
|
265
220
|
def update!(**args)
|
266
|
-
@
|
267
|
-
@
|
268
|
-
@line = args[:line] if args.key?(:line)
|
221
|
+
@type = args[:type] if args.key?(:type)
|
222
|
+
@labels = args[:labels] if args.key?(:labels)
|
269
223
|
end
|
270
224
|
end
|
271
225
|
|
272
|
-
#
|
273
|
-
|
226
|
+
# Describes a sink used to export log entries to one of the following
|
227
|
+
# destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
|
228
|
+
# Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
|
229
|
+
# The sink must be created within a project or organization.
|
230
|
+
class LogSink
|
274
231
|
include Google::Apis::Core::Hashable
|
275
232
|
|
276
|
-
#
|
277
|
-
#
|
278
|
-
#
|
279
|
-
#
|
280
|
-
# to
|
233
|
+
# Required. The client-assigned sink identifier, unique within the project.
|
234
|
+
# Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
|
235
|
+
# characters and can include only the following characters: upper and lower-case
|
236
|
+
# alphanumeric characters, underscores, hyphens, and periods.
|
237
|
+
# Corresponds to the JSON property `name`
|
238
|
+
# @return [String]
|
239
|
+
attr_accessor :name
|
240
|
+
|
241
|
+
# Required. The export destination:
|
242
|
+
# "storage.googleapis.com/[GCS_BUCKET]"
|
243
|
+
# "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
|
244
|
+
# "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
|
245
|
+
# The sink's writer_identity, set when the sink is created, must have permission
|
246
|
+
# to write to the destination or else the log entries are not exported. For more
|
247
|
+
# information, see Exporting Logs With Sinks.
|
248
|
+
# Corresponds to the JSON property `destination`
|
249
|
+
# @return [String]
|
250
|
+
attr_accessor :destination
|
251
|
+
|
252
|
+
# Optional. An advanced logs filter. The only exported log entries are those
|
253
|
+
# that are in the resource owning the sink and that match the filter. The filter
|
254
|
+
# must use the log entry format specified by the output_version_format parameter.
|
255
|
+
# For example, in the v2 format:
|
256
|
+
# logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
|
281
257
|
# Corresponds to the JSON property `filter`
|
282
258
|
# @return [String]
|
283
259
|
attr_accessor :filter
|
284
260
|
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
#
|
289
|
-
# Corresponds to the JSON property `
|
290
|
-
# @return [Array<String>]
|
291
|
-
attr_accessor :project_ids
|
292
|
-
|
293
|
-
# Optional. If present, then retrieve the next batch of results from the
|
294
|
-
# preceding call to this method. pageToken must be the value of nextPageToken
|
295
|
-
# from the previous response. The values of other method parameters should be
|
296
|
-
# identical to those in the previous call.
|
297
|
-
# Corresponds to the JSON property `pageToken`
|
261
|
+
# Optional. The time at which this sink will stop exporting log entries. Log
|
262
|
+
# entries are exported only if their timestamp is earlier than the end time. If
|
263
|
+
# this field is not supplied, there is no end time. If both a start time and an
|
264
|
+
# end time are provided, then the end time must be later than the start time.
|
265
|
+
# Corresponds to the JSON property `endTime`
|
298
266
|
# @return [String]
|
299
|
-
attr_accessor :
|
267
|
+
attr_accessor :end_time
|
300
268
|
|
301
|
-
# Optional. The
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
#
|
306
|
-
|
269
|
+
# Optional. The time at which this sink will begin exporting log entries. Log
|
270
|
+
# entries are exported only if their timestamp is not earlier than the start
|
271
|
+
# time. The default value of this field is the time the sink is created or
|
272
|
+
# updated.
|
273
|
+
# Corresponds to the JSON property `startTime`
|
274
|
+
# @return [String]
|
275
|
+
attr_accessor :start_time
|
307
276
|
|
308
|
-
#
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
277
|
+
# Output only. An IAM identity—a service account or group—under
|
278
|
+
# which Stackdriver Logging writes the exported log entries to the sink's
|
279
|
+
# destination. This field is set by sinks.create and sinks.update, based on the
|
280
|
+
# setting of unique_writer_identity in those methods.Until you grant this
|
281
|
+
# identity write-access to the destination, log entry exports from this sink
|
282
|
+
# will fail. For more information, see Granting access for a resource. Consult
|
283
|
+
# the destination service's documentation to determine the appropriate IAM roles
|
284
|
+
# to assign to the identity.
|
285
|
+
# Corresponds to the JSON property `writerIdentity`
|
315
286
|
# @return [String]
|
316
|
-
attr_accessor :
|
287
|
+
attr_accessor :writer_identity
|
317
288
|
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
|
324
|
-
attr_accessor :resource_names
|
289
|
+
# Optional. The log entry format to use for this sink's exported log entries.
|
290
|
+
# The v2 format is used by default. The v1 format is deprecated and should be
|
291
|
+
# used only as part of a migration effort to v2. See Migration to the v2 API.
|
292
|
+
# Corresponds to the JSON property `outputVersionFormat`
|
293
|
+
# @return [String]
|
294
|
+
attr_accessor :output_version_format
|
325
295
|
|
326
296
|
def initialize(**args)
|
327
297
|
update!(**args)
|
@@ -329,196 +299,204 @@ module Google
|
|
329
299
|
|
330
300
|
# Update properties of this object
|
331
301
|
def update!(**args)
|
302
|
+
@name = args[:name] if args.key?(:name)
|
303
|
+
@destination = args[:destination] if args.key?(:destination)
|
332
304
|
@filter = args[:filter] if args.key?(:filter)
|
333
|
-
@
|
334
|
-
@
|
335
|
-
@
|
336
|
-
@
|
337
|
-
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
305
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
306
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
307
|
+
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
|
308
|
+
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
|
338
309
|
end
|
339
310
|
end
|
340
311
|
|
341
|
-
#
|
342
|
-
|
343
|
-
class RequestLog
|
312
|
+
# The parameters to WriteLogEntries.
|
313
|
+
class WriteLogEntriesRequest
|
344
314
|
include Google::Apis::Core::Hashable
|
345
315
|
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
|
316
|
+
# Optional. Default labels that are added to the labels field of all log entries
|
317
|
+
# in entries. If a log entry already has a label with the same key as a label in
|
318
|
+
# this parameter, then the log entry's label is not changed. See LogEntry.
|
319
|
+
# Corresponds to the JSON property `labels`
|
320
|
+
# @return [Hash<String,String>]
|
321
|
+
attr_accessor :labels
|
351
322
|
|
352
|
-
#
|
353
|
-
#
|
323
|
+
# An object representing a resource that can be used for monitoring, logging,
|
324
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
325
|
+
# databases, and storage devices such as disks. The type field identifies a
|
326
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
327
|
+
# Information in the labels field identifies the actual resource and its
|
328
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
329
|
+
# VM instance could be represented by the following object, because the
|
330
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
331
|
+
# zone":
|
332
|
+
# ` "type": "gce_instance",
|
333
|
+
# "labels": ` "instance_id": "12345678901234",
|
334
|
+
# "zone": "us-central1-a" ``
|
335
|
+
# Corresponds to the JSON property `resource`
|
336
|
+
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
337
|
+
attr_accessor :resource
|
338
|
+
|
339
|
+
# Optional. A default log resource name that is assigned to all log entries in
|
340
|
+
# entries that do not specify a value for log_name:
|
341
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
342
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
343
|
+
# [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
|
344
|
+
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
345
|
+
# 2Factivity". For more information about log names, see LogEntry.
|
346
|
+
# Corresponds to the JSON property `logName`
|
354
347
|
# @return [String]
|
355
|
-
attr_accessor :
|
348
|
+
attr_accessor :log_name
|
356
349
|
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
|
361
|
-
|
350
|
+
# Required. The log entries to write. Values supplied for the fields log_name,
|
351
|
+
# resource, and labels in this entries.write request are added to those log
|
352
|
+
# entries that do not provide their own values for the fields.To improve
|
353
|
+
# throughput and to avoid exceeding the quota limit for calls to entries.write,
|
354
|
+
# you should write multiple log entries at once rather than calling this method
|
355
|
+
# for each individual log entry.
|
356
|
+
# Corresponds to the JSON property `entries`
|
357
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
358
|
+
attr_accessor :entries
|
362
359
|
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
|
360
|
+
# Optional. Whether valid entries should be written even if some other entries
|
361
|
+
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
|
362
|
+
# written, the response status will be the error associated with one of the
|
363
|
+
# failed entries and include error details in the form of
|
364
|
+
# WriteLogEntriesPartialErrors.
|
365
|
+
# Corresponds to the JSON property `partialSuccess`
|
366
|
+
# @return [Boolean]
|
367
|
+
attr_accessor :partial_success
|
368
|
+
alias_method :partial_success?, :partial_success
|
367
369
|
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
attr_accessor :start_time
|
370
|
+
def initialize(**args)
|
371
|
+
update!(**args)
|
372
|
+
end
|
372
373
|
|
373
|
-
#
|
374
|
-
|
375
|
-
|
376
|
-
|
374
|
+
# Update properties of this object
|
375
|
+
def update!(**args)
|
376
|
+
@labels = args[:labels] if args.key?(:labels)
|
377
|
+
@resource = args[:resource] if args.key?(:resource)
|
378
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
379
|
+
@entries = args[:entries] if args.key?(:entries)
|
380
|
+
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
381
|
+
end
|
382
|
+
end
|
377
383
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
attr_accessor :ip
|
384
|
+
# Result returned from ListLogs.
|
385
|
+
class ListLogsResponse
|
386
|
+
include Google::Apis::Core::Hashable
|
382
387
|
|
383
|
-
#
|
384
|
-
#
|
388
|
+
# If there might be more results than those appearing in this response, then
|
389
|
+
# nextPageToken is included. To get the next set of results, call this method
|
390
|
+
# again using the value of nextPageToken as pageToken.
|
391
|
+
# Corresponds to the JSON property `nextPageToken`
|
385
392
|
# @return [String]
|
386
|
-
attr_accessor :
|
393
|
+
attr_accessor :next_page_token
|
387
394
|
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
391
|
-
|
392
|
-
|
393
|
-
# Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
|
394
|
-
# Corresponds to the JSON property `method`
|
395
|
-
# @return [String]
|
396
|
-
attr_accessor :method_prop
|
397
|
-
|
398
|
-
# An indication of the relative cost of serving this request.
|
399
|
-
# Corresponds to the JSON property `cost`
|
400
|
-
# @return [Float]
|
401
|
-
attr_accessor :cost
|
402
|
-
|
403
|
-
# An identifier for the instance that handled the request.
|
404
|
-
# Corresponds to the JSON property `instanceId`
|
405
|
-
# @return [String]
|
406
|
-
attr_accessor :instance_id
|
407
|
-
|
408
|
-
# Number of CPU megacycles used to process request.
|
409
|
-
# Corresponds to the JSON property `megaCycles`
|
410
|
-
# @return [String]
|
411
|
-
attr_accessor :mega_cycles
|
395
|
+
# A list of log names. For example, "projects/my-project/syslog" or "
|
396
|
+
# organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
|
397
|
+
# Corresponds to the JSON property `logNames`
|
398
|
+
# @return [Array<String>]
|
399
|
+
attr_accessor :log_names
|
412
400
|
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
# Corresponds to the JSON property `first`
|
417
|
-
# @return [Boolean]
|
418
|
-
attr_accessor :first
|
419
|
-
alias_method :first?, :first
|
401
|
+
def initialize(**args)
|
402
|
+
update!(**args)
|
403
|
+
end
|
420
404
|
|
421
|
-
#
|
422
|
-
|
423
|
-
|
424
|
-
|
405
|
+
# Update properties of this object
|
406
|
+
def update!(**args)
|
407
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
408
|
+
@log_names = args[:log_names] if args.key?(:log_names)
|
409
|
+
end
|
410
|
+
end
|
425
411
|
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
412
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
413
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
414
|
+
# in a separate message.
|
415
|
+
class HttpRequest
|
416
|
+
include Google::Apis::Core::Hashable
|
430
417
|
|
431
|
-
#
|
432
|
-
#
|
418
|
+
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
419
|
+
# to.
|
420
|
+
# Corresponds to the JSON property `serverIp`
|
433
421
|
# @return [String]
|
434
|
-
attr_accessor :
|
422
|
+
attr_accessor :server_ip
|
435
423
|
|
436
|
-
#
|
437
|
-
#
|
424
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
425
|
+
# Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
|
426
|
+
# Corresponds to the JSON property `remoteIp`
|
438
427
|
# @return [String]
|
439
|
-
attr_accessor :
|
428
|
+
attr_accessor :remote_ip
|
440
429
|
|
441
|
-
# Whether
|
442
|
-
# Corresponds to the JSON property `
|
430
|
+
# Whether or not a cache lookup was attempted.
|
431
|
+
# Corresponds to the JSON property `cacheLookup`
|
443
432
|
# @return [Boolean]
|
444
|
-
attr_accessor :
|
445
|
-
alias_method :
|
446
|
-
|
447
|
-
# Source code for the application that handled this request. There can be more
|
448
|
-
# than one source reference per deployed application if source code is
|
449
|
-
# distributed among multiple repositories.
|
450
|
-
# Corresponds to the JSON property `sourceReference`
|
451
|
-
# @return [Array<Google::Apis::LoggingV2beta1::SourceReference>]
|
452
|
-
attr_accessor :source_reference
|
433
|
+
attr_accessor :cache_lookup
|
434
|
+
alias_method :cache_lookup?, :cache_lookup
|
453
435
|
|
454
|
-
#
|
455
|
-
# Corresponds to the JSON property `
|
456
|
-
# @return [
|
457
|
-
attr_accessor :
|
436
|
+
# Whether or not an entity was served from cache (with or without validation).
|
437
|
+
# Corresponds to the JSON property `cacheHit`
|
438
|
+
# @return [Boolean]
|
439
|
+
attr_accessor :cache_hit
|
440
|
+
alias_method :cache_hit?, :cache_hit
|
458
441
|
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
|
442
|
+
# Whether or not the response was validated with the origin server before being
|
443
|
+
# served from cache. This field is only meaningful if cache_hit is True.
|
444
|
+
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
445
|
+
# @return [Boolean]
|
446
|
+
attr_accessor :cache_validated_with_origin_server
|
447
|
+
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
463
448
|
|
464
|
-
#
|
465
|
-
# Corresponds to the JSON property `
|
466
|
-
# @return [
|
467
|
-
attr_accessor :
|
449
|
+
# The response code indicating the status of response. Examples: 200, 404.
|
450
|
+
# Corresponds to the JSON property `status`
|
451
|
+
# @return [Fixnum]
|
452
|
+
attr_accessor :status
|
468
453
|
|
469
|
-
#
|
470
|
-
#
|
454
|
+
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
455
|
+
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
456
|
+
# Corresponds to the JSON property `referer`
|
471
457
|
# @return [String]
|
472
|
-
attr_accessor :
|
458
|
+
attr_accessor :referer
|
473
459
|
|
474
|
-
#
|
475
|
-
#
|
460
|
+
# The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
|
461
|
+
# Windows 98; Q312461; .NET CLR 1.0.3705)".
|
462
|
+
# Corresponds to the JSON property `userAgent`
|
476
463
|
# @return [String]
|
477
|
-
attr_accessor :
|
464
|
+
attr_accessor :user_agent
|
478
465
|
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
482
|
-
# Corresponds to the JSON property `requestId`
|
466
|
+
# The request processing latency on the server, from the time the request was
|
467
|
+
# received until the response was sent.
|
468
|
+
# Corresponds to the JSON property `latency`
|
483
469
|
# @return [String]
|
484
|
-
attr_accessor :
|
470
|
+
attr_accessor :latency
|
485
471
|
|
486
|
-
# The
|
487
|
-
#
|
488
|
-
#
|
489
|
-
# information is also available to the application via the App Engine Users API.
|
490
|
-
# This field will be populated starting with App Engine 1.9.21.
|
491
|
-
# Corresponds to the JSON property `nickname`
|
472
|
+
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
473
|
+
# fill was attempted.
|
474
|
+
# Corresponds to the JSON property `cacheFillBytes`
|
492
475
|
# @return [String]
|
493
|
-
attr_accessor :
|
494
|
-
|
495
|
-
# HTTP response status code. Example: 200, 404.
|
496
|
-
# Corresponds to the JSON property `status`
|
497
|
-
# @return [Fixnum]
|
498
|
-
attr_accessor :status
|
476
|
+
attr_accessor :cache_fill_bytes
|
499
477
|
|
500
|
-
#
|
501
|
-
# Corresponds to the JSON property `
|
478
|
+
# The request method. Examples: "GET", "HEAD", "PUT", "POST".
|
479
|
+
# Corresponds to the JSON property `requestMethod`
|
502
480
|
# @return [String]
|
503
|
-
attr_accessor :
|
481
|
+
attr_accessor :request_method
|
504
482
|
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
508
|
-
# not included.
|
509
|
-
# Corresponds to the JSON property `resource`
|
483
|
+
# The size of the HTTP request message in bytes, including the request headers
|
484
|
+
# and the request body.
|
485
|
+
# Corresponds to the JSON property `requestSize`
|
510
486
|
# @return [String]
|
511
|
-
attr_accessor :
|
487
|
+
attr_accessor :request_size
|
512
488
|
|
513
|
-
#
|
514
|
-
#
|
489
|
+
# The size of the HTTP response message sent back to the client, in bytes,
|
490
|
+
# including the response headers and the response body.
|
491
|
+
# Corresponds to the JSON property `responseSize`
|
515
492
|
# @return [String]
|
516
|
-
attr_accessor :
|
493
|
+
attr_accessor :response_size
|
517
494
|
|
518
|
-
#
|
519
|
-
#
|
495
|
+
# The scheme (http, https), the host name, the path and the query portion of the
|
496
|
+
# URL that was requested. Example: "http://example.com/some/info?color=red".
|
497
|
+
# Corresponds to the JSON property `requestUrl`
|
520
498
|
# @return [String]
|
521
|
-
attr_accessor :
|
499
|
+
attr_accessor :request_url
|
522
500
|
|
523
501
|
def initialize(**args)
|
524
502
|
update!(**args)
|
@@ -526,84 +504,68 @@ module Google
|
|
526
504
|
|
527
505
|
# Update properties of this object
|
528
506
|
def update!(**args)
|
529
|
-
@
|
530
|
-
@
|
531
|
-
@
|
532
|
-
@
|
533
|
-
@
|
534
|
-
@
|
535
|
-
@
|
536
|
-
@app_id = args[:app_id] if args.key?(:app_id)
|
537
|
-
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
538
|
-
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
539
|
-
@cost = args[:cost] if args.key?(:cost)
|
540
|
-
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
541
|
-
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
542
|
-
@first = args[:first] if args.key?(:first)
|
543
|
-
@version_id = args[:version_id] if args.key?(:version_id)
|
544
|
-
@module_id = args[:module_id] if args.key?(:module_id)
|
545
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
507
|
+
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
508
|
+
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
509
|
+
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
510
|
+
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
511
|
+
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
512
|
+
@status = args[:status] if args.key?(:status)
|
513
|
+
@referer = args[:referer] if args.key?(:referer)
|
546
514
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
547
|
-
@
|
548
|
-
@
|
515
|
+
@latency = args[:latency] if args.key?(:latency)
|
516
|
+
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
517
|
+
@request_method = args[:request_method] if args.key?(:request_method)
|
518
|
+
@request_size = args[:request_size] if args.key?(:request_size)
|
549
519
|
@response_size = args[:response_size] if args.key?(:response_size)
|
550
|
-
@
|
551
|
-
@line = args[:line] if args.key?(:line)
|
552
|
-
@referrer = args[:referrer] if args.key?(:referrer)
|
553
|
-
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
554
|
-
@request_id = args[:request_id] if args.key?(:request_id)
|
555
|
-
@nickname = args[:nickname] if args.key?(:nickname)
|
556
|
-
@status = args[:status] if args.key?(:status)
|
557
|
-
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
558
|
-
@resource = args[:resource] if args.key?(:resource)
|
559
|
-
@task_name = args[:task_name] if args.key?(:task_name)
|
560
|
-
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
520
|
+
@request_url = args[:request_url] if args.key?(:request_url)
|
561
521
|
end
|
562
522
|
end
|
563
523
|
|
564
|
-
# Result returned from
|
565
|
-
class
|
524
|
+
# Result returned from ListSinks.
|
525
|
+
class ListSinksResponse
|
566
526
|
include Google::Apis::Core::Hashable
|
567
527
|
|
568
|
-
#
|
569
|
-
#
|
570
|
-
#
|
528
|
+
# A list of sinks.
|
529
|
+
# Corresponds to the JSON property `sinks`
|
530
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
|
531
|
+
attr_accessor :sinks
|
532
|
+
|
533
|
+
# If there might be more results than appear in this response, then
|
534
|
+
# nextPageToken is included. To get the next set of results, call the same
|
535
|
+
# method again using the value of nextPageToken as pageToken.
|
571
536
|
# Corresponds to the JSON property `nextPageToken`
|
572
537
|
# @return [String]
|
573
538
|
attr_accessor :next_page_token
|
574
539
|
|
575
|
-
# A list of resource descriptors.
|
576
|
-
# Corresponds to the JSON property `resourceDescriptors`
|
577
|
-
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
|
578
|
-
attr_accessor :resource_descriptors
|
579
|
-
|
580
540
|
def initialize(**args)
|
581
541
|
update!(**args)
|
582
542
|
end
|
583
543
|
|
584
544
|
# Update properties of this object
|
585
545
|
def update!(**args)
|
546
|
+
@sinks = args[:sinks] if args.key?(:sinks)
|
586
547
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
587
|
-
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
588
548
|
end
|
589
549
|
end
|
590
550
|
|
591
|
-
# A
|
592
|
-
|
593
|
-
class SourceReference
|
551
|
+
# A description of a label.
|
552
|
+
class LabelDescriptor
|
594
553
|
include Google::Apis::Core::Hashable
|
595
554
|
|
596
|
-
# The
|
597
|
-
#
|
598
|
-
# Corresponds to the JSON property `revisionId`
|
555
|
+
# The type of data that can be assigned to the label.
|
556
|
+
# Corresponds to the JSON property `valueType`
|
599
557
|
# @return [String]
|
600
|
-
attr_accessor :
|
558
|
+
attr_accessor :value_type
|
601
559
|
|
602
|
-
#
|
603
|
-
#
|
604
|
-
# Corresponds to the JSON property `repository`
|
560
|
+
# The label key.
|
561
|
+
# Corresponds to the JSON property `key`
|
605
562
|
# @return [String]
|
606
|
-
attr_accessor :
|
563
|
+
attr_accessor :key
|
564
|
+
|
565
|
+
# A human-readable description for the label.
|
566
|
+
# Corresponds to the JSON property `description`
|
567
|
+
# @return [String]
|
568
|
+
attr_accessor :description
|
607
569
|
|
608
570
|
def initialize(**args)
|
609
571
|
update!(**args)
|
@@ -611,53 +573,98 @@ module Google
|
|
611
573
|
|
612
574
|
# Update properties of this object
|
613
575
|
def update!(**args)
|
614
|
-
@
|
615
|
-
@
|
576
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
577
|
+
@key = args[:key] if args.key?(:key)
|
578
|
+
@description = args[:description] if args.key?(:description)
|
616
579
|
end
|
617
580
|
end
|
618
581
|
|
619
|
-
#
|
620
|
-
|
582
|
+
# An object that describes the schema of a MonitoredResource object using a type
|
583
|
+
# name and a set of labels. For example, the monitored resource descriptor for
|
584
|
+
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
585
|
+
# the use of the labels "instance_id" and "zone" to identify particular VM
|
586
|
+
# instances.Different APIs can support different monitored resource types. APIs
|
587
|
+
# generally provide a list method that returns the monitored resource
|
588
|
+
# descriptors used by the API.
|
589
|
+
class MonitoredResourceDescriptor
|
621
590
|
include Google::Apis::Core::Hashable
|
622
591
|
|
592
|
+
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
593
|
+
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
594
|
+
# the type field in this object and `project_id` is a project ID that provides
|
595
|
+
# API-specific context for accessing the type. APIs that do not use project
|
596
|
+
# information can use the resource name format "monitoredResourceDescriptors/`
|
597
|
+
# type`".
|
598
|
+
# Corresponds to the JSON property `name`
|
599
|
+
# @return [String]
|
600
|
+
attr_accessor :name
|
601
|
+
|
602
|
+
# Optional. A concise name for the monitored resource type that might be
|
603
|
+
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
604
|
+
# any article or other determiners. For example, "Google Cloud SQL Database".
|
605
|
+
# Corresponds to the JSON property `displayName`
|
606
|
+
# @return [String]
|
607
|
+
attr_accessor :display_name
|
608
|
+
|
609
|
+
# Optional. A detailed description of the monitored resource type that might be
|
610
|
+
# used in documentation.
|
611
|
+
# Corresponds to the JSON property `description`
|
612
|
+
# @return [String]
|
613
|
+
attr_accessor :description
|
614
|
+
|
615
|
+
# Required. The monitored resource type. For example, the type "
|
616
|
+
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
617
|
+
# length of this value is 256 characters.
|
618
|
+
# Corresponds to the JSON property `type`
|
619
|
+
# @return [String]
|
620
|
+
attr_accessor :type
|
621
|
+
|
622
|
+
# Required. A set of labels used to describe instances of this monitored
|
623
|
+
# resource type. For example, an individual Google Cloud SQL database is
|
624
|
+
# identified by values for the labels "database_id" and "zone".
|
625
|
+
# Corresponds to the JSON property `labels`
|
626
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
627
|
+
attr_accessor :labels
|
628
|
+
|
623
629
|
def initialize(**args)
|
624
630
|
update!(**args)
|
625
631
|
end
|
626
632
|
|
627
633
|
# Update properties of this object
|
628
634
|
def update!(**args)
|
635
|
+
@name = args[:name] if args.key?(:name)
|
636
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
637
|
+
@description = args[:description] if args.key?(:description)
|
638
|
+
@type = args[:type] if args.key?(:type)
|
639
|
+
@labels = args[:labels] if args.key?(:labels)
|
629
640
|
end
|
630
641
|
end
|
631
642
|
|
632
|
-
# Additional information about
|
633
|
-
#
|
634
|
-
class
|
643
|
+
# Additional information about the source code location that produced the log
|
644
|
+
# entry.
|
645
|
+
class LogEntrySourceLocation
|
635
646
|
include Google::Apis::Core::Hashable
|
636
647
|
|
637
|
-
# Optional.
|
638
|
-
#
|
639
|
-
#
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
# Optional. An arbitrary operation identifier. Log entries with the same
|
644
|
-
# identifier are assumed to be part of the same operation.
|
645
|
-
# Corresponds to the JSON property `id`
|
648
|
+
# Optional. Human-readable name of the function or method being invoked, with
|
649
|
+
# optional context such as the class or package name. This information may be
|
650
|
+
# used in contexts such as the logs viewer, where a file and line number are
|
651
|
+
# less meaningful. The format can vary by language. For example: qual.if.ied.
|
652
|
+
# Class.method (Java), dir/package.func (Go), function (Python).
|
653
|
+
# Corresponds to the JSON property `function`
|
646
654
|
# @return [String]
|
647
|
-
attr_accessor :
|
655
|
+
attr_accessor :function
|
648
656
|
|
649
|
-
# Optional.
|
650
|
-
#
|
651
|
-
#
|
652
|
-
# Corresponds to the JSON property `producer`
|
657
|
+
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
658
|
+
# available.
|
659
|
+
# Corresponds to the JSON property `line`
|
653
660
|
# @return [String]
|
654
|
-
attr_accessor :
|
661
|
+
attr_accessor :line
|
655
662
|
|
656
|
-
# Optional.
|
657
|
-
#
|
658
|
-
#
|
659
|
-
|
660
|
-
|
663
|
+
# Optional. Source file name. Depending on the runtime environment, this might
|
664
|
+
# be a simple name or a fully-qualified name.
|
665
|
+
# Corresponds to the JSON property `file`
|
666
|
+
# @return [String]
|
667
|
+
attr_accessor :file
|
661
668
|
|
662
669
|
def initialize(**args)
|
663
670
|
update!(**args)
|
@@ -665,49 +672,68 @@ module Google
|
|
665
672
|
|
666
673
|
# Update properties of this object
|
667
674
|
def update!(**args)
|
668
|
-
@
|
669
|
-
@
|
670
|
-
@
|
671
|
-
@first = args[:first] if args.key?(:first)
|
675
|
+
@function = args[:function] if args.key?(:function)
|
676
|
+
@line = args[:line] if args.key?(:line)
|
677
|
+
@file = args[:file] if args.key?(:file)
|
672
678
|
end
|
673
679
|
end
|
674
680
|
|
675
|
-
#
|
676
|
-
|
677
|
-
class LogMetric
|
681
|
+
# Result returned from ListLogEntries.
|
682
|
+
class ListLogEntriesResponse
|
678
683
|
include Google::Apis::Core::Hashable
|
679
684
|
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
685
|
+
# If there might be more results than those appearing in this response, then
|
686
|
+
# nextPageToken is included. To get the next set of results, call this method
|
687
|
+
# again using the value of nextPageToken as pageToken.If a value for
|
688
|
+
# next_page_token appears and the entries field is empty, it means that the
|
689
|
+
# search found no log entries so far but it did not have time to search all the
|
690
|
+
# possible log entries. Retry the method with this value for page_token to
|
691
|
+
# continue the search. Alternatively, consider speeding up the search by
|
692
|
+
# changing your filter to specify a single log name or resource type, or to
|
693
|
+
# narrow the time range of the search.
|
694
|
+
# Corresponds to the JSON property `nextPageToken`
|
684
695
|
# @return [String]
|
685
|
-
attr_accessor :
|
696
|
+
attr_accessor :next_page_token
|
686
697
|
|
687
|
-
#
|
688
|
-
#
|
689
|
-
#
|
690
|
-
|
698
|
+
# A list of log entries.
|
699
|
+
# Corresponds to the JSON property `entries`
|
700
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
701
|
+
attr_accessor :entries
|
702
|
+
|
703
|
+
def initialize(**args)
|
704
|
+
update!(**args)
|
705
|
+
end
|
706
|
+
|
707
|
+
# Update properties of this object
|
708
|
+
def update!(**args)
|
709
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
710
|
+
@entries = args[:entries] if args.key?(:entries)
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
714
|
+
# Application log line emitted while processing a request.
|
715
|
+
class LogLine
|
716
|
+
include Google::Apis::Core::Hashable
|
717
|
+
|
718
|
+
# Severity of this log entry.
|
719
|
+
# Corresponds to the JSON property `severity`
|
691
720
|
# @return [String]
|
692
|
-
attr_accessor :
|
721
|
+
attr_accessor :severity
|
693
722
|
|
694
|
-
#
|
695
|
-
#
|
696
|
-
# include only the following characters: A-Z, a-z, 0-9, and the special
|
697
|
-
# characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
|
698
|
-
# of name pieces, and it cannot be the first character of the name.The metric
|
699
|
-
# identifier in this field must not be URL-encoded (https://en.wikipedia.org/
|
700
|
-
# wiki/Percent-encoding). However, when the metric identifier appears as the [
|
701
|
-
# METRIC_ID] part of a metric_name API parameter, then the metric identifier
|
702
|
-
# must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
|
703
|
-
# Corresponds to the JSON property `name`
|
723
|
+
# App-provided log message.
|
724
|
+
# Corresponds to the JSON property `logMessage`
|
704
725
|
# @return [String]
|
705
|
-
attr_accessor :
|
726
|
+
attr_accessor :log_message
|
706
727
|
|
707
|
-
#
|
708
|
-
# Corresponds to the JSON property `
|
728
|
+
# Specifies a location in a source code file.
|
729
|
+
# Corresponds to the JSON property `sourceLocation`
|
730
|
+
# @return [Google::Apis::LoggingV2beta1::SourceLocation]
|
731
|
+
attr_accessor :source_location
|
732
|
+
|
733
|
+
# Approximate time when this log entry was made.
|
734
|
+
# Corresponds to the JSON property `time`
|
709
735
|
# @return [String]
|
710
|
-
attr_accessor :
|
736
|
+
attr_accessor :time
|
711
737
|
|
712
738
|
def initialize(**args)
|
713
739
|
update!(**args)
|
@@ -715,41 +741,28 @@ module Google
|
|
715
741
|
|
716
742
|
# Update properties of this object
|
717
743
|
def update!(**args)
|
718
|
-
@
|
719
|
-
@
|
720
|
-
@
|
721
|
-
@
|
744
|
+
@severity = args[:severity] if args.key?(:severity)
|
745
|
+
@log_message = args[:log_message] if args.key?(:log_message)
|
746
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
747
|
+
@time = args[:time] if args.key?(:time)
|
722
748
|
end
|
723
749
|
end
|
724
750
|
|
725
|
-
#
|
726
|
-
|
727
|
-
# databases, and storage devices such as disks. The type field identifies a
|
728
|
-
# MonitoredResourceDescriptor object that describes the resource's schema.
|
729
|
-
# Information in the labels field identifies the actual resource and its
|
730
|
-
# attributes according to the schema. For example, a particular Compute Engine
|
731
|
-
# VM instance could be represented by the following object, because the
|
732
|
-
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
733
|
-
# zone":
|
734
|
-
# ` "type": "gce_instance",
|
735
|
-
# "labels": ` "instance_id": "12345678901234",
|
736
|
-
# "zone": "us-central1-a" ``
|
737
|
-
class MonitoredResource
|
751
|
+
# Result returned from ListLogMetrics.
|
752
|
+
class ListLogMetricsResponse
|
738
753
|
include Google::Apis::Core::Hashable
|
739
754
|
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
743
|
-
|
744
|
-
# @return [String]
|
745
|
-
attr_accessor :type
|
755
|
+
# A list of logs-based metrics.
|
756
|
+
# Corresponds to the JSON property `metrics`
|
757
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
|
758
|
+
attr_accessor :metrics
|
746
759
|
|
747
|
-
#
|
748
|
-
#
|
749
|
-
#
|
750
|
-
# Corresponds to the JSON property `
|
751
|
-
# @return [
|
752
|
-
attr_accessor :
|
760
|
+
# If there might be more results than appear in this response, then
|
761
|
+
# nextPageToken is included. To get the next set of results, call this method
|
762
|
+
# again using the value of nextPageToken as pageToken.
|
763
|
+
# Corresponds to the JSON property `nextPageToken`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :next_page_token
|
753
766
|
|
754
767
|
def initialize(**args)
|
755
768
|
update!(**args)
|
@@ -757,52 +770,42 @@ module Google
|
|
757
770
|
|
758
771
|
# Update properties of this object
|
759
772
|
def update!(**args)
|
760
|
-
@
|
761
|
-
@
|
773
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
774
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
762
775
|
end
|
763
776
|
end
|
764
777
|
|
765
|
-
#
|
766
|
-
class
|
778
|
+
# An individual entry in a log.
|
779
|
+
class LogEntry
|
767
780
|
include Google::Apis::Core::Hashable
|
768
781
|
|
769
|
-
#
|
770
|
-
#
|
771
|
-
#
|
772
|
-
#
|
773
|
-
|
774
|
-
# or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
|
775
|
-
# 2Factivity". For more information about log names, see LogEntry.
|
776
|
-
# Corresponds to the JSON property `logName`
|
777
|
-
# @return [String]
|
778
|
-
attr_accessor :log_name
|
779
|
-
|
780
|
-
# Required. The log entries to write. Values supplied for the fields log_name,
|
781
|
-
# resource, and labels in this entries.write request are added to those log
|
782
|
-
# entries that do not provide their own values for the fields.To improve
|
783
|
-
# throughput and to avoid exceeding the quota limit for calls to entries.write,
|
784
|
-
# you should write multiple log entries at once rather than calling this method
|
785
|
-
# for each individual log entry.
|
786
|
-
# Corresponds to the JSON property `entries`
|
787
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
|
788
|
-
attr_accessor :entries
|
782
|
+
# Additional information about the source code location that produced the log
|
783
|
+
# entry.
|
784
|
+
# Corresponds to the JSON property `sourceLocation`
|
785
|
+
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
|
786
|
+
attr_accessor :source_location
|
789
787
|
|
790
|
-
# Optional.
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
|
795
|
-
# Corresponds to the JSON property `partialSuccess`
|
796
|
-
# @return [Boolean]
|
797
|
-
attr_accessor :partial_success
|
798
|
-
alias_method :partial_success?, :partial_success
|
788
|
+
# Optional. The time the event described by the log entry occurred. If omitted,
|
789
|
+
# Stackdriver Logging will use the time the log entry is received.
|
790
|
+
# Corresponds to the JSON property `timestamp`
|
791
|
+
# @return [String]
|
792
|
+
attr_accessor :timestamp
|
799
793
|
|
800
|
-
#
|
801
|
-
#
|
802
|
-
#
|
803
|
-
#
|
804
|
-
#
|
805
|
-
|
794
|
+
# Required. The resource name of the log to which this log entry belongs:
|
795
|
+
# "projects/[PROJECT_ID]/logs/[LOG_ID]"
|
796
|
+
# "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
|
797
|
+
# [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
|
798
|
+
# 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
|
799
|
+
# be less than 512 characters long and can only include the following characters:
|
800
|
+
# upper and lower case alphanumeric characters, forward-slash, underscore,
|
801
|
+
# hyphen, and period.For backward compatibility, if log_name begins with a
|
802
|
+
# forward-slash, such as /projects/..., then the log entry is ingested as usual
|
803
|
+
# but the forward-slash is removed. Listing the log entry will not show the
|
804
|
+
# leading slash and filtering for a log name with a leading slash will never
|
805
|
+
# return any results.
|
806
|
+
# Corresponds to the JSON property `logName`
|
807
|
+
# @return [String]
|
808
|
+
attr_accessor :log_name
|
806
809
|
|
807
810
|
# An object representing a resource that can be used for monitoring, logging,
|
808
811
|
# billing, or other purposes. Examples include virtual machine instances,
|
@@ -820,89 +823,63 @@ module Google
|
|
820
823
|
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
|
821
824
|
attr_accessor :resource
|
822
825
|
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
#
|
828
|
-
|
829
|
-
@log_name = args[:log_name] if args.key?(:log_name)
|
830
|
-
@entries = args[:entries] if args.key?(:entries)
|
831
|
-
@partial_success = args[:partial_success] if args.key?(:partial_success)
|
832
|
-
@labels = args[:labels] if args.key?(:labels)
|
833
|
-
@resource = args[:resource] if args.key?(:resource)
|
834
|
-
end
|
835
|
-
end
|
826
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
827
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
828
|
+
# in a separate message.
|
829
|
+
# Corresponds to the JSON property `httpRequest`
|
830
|
+
# @return [Google::Apis::LoggingV2beta1::HttpRequest]
|
831
|
+
attr_accessor :http_request
|
836
832
|
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
include Google::Apis::Core::Hashable
|
833
|
+
# The log entry payload, represented as a structure that is expressed as a JSON
|
834
|
+
# object.
|
835
|
+
# Corresponds to the JSON property `jsonPayload`
|
836
|
+
# @return [Hash<String,Object>]
|
837
|
+
attr_accessor :json_payload
|
843
838
|
|
844
|
-
#
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
# to write to the destination or else the log entries are not exported. For more
|
850
|
-
# information, see Exporting Logs With Sinks.
|
851
|
-
# Corresponds to the JSON property `destination`
|
839
|
+
# Optional. A unique ID for the log entry. If you provide this field, the
|
840
|
+
# logging service considers other log entries in the same project with the same
|
841
|
+
# ID as duplicates which can be removed. If omitted, Stackdriver Logging will
|
842
|
+
# generate a unique ID for this log entry.
|
843
|
+
# Corresponds to the JSON property `insertId`
|
852
844
|
# @return [String]
|
853
|
-
attr_accessor :
|
845
|
+
attr_accessor :insert_id
|
854
846
|
|
855
|
-
#
|
856
|
-
#
|
857
|
-
#
|
858
|
-
#
|
859
|
-
|
860
|
-
# Corresponds to the JSON property `filter`
|
861
|
-
# @return [String]
|
862
|
-
attr_accessor :filter
|
847
|
+
# Additional information about a potentially long-running operation with which a
|
848
|
+
# log entry is associated.
|
849
|
+
# Corresponds to the JSON property `operation`
|
850
|
+
# @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
|
851
|
+
attr_accessor :operation
|
863
852
|
|
864
|
-
#
|
865
|
-
#
|
866
|
-
# this field is not supplied, there is no end time. If both a start time and an
|
867
|
-
# end time are provided, then the end time must be later than the start time.
|
868
|
-
# Corresponds to the JSON property `endTime`
|
853
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
854
|
+
# Corresponds to the JSON property `textPayload`
|
869
855
|
# @return [String]
|
870
|
-
attr_accessor :
|
856
|
+
attr_accessor :text_payload
|
871
857
|
|
872
|
-
#
|
873
|
-
#
|
874
|
-
#
|
875
|
-
#
|
876
|
-
|
877
|
-
# @return [String]
|
878
|
-
attr_accessor :start_time
|
858
|
+
# The log entry payload, represented as a protocol buffer. Some Google Cloud
|
859
|
+
# Platform services use this field for their log entry payloads.
|
860
|
+
# Corresponds to the JSON property `protoPayload`
|
861
|
+
# @return [Hash<String,Object>]
|
862
|
+
attr_accessor :proto_payload
|
879
863
|
|
880
|
-
#
|
881
|
-
#
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
# will fail. For more information, see Granting access for a resource. Consult
|
886
|
-
# the destination service's documentation to determine the appropriate IAM roles
|
887
|
-
# to assign to the identity.
|
888
|
-
# Corresponds to the JSON property `writerIdentity`
|
864
|
+
# Optional. Resource name of the trace associated with the log entry, if any. If
|
865
|
+
# it contains a relative resource name, the name is assumed to be relative to //
|
866
|
+
# tracing.googleapis.com. Example: projects/my-projectid/traces/
|
867
|
+
# 06796866738c859f2f19b7cfb3214824
|
868
|
+
# Corresponds to the JSON property `trace`
|
889
869
|
# @return [String]
|
890
|
-
attr_accessor :
|
870
|
+
attr_accessor :trace
|
891
871
|
|
892
|
-
# Optional.
|
893
|
-
#
|
894
|
-
#
|
895
|
-
#
|
896
|
-
|
897
|
-
attr_accessor :output_version_format
|
872
|
+
# Optional. A set of user-defined (key, value) data that provides additional
|
873
|
+
# information about the log entry.
|
874
|
+
# Corresponds to the JSON property `labels`
|
875
|
+
# @return [Hash<String,String>]
|
876
|
+
attr_accessor :labels
|
898
877
|
|
899
|
-
#
|
900
|
-
#
|
901
|
-
#
|
902
|
-
# alphanumeric characters, underscores, hyphens, and periods.
|
903
|
-
# Corresponds to the JSON property `name`
|
878
|
+
# Optional. The severity of the log entry. The default value is LogSeverity.
|
879
|
+
# DEFAULT.
|
880
|
+
# Corresponds to the JSON property `severity`
|
904
881
|
# @return [String]
|
905
|
-
attr_accessor :
|
882
|
+
attr_accessor :severity
|
906
883
|
|
907
884
|
def initialize(**args)
|
908
885
|
update!(**args)
|
@@ -910,132 +887,130 @@ module Google
|
|
910
887
|
|
911
888
|
# Update properties of this object
|
912
889
|
def update!(**args)
|
913
|
-
@
|
914
|
-
@
|
915
|
-
@
|
916
|
-
@
|
917
|
-
@
|
918
|
-
@
|
919
|
-
@
|
890
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
891
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
892
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
893
|
+
@resource = args[:resource] if args.key?(:resource)
|
894
|
+
@http_request = args[:http_request] if args.key?(:http_request)
|
895
|
+
@json_payload = args[:json_payload] if args.key?(:json_payload)
|
896
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
897
|
+
@operation = args[:operation] if args.key?(:operation)
|
898
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
899
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
900
|
+
@trace = args[:trace] if args.key?(:trace)
|
901
|
+
@labels = args[:labels] if args.key?(:labels)
|
902
|
+
@severity = args[:severity] if args.key?(:severity)
|
920
903
|
end
|
921
904
|
end
|
922
905
|
|
923
|
-
#
|
924
|
-
|
906
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
907
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
908
|
+
# response type of an API method. For instance:
|
909
|
+
# service Foo `
|
910
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
911
|
+
# `
|
912
|
+
# The JSON representation for Empty is empty JSON object ``.
|
913
|
+
class Empty
|
925
914
|
include Google::Apis::Core::Hashable
|
926
915
|
|
927
|
-
# If there might be more results than those appearing in this response, then
|
928
|
-
# nextPageToken is included. To get the next set of results, call this method
|
929
|
-
# again using the value of nextPageToken as pageToken.
|
930
|
-
# Corresponds to the JSON property `nextPageToken`
|
931
|
-
# @return [String]
|
932
|
-
attr_accessor :next_page_token
|
933
|
-
|
934
|
-
# A list of log names. For example, "projects/my-project/syslog" or "
|
935
|
-
# organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
|
936
|
-
# Corresponds to the JSON property `logNames`
|
937
|
-
# @return [Array<String>]
|
938
|
-
attr_accessor :log_names
|
939
|
-
|
940
916
|
def initialize(**args)
|
941
917
|
update!(**args)
|
942
918
|
end
|
943
919
|
|
944
920
|
# Update properties of this object
|
945
921
|
def update!(**args)
|
946
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
947
|
-
@log_names = args[:log_names] if args.key?(:log_names)
|
948
922
|
end
|
949
923
|
end
|
950
924
|
|
951
|
-
#
|
952
|
-
|
953
|
-
# in a separate message.
|
954
|
-
class HttpRequest
|
925
|
+
# Specifies a location in a source code file.
|
926
|
+
class SourceLocation
|
955
927
|
include Google::Apis::Core::Hashable
|
956
928
|
|
957
|
-
#
|
958
|
-
#
|
959
|
-
# Corresponds to the JSON property `
|
929
|
+
# Source file name. Depending on the runtime environment, this might be a simple
|
930
|
+
# name or a fully-qualified name.
|
931
|
+
# Corresponds to the JSON property `file`
|
960
932
|
# @return [String]
|
961
|
-
attr_accessor :
|
933
|
+
attr_accessor :file
|
962
934
|
|
963
|
-
#
|
964
|
-
#
|
965
|
-
#
|
935
|
+
# Human-readable name of the function or method being invoked, with optional
|
936
|
+
# context such as the class or package name. This information is used in
|
937
|
+
# contexts such as the logs viewer, where a file and line number are less
|
938
|
+
# meaningful. The format can vary by language. For example: qual.if.ied.Class.
|
939
|
+
# method (Java), dir/package.func (Go), function (Python).
|
940
|
+
# Corresponds to the JSON property `functionName`
|
966
941
|
# @return [String]
|
967
|
-
attr_accessor :
|
942
|
+
attr_accessor :function_name
|
968
943
|
|
969
|
-
#
|
970
|
-
# Corresponds to the JSON property `
|
971
|
-
# @return [
|
972
|
-
attr_accessor :
|
973
|
-
alias_method :cache_lookup?, :cache_lookup
|
944
|
+
# Line within the source file.
|
945
|
+
# Corresponds to the JSON property `line`
|
946
|
+
# @return [String]
|
947
|
+
attr_accessor :line
|
974
948
|
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
attr_accessor :cache_hit
|
979
|
-
alias_method :cache_hit?, :cache_hit
|
949
|
+
def initialize(**args)
|
950
|
+
update!(**args)
|
951
|
+
end
|
980
952
|
|
981
|
-
#
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
# The response code indicating the status of response. Examples: 200, 404.
|
989
|
-
# Corresponds to the JSON property `status`
|
990
|
-
# @return [Fixnum]
|
991
|
-
attr_accessor :status
|
992
|
-
|
993
|
-
# The referer URL of the request, as defined in HTTP/1.1 Header Field
|
994
|
-
# Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
995
|
-
# Corresponds to the JSON property `referer`
|
996
|
-
# @return [String]
|
997
|
-
attr_accessor :referer
|
953
|
+
# Update properties of this object
|
954
|
+
def update!(**args)
|
955
|
+
@file = args[:file] if args.key?(:file)
|
956
|
+
@function_name = args[:function_name] if args.key?(:function_name)
|
957
|
+
@line = args[:line] if args.key?(:line)
|
958
|
+
end
|
959
|
+
end
|
998
960
|
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
# @return [String]
|
1003
|
-
attr_accessor :user_agent
|
961
|
+
# The parameters to ListLogEntries.
|
962
|
+
class ListLogEntriesRequest
|
963
|
+
include Google::Apis::Core::Hashable
|
1004
964
|
|
1005
|
-
#
|
1006
|
-
#
|
1007
|
-
#
|
965
|
+
# Optional. How the results should be sorted. Presently, the only permitted
|
966
|
+
# values are "timestamp asc" (default) and "timestamp desc". The first option
|
967
|
+
# returns entries in order of increasing values of LogEntry.timestamp (oldest
|
968
|
+
# first), and the second option returns entries in order of decreasing
|
969
|
+
# timestamps (newest first). Entries with equal timestamps are returned in order
|
970
|
+
# of LogEntry.insertId.
|
971
|
+
# Corresponds to the JSON property `orderBy`
|
1008
972
|
# @return [String]
|
1009
|
-
attr_accessor :
|
973
|
+
attr_accessor :order_by
|
1010
974
|
|
1011
|
-
#
|
1012
|
-
#
|
1013
|
-
#
|
1014
|
-
#
|
1015
|
-
|
975
|
+
# Required. Names of one or more resources from which to retrieve log entries:
|
976
|
+
# "projects/[PROJECT_ID]"
|
977
|
+
# "organizations/[ORGANIZATION_ID]"
|
978
|
+
# Projects listed in the project_ids field are added to this list.
|
979
|
+
# Corresponds to the JSON property `resourceNames`
|
980
|
+
# @return [Array<String>]
|
981
|
+
attr_accessor :resource_names
|
1016
982
|
|
1017
|
-
#
|
1018
|
-
#
|
1019
|
-
#
|
1020
|
-
|
983
|
+
# Deprecated. Use resource_names instead. One or more project identifiers or
|
984
|
+
# project numbers from which to retrieve log entries. Example: "my-project-1A".
|
985
|
+
# If present, these project identifiers are converted to resource name format
|
986
|
+
# and added to the list of resources in resource_names.
|
987
|
+
# Corresponds to the JSON property `projectIds`
|
988
|
+
# @return [Array<String>]
|
989
|
+
attr_accessor :project_ids
|
1021
990
|
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
#
|
991
|
+
# Optional. A filter that chooses which log entries to return. See Advanced Logs
|
992
|
+
# Filters. Only log entries that match the filter are returned. An empty filter
|
993
|
+
# matches all log entries in the resources listed in resource_names. Referencing
|
994
|
+
# a parent resource that is not listed in resource_names will cause the filter
|
995
|
+
# to return no results. The maximum length of the filter is 20000 characters.
|
996
|
+
# Corresponds to the JSON property `filter`
|
1025
997
|
# @return [String]
|
1026
|
-
attr_accessor :
|
998
|
+
attr_accessor :filter
|
1027
999
|
|
1028
|
-
#
|
1029
|
-
#
|
1030
|
-
#
|
1000
|
+
# Optional. If present, then retrieve the next batch of results from the
|
1001
|
+
# preceding call to this method. pageToken must be the value of nextPageToken
|
1002
|
+
# from the previous response. The values of other method parameters should be
|
1003
|
+
# identical to those in the previous call.
|
1004
|
+
# Corresponds to the JSON property `pageToken`
|
1031
1005
|
# @return [String]
|
1032
|
-
attr_accessor :
|
1006
|
+
attr_accessor :page_token
|
1033
1007
|
|
1034
|
-
# The
|
1035
|
-
#
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
|
1008
|
+
# Optional. The maximum number of results to return from this request. Non-
|
1009
|
+
# positive values are ignored. The presence of nextPageToken in the response
|
1010
|
+
# indicates that more results might be available.
|
1011
|
+
# Corresponds to the JSON property `pageSize`
|
1012
|
+
# @return [Fixnum]
|
1013
|
+
attr_accessor :page_size
|
1039
1014
|
|
1040
1015
|
def initialize(**args)
|
1041
1016
|
update!(**args)
|
@@ -1043,201 +1018,196 @@ module Google
|
|
1043
1018
|
|
1044
1019
|
# Update properties of this object
|
1045
1020
|
def update!(**args)
|
1046
|
-
@
|
1047
|
-
@
|
1048
|
-
@
|
1049
|
-
@
|
1050
|
-
@
|
1051
|
-
@
|
1052
|
-
@referer = args[:referer] if args.key?(:referer)
|
1053
|
-
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
1054
|
-
@latency = args[:latency] if args.key?(:latency)
|
1055
|
-
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
1056
|
-
@request_method = args[:request_method] if args.key?(:request_method)
|
1057
|
-
@request_size = args[:request_size] if args.key?(:request_size)
|
1058
|
-
@response_size = args[:response_size] if args.key?(:response_size)
|
1059
|
-
@request_url = args[:request_url] if args.key?(:request_url)
|
1021
|
+
@order_by = args[:order_by] if args.key?(:order_by)
|
1022
|
+
@resource_names = args[:resource_names] if args.key?(:resource_names)
|
1023
|
+
@project_ids = args[:project_ids] if args.key?(:project_ids)
|
1024
|
+
@filter = args[:filter] if args.key?(:filter)
|
1025
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1026
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
1060
1027
|
end
|
1061
1028
|
end
|
1062
1029
|
|
1063
|
-
#
|
1064
|
-
|
1030
|
+
# Complete log information about a single HTTP request to an App Engine
|
1031
|
+
# application.
|
1032
|
+
class RequestLog
|
1065
1033
|
include Google::Apis::Core::Hashable
|
1066
1034
|
|
1067
|
-
#
|
1068
|
-
#
|
1069
|
-
# method again using the value of nextPageToken as pageToken.
|
1070
|
-
# Corresponds to the JSON property `nextPageToken`
|
1035
|
+
# An identifier for the instance that handled the request.
|
1036
|
+
# Corresponds to the JSON property `instanceId`
|
1071
1037
|
# @return [String]
|
1072
|
-
attr_accessor :
|
1038
|
+
attr_accessor :instance_id
|
1073
1039
|
|
1074
|
-
#
|
1075
|
-
# Corresponds to the JSON property `
|
1076
|
-
# @return [
|
1077
|
-
attr_accessor :
|
1040
|
+
# Number of CPU megacycles used to process request.
|
1041
|
+
# Corresponds to the JSON property `megaCycles`
|
1042
|
+
# @return [String]
|
1043
|
+
attr_accessor :mega_cycles
|
1078
1044
|
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1045
|
+
# Whether this is the first RequestLog entry for this request. If an active
|
1046
|
+
# request has several RequestLog entries written to Stackdriver Logging, then
|
1047
|
+
# this field will be set for one of them.
|
1048
|
+
# Corresponds to the JSON property `first`
|
1049
|
+
# @return [Boolean]
|
1050
|
+
attr_accessor :first
|
1051
|
+
alias_method :first?, :first
|
1082
1052
|
|
1083
|
-
#
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
end
|
1088
|
-
end
|
1053
|
+
# Version of the application that handled this request.
|
1054
|
+
# Corresponds to the JSON property `versionId`
|
1055
|
+
# @return [String]
|
1056
|
+
attr_accessor :version_id
|
1089
1057
|
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1058
|
+
# Module of the application that handled this request.
|
1059
|
+
# Corresponds to the JSON property `moduleId`
|
1060
|
+
# @return [String]
|
1061
|
+
attr_accessor :module_id
|
1093
1062
|
|
1094
|
-
#
|
1095
|
-
# Corresponds to the JSON property `
|
1063
|
+
# Time when the request finished.
|
1064
|
+
# Corresponds to the JSON property `endTime`
|
1096
1065
|
# @return [String]
|
1097
|
-
attr_accessor :
|
1066
|
+
attr_accessor :end_time
|
1098
1067
|
|
1099
|
-
#
|
1100
|
-
# Corresponds to the JSON property `
|
1068
|
+
# User agent that made the request.
|
1069
|
+
# Corresponds to the JSON property `userAgent`
|
1101
1070
|
# @return [String]
|
1102
|
-
attr_accessor :
|
1071
|
+
attr_accessor :user_agent
|
1103
1072
|
|
1104
|
-
#
|
1105
|
-
# Corresponds to the JSON property `
|
1073
|
+
# Whether this was a loading request for the instance.
|
1074
|
+
# Corresponds to the JSON property `wasLoadingRequest`
|
1075
|
+
# @return [Boolean]
|
1076
|
+
attr_accessor :was_loading_request
|
1077
|
+
alias_method :was_loading_request?, :was_loading_request
|
1078
|
+
|
1079
|
+
# Source code for the application that handled this request. There can be more
|
1080
|
+
# than one source reference per deployed application if source code is
|
1081
|
+
# distributed among multiple repositories.
|
1082
|
+
# Corresponds to the JSON property `sourceReference`
|
1083
|
+
# @return [Array<Google::Apis::LoggingV2beta1::SourceReference>]
|
1084
|
+
attr_accessor :source_reference
|
1085
|
+
|
1086
|
+
# Size in bytes sent back to client by request.
|
1087
|
+
# Corresponds to the JSON property `responseSize`
|
1106
1088
|
# @return [String]
|
1107
|
-
attr_accessor :
|
1089
|
+
attr_accessor :response_size
|
1108
1090
|
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1091
|
+
# Stackdriver Trace identifier for this request.
|
1092
|
+
# Corresponds to the JSON property `traceId`
|
1093
|
+
# @return [String]
|
1094
|
+
attr_accessor :trace_id
|
1112
1095
|
|
1113
|
-
#
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
@value_type = args[:value_type] if args.key?(:value_type)
|
1118
|
-
end
|
1119
|
-
end
|
1096
|
+
# A list of log lines emitted by the application while serving this request.
|
1097
|
+
# Corresponds to the JSON property `line`
|
1098
|
+
# @return [Array<Google::Apis::LoggingV2beta1::LogLine>]
|
1099
|
+
attr_accessor :line
|
1120
1100
|
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
# instances.Different APIs can support different monitored resource types. APIs
|
1126
|
-
# generally provide a list method that returns the monitored resource
|
1127
|
-
# descriptors used by the API.
|
1128
|
-
class MonitoredResourceDescriptor
|
1129
|
-
include Google::Apis::Core::Hashable
|
1101
|
+
# Queue name of the request, in the case of an offline request.
|
1102
|
+
# Corresponds to the JSON property `taskQueueName`
|
1103
|
+
# @return [String]
|
1104
|
+
attr_accessor :task_queue_name
|
1130
1105
|
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
#
|
1134
|
-
|
1135
|
-
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
|
1136
|
-
attr_accessor :labels
|
1106
|
+
# Referrer URL of request.
|
1107
|
+
# Corresponds to the JSON property `referrer`
|
1108
|
+
# @return [String]
|
1109
|
+
attr_accessor :referrer
|
1137
1110
|
|
1138
|
-
#
|
1139
|
-
#
|
1140
|
-
#
|
1141
|
-
#
|
1142
|
-
# information can use the resource name format "monitoredResourceDescriptors/`
|
1143
|
-
# type`".
|
1144
|
-
# Corresponds to the JSON property `name`
|
1111
|
+
# Globally unique identifier for a request, which is based on the request start
|
1112
|
+
# time. Request IDs for requests which started later will compare greater as
|
1113
|
+
# strings than those for requests which started earlier.
|
1114
|
+
# Corresponds to the JSON property `requestId`
|
1145
1115
|
# @return [String]
|
1146
|
-
attr_accessor :
|
1116
|
+
attr_accessor :request_id
|
1147
1117
|
|
1148
|
-
#
|
1149
|
-
#
|
1150
|
-
#
|
1151
|
-
#
|
1118
|
+
# The logged-in user who made the request.Most likely, this is the part of the
|
1119
|
+
# user's email before the @ sign. The field value is the same for different
|
1120
|
+
# requests from the same user, but different users can have similar names. This
|
1121
|
+
# information is also available to the application via the App Engine Users API.
|
1122
|
+
# This field will be populated starting with App Engine 1.9.21.
|
1123
|
+
# Corresponds to the JSON property `nickname`
|
1152
1124
|
# @return [String]
|
1153
|
-
attr_accessor :
|
1125
|
+
attr_accessor :nickname
|
1154
1126
|
|
1155
|
-
#
|
1156
|
-
#
|
1157
|
-
# Corresponds to the JSON property `description`
|
1127
|
+
# Time this request spent in the pending request queue.
|
1128
|
+
# Corresponds to the JSON property `pendingTime`
|
1158
1129
|
# @return [String]
|
1159
|
-
attr_accessor :
|
1130
|
+
attr_accessor :pending_time
|
1160
1131
|
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
#
|
1164
|
-
#
|
1132
|
+
# Contains the path and query portion of the URL that was requested. For example,
|
1133
|
+
# if the URL was "http://example.com/app?name=val", the resource would be "/app?
|
1134
|
+
# name=val". The fragment identifier, which is identified by the # character, is
|
1135
|
+
# not included.
|
1136
|
+
# Corresponds to the JSON property `resource`
|
1165
1137
|
# @return [String]
|
1166
|
-
attr_accessor :
|
1138
|
+
attr_accessor :resource
|
1167
1139
|
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1140
|
+
# HTTP response status code. Example: 200, 404.
|
1141
|
+
# Corresponds to the JSON property `status`
|
1142
|
+
# @return [Fixnum]
|
1143
|
+
attr_accessor :status
|
1171
1144
|
|
1172
|
-
#
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
1177
|
-
@description = args[:description] if args.key?(:description)
|
1178
|
-
@type = args[:type] if args.key?(:type)
|
1179
|
-
end
|
1180
|
-
end
|
1145
|
+
# Task name of the request, in the case of an offline request.
|
1146
|
+
# Corresponds to the JSON property `taskName`
|
1147
|
+
# @return [String]
|
1148
|
+
attr_accessor :task_name
|
1181
1149
|
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1150
|
+
# File or class that handled the request.
|
1151
|
+
# Corresponds to the JSON property `urlMapEntry`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :url_map_entry
|
1186
1154
|
|
1187
|
-
#
|
1188
|
-
#
|
1189
|
-
# Corresponds to the JSON property `
|
1155
|
+
# If the instance processing this request belongs to a manually scaled module,
|
1156
|
+
# then this is the 0-based index of the instance. Otherwise, this value is -1.
|
1157
|
+
# Corresponds to the JSON property `instanceIndex`
|
1158
|
+
# @return [Fixnum]
|
1159
|
+
attr_accessor :instance_index
|
1160
|
+
|
1161
|
+
# Internet host and port number of the resource being requested.
|
1162
|
+
# Corresponds to the JSON property `host`
|
1190
1163
|
# @return [String]
|
1191
|
-
attr_accessor :
|
1164
|
+
attr_accessor :host
|
1192
1165
|
|
1193
|
-
#
|
1194
|
-
#
|
1195
|
-
#
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1166
|
+
# Whether this request is finished or active.
|
1167
|
+
# Corresponds to the JSON property `finished`
|
1168
|
+
# @return [Boolean]
|
1169
|
+
attr_accessor :finished
|
1170
|
+
alias_method :finished?, :finished
|
1171
|
+
|
1172
|
+
# HTTP version of request. Example: "HTTP/1.1".
|
1173
|
+
# Corresponds to the JSON property `httpVersion`
|
1199
1174
|
# @return [String]
|
1200
|
-
attr_accessor :
|
1175
|
+
attr_accessor :http_version
|
1201
1176
|
|
1202
|
-
#
|
1203
|
-
#
|
1204
|
-
# Corresponds to the JSON property `line`
|
1177
|
+
# Time when the request started.
|
1178
|
+
# Corresponds to the JSON property `startTime`
|
1205
1179
|
# @return [String]
|
1206
|
-
attr_accessor :
|
1180
|
+
attr_accessor :start_time
|
1207
1181
|
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1182
|
+
# Latency of the request.
|
1183
|
+
# Corresponds to the JSON property `latency`
|
1184
|
+
# @return [String]
|
1185
|
+
attr_accessor :latency
|
1211
1186
|
|
1212
|
-
#
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
@line = args[:line] if args.key?(:line)
|
1217
|
-
end
|
1218
|
-
end
|
1187
|
+
# Origin IP address.
|
1188
|
+
# Corresponds to the JSON property `ip`
|
1189
|
+
# @return [String]
|
1190
|
+
attr_accessor :ip
|
1219
1191
|
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1192
|
+
# Application that handled this request.
|
1193
|
+
# Corresponds to the JSON property `appId`
|
1194
|
+
# @return [String]
|
1195
|
+
attr_accessor :app_id
|
1223
1196
|
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
# again using the value of nextPageToken as pageToken.If a value for
|
1227
|
-
# next_page_token appears and the entries field is empty, it means that the
|
1228
|
-
# search found no log entries so far but it did not have time to search all the
|
1229
|
-
# possible log entries. Retry the method with this value for page_token to
|
1230
|
-
# continue the search. Alternatively, consider speeding up the search by
|
1231
|
-
# changing your filter to specify a single log name or resource type, or to
|
1232
|
-
# narrow the time range of the search.
|
1233
|
-
# Corresponds to the JSON property `nextPageToken`
|
1197
|
+
# App Engine release version.
|
1198
|
+
# Corresponds to the JSON property `appEngineRelease`
|
1234
1199
|
# @return [String]
|
1235
|
-
attr_accessor :
|
1200
|
+
attr_accessor :app_engine_release
|
1236
1201
|
|
1237
|
-
#
|
1238
|
-
# Corresponds to the JSON property `
|
1239
|
-
# @return [
|
1240
|
-
attr_accessor :
|
1202
|
+
# Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE".
|
1203
|
+
# Corresponds to the JSON property `method`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :method_prop
|
1206
|
+
|
1207
|
+
# An indication of the relative cost of serving this request.
|
1208
|
+
# Corresponds to the JSON property `cost`
|
1209
|
+
# @return [Float]
|
1210
|
+
attr_accessor :cost
|
1241
1211
|
|
1242
1212
|
def initialize(**args)
|
1243
1213
|
update!(**args)
|
@@ -1245,8 +1215,38 @@ module Google
|
|
1245
1215
|
|
1246
1216
|
# Update properties of this object
|
1247
1217
|
def update!(**args)
|
1248
|
-
@
|
1249
|
-
@
|
1218
|
+
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
1219
|
+
@mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
|
1220
|
+
@first = args[:first] if args.key?(:first)
|
1221
|
+
@version_id = args[:version_id] if args.key?(:version_id)
|
1222
|
+
@module_id = args[:module_id] if args.key?(:module_id)
|
1223
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1224
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
1225
|
+
@was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
|
1226
|
+
@source_reference = args[:source_reference] if args.key?(:source_reference)
|
1227
|
+
@response_size = args[:response_size] if args.key?(:response_size)
|
1228
|
+
@trace_id = args[:trace_id] if args.key?(:trace_id)
|
1229
|
+
@line = args[:line] if args.key?(:line)
|
1230
|
+
@task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
|
1231
|
+
@referrer = args[:referrer] if args.key?(:referrer)
|
1232
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
1233
|
+
@nickname = args[:nickname] if args.key?(:nickname)
|
1234
|
+
@pending_time = args[:pending_time] if args.key?(:pending_time)
|
1235
|
+
@resource = args[:resource] if args.key?(:resource)
|
1236
|
+
@status = args[:status] if args.key?(:status)
|
1237
|
+
@task_name = args[:task_name] if args.key?(:task_name)
|
1238
|
+
@url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
|
1239
|
+
@instance_index = args[:instance_index] if args.key?(:instance_index)
|
1240
|
+
@host = args[:host] if args.key?(:host)
|
1241
|
+
@finished = args[:finished] if args.key?(:finished)
|
1242
|
+
@http_version = args[:http_version] if args.key?(:http_version)
|
1243
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1244
|
+
@latency = args[:latency] if args.key?(:latency)
|
1245
|
+
@ip = args[:ip] if args.key?(:ip)
|
1246
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
1247
|
+
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
|
1248
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
1249
|
+
@cost = args[:cost] if args.key?(:cost)
|
1250
1250
|
end
|
1251
1251
|
end
|
1252
1252
|
end
|