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