blob: 7b94b4f58defd82fb583bc3bf52e020f0da88654 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="logging_v2beta1.html">Google Cloud Logging API</a> . <a href="logging_v2beta1.projects.html">projects</a> . <a href="logging_v2beta1.projects.sinks.html">sinks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(projectName, body, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a sink.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(sinkName, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a sink.</p>
83<p class="toc_element">
84 <code><a href="#get">get(sinkName, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets a sink.</p>
86<p class="toc_element">
87 <code><a href="#list">list(projectName, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists sinks.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#update">update(sinkName, body, x__xgafv=None)</a></code></p>
94<p class="firstline">Creates or updates a sink.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="create">create(projectName, body, x__xgafv=None)</code>
98 <pre>Creates a sink.
99
100Args:
101 projectName: string, The resource name of the project in which to create the sink. Example: `"projects/my-project-id"`. The new sink must be provided in the request. (required)
102 body: object, The request body. (required)
103 The object takes the form of:
104
105{ # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700106 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800107 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
108 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700109 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800110 }
111
112 x__xgafv: string, V1 error format.
113
114Returns:
115 An object of the form:
116
117 { # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700118 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800119 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
120 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700121 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800122 }</pre>
123</div>
124
125<div class="method">
126 <code class="details" id="delete">delete(sinkName, x__xgafv=None)</code>
127 <pre>Deletes a sink.
128
129Args:
130 sinkName: string, The resource name of the sink to delete. Example: `"projects/my-project-id/sinks/my-sink-id"`. (required)
131 x__xgafv: string, V1 error format.
132
133Returns:
134 An object of the form:
135
136 { # 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: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
137 }</pre>
138</div>
139
140<div class="method">
141 <code class="details" id="get">get(sinkName, x__xgafv=None)</code>
142 <pre>Gets a sink.
143
144Args:
145 sinkName: string, The resource name of the sink to return. Example: `"projects/my-project-id/sinks/my-sink-id"`. (required)
146 x__xgafv: string, V1 error format.
147
148Returns:
149 An object of the form:
150
151 { # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700152 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800153 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
154 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700155 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800156 }</pre>
157</div>
158
159<div class="method">
160 <code class="details" id="list">list(projectName, pageSize=None, pageToken=None, x__xgafv=None)</code>
161 <pre>Lists sinks.
162
163Args:
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700164 projectName: string, Required. The resource name of the project containing the sinks. Example: `"projects/my-logging-project"`. (required)
165 pageSize: integer, Optional. The maximum number of results to return from this request. You must check for presence of `nextPageToken` to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value as the `pageToken` parameter in the next request.
166 pageToken: string, Optional. If the `pageToken` parameter is supplied, then the next page of results is retrieved. The `pageToken` parameter must be set to the value of the `nextPageToken` from the previous response. The value of `projectName` must be the same as in the previous request.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800167 x__xgafv: string, V1 error format.
168
169Returns:
170 An object of the form:
171
172 { # Result returned from `ListSinks`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700173 "nextPageToken": "A String", # If there are more results than were returned, then `nextPageToken` is included in the response. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800174 "sinks": [ # A list of sinks.
175 { # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700176 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800177 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
178 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700179 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800180 },
181 ],
182 }</pre>
183</div>
184
185<div class="method">
186 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
187 <pre>Retrieves the next page of results.
188
189Args:
190 previous_request: The request for the previous page. (required)
191 previous_response: The response from the request for the previous page. (required)
192
193Returns:
194 A request object that you can call 'execute()' on to request the next
195 page. Returns None if there are no more items in the collection.
196 </pre>
197</div>
198
199<div class="method">
200 <code class="details" id="update">update(sinkName, body, x__xgafv=None)</code>
201 <pre>Creates or updates a sink.
202
203Args:
204 sinkName: string, The resource name of the sink to update. Example: `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be provided in the request and have the same name that is specified in `sinkName`. If the sink does not exist, it is created. (required)
205 body: object, The request body. (required)
206 The object takes the form of:
207
208{ # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700209 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800210 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
211 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700212 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800213 }
214
215 x__xgafv: string, V1 error format.
216
217Returns:
218 An object of the form:
219
220 { # Describes a sink used to export log entries outside Cloud Logging.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700221 "filter": "A String", # An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800222 "destination": "A String", # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
223 "name": "A String", # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700224 "outputVersionFormat": "A String", # The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800225 }</pre>
226</div>
227
228</body></html>