OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/cloud-platform": { | |
6 "description": "View and manage your data across Google Clou
d Platform services" | |
7 }, | |
8 "https://www.googleapis.com/auth/logging.write": { | 5 "https://www.googleapis.com/auth/logging.write": { |
9 "description": "Submit log data for your projects" | 6 "description": "Submit log data for your projects" |
10 }, | 7 }, |
11 "https://www.googleapis.com/auth/logging.read": { | 8 "https://www.googleapis.com/auth/logging.read": { |
12 "description": "View log data for your projects" | 9 "description": "View log data for your projects" |
13 }, | 10 }, |
14 "https://www.googleapis.com/auth/logging.admin": { | 11 "https://www.googleapis.com/auth/logging.admin": { |
15 "description": "Administrate log data for your projects" | 12 "description": "Administrate log data for your projects" |
16 }, | 13 }, |
17 "https://www.googleapis.com/auth/cloud-platform.read-only": { | 14 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
18 "description": "View your data across Google Cloud Platform
services" | 15 "description": "View your data across Google Cloud Platform
services" |
| 16 }, |
| 17 "https://www.googleapis.com/auth/cloud-platform": { |
| 18 "description": "View and manage your data across Google Clou
d Platform services" |
19 } | 19 } |
20 } | 20 } |
21 } | 21 } |
22 }, | 22 }, |
23 "basePath": "", | 23 "basePath": "", |
24 "baseUrl": "https://logging.googleapis.com/", | 24 "baseUrl": "https://logging.googleapis.com/", |
25 "batchPath": "batch", | 25 "batchPath": "batch", |
26 "canonicalName": "Logging", | 26 "canonicalName": "Logging", |
27 "description": "Writes log entries and manages your Stackdriver Logging conf
iguration.", | 27 "description": "Writes log entries and manages your Stackdriver Logging conf
iguration.", |
28 "discoveryVersion": "v1", | 28 "discoveryVersion": "v1", |
29 "documentationLink": "https://cloud.google.com/logging/docs/", | 29 "documentationLink": "https://cloud.google.com/logging/docs/", |
30 "icons": { | 30 "icons": { |
31 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 31 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
32 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 32 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
33 }, | 33 }, |
34 "id": "logging:v2beta1", | 34 "id": "logging:v2beta1", |
35 "kind": "discovery#restDescription", | 35 "kind": "discovery#restDescription", |
36 "name": "logging", | 36 "name": "logging", |
37 "ownerDomain": "google.com", | 37 "ownerDomain": "google.com", |
38 "ownerName": "Google", | 38 "ownerName": "Google", |
39 "parameters": { | 39 "parameters": { |
| 40 "pp": { |
| 41 "default": "true", |
| 42 "description": "Pretty-print response.", |
| 43 "location": "query", |
| 44 "type": "boolean" |
| 45 }, |
40 "bearer_token": { | 46 "bearer_token": { |
41 "description": "OAuth bearer token.", | 47 "description": "OAuth bearer token.", |
42 "location": "query", | 48 "location": "query", |
43 "type": "string" | 49 "type": "string" |
44 }, | 50 }, |
45 "oauth_token": { | 51 "oauth_token": { |
46 "description": "OAuth 2.0 token for the current user.", | 52 "description": "OAuth 2.0 token for the current user.", |
47 "location": "query", | 53 "location": "query", |
48 "type": "string" | 54 "type": "string" |
49 }, | 55 }, |
50 "upload_protocol": { | 56 "upload_protocol": { |
51 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 57 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
52 "location": "query", | 58 "location": "query", |
53 "type": "string" | 59 "type": "string" |
54 }, | 60 }, |
55 "prettyPrint": { | 61 "prettyPrint": { |
56 "default": "true", | 62 "default": "true", |
57 "description": "Returns response with indentations and line breaks."
, | 63 "description": "Returns response with indentations and line breaks."
, |
58 "location": "query", | 64 "location": "query", |
59 "type": "boolean" | 65 "type": "boolean" |
60 }, | 66 }, |
| 67 "fields": { |
| 68 "description": "Selector specifying which fields to include in a par
tial response.", |
| 69 "location": "query", |
| 70 "type": "string" |
| 71 }, |
61 "uploadType": { | 72 "uploadType": { |
62 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 73 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
63 "location": "query", | 74 "location": "query", |
64 "type": "string" | 75 "type": "string" |
65 }, | 76 }, |
66 "fields": { | |
67 "description": "Selector specifying which fields to include in a par
tial response.", | |
68 "location": "query", | |
69 "type": "string" | |
70 }, | |
71 "$.xgafv": { | 77 "$.xgafv": { |
72 "description": "V1 error format.", | 78 "description": "V1 error format.", |
73 "enum": [ | 79 "enum": [ |
74 "1", | 80 "1", |
75 "2" | 81 "2" |
76 ], | 82 ], |
77 "enumDescriptions": [ | 83 "enumDescriptions": [ |
78 "v1 error format", | 84 "v1 error format", |
79 "v2 error format" | 85 "v2 error format" |
80 ], | 86 ], |
(...skipping 28 matching lines...) Expand all Loading... |
109 }, | 115 }, |
110 "key": { | 116 "key": { |
111 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 117 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
112 "location": "query", | 118 "location": "query", |
113 "type": "string" | 119 "type": "string" |
114 }, | 120 }, |
115 "quotaUser": { | 121 "quotaUser": { |
116 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 122 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
117 "location": "query", | 123 "location": "query", |
118 "type": "string" | 124 "type": "string" |
119 }, | |
120 "pp": { | |
121 "default": "true", | |
122 "description": "Pretty-print response.", | |
123 "location": "query", | |
124 "type": "boolean" | |
125 } | 125 } |
126 }, | 126 }, |
127 "protocol": "rest", | 127 "protocol": "rest", |
128 "resources": { | 128 "resources": { |
129 "projects": { | 129 "organizations": { |
130 "resources": { | 130 "resources": { |
131 "sinks": { | 131 "logs": { |
132 "methods": { | 132 "methods": { |
133 "update": { | 133 "delete": { |
134 "description": "Updates a sink. If the named sink do
esn't exist, then this method is identical to sinks.create. If the named sink do
es exist, then this method replaces the following fields in the existing sink wi
th values from the new sink: destination, filter, output_version_format, start_t
ime, and end_time. The updated filter might also have a new writer_identity; see
the unique_writer_identity field.", | 134 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", |
135 "httpMethod": "PUT", | 135 "httpMethod": "DELETE", |
136 "id": "logging.projects.sinks.update", | 136 "id": "logging.organizations.logs.delete", |
137 "parameterOrder": [ | 137 "parameterOrder": [ |
138 "sinkName" | 138 "logName" |
139 ], | 139 ], |
140 "parameters": { | 140 "parameters": { |
141 "uniqueWriterIdentity": { | 141 "logName": { |
142 "description": "Optional. See sinks.create f
or a description of this field. When updating a sink, the effect of this field o
n the value of writer_identity in the updated sink depends on both the old and n
ew values of this field:\nIf the old and new values of this field are both false
or both true, then there is no change to the sink's writer_identity.\nIf the ol
d value is false and the new value is true, then writer_identity is changed to a
unique service account.\nIt is an error if the old value is true and the new va
lue is set to false or defaulted to false.", | 142 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[
LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded.
For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/
logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou
t log names, see LogEntry.", |
143 "location": "query", | |
144 "type": "boolean" | |
145 }, | |
146 "sinkName": { | |
147 "description": "Required. The full resource
name of the sink to update, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"
folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m
y-sink-id\".", | |
148 "location": "path", | 143 "location": "path", |
149 "pattern": "^projects/[^/]+/sinks/[^/]+$", | 144 "pattern": "^organizations/[^/]+/logs/[^/]+$
", |
150 "required": true, | 145 "required": true, |
151 "type": "string" | 146 "type": "string" |
152 } | 147 } |
153 }, | 148 }, |
154 "path": "v2beta1/{+sinkName}", | 149 "path": "v2beta1/{+logName}", |
155 "request": { | |
156 "$ref": "LogSink" | |
157 }, | |
158 "response": { | |
159 "$ref": "LogSink" | |
160 }, | |
161 "scopes": [ | |
162 "https://www.googleapis.com/auth/cloud-platform"
, | |
163 "https://www.googleapis.com/auth/logging.admin" | |
164 ] | |
165 }, | |
166 "create": { | |
167 "description": "Creates a sink that exports specifie
d log entries to a destination. The export of newly-ingested log entries begins
immediately, unless the current time is outside the sink's start and end times o
r the sink's writer_identity is not permitted to write to the destination. A sin
k can export log entries only from the resource owning the sink.", | |
168 "httpMethod": "POST", | |
169 "id": "logging.projects.sinks.create", | |
170 "parameterOrder": [ | |
171 "parent" | |
172 ], | |
173 "parameters": { | |
174 "parent": { | |
175 "description": "Required. The resource in wh
ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO
N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam
ples: \"projects/my-logging-project\", \"organizations/123456789\".", | |
176 "location": "path", | |
177 "pattern": "^projects/[^/]+$", | |
178 "required": true, | |
179 "type": "string" | |
180 }, | |
181 "uniqueWriterIdentity": { | |
182 "description": "Optional. Determines the kin
d of IAM identity returned as writer_identity in the new sink. If this value is
omitted or set to false, and if the sink's parent is a project, then the value r
eturned as writer_identity is the same group or service account used by Stackdri
ver Logging before the addition of writer identities to this API. The sink's des
tination must be in the same project as the sink itself.If this field is set to
true, or if the sink is owned by a non-project resource such as an organization,
then the value of writer_identity will be a unique service account used only fo
r exports from the new sink. For more information, see writer_identity in LogSin
k.", | |
183 "location": "query", | |
184 "type": "boolean" | |
185 } | |
186 }, | |
187 "path": "v2beta1/{+parent}/sinks", | |
188 "request": { | |
189 "$ref": "LogSink" | |
190 }, | |
191 "response": { | |
192 "$ref": "LogSink" | |
193 }, | |
194 "scopes": [ | |
195 "https://www.googleapis.com/auth/cloud-platform"
, | |
196 "https://www.googleapis.com/auth/logging.admin" | |
197 ] | |
198 }, | |
199 "delete": { | |
200 "description": "Deletes a sink. If the sink has a un
ique writer_identity, then that service account is also deleted.", | |
201 "httpMethod": "DELETE", | |
202 "id": "logging.projects.sinks.delete", | |
203 "parameterOrder": [ | |
204 "sinkName" | |
205 ], | |
206 "parameters": { | |
207 "sinkName": { | |
208 "description": "Required. The full resource
name of the sink to delete, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"
folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m
y-sink-id\".", | |
209 "location": "path", | |
210 "pattern": "^projects/[^/]+/sinks/[^/]+$", | |
211 "required": true, | |
212 "type": "string" | |
213 } | |
214 }, | |
215 "path": "v2beta1/{+sinkName}", | |
216 "response": { | 150 "response": { |
217 "$ref": "Empty" | 151 "$ref": "Empty" |
218 }, | 152 }, |
219 "scopes": [ | 153 "scopes": [ |
220 "https://www.googleapis.com/auth/cloud-platform"
, | 154 "https://www.googleapis.com/auth/cloud-platform"
, |
221 "https://www.googleapis.com/auth/logging.admin" | 155 "https://www.googleapis.com/auth/logging.admin" |
222 ] | 156 ] |
223 }, | 157 }, |
| 158 "list": { |
| 159 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", |
| 160 "httpMethod": "GET", |
| 161 "id": "logging.organizations.logs.list", |
| 162 "parameterOrder": [ |
| 163 "parent" |
| 164 ], |
| 165 "parameters": { |
| 166 "pageToken": { |
| 167 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 168 "location": "query", |
| 169 "type": "string" |
| 170 }, |
| 171 "pageSize": { |
| 172 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 173 "format": "int32", |
| 174 "location": "query", |
| 175 "type": "integer" |
| 176 }, |
| 177 "parent": { |
| 178 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
| 179 "location": "path", |
| 180 "pattern": "^organizations/[^/]+$", |
| 181 "required": true, |
| 182 "type": "string" |
| 183 } |
| 184 }, |
| 185 "path": "v2beta1/{+parent}/logs", |
| 186 "response": { |
| 187 "$ref": "ListLogsResponse" |
| 188 }, |
| 189 "scopes": [ |
| 190 "https://www.googleapis.com/auth/cloud-platform"
, |
| 191 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 192 "https://www.googleapis.com/auth/logging.admin", |
| 193 "https://www.googleapis.com/auth/logging.read" |
| 194 ] |
| 195 } |
| 196 } |
| 197 } |
| 198 } |
| 199 }, |
| 200 "entries": { |
| 201 "methods": { |
| 202 "list": { |
| 203 "description": "Lists log entries. Use this method to retrie
ve log entries from Stackdriver Logging. For ways to export log entries, see Exp
orting Logs.", |
| 204 "httpMethod": "POST", |
| 205 "id": "logging.entries.list", |
| 206 "parameterOrder": [], |
| 207 "parameters": {}, |
| 208 "path": "v2beta1/entries:list", |
| 209 "request": { |
| 210 "$ref": "ListLogEntriesRequest" |
| 211 }, |
| 212 "response": { |
| 213 "$ref": "ListLogEntriesResponse" |
| 214 }, |
| 215 "scopes": [ |
| 216 "https://www.googleapis.com/auth/cloud-platform", |
| 217 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
| 218 "https://www.googleapis.com/auth/logging.admin", |
| 219 "https://www.googleapis.com/auth/logging.read" |
| 220 ] |
| 221 }, |
| 222 "write": { |
| 223 "description": "Writes log entries to Stackdriver Logging.", |
| 224 "httpMethod": "POST", |
| 225 "id": "logging.entries.write", |
| 226 "parameterOrder": [], |
| 227 "parameters": {}, |
| 228 "path": "v2beta1/entries:write", |
| 229 "request": { |
| 230 "$ref": "WriteLogEntriesRequest" |
| 231 }, |
| 232 "response": { |
| 233 "$ref": "WriteLogEntriesResponse" |
| 234 }, |
| 235 "scopes": [ |
| 236 "https://www.googleapis.com/auth/cloud-platform", |
| 237 "https://www.googleapis.com/auth/logging.admin", |
| 238 "https://www.googleapis.com/auth/logging.write" |
| 239 ] |
| 240 } |
| 241 } |
| 242 }, |
| 243 "projects": { |
| 244 "resources": { |
| 245 "sinks": { |
| 246 "methods": { |
224 "get": { | 247 "get": { |
225 "description": "Gets a sink.", | 248 "description": "Gets a sink.", |
226 "httpMethod": "GET", | 249 "httpMethod": "GET", |
227 "id": "logging.projects.sinks.get", | 250 "id": "logging.projects.sinks.get", |
228 "parameterOrder": [ | 251 "parameterOrder": [ |
229 "sinkName" | 252 "sinkName" |
230 ], | 253 ], |
231 "parameters": { | 254 "parameters": { |
232 "sinkName": { | 255 "sinkName": { |
233 "description": "Required. The resource name
of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI
ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK
_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-
id/sinks/my-sink-id\".", | 256 "description": "Required. The resource name
of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANI
ZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK
_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-
id/sinks/my-sink-id\".", |
(...skipping 15 matching lines...) Expand all Loading... |
249 ] | 272 ] |
250 }, | 273 }, |
251 "list": { | 274 "list": { |
252 "description": "Lists sinks.", | 275 "description": "Lists sinks.", |
253 "httpMethod": "GET", | 276 "httpMethod": "GET", |
254 "id": "logging.projects.sinks.list", | 277 "id": "logging.projects.sinks.list", |
255 "parameterOrder": [ | 278 "parameterOrder": [ |
256 "parent" | 279 "parent" |
257 ], | 280 ], |
258 "parameters": { | 281 "parameters": { |
| 282 "pageSize": { |
| 283 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 284 "format": "int32", |
| 285 "location": "query", |
| 286 "type": "integer" |
| 287 }, |
259 "parent": { | 288 "parent": { |
260 "description": "Required. The parent resourc
e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG
ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]
\"\n", | 289 "description": "Required. The parent resourc
e whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORG
ANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]
\"\n", |
261 "location": "path", | 290 "location": "path", |
262 "pattern": "^projects/[^/]+$", | 291 "pattern": "^projects/[^/]+$", |
263 "required": true, | 292 "required": true, |
264 "type": "string" | 293 "type": "string" |
265 }, | 294 }, |
266 "pageToken": { | 295 "pageToken": { |
267 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | 296 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
268 "location": "query", | 297 "location": "query", |
269 "type": "string" | 298 "type": "string" |
270 }, | |
271 "pageSize": { | |
272 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | |
273 "format": "int32", | |
274 "location": "query", | |
275 "type": "integer" | |
276 } | 299 } |
277 }, | 300 }, |
278 "path": "v2beta1/{+parent}/sinks", | 301 "path": "v2beta1/{+parent}/sinks", |
279 "response": { | 302 "response": { |
280 "$ref": "ListSinksResponse" | 303 "$ref": "ListSinksResponse" |
281 }, | 304 }, |
282 "scopes": [ | 305 "scopes": [ |
283 "https://www.googleapis.com/auth/cloud-platform"
, | 306 "https://www.googleapis.com/auth/cloud-platform"
, |
284 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 307 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
285 "https://www.googleapis.com/auth/logging.admin", | 308 "https://www.googleapis.com/auth/logging.admin", |
286 "https://www.googleapis.com/auth/logging.read" | 309 "https://www.googleapis.com/auth/logging.read" |
287 ] | 310 ] |
| 311 }, |
| 312 "update": { |
| 313 "description": "Updates a sink. This method replaces
the following fields in the existing sink with values from the new sink: destin
ation, filter, output_version_format, start_time, and end_time. The updated sink
might also have a new writer_identity; see the unique_writer_identity field.", |
| 314 "httpMethod": "PUT", |
| 315 "id": "logging.projects.sinks.update", |
| 316 "parameterOrder": [ |
| 317 "sinkName" |
| 318 ], |
| 319 "parameters": { |
| 320 "uniqueWriterIdentity": { |
| 321 "description": "Optional. See sinks.create f
or a description of this field. When updating a sink, the effect of this field o
n the value of writer_identity in the updated sink depends on both the old and n
ew values of this field:\nIf the old and new values of this field are both false
or both true, then there is no change to the sink's writer_identity.\nIf the ol
d value is false and the new value is true, then writer_identity is changed to a
unique service account.\nIt is an error if the old value is true and the new va
lue is set to false or defaulted to false.", |
| 322 "location": "query", |
| 323 "type": "boolean" |
| 324 }, |
| 325 "sinkName": { |
| 326 "description": "Required. The full resource
name of the sink to update, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"
folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m
y-sink-id\".", |
| 327 "location": "path", |
| 328 "pattern": "^projects/[^/]+/sinks/[^/]+$", |
| 329 "required": true, |
| 330 "type": "string" |
| 331 } |
| 332 }, |
| 333 "path": "v2beta1/{+sinkName}", |
| 334 "request": { |
| 335 "$ref": "LogSink" |
| 336 }, |
| 337 "response": { |
| 338 "$ref": "LogSink" |
| 339 }, |
| 340 "scopes": [ |
| 341 "https://www.googleapis.com/auth/cloud-platform"
, |
| 342 "https://www.googleapis.com/auth/logging.admin" |
| 343 ] |
| 344 }, |
| 345 "create": { |
| 346 "description": "Creates a sink that exports specifie
d log entries to a destination. The export of newly-ingested log entries begins
immediately, unless the current time is outside the sink's start and end times o
r the sink's writer_identity is not permitted to write to the destination. A sin
k can export log entries only from the resource owning the sink.", |
| 347 "httpMethod": "POST", |
| 348 "id": "logging.projects.sinks.create", |
| 349 "parameterOrder": [ |
| 350 "parent" |
| 351 ], |
| 352 "parameters": { |
| 353 "uniqueWriterIdentity": { |
| 354 "description": "Optional. Determines the kin
d of IAM identity returned as writer_identity in the new sink. If this value is
omitted or set to false, and if the sink's parent is a project, then the value r
eturned as writer_identity is the same group or service account used by Stackdri
ver Logging before the addition of writer identities to this API. The sink's des
tination must be in the same project as the sink itself.If this field is set to
true, or if the sink is owned by a non-project resource such as an organization,
then the value of writer_identity will be a unique service account used only fo
r exports from the new sink. For more information, see writer_identity in LogSin
k.", |
| 355 "location": "query", |
| 356 "type": "boolean" |
| 357 }, |
| 358 "parent": { |
| 359 "description": "Required. The resource in wh
ich to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATIO
N_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExam
ples: \"projects/my-logging-project\", \"organizations/123456789\".", |
| 360 "location": "path", |
| 361 "pattern": "^projects/[^/]+$", |
| 362 "required": true, |
| 363 "type": "string" |
| 364 } |
| 365 }, |
| 366 "path": "v2beta1/{+parent}/sinks", |
| 367 "request": { |
| 368 "$ref": "LogSink" |
| 369 }, |
| 370 "response": { |
| 371 "$ref": "LogSink" |
| 372 }, |
| 373 "scopes": [ |
| 374 "https://www.googleapis.com/auth/cloud-platform"
, |
| 375 "https://www.googleapis.com/auth/logging.admin" |
| 376 ] |
| 377 }, |
| 378 "delete": { |
| 379 "description": "Deletes a sink. If the sink has a un
ique writer_identity, then that service account is also deleted.", |
| 380 "httpMethod": "DELETE", |
| 381 "id": "logging.projects.sinks.delete", |
| 382 "parameterOrder": [ |
| 383 "sinkName" |
| 384 ], |
| 385 "parameters": { |
| 386 "sinkName": { |
| 387 "description": "Required. The full resource
name of the sink to delete, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"
folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/m
y-sink-id\".", |
| 388 "location": "path", |
| 389 "pattern": "^projects/[^/]+/sinks/[^/]+$", |
| 390 "required": true, |
| 391 "type": "string" |
| 392 } |
| 393 }, |
| 394 "path": "v2beta1/{+sinkName}", |
| 395 "response": { |
| 396 "$ref": "Empty" |
| 397 }, |
| 398 "scopes": [ |
| 399 "https://www.googleapis.com/auth/cloud-platform"
, |
| 400 "https://www.googleapis.com/auth/logging.admin" |
| 401 ] |
288 } | 402 } |
289 } | 403 } |
290 }, | 404 }, |
291 "logs": { | 405 "logs": { |
292 "methods": { | 406 "methods": { |
293 "delete": { | 407 "delete": { |
294 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", | 408 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", |
295 "httpMethod": "DELETE", | 409 "httpMethod": "DELETE", |
296 "id": "logging.projects.logs.delete", | 410 "id": "logging.projects.logs.delete", |
297 "parameterOrder": [ | 411 "parameterOrder": [ |
(...skipping 18 matching lines...) Expand all Loading... |
316 ] | 430 ] |
317 }, | 431 }, |
318 "list": { | 432 "list": { |
319 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", | 433 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", |
320 "httpMethod": "GET", | 434 "httpMethod": "GET", |
321 "id": "logging.projects.logs.list", | 435 "id": "logging.projects.logs.list", |
322 "parameterOrder": [ | 436 "parameterOrder": [ |
323 "parent" | 437 "parent" |
324 ], | 438 ], |
325 "parameters": { | 439 "parameters": { |
326 "pageToken": { | |
327 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
328 "location": "query", | |
329 "type": "string" | |
330 }, | |
331 "pageSize": { | 440 "pageSize": { |
332 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | 441 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
333 "format": "int32", | 442 "format": "int32", |
334 "location": "query", | 443 "location": "query", |
335 "type": "integer" | 444 "type": "integer" |
336 }, | 445 }, |
337 "parent": { | 446 "parent": { |
338 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", | 447 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
339 "location": "path", | 448 "location": "path", |
340 "pattern": "^projects/[^/]+$", | 449 "pattern": "^projects/[^/]+$", |
341 "required": true, | 450 "required": true, |
342 "type": "string" | 451 "type": "string" |
| 452 }, |
| 453 "pageToken": { |
| 454 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 455 "location": "query", |
| 456 "type": "string" |
343 } | 457 } |
344 }, | 458 }, |
345 "path": "v2beta1/{+parent}/logs", | 459 "path": "v2beta1/{+parent}/logs", |
346 "response": { | 460 "response": { |
347 "$ref": "ListLogsResponse" | 461 "$ref": "ListLogsResponse" |
348 }, | 462 }, |
349 "scopes": [ | 463 "scopes": [ |
350 "https://www.googleapis.com/auth/cloud-platform"
, | 464 "https://www.googleapis.com/auth/cloud-platform"
, |
351 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 465 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
352 "https://www.googleapis.com/auth/logging.admin", | 466 "https://www.googleapis.com/auth/logging.admin", |
353 "https://www.googleapis.com/auth/logging.read" | 467 "https://www.googleapis.com/auth/logging.read" |
354 ] | 468 ] |
355 } | 469 } |
356 } | 470 } |
357 }, | 471 }, |
358 "metrics": { | 472 "metrics": { |
359 "methods": { | 473 "methods": { |
360 "delete": { | |
361 "description": "Deletes a logs-based metric.", | |
362 "httpMethod": "DELETE", | |
363 "id": "logging.projects.metrics.delete", | |
364 "parameterOrder": [ | |
365 "metricName" | |
366 ], | |
367 "parameters": { | |
368 "metricName": { | |
369 "description": "The resource name of the met
ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", | |
370 "location": "path", | |
371 "pattern": "^projects/[^/]+/metrics/[^/]+$", | |
372 "required": true, | |
373 "type": "string" | |
374 } | |
375 }, | |
376 "path": "v2beta1/{+metricName}", | |
377 "response": { | |
378 "$ref": "Empty" | |
379 }, | |
380 "scopes": [ | |
381 "https://www.googleapis.com/auth/cloud-platform"
, | |
382 "https://www.googleapis.com/auth/logging.admin", | |
383 "https://www.googleapis.com/auth/logging.write" | |
384 ] | |
385 }, | |
386 "get": { | 474 "get": { |
387 "description": "Gets a logs-based metric.", | 475 "description": "Gets a logs-based metric.", |
388 "httpMethod": "GET", | 476 "httpMethod": "GET", |
389 "id": "logging.projects.metrics.get", | 477 "id": "logging.projects.metrics.get", |
390 "parameterOrder": [ | 478 "parameterOrder": [ |
391 "metricName" | 479 "metricName" |
392 ], | 480 ], |
393 "parameters": { | 481 "parameters": { |
394 "metricName": { | 482 "metricName": { |
395 "description": "The resource name of the des
ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", | 483 "description": "The resource name of the des
ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
(...skipping 15 matching lines...) Expand all Loading... |
411 ] | 499 ] |
412 }, | 500 }, |
413 "list": { | 501 "list": { |
414 "description": "Lists logs-based metrics.", | 502 "description": "Lists logs-based metrics.", |
415 "httpMethod": "GET", | 503 "httpMethod": "GET", |
416 "id": "logging.projects.metrics.list", | 504 "id": "logging.projects.metrics.list", |
417 "parameterOrder": [ | 505 "parameterOrder": [ |
418 "parent" | 506 "parent" |
419 ], | 507 ], |
420 "parameters": { | 508 "parameters": { |
421 "parent": { | |
422 "description": "Required. The name of the pr
oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n", | |
423 "location": "path", | |
424 "pattern": "^projects/[^/]+$", | |
425 "required": true, | |
426 "type": "string" | |
427 }, | |
428 "pageToken": { | 509 "pageToken": { |
429 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | 510 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
430 "location": "query", | 511 "location": "query", |
431 "type": "string" | 512 "type": "string" |
432 }, | 513 }, |
433 "pageSize": { | 514 "pageSize": { |
434 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | 515 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
435 "format": "int32", | 516 "format": "int32", |
436 "location": "query", | 517 "location": "query", |
437 "type": "integer" | 518 "type": "integer" |
| 519 }, |
| 520 "parent": { |
| 521 "description": "Required. The name of the pr
oject containing the metrics:\n\"projects/[PROJECT_ID]\"\n", |
| 522 "location": "path", |
| 523 "pattern": "^projects/[^/]+$", |
| 524 "required": true, |
| 525 "type": "string" |
438 } | 526 } |
439 }, | 527 }, |
440 "path": "v2beta1/{+parent}/metrics", | 528 "path": "v2beta1/{+parent}/metrics", |
441 "response": { | 529 "response": { |
442 "$ref": "ListLogMetricsResponse" | 530 "$ref": "ListLogMetricsResponse" |
443 }, | 531 }, |
444 "scopes": [ | 532 "scopes": [ |
445 "https://www.googleapis.com/auth/cloud-platform"
, | 533 "https://www.googleapis.com/auth/cloud-platform"
, |
446 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 534 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
447 "https://www.googleapis.com/auth/logging.admin", | 535 "https://www.googleapis.com/auth/logging.admin", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 "$ref": "LogMetric" | 586 "$ref": "LogMetric" |
499 }, | 587 }, |
500 "response": { | 588 "response": { |
501 "$ref": "LogMetric" | 589 "$ref": "LogMetric" |
502 }, | 590 }, |
503 "scopes": [ | 591 "scopes": [ |
504 "https://www.googleapis.com/auth/cloud-platform"
, | 592 "https://www.googleapis.com/auth/cloud-platform"
, |
505 "https://www.googleapis.com/auth/logging.admin", | 593 "https://www.googleapis.com/auth/logging.admin", |
506 "https://www.googleapis.com/auth/logging.write" | 594 "https://www.googleapis.com/auth/logging.write" |
507 ] | 595 ] |
| 596 }, |
| 597 "delete": { |
| 598 "description": "Deletes a logs-based metric.", |
| 599 "httpMethod": "DELETE", |
| 600 "id": "logging.projects.metrics.delete", |
| 601 "parameterOrder": [ |
| 602 "metricName" |
| 603 ], |
| 604 "parameters": { |
| 605 "metricName": { |
| 606 "description": "The resource name of the met
ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
| 607 "location": "path", |
| 608 "pattern": "^projects/[^/]+/metrics/[^/]+$", |
| 609 "required": true, |
| 610 "type": "string" |
| 611 } |
| 612 }, |
| 613 "path": "v2beta1/{+metricName}", |
| 614 "response": { |
| 615 "$ref": "Empty" |
| 616 }, |
| 617 "scopes": [ |
| 618 "https://www.googleapis.com/auth/cloud-platform"
, |
| 619 "https://www.googleapis.com/auth/logging.admin", |
| 620 "https://www.googleapis.com/auth/logging.write" |
| 621 ] |
508 } | 622 } |
509 } | 623 } |
510 } | 624 } |
511 } | 625 } |
512 }, | 626 }, |
513 "billingAccounts": { | 627 "billingAccounts": { |
514 "resources": { | 628 "resources": { |
515 "logs": { | 629 "logs": { |
516 "methods": { | 630 "methods": { |
517 "delete": { | |
518 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", | |
519 "httpMethod": "DELETE", | |
520 "id": "logging.billingAccounts.logs.delete", | |
521 "parameterOrder": [ | |
522 "logName" | |
523 ], | |
524 "parameters": { | |
525 "logName": { | |
526 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[
LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded.
For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/
logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou
t log names, see LogEntry.", | |
527 "location": "path", | |
528 "pattern": "^billingAccounts/[^/]+/logs/[^/]
+$", | |
529 "required": true, | |
530 "type": "string" | |
531 } | |
532 }, | |
533 "path": "v2beta1/{+logName}", | |
534 "response": { | |
535 "$ref": "Empty" | |
536 }, | |
537 "scopes": [ | |
538 "https://www.googleapis.com/auth/cloud-platform"
, | |
539 "https://www.googleapis.com/auth/logging.admin" | |
540 ] | |
541 }, | |
542 "list": { | 631 "list": { |
543 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", | 632 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", |
544 "httpMethod": "GET", | 633 "httpMethod": "GET", |
545 "id": "logging.billingAccounts.logs.list", | 634 "id": "logging.billingAccounts.logs.list", |
546 "parameterOrder": [ | 635 "parameterOrder": [ |
547 "parent" | 636 "parent" |
548 ], | 637 ], |
549 "parameters": { | 638 "parameters": { |
550 "pageToken": { | |
551 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
552 "location": "query", | |
553 "type": "string" | |
554 }, | |
555 "pageSize": { | 639 "pageSize": { |
556 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | 640 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
557 "format": "int32", | 641 "format": "int32", |
558 "location": "query", | 642 "location": "query", |
559 "type": "integer" | 643 "type": "integer" |
560 }, | 644 }, |
561 "parent": { | 645 "parent": { |
562 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", | 646 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
563 "location": "path", | 647 "location": "path", |
564 "pattern": "^billingAccounts/[^/]+$", | 648 "pattern": "^billingAccounts/[^/]+$", |
565 "required": true, | 649 "required": true, |
566 "type": "string" | 650 "type": "string" |
| 651 }, |
| 652 "pageToken": { |
| 653 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 654 "location": "query", |
| 655 "type": "string" |
567 } | 656 } |
568 }, | 657 }, |
569 "path": "v2beta1/{+parent}/logs", | 658 "path": "v2beta1/{+parent}/logs", |
570 "response": { | 659 "response": { |
571 "$ref": "ListLogsResponse" | 660 "$ref": "ListLogsResponse" |
572 }, | 661 }, |
573 "scopes": [ | 662 "scopes": [ |
574 "https://www.googleapis.com/auth/cloud-platform"
, | 663 "https://www.googleapis.com/auth/cloud-platform"
, |
575 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 664 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
576 "https://www.googleapis.com/auth/logging.admin", | 665 "https://www.googleapis.com/auth/logging.admin", |
577 "https://www.googleapis.com/auth/logging.read" | 666 "https://www.googleapis.com/auth/logging.read" |
578 ] | 667 ] |
| 668 }, |
| 669 "delete": { |
| 670 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", |
| 671 "httpMethod": "DELETE", |
| 672 "id": "logging.billingAccounts.logs.delete", |
| 673 "parameterOrder": [ |
| 674 "logName" |
| 675 ], |
| 676 "parameters": { |
| 677 "logName": { |
| 678 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[
LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded.
For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/
logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou
t log names, see LogEntry.", |
| 679 "location": "path", |
| 680 "pattern": "^billingAccounts/[^/]+/logs/[^/]
+$", |
| 681 "required": true, |
| 682 "type": "string" |
| 683 } |
| 684 }, |
| 685 "path": "v2beta1/{+logName}", |
| 686 "response": { |
| 687 "$ref": "Empty" |
| 688 }, |
| 689 "scopes": [ |
| 690 "https://www.googleapis.com/auth/cloud-platform"
, |
| 691 "https://www.googleapis.com/auth/logging.admin" |
| 692 ] |
579 } | 693 } |
580 } | 694 } |
581 } | 695 } |
582 } | 696 } |
583 }, | 697 }, |
584 "monitoredResourceDescriptors": { | 698 "monitoredResourceDescriptors": { |
585 "methods": { | 699 "methods": { |
586 "list": { | 700 "list": { |
587 "description": "Lists the descriptors for monitored resource
types used by Stackdriver Logging.", | 701 "description": "Lists the descriptors for monitored resource
types used by Stackdriver Logging.", |
588 "httpMethod": "GET", | 702 "httpMethod": "GET", |
589 "id": "logging.monitoredResourceDescriptors.list", | 703 "id": "logging.monitoredResourceDescriptors.list", |
590 "parameterOrder": [], | 704 "parameterOrder": [], |
591 "parameters": { | 705 "parameters": { |
592 "pageToken": { | |
593 "description": "Optional. If present, then retrieve
the next batch of results from the preceding call to this method. pageToken must
be the value of nextPageToken from the previous response. The values of other m
ethod parameters should be identical to those in the previous call.", | |
594 "location": "query", | |
595 "type": "string" | |
596 }, | |
597 "pageSize": { | 706 "pageSize": { |
598 "description": "Optional. The maximum number of resu
lts to return from this request. Non-positive values are ignored. The presence o
f nextPageToken in the response indicates that more results might be available."
, | 707 "description": "Optional. The maximum number of resu
lts to return from this request. Non-positive values are ignored. The presence o
f nextPageToken in the response indicates that more results might be available."
, |
599 "format": "int32", | 708 "format": "int32", |
600 "location": "query", | 709 "location": "query", |
601 "type": "integer" | 710 "type": "integer" |
| 711 }, |
| 712 "pageToken": { |
| 713 "description": "Optional. If present, then retrieve
the next batch of results from the preceding call to this method. pageToken must
be the value of nextPageToken from the previous response. The values of other m
ethod parameters should be identical to those in the previous call.", |
| 714 "location": "query", |
| 715 "type": "string" |
602 } | 716 } |
603 }, | 717 }, |
604 "path": "v2beta1/monitoredResourceDescriptors", | 718 "path": "v2beta1/monitoredResourceDescriptors", |
605 "response": { | 719 "response": { |
606 "$ref": "ListMonitoredResourceDescriptorsResponse" | 720 "$ref": "ListMonitoredResourceDescriptorsResponse" |
607 }, | 721 }, |
608 "scopes": [ | 722 "scopes": [ |
609 "https://www.googleapis.com/auth/cloud-platform", | 723 "https://www.googleapis.com/auth/cloud-platform", |
610 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | 724 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
611 "https://www.googleapis.com/auth/logging.admin", | 725 "https://www.googleapis.com/auth/logging.admin", |
612 "https://www.googleapis.com/auth/logging.read" | 726 "https://www.googleapis.com/auth/logging.read" |
613 ] | 727 ] |
614 } | 728 } |
615 } | 729 } |
616 }, | |
617 "organizations": { | |
618 "resources": { | |
619 "logs": { | |
620 "methods": { | |
621 "delete": { | |
622 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries. Log entries written shortly befo
re the delete operation might not be deleted.", | |
623 "httpMethod": "DELETE", | |
624 "id": "logging.organizations.logs.delete", | |
625 "parameterOrder": [ | |
626 "logName" | |
627 ], | |
628 "parameters": { | |
629 "logName": { | |
630 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[
LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded.
For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/
logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information abou
t log names, see LogEntry.", | |
631 "location": "path", | |
632 "pattern": "^organizations/[^/]+/logs/[^/]+$
", | |
633 "required": true, | |
634 "type": "string" | |
635 } | |
636 }, | |
637 "path": "v2beta1/{+logName}", | |
638 "response": { | |
639 "$ref": "Empty" | |
640 }, | |
641 "scopes": [ | |
642 "https://www.googleapis.com/auth/cloud-platform"
, | |
643 "https://www.googleapis.com/auth/logging.admin" | |
644 ] | |
645 }, | |
646 "list": { | |
647 "description": "Lists the logs in projects, organiza
tions, folders, or billing accounts. Only logs that have entries are listed.", | |
648 "httpMethod": "GET", | |
649 "id": "logging.organizations.logs.list", | |
650 "parameterOrder": [ | |
651 "parent" | |
652 ], | |
653 "parameters": { | |
654 "pageToken": { | |
655 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
656 "location": "query", | |
657 "type": "string" | |
658 }, | |
659 "pageSize": { | |
660 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | |
661 "format": "int32", | |
662 "location": "query", | |
663 "type": "integer" | |
664 }, | |
665 "parent": { | |
666 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", | |
667 "location": "path", | |
668 "pattern": "^organizations/[^/]+$", | |
669 "required": true, | |
670 "type": "string" | |
671 } | |
672 }, | |
673 "path": "v2beta1/{+parent}/logs", | |
674 "response": { | |
675 "$ref": "ListLogsResponse" | |
676 }, | |
677 "scopes": [ | |
678 "https://www.googleapis.com/auth/cloud-platform"
, | |
679 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
680 "https://www.googleapis.com/auth/logging.admin", | |
681 "https://www.googleapis.com/auth/logging.read" | |
682 ] | |
683 } | |
684 } | |
685 } | |
686 } | |
687 }, | |
688 "entries": { | |
689 "methods": { | |
690 "write": { | |
691 "description": "Writes log entries to Stackdriver Logging.", | |
692 "httpMethod": "POST", | |
693 "id": "logging.entries.write", | |
694 "parameterOrder": [], | |
695 "parameters": {}, | |
696 "path": "v2beta1/entries:write", | |
697 "request": { | |
698 "$ref": "WriteLogEntriesRequest" | |
699 }, | |
700 "response": { | |
701 "$ref": "WriteLogEntriesResponse" | |
702 }, | |
703 "scopes": [ | |
704 "https://www.googleapis.com/auth/cloud-platform", | |
705 "https://www.googleapis.com/auth/logging.admin", | |
706 "https://www.googleapis.com/auth/logging.write" | |
707 ] | |
708 }, | |
709 "list": { | |
710 "description": "Lists log entries. Use this method to retrie
ve log entries from Stackdriver Logging. For ways to export log entries, see Exp
orting Logs.", | |
711 "httpMethod": "POST", | |
712 "id": "logging.entries.list", | |
713 "parameterOrder": [], | |
714 "parameters": {}, | |
715 "path": "v2beta1/entries:list", | |
716 "request": { | |
717 "$ref": "ListLogEntriesRequest" | |
718 }, | |
719 "response": { | |
720 "$ref": "ListLogEntriesResponse" | |
721 }, | |
722 "scopes": [ | |
723 "https://www.googleapis.com/auth/cloud-platform", | |
724 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | |
725 "https://www.googleapis.com/auth/logging.admin", | |
726 "https://www.googleapis.com/auth/logging.read" | |
727 ] | |
728 } | |
729 } | |
730 } | 730 } |
731 }, | 731 }, |
732 "revision": "20170717", | 732 "revision": "20170814", |
733 "rootUrl": "https://logging.googleapis.com/", | 733 "rootUrl": "https://logging.googleapis.com/", |
734 "schemas": { | 734 "schemas": { |
735 "RequestLog": { | |
736 "description": "Complete log information about a single HTTP request
to an App Engine application.", | |
737 "id": "RequestLog", | |
738 "properties": { | |
739 "userAgent": { | |
740 "description": "User agent that made the request.", | |
741 "type": "string" | |
742 }, | |
743 "wasLoadingRequest": { | |
744 "description": "Whether this was a loading request for the i
nstance.", | |
745 "type": "boolean" | |
746 }, | |
747 "sourceReference": { | |
748 "description": "Source code for the application that handled
this request. There can be more than one source reference per deployed applicat
ion if source code is distributed among multiple repositories.", | |
749 "items": { | |
750 "$ref": "SourceReference" | |
751 }, | |
752 "type": "array" | |
753 }, | |
754 "responseSize": { | |
755 "description": "Size in bytes sent back to client by request
.", | |
756 "format": "int64", | |
757 "type": "string" | |
758 }, | |
759 "traceId": { | |
760 "description": "Stackdriver Trace identifier for this reques
t.", | |
761 "type": "string" | |
762 }, | |
763 "line": { | |
764 "description": "A list of log lines emitted by the applicati
on while serving this request.", | |
765 "items": { | |
766 "$ref": "LogLine" | |
767 }, | |
768 "type": "array" | |
769 }, | |
770 "referrer": { | |
771 "description": "Referrer URL of request.", | |
772 "type": "string" | |
773 }, | |
774 "taskQueueName": { | |
775 "description": "Queue name of the request, in the case of an
offline request.", | |
776 "type": "string" | |
777 }, | |
778 "requestId": { | |
779 "description": "Globally unique identifier for a request, wh
ich is based on the request start time. Request IDs for requests which started l
ater will compare greater as strings than those for requests which started earli
er.", | |
780 "type": "string" | |
781 }, | |
782 "nickname": { | |
783 "description": "The logged-in user who made the request.Most
likely, this is the part of the user's email before the @ sign. The field value
is the same for different requests from the same user, but different users can
have similar names. This information is also available to the application via th
e App Engine Users API.This field will be populated starting with App Engine 1.9
.21.", | |
784 "type": "string" | |
785 }, | |
786 "status": { | |
787 "description": "HTTP response status code. Example: 200, 404
.", | |
788 "format": "int32", | |
789 "type": "integer" | |
790 }, | |
791 "resource": { | |
792 "description": "Contains the path and query portion of the U
RL that was requested. For example, if the URL was \"http://example.com/app?name
=val\", the resource would be \"/app?name=val\". The fragment identifier, which
is identified by the # character, is not included.", | |
793 "type": "string" | |
794 }, | |
795 "pendingTime": { | |
796 "description": "Time this request spent in the pending reque
st queue.", | |
797 "format": "google-duration", | |
798 "type": "string" | |
799 }, | |
800 "taskName": { | |
801 "description": "Task name of the request, in the case of an
offline request.", | |
802 "type": "string" | |
803 }, | |
804 "urlMapEntry": { | |
805 "description": "File or class that handled the request.", | |
806 "type": "string" | |
807 }, | |
808 "instanceIndex": { | |
809 "description": "If the instance processing this request belo
ngs to a manually scaled module, then this is the 0-based index of the instance.
Otherwise, this value is -1.", | |
810 "format": "int32", | |
811 "type": "integer" | |
812 }, | |
813 "finished": { | |
814 "description": "Whether this request is finished or active."
, | |
815 "type": "boolean" | |
816 }, | |
817 "host": { | |
818 "description": "Internet host and port number of the resourc
e being requested.", | |
819 "type": "string" | |
820 }, | |
821 "httpVersion": { | |
822 "description": "HTTP version of request. Example: \"HTTP/1.1
\".", | |
823 "type": "string" | |
824 }, | |
825 "startTime": { | |
826 "description": "Time when the request started.", | |
827 "format": "google-datetime", | |
828 "type": "string" | |
829 }, | |
830 "latency": { | |
831 "description": "Latency of the request.", | |
832 "format": "google-duration", | |
833 "type": "string" | |
834 }, | |
835 "ip": { | |
836 "description": "Origin IP address.", | |
837 "type": "string" | |
838 }, | |
839 "appId": { | |
840 "description": "Application that handled this request.", | |
841 "type": "string" | |
842 }, | |
843 "appEngineRelease": { | |
844 "description": "App Engine release version.", | |
845 "type": "string" | |
846 }, | |
847 "method": { | |
848 "description": "Request method. Example: \"GET\", \"HEAD\",
\"PUT\", \"POST\", \"DELETE\".", | |
849 "type": "string" | |
850 }, | |
851 "cost": { | |
852 "description": "An indication of the relative cost of servin
g this request.", | |
853 "format": "double", | |
854 "type": "number" | |
855 }, | |
856 "instanceId": { | |
857 "description": "An identifier for the instance that handled
the request.", | |
858 "type": "string" | |
859 }, | |
860 "megaCycles": { | |
861 "description": "Number of CPU megacycles used to process req
uest.", | |
862 "format": "int64", | |
863 "type": "string" | |
864 }, | |
865 "first": { | |
866 "description": "Whether this is the first RequestLog entry f
or this request. If an active request has several RequestLog entries written to
Stackdriver Logging, then this field will be set for one of them.", | |
867 "type": "boolean" | |
868 }, | |
869 "versionId": { | |
870 "description": "Version of the application that handled this
request.", | |
871 "type": "string" | |
872 }, | |
873 "moduleId": { | |
874 "description": "Module of the application that handled this
request.", | |
875 "type": "string" | |
876 }, | |
877 "endTime": { | |
878 "description": "Time when the request finished.", | |
879 "format": "google-datetime", | |
880 "type": "string" | |
881 } | |
882 }, | |
883 "type": "object" | |
884 }, | |
885 "ListMonitoredResourceDescriptorsResponse": { | |
886 "description": "Result returned from ListMonitoredResourceDescriptor
s.", | |
887 "id": "ListMonitoredResourceDescriptorsResponse", | |
888 "properties": { | |
889 "nextPageToken": { | |
890 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, | |
891 "type": "string" | |
892 }, | |
893 "resourceDescriptors": { | |
894 "description": "A list of resource descriptors.", | |
895 "items": { | |
896 "$ref": "MonitoredResourceDescriptor" | |
897 }, | |
898 "type": "array" | |
899 } | |
900 }, | |
901 "type": "object" | |
902 }, | |
903 "SourceReference": { | |
904 "description": "A reference to a particular snapshot of the source t
ree used to build and deploy an application.", | |
905 "id": "SourceReference", | |
906 "properties": { | |
907 "repository": { | |
908 "description": "Optional. A URI string identifying the repos
itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", | |
909 "type": "string" | |
910 }, | |
911 "revisionId": { | |
912 "description": "The canonical and persistent identifier of t
he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\
"", | |
913 "type": "string" | |
914 } | |
915 }, | |
916 "type": "object" | |
917 }, | |
918 "WriteLogEntriesResponse": { | |
919 "description": "Result returned from WriteLogEntries. empty", | |
920 "id": "WriteLogEntriesResponse", | |
921 "properties": {}, | |
922 "type": "object" | |
923 }, | |
924 "LogEntryOperation": { | |
925 "description": "Additional information about a potentially long-runn
ing operation with which a log entry is associated.", | |
926 "id": "LogEntryOperation", | |
927 "properties": { | |
928 "last": { | |
929 "description": "Optional. Set this to True if this is the la
st log entry in the operation.", | |
930 "type": "boolean" | |
931 }, | |
932 "id": { | |
933 "description": "Optional. An arbitrary operation identifier.
Log entries with the same identifier are assumed to be part of the same operati
on.", | |
934 "type": "string" | |
935 }, | |
936 "first": { | |
937 "description": "Optional. Set this to True if this is the fi
rst log entry in the operation.", | |
938 "type": "boolean" | |
939 }, | |
940 "producer": { | |
941 "description": "Optional. An arbitrary producer identifier.
The combination of id and producer must be globally unique. Examples for produce
r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", | |
942 "type": "string" | |
943 } | |
944 }, | |
945 "type": "object" | |
946 }, | |
947 "LogMetric": { | |
948 "description": "Describes a logs-based metric. The value of the metr
ic is the number of log entries that match a logs filter in a given time interva
l.", | |
949 "id": "LogMetric", | |
950 "properties": { | |
951 "name": { | |
952 "description": "Required. The client-assigned metric identif
ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite
d to 100 characters and can include only the following characters: A-Z, a-z, 0-9
, and the special characters _-.,+!*',()%/. The forward-slash character (/) deno
tes a hierarchy of name pieces, and it cannot be the first character of the name
.The metric identifier in this field must not be URL-encoded (https://en.wikiped
ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th
e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu
st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", | |
953 "type": "string" | |
954 }, | |
955 "description": { | |
956 "description": "Optional. A description of this metric, whic
h is used in documentation.", | |
957 "type": "string" | |
958 }, | |
959 "version": { | |
960 "description": "Output only. The API version that created or
updated this metric. The version also dictates the syntax of the filter express
ion. When a value for this field is missing, the default value of V2 should be a
ssumed.", | |
961 "enum": [ | |
962 "V2", | |
963 "V1" | |
964 ], | |
965 "enumDescriptions": [ | |
966 "Stackdriver Logging API v2.", | |
967 "Stackdriver Logging API v1." | |
968 ], | |
969 "type": "string" | |
970 }, | |
971 "filter": { | |
972 "description": "Required. An advanced logs filter which is u
sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\
"\nThe maximum length of the filter is 20000 characters.", | |
973 "type": "string" | |
974 } | |
975 }, | |
976 "type": "object" | |
977 }, | |
978 "MonitoredResource": { | |
979 "description": "An object representing a resource that can be used f
or monitoring, logging, billing, or other purposes. Examples include virtual mac
hine instances, databases, and storage devices such as disks. The type field ide
ntifies a MonitoredResourceDescriptor object that describes the resource's schem
a. Information in the labels field identifies the actual resource and its attrib
utes according to the schema. For example, a particular Compute Engine VM instan
ce could be represented by the following object, because the MonitoredResourceDe
scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type
\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n
\"zone\": \"us-central1-a\" }}\n", | |
980 "id": "MonitoredResource", | |
981 "properties": { | |
982 "type": { | |
983 "description": "Required. The monitored resource type. This
field must match the type field of a MonitoredResourceDescriptor object. For exa
mple, the type of a Compute Engine VM instance is gce_instance.", | |
984 "type": "string" | |
985 }, | |
986 "labels": { | |
987 "additionalProperties": { | |
988 "type": "string" | |
989 }, | |
990 "description": "Required. Values for all of the labels liste
d in the associated monitored resource descriptor. For example, Compute Engine V
M instances use the labels \"project_id\", \"instance_id\", and \"zone\".", | |
991 "type": "object" | |
992 } | |
993 }, | |
994 "type": "object" | |
995 }, | |
996 "WriteLogEntriesRequest": { | |
997 "description": "The parameters to WriteLogEntries.", | |
998 "id": "WriteLogEntriesRequest", | |
999 "properties": { | |
1000 "partialSuccess": { | |
1001 "description": "Optional. Whether valid entries should be wr
itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI
ED errors. If any entry is not written, then the response status is the error as
sociated with one of the failed entries and the response includes error details
keyed by the entries' zero-based index in the entries.write method.", | |
1002 "type": "boolean" | |
1003 }, | |
1004 "labels": { | |
1005 "additionalProperties": { | |
1006 "type": "string" | |
1007 }, | |
1008 "description": "Optional. Default labels that are added to t
he labels field of all log entries in entries. If a log entry already has a labe
l with the same key as a label in this parameter, then the log entry's label is
not changed. See LogEntry.", | |
1009 "type": "object" | |
1010 }, | |
1011 "resource": { | |
1012 "$ref": "MonitoredResource", | |
1013 "description": "Optional. A default monitored resource objec
t that is assigned to all log entries in entries that do not specify a value for
resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\
": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry
." | |
1014 }, | |
1015 "entries": { | |
1016 "description": "Required. The log entries to write. Values s
upplied for the fields log_name, resource, and labels in this entries.write requ
est are inserted into those log entries in this list that do not provide their o
wn values.Stackdriver Logging also creates and inserts values for timestamp and
insert_id if the entries do not provide them. The created insert_id for the N'th
entry in this list will be greater than earlier entries and less than later ent
ries. Otherwise, the order of log entries in this list does not matter.To improv
e throughput and to avoid exceeding the quota limit for calls to entries.write,
you should write multiple log entries at once rather than calling this method fo
r each individual log entry.", | |
1017 "items": { | |
1018 "$ref": "LogEntry" | |
1019 }, | |
1020 "type": "array" | |
1021 }, | |
1022 "logName": { | |
1023 "description": "Optional. A default log resource name that i
s assigned to all log entries in entries that do not specify a value for log_nam
e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l
ogs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folder
s/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"proj
ects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourc
emanager.googleapis.com%2Factivity\". For more information about log names, see
LogEntry.", | |
1024 "type": "string" | |
1025 } | |
1026 }, | |
1027 "type": "object" | |
1028 }, | |
1029 "LogSink": { | |
1030 "description": "Describes a sink used to export log entries to one o
f the following destinations in any project: a Cloud Storage bucket, a BigQuery
dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are
exported. The sink must be created within a project, organization, billing accou
nt, or folder.", | |
1031 "id": "LogSink", | |
1032 "properties": { | |
1033 "name": { | |
1034 "description": "Required. The client-assigned sink identifie
r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden
tifiers are limited to 100 characters and can include only the following charact
ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per
iods.", | |
1035 "type": "string" | |
1036 }, | |
1037 "includeChildren": { | |
1038 "description": "Optional. This field applies only to sinks o
wned by organizations and folders. If the field is false, the default, only the
logs owned by the sink's parent resource are available for export. If the field
is true, then logs from all the projects, folders, and billing accounts containe
d in the sink's parent resource are also available for export. Whether a particu
lar log entry from the children is exported depends on the sink's filter express
ion. For example, if this field is true, then the filter resource.type=gce_insta
nce would export all Compute Engine VM instance log entries from all projects in
the sink's parent. To only export entries from certain child projects, filter o
n the project part of the log name:\nlogName:(\"projects/test-project1/\" OR \"p
rojects/test-project2/\") AND\nresource.type=gce_instance\n", | |
1039 "type": "boolean" | |
1040 }, | |
1041 "filter": { | |
1042 "description": "Optional. An advanced logs filter. The only
exported log entries are those that are in the resource owning the sink and that
match the filter. The filter must use the log entry format specified by the out
put_version_format parameter. For example, in the v2 format:\nlogName=\"projects
/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", | |
1043 "type": "string" | |
1044 }, | |
1045 "destination": { | |
1046 "description": "Required. The export destination:\n\"storage
.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/
datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI
C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per
mission to write to the destination or else the log entries are not exported. Fo
r more information, see Exporting Logs With Sinks.", | |
1047 "type": "string" | |
1048 }, | |
1049 "endTime": { | |
1050 "description": "Optional. The time at which this sink will s
top exporting log entries. Log entries are exported only if their timestamp is e
arlier than the end time. If this field is not supplied, there is no end time. I
f both a start time and an end time are provided, then the end time must be late
r than the start time.", | |
1051 "format": "google-datetime", | |
1052 "type": "string" | |
1053 }, | |
1054 "writerIdentity": { | |
1055 "description": "Output only. An IAM identity—a service
account or group—under which Stackdriver Logging writes the exported log
entries to the sink's destination. This field is set by sinks.create and sinks.u
pdate, based on the setting of unique_writer_identity in those methods.Until you
grant this identity write-access to the destination, log entry exports from thi
s sink will fail. For more information, see Granting access for a resource. Cons
ult the destination service's documentation to determine the appropriate IAM rol
es to assign to the identity.", | |
1056 "type": "string" | |
1057 }, | |
1058 "startTime": { | |
1059 "description": "Optional. The time at which this sink will b
egin exporting log entries. Log entries are exported only if their timestamp is
not earlier than the start time. The default value of this field is the time the
sink is created or updated.", | |
1060 "format": "google-datetime", | |
1061 "type": "string" | |
1062 }, | |
1063 "outputVersionFormat": { | |
1064 "description": "Deprecated. The log entry format to use for
this sink's exported log entries. The v2 format is used by default and cannot be
changed.", | |
1065 "enum": [ | |
1066 "VERSION_FORMAT_UNSPECIFIED", | |
1067 "V2", | |
1068 "V1" | |
1069 ], | |
1070 "enumDescriptions": [ | |
1071 "An unspecified format version that will default to V2."
, | |
1072 "LogEntry version 2 format.", | |
1073 "LogEntry version 1 format." | |
1074 ], | |
1075 "type": "string" | |
1076 } | |
1077 }, | |
1078 "type": "object" | |
1079 }, | |
1080 "ListLogsResponse": { | 735 "ListLogsResponse": { |
1081 "description": "Result returned from ListLogs.", | 736 "description": "Result returned from ListLogs.", |
1082 "id": "ListLogsResponse", | 737 "id": "ListLogsResponse", |
1083 "properties": { | 738 "properties": { |
| 739 "logNames": { |
| 740 "description": "A list of log names. For example, \"projects
/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%
2Factivity\".", |
| 741 "items": { |
| 742 "type": "string" |
| 743 }, |
| 744 "type": "array" |
| 745 }, |
1084 "nextPageToken": { | 746 "nextPageToken": { |
1085 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, | 747 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, |
1086 "type": "string" | 748 "type": "string" |
1087 }, | |
1088 "logNames": { | |
1089 "description": "A list of log names. For example, \"projects
/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%
2Factivity\".", | |
1090 "items": { | |
1091 "type": "string" | |
1092 }, | |
1093 "type": "array" | |
1094 } | 749 } |
1095 }, | 750 }, |
1096 "type": "object" | 751 "type": "object" |
1097 }, | 752 }, |
1098 "ListSinksResponse": { | 753 "ListSinksResponse": { |
1099 "description": "Result returned from ListSinks.", | 754 "description": "Result returned from ListSinks.", |
1100 "id": "ListSinksResponse", | 755 "id": "ListSinksResponse", |
1101 "properties": { | 756 "properties": { |
1102 "nextPageToken": { | 757 "nextPageToken": { |
1103 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call the same method again using the value of nextPageToken as pageToken.", | 758 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call the same method again using the value of nextPageToken as pageToken.", |
1104 "type": "string" | 759 "type": "string" |
1105 }, | 760 }, |
1106 "sinks": { | 761 "sinks": { |
1107 "description": "A list of sinks.", | 762 "description": "A list of sinks.", |
1108 "items": { | 763 "items": { |
1109 "$ref": "LogSink" | 764 "$ref": "LogSink" |
1110 }, | 765 }, |
1111 "type": "array" | 766 "type": "array" |
1112 } | 767 } |
1113 }, | 768 }, |
1114 "type": "object" | 769 "type": "object" |
1115 }, | 770 }, |
1116 "HttpRequest": { | 771 "HttpRequest": { |
1117 "description": "A common proto for logging HTTP requests. Only conta
ins semantics defined by the HTTP specification. Product-specific logging inform
ation MUST be defined in a separate message.", | 772 "description": "A common proto for logging HTTP requests. Only conta
ins semantics defined by the HTTP specification. Product-specific logging inform
ation MUST be defined in a separate message.", |
1118 "id": "HttpRequest", | 773 "id": "HttpRequest", |
1119 "properties": { | 774 "properties": { |
| 775 "userAgent": { |
| 776 "description": "The user agent sent by the client. Example:
\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"."
, |
| 777 "type": "string" |
| 778 }, |
| 779 "latency": { |
| 780 "description": "The request processing latency on the server
, from the time the request was received until the response was sent.", |
| 781 "format": "google-duration", |
| 782 "type": "string" |
| 783 }, |
| 784 "cacheFillBytes": { |
| 785 "description": "The number of HTTP response bytes inserted i
nto cache. Set only when a cache fill was attempted.", |
| 786 "format": "int64", |
| 787 "type": "string" |
| 788 }, |
| 789 "requestMethod": { |
| 790 "description": "The request method. Examples: \"GET\", \"HEA
D\", \"PUT\", \"POST\".", |
| 791 "type": "string" |
| 792 }, |
| 793 "requestSize": { |
| 794 "description": "The size of the HTTP request message in byte
s, including the request headers and the request body.", |
| 795 "format": "int64", |
| 796 "type": "string" |
| 797 }, |
| 798 "responseSize": { |
| 799 "description": "The size of the HTTP response message sent b
ack to the client, in bytes, including the response headers and the response bod
y.", |
| 800 "format": "int64", |
| 801 "type": "string" |
| 802 }, |
| 803 "protocol": { |
| 804 "description": "Protocol used for the request. Examples: \"H
TTP/1.1\", \"HTTP/2\", \"websocket\"", |
| 805 "type": "string" |
| 806 }, |
1120 "requestUrl": { | 807 "requestUrl": { |
1121 "description": "The scheme (http, https), the host name, the
path and the query portion of the URL that was requested. Example: \"http://exa
mple.com/some/info?color=red\".", | 808 "description": "The scheme (http, https), the host name, the
path and the query portion of the URL that was requested. Example: \"http://exa
mple.com/some/info?color=red\".", |
1122 "type": "string" | 809 "type": "string" |
1123 }, | 810 }, |
| 811 "remoteIp": { |
| 812 "description": "The IP address (IPv4 or IPv6) of the client
that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:
8329\".", |
| 813 "type": "string" |
| 814 }, |
1124 "serverIp": { | 815 "serverIp": { |
1125 "description": "The IP address (IPv4 or IPv6) of the origin
server that the request was sent to.", | 816 "description": "The IP address (IPv4 or IPv6) of the origin
server that the request was sent to.", |
1126 "type": "string" | 817 "type": "string" |
1127 }, | 818 }, |
1128 "remoteIp": { | |
1129 "description": "The IP address (IPv4 or IPv6) of the client
that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:
8329\".", | |
1130 "type": "string" | |
1131 }, | |
1132 "cacheLookup": { | 819 "cacheLookup": { |
1133 "description": "Whether or not a cache lookup was attempted.
", | 820 "description": "Whether or not a cache lookup was attempted.
", |
1134 "type": "boolean" | 821 "type": "boolean" |
1135 }, | 822 }, |
1136 "cacheHit": { | 823 "cacheHit": { |
1137 "description": "Whether or not an entity was served from cac
he (with or without validation).", | 824 "description": "Whether or not an entity was served from cac
he (with or without validation).", |
1138 "type": "boolean" | 825 "type": "boolean" |
1139 }, | 826 }, |
1140 "cacheValidatedWithOriginServer": { | 827 "cacheValidatedWithOriginServer": { |
1141 "description": "Whether or not the response was validated wi
th the origin server before being served from cache. This field is only meaningf
ul if cache_hit is True.", | 828 "description": "Whether or not the response was validated wi
th the origin server before being served from cache. This field is only meaningf
ul if cache_hit is True.", |
1142 "type": "boolean" | 829 "type": "boolean" |
1143 }, | 830 }, |
1144 "status": { | 831 "status": { |
1145 "description": "The response code indicating the status of r
esponse. Examples: 200, 404.", | 832 "description": "The response code indicating the status of r
esponse. Examples: 200, 404.", |
1146 "format": "int32", | 833 "format": "int32", |
1147 "type": "integer" | 834 "type": "integer" |
1148 }, | 835 }, |
1149 "referer": { | 836 "referer": { |
1150 "description": "The referer URL of the request, as defined i
n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616
-sec14.html).", | 837 "description": "The referer URL of the request, as defined i
n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616
-sec14.html).", |
1151 "type": "string" | 838 "type": "string" |
1152 }, | |
1153 "userAgent": { | |
1154 "description": "The user agent sent by the client. Example:
\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"."
, | |
1155 "type": "string" | |
1156 }, | |
1157 "latency": { | |
1158 "description": "The request processing latency on the server
, from the time the request was received until the response was sent.", | |
1159 "format": "google-duration", | |
1160 "type": "string" | |
1161 }, | |
1162 "cacheFillBytes": { | |
1163 "description": "The number of HTTP response bytes inserted i
nto cache. Set only when a cache fill was attempted.", | |
1164 "format": "int64", | |
1165 "type": "string" | |
1166 }, | |
1167 "requestMethod": { | |
1168 "description": "The request method. Examples: \"GET\", \"HEA
D\", \"PUT\", \"POST\".", | |
1169 "type": "string" | |
1170 }, | |
1171 "responseSize": { | |
1172 "description": "The size of the HTTP response message sent b
ack to the client, in bytes, including the response headers and the response bod
y.", | |
1173 "format": "int64", | |
1174 "type": "string" | |
1175 }, | |
1176 "requestSize": { | |
1177 "description": "The size of the HTTP request message in byte
s, including the request headers and the request body.", | |
1178 "format": "int64", | |
1179 "type": "string" | |
1180 } | 839 } |
1181 }, | 840 }, |
1182 "type": "object" | 841 "type": "object" |
1183 }, | 842 }, |
1184 "LabelDescriptor": { | 843 "LabelDescriptor": { |
1185 "description": "A description of a label.", | 844 "description": "A description of a label.", |
1186 "id": "LabelDescriptor", | 845 "id": "LabelDescriptor", |
1187 "properties": { | 846 "properties": { |
| 847 "key": { |
| 848 "description": "The label key.", |
| 849 "type": "string" |
| 850 }, |
| 851 "description": { |
| 852 "description": "A human-readable description for the label."
, |
| 853 "type": "string" |
| 854 }, |
1188 "valueType": { | 855 "valueType": { |
1189 "description": "The type of data that can be assigned to the
label.", | 856 "description": "The type of data that can be assigned to the
label.", |
1190 "enum": [ | 857 "enum": [ |
1191 "STRING", | 858 "STRING", |
1192 "BOOL", | 859 "BOOL", |
1193 "INT64" | 860 "INT64" |
1194 ], | 861 ], |
1195 "enumDescriptions": [ | 862 "enumDescriptions": [ |
1196 "A variable-length string. This is the default.", | 863 "A variable-length string. This is the default.", |
1197 "Boolean; true or false.", | 864 "Boolean; true or false.", |
1198 "A 64-bit signed integer." | 865 "A 64-bit signed integer." |
1199 ], | 866 ], |
1200 "type": "string" | 867 "type": "string" |
1201 }, | |
1202 "key": { | |
1203 "description": "The label key.", | |
1204 "type": "string" | |
1205 }, | |
1206 "description": { | |
1207 "description": "A human-readable description for the label."
, | |
1208 "type": "string" | |
1209 } | 868 } |
1210 }, | 869 }, |
1211 "type": "object" | 870 "type": "object" |
1212 }, | 871 }, |
1213 "MonitoredResourceDescriptor": { | 872 "MonitoredResourceDescriptor": { |
1214 "description": "An object that describes the schema of a MonitoredRe
source object using a type name and a set of labels. For example, the monitored
resource descriptor for Google Compute Engine VM instances has a type of \"gce_i
nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id
entify particular VM instances.Different APIs can support different monitored re
source types. APIs generally provide a list method that returns the monitored re
source descriptors used by the API.", | 873 "description": "An object that describes the schema of a MonitoredRe
source object using a type name and a set of labels. For example, the monitored
resource descriptor for Google Compute Engine VM instances has a type of \"gce_i
nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id
entify particular VM instances.Different APIs can support different monitored re
source types. APIs generally provide a list method that returns the monitored re
source descriptors used by the API.", |
1215 "id": "MonitoredResourceDescriptor", | 874 "id": "MonitoredResourceDescriptor", |
1216 "properties": { | 875 "properties": { |
| 876 "description": { |
| 877 "description": "Optional. A detailed description of the moni
tored resource type that might be used in documentation.", |
| 878 "type": "string" |
| 879 }, |
| 880 "displayName": { |
| 881 "description": "Optional. A concise name for the monitored r
esource type that might be displayed in user interfaces. It should be a Title Ca
sed Noun Phrase, without any article or other determiners. For example, \"Google
Cloud SQL Database\".", |
| 882 "type": "string" |
| 883 }, |
| 884 "type": { |
| 885 "description": "Required. The monitored resource type. For e
xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL.
The maximum length of this value is 256 characters.", |
| 886 "type": "string" |
| 887 }, |
| 888 "labels": { |
| 889 "description": "Required. A set of labels used to describe i
nstances of this monitored resource type. For example, an individual Google Clou
d SQL database is identified by values for the labels \"database_id\" and \"zone
\".", |
| 890 "items": { |
| 891 "$ref": "LabelDescriptor" |
| 892 }, |
| 893 "type": "array" |
| 894 }, |
1217 "name": { | 895 "name": { |
1218 "description": "Optional. The resource name of the monitored
resource descriptor: \"projects/{project_id}/monitoredResourceDescriptors/{type
}\" where {type} is the value of the type field in this object and {project_id}
is a project ID that provides API-specific context for accessing the type. APIs
that do not use project information can use the resource name format \"monitored
ResourceDescriptors/{type}\".", | 896 "description": "Optional. The resource name of the monitored
resource descriptor: \"projects/{project_id}/monitoredResourceDescriptors/{type
}\" where {type} is the value of the type field in this object and {project_id}
is a project ID that provides API-specific context for accessing the type. APIs
that do not use project information can use the resource name format \"monitored
ResourceDescriptors/{type}\".", |
1219 "type": "string" | 897 "type": "string" |
1220 }, | |
1221 "description": { | |
1222 "description": "Optional. A detailed description of the moni
tored resource type that might be used in documentation.", | |
1223 "type": "string" | |
1224 }, | |
1225 "displayName": { | |
1226 "description": "Optional. A concise name for the monitored r
esource type that might be displayed in user interfaces. It should be a Title Ca
sed Noun Phrase, without any article or other determiners. For example, \"Google
Cloud SQL Database\".", | |
1227 "type": "string" | |
1228 }, | |
1229 "type": { | |
1230 "description": "Required. The monitored resource type. For e
xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL.
The maximum length of this value is 256 characters.", | |
1231 "type": "string" | |
1232 }, | |
1233 "labels": { | |
1234 "description": "Required. A set of labels used to describe i
nstances of this monitored resource type. For example, an individual Google Clou
d SQL database is identified by values for the labels \"database_id\" and \"zone
\".", | |
1235 "items": { | |
1236 "$ref": "LabelDescriptor" | |
1237 }, | |
1238 "type": "array" | |
1239 } | 898 } |
1240 }, | 899 }, |
1241 "type": "object" | 900 "type": "object" |
1242 }, | 901 }, |
1243 "LogEntrySourceLocation": { | 902 "LogEntrySourceLocation": { |
1244 "description": "Additional information about the source code locatio
n that produced the log entry.", | 903 "description": "Additional information about the source code locatio
n that produced the log entry.", |
1245 "id": "LogEntrySourceLocation", | 904 "id": "LogEntrySourceLocation", |
1246 "properties": { | 905 "properties": { |
| 906 "file": { |
| 907 "description": "Optional. Source file name. Depending on the
runtime environment, this might be a simple name or a fully-qualified name.", |
| 908 "type": "string" |
| 909 }, |
1247 "function": { | 910 "function": { |
1248 "description": "Optional. Human-readable name of the functio
n or method being invoked, with optional context such as the class or package na
me. This information may be used in contexts such as the logs viewer, where a fi
le and line number are less meaningful. The format can vary by language. For exa
mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).
", | 911 "description": "Optional. Human-readable name of the functio
n or method being invoked, with optional context such as the class or package na
me. This information may be used in contexts such as the logs viewer, where a fi
le and line number are less meaningful. The format can vary by language. For exa
mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).
", |
1249 "type": "string" | 912 "type": "string" |
1250 }, | 913 }, |
1251 "line": { | 914 "line": { |
1252 "description": "Optional. Line within the source file. 1-bas
ed; 0 indicates no line number available.", | 915 "description": "Optional. Line within the source file. 1-bas
ed; 0 indicates no line number available.", |
1253 "format": "int64", | 916 "format": "int64", |
1254 "type": "string" | 917 "type": "string" |
1255 }, | |
1256 "file": { | |
1257 "description": "Optional. Source file name. Depending on the
runtime environment, this might be a simple name or a fully-qualified name.", | |
1258 "type": "string" | |
1259 } | 918 } |
1260 }, | 919 }, |
1261 "type": "object" | 920 "type": "object" |
1262 }, | 921 }, |
1263 "ListLogEntriesResponse": { | 922 "ListLogEntriesResponse": { |
1264 "description": "Result returned from ListLogEntries.", | 923 "description": "Result returned from ListLogEntries.", |
1265 "id": "ListLogEntriesResponse", | 924 "id": "ListLogEntriesResponse", |
1266 "properties": { | 925 "properties": { |
| 926 "entries": { |
| 927 "description": "A list of log entries.", |
| 928 "items": { |
| 929 "$ref": "LogEntry" |
| 930 }, |
| 931 "type": "array" |
| 932 }, |
1267 "nextPageToken": { | 933 "nextPageToken": { |
1268 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken.I
f a value for next_page_token appears and the entries field is empty, it means t
hat the search found no log entries so far but it did not have time to search al
l the possible log entries. Retry the method with this value for page_token to c
ontinue the search. Alternatively, consider speeding up the search by changing y
our filter to specify a single log name or resource type, or to narrow the time
range of the search.", | 934 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken.I
f a value for next_page_token appears and the entries field is empty, it means t
hat the search found no log entries so far but it did not have time to search al
l the possible log entries. Retry the method with this value for page_token to c
ontinue the search. Alternatively, consider speeding up the search by changing y
our filter to specify a single log name or resource type, or to narrow the time
range of the search.", |
1269 "type": "string" | 935 "type": "string" |
1270 }, | |
1271 "entries": { | |
1272 "description": "A list of log entries.", | |
1273 "items": { | |
1274 "$ref": "LogEntry" | |
1275 }, | |
1276 "type": "array" | |
1277 } | 936 } |
1278 }, | 937 }, |
1279 "type": "object" | 938 "type": "object" |
1280 }, | 939 }, |
1281 "LogLine": { | 940 "LogLine": { |
1282 "description": "Application log line emitted while processing a requ
est.", | 941 "description": "Application log line emitted while processing a requ
est.", |
1283 "id": "LogLine", | 942 "id": "LogLine", |
1284 "properties": { | 943 "properties": { |
1285 "logMessage": { | 944 "logMessage": { |
1286 "description": "App-provided log message.", | 945 "description": "App-provided log message.", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 "format": "google-datetime", | 980 "format": "google-datetime", |
1322 "type": "string" | 981 "type": "string" |
1323 } | 982 } |
1324 }, | 983 }, |
1325 "type": "object" | 984 "type": "object" |
1326 }, | 985 }, |
1327 "ListLogMetricsResponse": { | 986 "ListLogMetricsResponse": { |
1328 "description": "Result returned from ListLogMetrics.", | 987 "description": "Result returned from ListLogMetrics.", |
1329 "id": "ListLogMetricsResponse", | 988 "id": "ListLogMetricsResponse", |
1330 "properties": { | 989 "properties": { |
| 990 "metrics": { |
| 991 "description": "A list of logs-based metrics.", |
| 992 "items": { |
| 993 "$ref": "LogMetric" |
| 994 }, |
| 995 "type": "array" |
| 996 }, |
1331 "nextPageToken": { | 997 "nextPageToken": { |
1332 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call this method again using the value of nextPageToken as pageToken.", | 998 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call this method again using the value of nextPageToken as pageToken.", |
1333 "type": "string" | 999 "type": "string" |
1334 }, | 1000 } |
1335 "metrics": { | 1001 }, |
1336 "description": "A list of logs-based metrics.", | |
1337 "items": { | |
1338 "$ref": "LogMetric" | |
1339 }, | |
1340 "type": "array" | |
1341 } | |
1342 }, | |
1343 "type": "object" | |
1344 }, | |
1345 "Empty": { | |
1346 "description": "A generic empty message that you can re-use to avoid
defining duplicated empty messages in your APIs. A typical example is to use it
as the request or the response type of an API method. For instance:\nservice Fo
o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J
SON representation for Empty is empty JSON object {}.", | |
1347 "id": "Empty", | |
1348 "properties": {}, | |
1349 "type": "object" | 1002 "type": "object" |
1350 }, | 1003 }, |
1351 "LogEntry": { | 1004 "LogEntry": { |
1352 "description": "An individual entry in a log.", | 1005 "description": "An individual entry in a log.", |
1353 "id": "LogEntry", | 1006 "id": "LogEntry", |
1354 "properties": { | 1007 "properties": { |
| 1008 "receiveTimestamp": { |
| 1009 "description": "Output only. The time the log entry was rece
ived by Stackdriver Logging.", |
| 1010 "format": "google-datetime", |
| 1011 "type": "string" |
| 1012 }, |
| 1013 "timestamp": { |
| 1014 "description": "Optional. The time the event described by th
e log entry occurred. If omitted in a new log entry, Stackdriver Logging will in
sert the time the log entry is received. Stackdriver Logging might reject log en
tries whose time stamps are more than a couple of hours in the future. Log entri
es with time stamps in the past are accepted.", |
| 1015 "format": "google-datetime", |
| 1016 "type": "string" |
| 1017 }, |
| 1018 "logName": { |
| 1019 "description": "Required. The resource name of the log to wh
ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza
tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/
logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-enc
oded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemana
ger.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long
and can only include the following characters: upper and lower case alphanumeric
characters, forward-slash, underscore, hyphen, and period.For backward compatib
ility, if log_name begins with a forward-slash, such as /projects/..., then the
log entry is ingested as usual but the forward-slash is removed. Listing the log
entry will not show the leading slash and filtering for a log name with a leadi
ng slash will never return any results.", |
| 1020 "type": "string" |
| 1021 }, |
| 1022 "httpRequest": { |
| 1023 "$ref": "HttpRequest", |
| 1024 "description": "Optional. Information about the HTTP request
associated with this log entry, if applicable." |
| 1025 }, |
| 1026 "resource": { |
| 1027 "$ref": "MonitoredResource", |
| 1028 "description": "Required. The monitored resource associated
with this log entry. Example: a log entry that reports a database error would be
associated with the monitored resource designating the particular database that
reported the error." |
| 1029 }, |
| 1030 "jsonPayload": { |
| 1031 "additionalProperties": { |
| 1032 "description": "Properties of the object.", |
| 1033 "type": "any" |
| 1034 }, |
| 1035 "description": "The log entry payload, represented as a stru
cture that is expressed as a JSON object.", |
| 1036 "type": "object" |
| 1037 }, |
| 1038 "insertId": { |
| 1039 "description": "Optional. A unique identifier for the log en
try. If you provide a value, then Stackdriver Logging considers other log entrie
s in the same project, with the same timestamp, and with the same insert_id to b
e duplicates which can be removed. If omitted in new log entries, then Stackdriv
er Logging will insert its own unique identifier. The insert_id is used to order
log entries that have the same timestamp value.", |
| 1040 "type": "string" |
| 1041 }, |
| 1042 "operation": { |
| 1043 "$ref": "LogEntryOperation", |
| 1044 "description": "Optional. Information about an operation ass
ociated with the log entry, if applicable." |
| 1045 }, |
| 1046 "textPayload": { |
| 1047 "description": "The log entry payload, represented as a Unic
ode string (UTF-8).", |
| 1048 "type": "string" |
| 1049 }, |
| 1050 "protoPayload": { |
| 1051 "additionalProperties": { |
| 1052 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1053 "type": "any" |
| 1054 }, |
| 1055 "description": "The log entry payload, represented as a prot
ocol buffer. Some Google Cloud Platform services use this field for their log en
try payloads.", |
| 1056 "type": "object" |
| 1057 }, |
| 1058 "trace": { |
| 1059 "description": "Optional. Resource name of the trace associa
ted with the log entry, if any. If it contains a relative resource name, the nam
e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr
ojectid/traces/06796866738c859f2f19b7cfb3214824", |
| 1060 "type": "string" |
| 1061 }, |
| 1062 "labels": { |
| 1063 "additionalProperties": { |
| 1064 "type": "string" |
| 1065 }, |
| 1066 "description": "Optional. A set of user-defined (key, value)
data that provides additional information about the log entry.", |
| 1067 "type": "object" |
| 1068 }, |
1355 "severity": { | 1069 "severity": { |
1356 "description": "Optional. The severity of the log entry. The
default value is LogSeverity.DEFAULT.", | 1070 "description": "Optional. The severity of the log entry. The
default value is LogSeverity.DEFAULT.", |
1357 "enum": [ | 1071 "enum": [ |
1358 "DEFAULT", | 1072 "DEFAULT", |
1359 "DEBUG", | 1073 "DEBUG", |
1360 "INFO", | 1074 "INFO", |
1361 "NOTICE", | 1075 "NOTICE", |
1362 "WARNING", | 1076 "WARNING", |
1363 "ERROR", | 1077 "ERROR", |
1364 "CRITICAL", | 1078 "CRITICAL", |
1365 "ALERT", | 1079 "ALERT", |
1366 "EMERGENCY" | 1080 "EMERGENCY" |
1367 ], | 1081 ], |
1368 "enumDescriptions": [ | 1082 "enumDescriptions": [ |
1369 "(0) The log entry has no assigned severity level.", | 1083 "(0) The log entry has no assigned severity level.", |
1370 "(100) Debug or trace information.", | 1084 "(100) Debug or trace information.", |
1371 "(200) Routine information, such as ongoing status or pe
rformance.", | 1085 "(200) Routine information, such as ongoing status or pe
rformance.", |
1372 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", | 1086 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", |
1373 "(400) Warning events might cause problems.", | 1087 "(400) Warning events might cause problems.", |
1374 "(500) Error events are likely to cause problems.", | 1088 "(500) Error events are likely to cause problems.", |
1375 "(600) Critical events cause more severe problems or out
ages.", | 1089 "(600) Critical events cause more severe problems or out
ages.", |
1376 "(700) A person must take an action immediately.", | 1090 "(700) A person must take an action immediately.", |
1377 "(800) One or more systems are unusable." | 1091 "(800) One or more systems are unusable." |
1378 ], | 1092 ], |
1379 "type": "string" | 1093 "type": "string" |
1380 }, | 1094 }, |
1381 "sourceLocation": { | 1095 "sourceLocation": { |
1382 "$ref": "LogEntrySourceLocation", | 1096 "$ref": "LogEntrySourceLocation", |
1383 "description": "Optional. Source code location information a
ssociated with the log entry, if any." | 1097 "description": "Optional. Source code location information a
ssociated with the log entry, if any." |
1384 }, | 1098 } |
1385 "receiveTimestamp": { | 1099 }, |
1386 "description": "Output only. The time the log entry was rece
ived by Stackdriver Logging.", | 1100 "type": "object" |
1387 "format": "google-datetime", | 1101 }, |
1388 "type": "string" | 1102 "Empty": { |
1389 }, | 1103 "description": "A generic empty message that you can re-use to avoid
defining duplicated empty messages in your APIs. A typical example is to use it
as the request or the response type of an API method. For instance:\nservice Fo
o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J
SON representation for Empty is empty JSON object {}.", |
1390 "timestamp": { | 1104 "id": "Empty", |
1391 "description": "Optional. The time the event described by th
e log entry occurred. If omitted in a new log entry, Stackdriver Logging will in
sert the time the log entry is received. Stackdriver Logging might reject log en
tries whose time stamps are more than a couple of hours in the future. Log entri
es with time stamps in the past are accepted.", | 1105 "properties": {}, |
1392 "format": "google-datetime", | |
1393 "type": "string" | |
1394 }, | |
1395 "logName": { | |
1396 "description": "Required. The resource name of the log to wh
ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza
tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/
logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-enc
oded within log_name. Example: \"organizations/1234567890/logs/cloudresourcemana
ger.googleapis.com%2Factivity\". [LOG_ID] must be less than 512 characters long
and can only include the following characters: upper and lower case alphanumeric
characters, forward-slash, underscore, hyphen, and period.For backward compatib
ility, if log_name begins with a forward-slash, such as /projects/..., then the
log entry is ingested as usual but the forward-slash is removed. Listing the log
entry will not show the leading slash and filtering for a log name with a leadi
ng slash will never return any results.", | |
1397 "type": "string" | |
1398 }, | |
1399 "httpRequest": { | |
1400 "$ref": "HttpRequest", | |
1401 "description": "Optional. Information about the HTTP request
associated with this log entry, if applicable." | |
1402 }, | |
1403 "resource": { | |
1404 "$ref": "MonitoredResource", | |
1405 "description": "Required. The monitored resource associated
with this log entry. Example: a log entry that reports a database error would be
associated with the monitored resource designating the particular database that
reported the error." | |
1406 }, | |
1407 "jsonPayload": { | |
1408 "additionalProperties": { | |
1409 "description": "Properties of the object.", | |
1410 "type": "any" | |
1411 }, | |
1412 "description": "The log entry payload, represented as a stru
cture that is expressed as a JSON object.", | |
1413 "type": "object" | |
1414 }, | |
1415 "insertId": { | |
1416 "description": "Optional. A unique identifier for the log en
try. If you provide a value, then Stackdriver Logging considers other log entrie
s in the same project, with the same timestamp, and with the same insert_id to b
e duplicates which can be removed. If omitted in new log entries, then Stackdriv
er Logging will insert its own unique identifier. The insert_id is used to order
log entries that have the same timestamp value.", | |
1417 "type": "string" | |
1418 }, | |
1419 "operation": { | |
1420 "$ref": "LogEntryOperation", | |
1421 "description": "Optional. Information about an operation ass
ociated with the log entry, if applicable." | |
1422 }, | |
1423 "textPayload": { | |
1424 "description": "The log entry payload, represented as a Unic
ode string (UTF-8).", | |
1425 "type": "string" | |
1426 }, | |
1427 "protoPayload": { | |
1428 "additionalProperties": { | |
1429 "description": "Properties of the object. Contains field
@type with type URL.", | |
1430 "type": "any" | |
1431 }, | |
1432 "description": "The log entry payload, represented as a prot
ocol buffer. Some Google Cloud Platform services use this field for their log en
try payloads.", | |
1433 "type": "object" | |
1434 }, | |
1435 "trace": { | |
1436 "description": "Optional. Resource name of the trace associa
ted with the log entry, if any. If it contains a relative resource name, the nam
e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr
ojectid/traces/06796866738c859f2f19b7cfb3214824", | |
1437 "type": "string" | |
1438 }, | |
1439 "labels": { | |
1440 "additionalProperties": { | |
1441 "type": "string" | |
1442 }, | |
1443 "description": "Optional. A set of user-defined (key, value)
data that provides additional information about the log entry.", | |
1444 "type": "object" | |
1445 } | |
1446 }, | |
1447 "type": "object" | 1106 "type": "object" |
1448 }, | 1107 }, |
1449 "SourceLocation": { | 1108 "SourceLocation": { |
1450 "description": "Specifies a location in a source code file.", | 1109 "description": "Specifies a location in a source code file.", |
1451 "id": "SourceLocation", | 1110 "id": "SourceLocation", |
1452 "properties": { | 1111 "properties": { |
1453 "file": { | 1112 "file": { |
1454 "description": "Source file name. Depending on the runtime e
nvironment, this might be a simple name or a fully-qualified name.", | 1113 "description": "Source file name. Depending on the runtime e
nvironment, this might be a simple name or a fully-qualified name.", |
1455 "type": "string" | 1114 "type": "string" |
1456 }, | 1115 }, |
1457 "functionName": { | 1116 "functionName": { |
1458 "description": "Human-readable name of the function or metho
d being invoked, with optional context such as the class or package name. This i
nformation is used in contexts such as the logs viewer, where a file and line nu
mber are less meaningful. The format can vary by language. For example: qual.if.
ied.Class.method (Java), dir/package.func (Go), function (Python).", | 1117 "description": "Human-readable name of the function or metho
d being invoked, with optional context such as the class or package name. This i
nformation is used in contexts such as the logs viewer, where a file and line nu
mber are less meaningful. The format can vary by language. For example: qual.if.
ied.Class.method (Java), dir/package.func (Go), function (Python).", |
1459 "type": "string" | 1118 "type": "string" |
1460 }, | 1119 }, |
1461 "line": { | 1120 "line": { |
1462 "description": "Line within the source file.", | 1121 "description": "Line within the source file.", |
1463 "format": "int64", | 1122 "format": "int64", |
1464 "type": "string" | 1123 "type": "string" |
1465 } | 1124 } |
1466 }, | 1125 }, |
1467 "type": "object" | 1126 "type": "object" |
1468 }, | 1127 }, |
1469 "ListLogEntriesRequest": { | 1128 "ListLogEntriesRequest": { |
1470 "description": "The parameters to ListLogEntries.", | 1129 "description": "The parameters to ListLogEntries.", |
1471 "id": "ListLogEntriesRequest", | 1130 "id": "ListLogEntriesRequest", |
1472 "properties": { | 1131 "properties": { |
| 1132 "orderBy": { |
| 1133 "description": "Optional. How the results should be sorted.
Presently, the only permitted values are \"timestamp asc\" (default) and \"times
tamp desc\". The first option returns entries in order of increasing values of L
ogEntry.timestamp (oldest first), and the second option returns entries in order
of decreasing timestamps (newest first). Entries with equal timestamps are retu
rned in order of their insert_id values.", |
| 1134 "type": "string" |
| 1135 }, |
| 1136 "resourceNames": { |
| 1137 "description": "Required. Names of one or more parent resour
ces from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizati
ons/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FO
LDER_ID]\"\nProjects listed in the project_ids field are added to this list.", |
| 1138 "items": { |
| 1139 "type": "string" |
| 1140 }, |
| 1141 "type": "array" |
| 1142 }, |
1473 "projectIds": { | 1143 "projectIds": { |
1474 "description": "Deprecated. Use resource_names instead. One
or more project identifiers or project numbers from which to retrieve log entrie
s. Example: \"my-project-1A\". If present, these project identifiers are convert
ed to resource name format and added to the list of resources in resource_names.
", | 1144 "description": "Deprecated. Use resource_names instead. One
or more project identifiers or project numbers from which to retrieve log entrie
s. Example: \"my-project-1A\". If present, these project identifiers are convert
ed to resource name format and added to the list of resources in resource_names.
", |
1475 "items": { | 1145 "items": { |
1476 "type": "string" | 1146 "type": "string" |
1477 }, | 1147 }, |
1478 "type": "array" | 1148 "type": "array" |
1479 }, | 1149 }, |
1480 "filter": { | 1150 "filter": { |
1481 "description": "Optional. A filter that chooses which log en
tries to return. See Advanced Logs Filters. Only log entries that match the filt
er are returned. An empty filter matches all log entries in the resources listed
in resource_names. Referencing a parent resource that is not listed in resource
_names will cause the filter to return no results. The maximum length of the fil
ter is 20000 characters.", | 1151 "description": "Optional. A filter that chooses which log en
tries to return. See Advanced Logs Filters. Only log entries that match the filt
er are returned. An empty filter matches all log entries in the resources listed
in resource_names. Referencing a parent resource that is not listed in resource
_names will cause the filter to return no results. The maximum length of the fil
ter is 20000 characters.", |
1482 "type": "string" | 1152 "type": "string" |
1483 }, | 1153 }, |
1484 "pageToken": { | 1154 "pageToken": { |
1485 "description": "Optional. If present, then retrieve the next
batch of results from the preceding call to this method. page_token must be the
value of next_page_token from the previous response. The values of other method
parameters should be identical to those in the previous call.", | 1155 "description": "Optional. If present, then retrieve the next
batch of results from the preceding call to this method. page_token must be the
value of next_page_token from the previous response. The values of other method
parameters should be identical to those in the previous call.", |
1486 "type": "string" | 1156 "type": "string" |
1487 }, | 1157 }, |
1488 "pageSize": { | 1158 "pageSize": { |
1489 "description": "Optional. The maximum number of results to r
eturn from this request. Non-positive values are ignored. The presence of next_p
age_token in the response indicates that more results might be available.", | 1159 "description": "Optional. The maximum number of results to r
eturn from this request. Non-positive values are ignored. The presence of next_p
age_token in the response indicates that more results might be available.", |
1490 "format": "int32", | 1160 "format": "int32", |
1491 "type": "integer" | 1161 "type": "integer" |
1492 }, | 1162 } |
1493 "orderBy": { | 1163 }, |
1494 "description": "Optional. How the results should be sorted.
Presently, the only permitted values are \"timestamp asc\" (default) and \"times
tamp desc\". The first option returns entries in order of increasing values of L
ogEntry.timestamp (oldest first), and the second option returns entries in order
of decreasing timestamps (newest first). Entries with equal timestamps are retu
rned in order of their insert_id values.", | 1164 "type": "object" |
1495 "type": "string" | 1165 }, |
1496 }, | 1166 "RequestLog": { |
1497 "resourceNames": { | 1167 "description": "Complete log information about a single HTTP request
to an App Engine application.", |
1498 "description": "Required. Names of one or more parent resour
ces from which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizati
ons/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FO
LDER_ID]\"\nProjects listed in the project_ids field are added to this list.", | 1168 "id": "RequestLog", |
1499 "items": { | 1169 "properties": { |
| 1170 "latency": { |
| 1171 "description": "Latency of the request.", |
| 1172 "format": "google-duration", |
| 1173 "type": "string" |
| 1174 }, |
| 1175 "ip": { |
| 1176 "description": "Origin IP address.", |
| 1177 "type": "string" |
| 1178 }, |
| 1179 "appId": { |
| 1180 "description": "Application that handled this request.", |
| 1181 "type": "string" |
| 1182 }, |
| 1183 "appEngineRelease": { |
| 1184 "description": "App Engine release version.", |
| 1185 "type": "string" |
| 1186 }, |
| 1187 "method": { |
| 1188 "description": "Request method. Example: \"GET\", \"HEAD\",
\"PUT\", \"POST\", \"DELETE\".", |
| 1189 "type": "string" |
| 1190 }, |
| 1191 "cost": { |
| 1192 "description": "An indication of the relative cost of servin
g this request.", |
| 1193 "format": "double", |
| 1194 "type": "number" |
| 1195 }, |
| 1196 "instanceId": { |
| 1197 "description": "An identifier for the instance that handled
the request.", |
| 1198 "type": "string" |
| 1199 }, |
| 1200 "megaCycles": { |
| 1201 "description": "Number of CPU megacycles used to process req
uest.", |
| 1202 "format": "int64", |
| 1203 "type": "string" |
| 1204 }, |
| 1205 "first": { |
| 1206 "description": "Whether this is the first RequestLog entry f
or this request. If an active request has several RequestLog entries written to
Stackdriver Logging, then this field will be set for one of them.", |
| 1207 "type": "boolean" |
| 1208 }, |
| 1209 "versionId": { |
| 1210 "description": "Version of the application that handled this
request.", |
| 1211 "type": "string" |
| 1212 }, |
| 1213 "moduleId": { |
| 1214 "description": "Module of the application that handled this
request.", |
| 1215 "type": "string" |
| 1216 }, |
| 1217 "endTime": { |
| 1218 "description": "Time when the request finished.", |
| 1219 "format": "google-datetime", |
| 1220 "type": "string" |
| 1221 }, |
| 1222 "userAgent": { |
| 1223 "description": "User agent that made the request.", |
| 1224 "type": "string" |
| 1225 }, |
| 1226 "wasLoadingRequest": { |
| 1227 "description": "Whether this was a loading request for the i
nstance.", |
| 1228 "type": "boolean" |
| 1229 }, |
| 1230 "sourceReference": { |
| 1231 "description": "Source code for the application that handled
this request. There can be more than one source reference per deployed applicat
ion if source code is distributed among multiple repositories.", |
| 1232 "items": { |
| 1233 "$ref": "SourceReference" |
| 1234 }, |
| 1235 "type": "array" |
| 1236 }, |
| 1237 "responseSize": { |
| 1238 "description": "Size in bytes sent back to client by request
.", |
| 1239 "format": "int64", |
| 1240 "type": "string" |
| 1241 }, |
| 1242 "traceId": { |
| 1243 "description": "Stackdriver Trace identifier for this reques
t.", |
| 1244 "type": "string" |
| 1245 }, |
| 1246 "line": { |
| 1247 "description": "A list of log lines emitted by the applicati
on while serving this request.", |
| 1248 "items": { |
| 1249 "$ref": "LogLine" |
| 1250 }, |
| 1251 "type": "array" |
| 1252 }, |
| 1253 "referrer": { |
| 1254 "description": "Referrer URL of request.", |
| 1255 "type": "string" |
| 1256 }, |
| 1257 "taskQueueName": { |
| 1258 "description": "Queue name of the request, in the case of an
offline request.", |
| 1259 "type": "string" |
| 1260 }, |
| 1261 "requestId": { |
| 1262 "description": "Globally unique identifier for a request, wh
ich is based on the request start time. Request IDs for requests which started l
ater will compare greater as strings than those for requests which started earli
er.", |
| 1263 "type": "string" |
| 1264 }, |
| 1265 "nickname": { |
| 1266 "description": "The logged-in user who made the request.Most
likely, this is the part of the user's email before the @ sign. The field value
is the same for different requests from the same user, but different users can
have similar names. This information is also available to the application via th
e App Engine Users API.This field will be populated starting with App Engine 1.9
.21.", |
| 1267 "type": "string" |
| 1268 }, |
| 1269 "resource": { |
| 1270 "description": "Contains the path and query portion of the U
RL that was requested. For example, if the URL was \"http://example.com/app?name
=val\", the resource would be \"/app?name=val\". The fragment identifier, which
is identified by the # character, is not included.", |
| 1271 "type": "string" |
| 1272 }, |
| 1273 "pendingTime": { |
| 1274 "description": "Time this request spent in the pending reque
st queue.", |
| 1275 "format": "google-duration", |
| 1276 "type": "string" |
| 1277 }, |
| 1278 "status": { |
| 1279 "description": "HTTP response status code. Example: 200, 404
.", |
| 1280 "format": "int32", |
| 1281 "type": "integer" |
| 1282 }, |
| 1283 "taskName": { |
| 1284 "description": "Task name of the request, in the case of an
offline request.", |
| 1285 "type": "string" |
| 1286 }, |
| 1287 "urlMapEntry": { |
| 1288 "description": "File or class that handled the request.", |
| 1289 "type": "string" |
| 1290 }, |
| 1291 "instanceIndex": { |
| 1292 "description": "If the instance processing this request belo
ngs to a manually scaled module, then this is the 0-based index of the instance.
Otherwise, this value is -1.", |
| 1293 "format": "int32", |
| 1294 "type": "integer" |
| 1295 }, |
| 1296 "host": { |
| 1297 "description": "Internet host and port number of the resourc
e being requested.", |
| 1298 "type": "string" |
| 1299 }, |
| 1300 "finished": { |
| 1301 "description": "Whether this request is finished or active."
, |
| 1302 "type": "boolean" |
| 1303 }, |
| 1304 "httpVersion": { |
| 1305 "description": "HTTP version of request. Example: \"HTTP/1.1
\".", |
| 1306 "type": "string" |
| 1307 }, |
| 1308 "startTime": { |
| 1309 "description": "Time when the request started.", |
| 1310 "format": "google-datetime", |
| 1311 "type": "string" |
| 1312 } |
| 1313 }, |
| 1314 "type": "object" |
| 1315 }, |
| 1316 "ListMonitoredResourceDescriptorsResponse": { |
| 1317 "description": "Result returned from ListMonitoredResourceDescriptor
s.", |
| 1318 "id": "ListMonitoredResourceDescriptorsResponse", |
| 1319 "properties": { |
| 1320 "resourceDescriptors": { |
| 1321 "description": "A list of resource descriptors.", |
| 1322 "items": { |
| 1323 "$ref": "MonitoredResourceDescriptor" |
| 1324 }, |
| 1325 "type": "array" |
| 1326 }, |
| 1327 "nextPageToken": { |
| 1328 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, |
| 1329 "type": "string" |
| 1330 } |
| 1331 }, |
| 1332 "type": "object" |
| 1333 }, |
| 1334 "SourceReference": { |
| 1335 "description": "A reference to a particular snapshot of the source t
ree used to build and deploy an application.", |
| 1336 "id": "SourceReference", |
| 1337 "properties": { |
| 1338 "revisionId": { |
| 1339 "description": "The canonical and persistent identifier of t
he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\
"", |
| 1340 "type": "string" |
| 1341 }, |
| 1342 "repository": { |
| 1343 "description": "Optional. A URI string identifying the repos
itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
| 1344 "type": "string" |
| 1345 } |
| 1346 }, |
| 1347 "type": "object" |
| 1348 }, |
| 1349 "LogMetric": { |
| 1350 "description": "Describes a logs-based metric. The value of the metr
ic is the number of log entries that match a logs filter in a given time interva
l.", |
| 1351 "id": "LogMetric", |
| 1352 "properties": { |
| 1353 "filter": { |
| 1354 "description": "Required. An advanced logs filter which is u
sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\
"\nThe maximum length of the filter is 20000 characters.", |
| 1355 "type": "string" |
| 1356 }, |
| 1357 "name": { |
| 1358 "description": "Required. The client-assigned metric identif
ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite
d to 100 characters and can include only the following characters: A-Z, a-z, 0-9
, and the special characters _-.,+!*',()%/. The forward-slash character (/) deno
tes a hierarchy of name pieces, and it cannot be the first character of the name
.The metric identifier in this field must not be URL-encoded (https://en.wikiped
ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th
e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu
st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", |
| 1359 "type": "string" |
| 1360 }, |
| 1361 "description": { |
| 1362 "description": "Optional. A description of this metric, whic
h is used in documentation.", |
| 1363 "type": "string" |
| 1364 }, |
| 1365 "version": { |
| 1366 "description": "Output only. The API version that created or
updated this metric. This value is currently always set to V2.", |
| 1367 "enum": [ |
| 1368 "V2", |
| 1369 "V1" |
| 1370 ], |
| 1371 "enumDescriptions": [ |
| 1372 "Stackdriver Logging API v2.", |
| 1373 "Stackdriver Logging API v1." |
| 1374 ], |
| 1375 "type": "string" |
| 1376 } |
| 1377 }, |
| 1378 "type": "object" |
| 1379 }, |
| 1380 "LogEntryOperation": { |
| 1381 "description": "Additional information about a potentially long-runn
ing operation with which a log entry is associated.", |
| 1382 "id": "LogEntryOperation", |
| 1383 "properties": { |
| 1384 "last": { |
| 1385 "description": "Optional. Set this to True if this is the la
st log entry in the operation.", |
| 1386 "type": "boolean" |
| 1387 }, |
| 1388 "id": { |
| 1389 "description": "Optional. An arbitrary operation identifier.
Log entries with the same identifier are assumed to be part of the same operati
on.", |
| 1390 "type": "string" |
| 1391 }, |
| 1392 "first": { |
| 1393 "description": "Optional. Set this to True if this is the fi
rst log entry in the operation.", |
| 1394 "type": "boolean" |
| 1395 }, |
| 1396 "producer": { |
| 1397 "description": "Optional. An arbitrary producer identifier.
The combination of id and producer must be globally unique. Examples for produce
r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", |
| 1398 "type": "string" |
| 1399 } |
| 1400 }, |
| 1401 "type": "object" |
| 1402 }, |
| 1403 "WriteLogEntriesResponse": { |
| 1404 "description": "Result returned from WriteLogEntries. empty", |
| 1405 "id": "WriteLogEntriesResponse", |
| 1406 "properties": {}, |
| 1407 "type": "object" |
| 1408 }, |
| 1409 "MonitoredResource": { |
| 1410 "description": "An object representing a resource that can be used f
or monitoring, logging, billing, or other purposes. Examples include virtual mac
hine instances, databases, and storage devices such as disks. The type field ide
ntifies a MonitoredResourceDescriptor object that describes the resource's schem
a. Information in the labels field identifies the actual resource and its attrib
utes according to the schema. For example, a particular Compute Engine VM instan
ce could be represented by the following object, because the MonitoredResourceDe
scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type
\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n
\"zone\": \"us-central1-a\" }}\n", |
| 1411 "id": "MonitoredResource", |
| 1412 "properties": { |
| 1413 "type": { |
| 1414 "description": "Required. The monitored resource type. This
field must match the type field of a MonitoredResourceDescriptor object. For exa
mple, the type of a Compute Engine VM instance is gce_instance.", |
| 1415 "type": "string" |
| 1416 }, |
| 1417 "labels": { |
| 1418 "additionalProperties": { |
1500 "type": "string" | 1419 "type": "string" |
1501 }, | 1420 }, |
1502 "type": "array" | 1421 "description": "Required. Values for all of the labels liste
d in the associated monitored resource descriptor. For example, Compute Engine V
M instances use the labels \"project_id\", \"instance_id\", and \"zone\".", |
1503 } | 1422 "type": "object" |
1504 }, | 1423 } |
1505 "type": "object" | 1424 }, |
| 1425 "type": "object" |
| 1426 }, |
| 1427 "LogSink": { |
| 1428 "description": "Describes a sink used to export log entries to one o
f the following destinations in any project: a Cloud Storage bucket, a BigQuery
dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are
exported. The sink must be created within a project, organization, billing accou
nt, or folder.", |
| 1429 "id": "LogSink", |
| 1430 "properties": { |
| 1431 "outputVersionFormat": { |
| 1432 "description": "Deprecated. The log entry format to use for
this sink's exported log entries. The v2 format is used by default and cannot be
changed.", |
| 1433 "enum": [ |
| 1434 "VERSION_FORMAT_UNSPECIFIED", |
| 1435 "V2", |
| 1436 "V1" |
| 1437 ], |
| 1438 "enumDescriptions": [ |
| 1439 "An unspecified format version that will default to V2."
, |
| 1440 "LogEntry version 2 format.", |
| 1441 "LogEntry version 1 format." |
| 1442 ], |
| 1443 "type": "string" |
| 1444 }, |
| 1445 "name": { |
| 1446 "description": "Required. The client-assigned sink identifie
r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden
tifiers are limited to 100 characters and can include only the following charact
ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per
iods.", |
| 1447 "type": "string" |
| 1448 }, |
| 1449 "includeChildren": { |
| 1450 "description": "Optional. This field applies only to sinks o
wned by organizations and folders. If the field is false, the default, only the
logs owned by the sink's parent resource are available for export. If the field
is true, then logs from all the projects, folders, and billing accounts containe
d in the sink's parent resource are also available for export. Whether a particu
lar log entry from the children is exported depends on the sink's filter express
ion. For example, if this field is true, then the filter resource.type=gce_insta
nce would export all Compute Engine VM instance log entries from all projects in
the sink's parent. To only export entries from certain child projects, filter o
n the project part of the log name:\nlogName:(\"projects/test-project1/\" OR \"p
rojects/test-project2/\") AND\nresource.type=gce_instance\n", |
| 1451 "type": "boolean" |
| 1452 }, |
| 1453 "destination": { |
| 1454 "description": "Required. The export destination:\n\"storage
.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/
datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI
C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per
mission to write to the destination or else the log entries are not exported. Fo
r more information, see Exporting Logs With Sinks.", |
| 1455 "type": "string" |
| 1456 }, |
| 1457 "filter": { |
| 1458 "description": "Optional. An advanced logs filter. The only
exported log entries are those that are in the resource owning the sink and that
match the filter. The filter must use the log entry format specified by the out
put_version_format parameter. For example, in the v2 format:\nlogName=\"projects
/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", |
| 1459 "type": "string" |
| 1460 }, |
| 1461 "endTime": { |
| 1462 "description": "Optional. The time at which this sink will s
top exporting log entries. Log entries are exported only if their timestamp is e
arlier than the end time. If this field is not supplied, there is no end time. I
f both a start time and an end time are provided, then the end time must be late
r than the start time.", |
| 1463 "format": "google-datetime", |
| 1464 "type": "string" |
| 1465 }, |
| 1466 "startTime": { |
| 1467 "description": "Optional. The time at which this sink will b
egin exporting log entries. Log entries are exported only if their timestamp is
not earlier than the start time. The default value of this field is the time the
sink is created or updated.", |
| 1468 "format": "google-datetime", |
| 1469 "type": "string" |
| 1470 }, |
| 1471 "writerIdentity": { |
| 1472 "description": "Output only. An IAM identity—a service
account or group—under which Stackdriver Logging writes the exported log
entries to the sink's destination. This field is set by sinks.create and sinks.u
pdate, based on the setting of unique_writer_identity in those methods.Until you
grant this identity write-access to the destination, log entry exports from thi
s sink will fail. For more information, see Granting access for a resource. Cons
ult the destination service's documentation to determine the appropriate IAM rol
es to assign to the identity.", |
| 1473 "type": "string" |
| 1474 } |
| 1475 }, |
| 1476 "type": "object" |
| 1477 }, |
| 1478 "WriteLogEntriesRequest": { |
| 1479 "description": "The parameters to WriteLogEntries.", |
| 1480 "id": "WriteLogEntriesRequest", |
| 1481 "properties": { |
| 1482 "labels": { |
| 1483 "additionalProperties": { |
| 1484 "type": "string" |
| 1485 }, |
| 1486 "description": "Optional. Default labels that are added to t
he labels field of all log entries in entries. If a log entry already has a labe
l with the same key as a label in this parameter, then the log entry's label is
not changed. See LogEntry.", |
| 1487 "type": "object" |
| 1488 }, |
| 1489 "resource": { |
| 1490 "$ref": "MonitoredResource", |
| 1491 "description": "Optional. A default monitored resource objec
t that is assigned to all log entries in entries that do not specify a value for
resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\
": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry
." |
| 1492 }, |
| 1493 "entries": { |
| 1494 "description": "Required. The log entries to write. Values s
upplied for the fields log_name, resource, and labels in this entries.write requ
est are inserted into those log entries in this list that do not provide their o
wn values.Stackdriver Logging also creates and inserts values for timestamp and
insert_id if the entries do not provide them. The created insert_id for the N'th
entry in this list will be greater than earlier entries and less than later ent
ries. Otherwise, the order of log entries in this list does not matter.To improv
e throughput and to avoid exceeding the quota limit for calls to entries.write,
you should write multiple log entries at once rather than calling this method fo
r each individual log entry.", |
| 1495 "items": { |
| 1496 "$ref": "LogEntry" |
| 1497 }, |
| 1498 "type": "array" |
| 1499 }, |
| 1500 "logName": { |
| 1501 "description": "Optional. A default log resource name that i
s assigned to all log entries in entries that do not specify a value for log_nam
e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l
ogs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folder
s/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"proj
ects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourc
emanager.googleapis.com%2Factivity\". For more information about log names, see
LogEntry.", |
| 1502 "type": "string" |
| 1503 }, |
| 1504 "partialSuccess": { |
| 1505 "description": "Optional. Whether valid entries should be wr
itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI
ED errors. If any entry is not written, then the response status is the error as
sociated with one of the failed entries and the response includes error details
keyed by the entries' zero-based index in the entries.write method.", |
| 1506 "type": "boolean" |
| 1507 } |
| 1508 }, |
| 1509 "type": "object" |
1506 } | 1510 } |
1507 }, | 1511 }, |
1508 "servicePath": "", | 1512 "servicePath": "", |
1509 "title": "Stackdriver Logging API", | 1513 "title": "Stackdriver Logging API", |
1510 "version": "v2beta1" | 1514 "version": "v2beta1" |
1511 } | 1515 } |
OLD | NEW |