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