blob: a697bff35cd00f3c0343c49eebfc6b01403fc466 [file] [log] [blame]
Nathaniel Manista4f877e52015-06-15 16:44:50 +00001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.jobs.html">jobs</a> . <a href="dataflow_v1b3.projects.jobs.messages.html">messages</a></h1>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#list">list(projectId, jobId, location=None, endTime=None, pageToken=None, minimumImportance=None, startTime=None, pageSize=None, x__xgafv=None)</a></code></p>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000079<p class="firstline">Request the job status.</p>
80<p class="toc_element">
81 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<h3>Method Details</h3>
84<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085 <code class="details" id="list">list(projectId, jobId, location=None, endTime=None, pageToken=None, minimumImportance=None, startTime=None, pageSize=None, x__xgafv=None)</code>
Nathaniel Manista4f877e52015-06-15 16:44:50 +000086 <pre>Request the job status.
87
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088To request the status of a job, we recommend using
89`projects.locations.jobs.messages.list` with a [regional endpoint]
90(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
91`projects.jobs.messages.list` is not recommended, as you can only request
92the status of jobs that are running in `us-central1`.
93
Nathaniel Manista4f877e52015-06-15 16:44:50 +000094Args:
Takashi Matsuo06694102015-09-11 13:55:40 -070095 projectId: string, A project id. (required)
96 jobId: string, The job to get messages about. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -070097 location: string, The [regional endpoint]
98(https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
99contains the job specified by job_id.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100 endTime: string, Return only messages with timestamps &lt; end_time. The default is now
101(i.e. return up to the latest messages available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700102 pageToken: string, If supplied, this should be the value of next_page_token returned
103by an earlier call. This will cause the next page of results to
104be returned.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700105 minimumImportance: string, Filter to only get messages with importance &gt;= level
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700106 startTime: string, If specified, return only messages with timestamps &gt;= start_time.
107The default is the job creation time (i.e. beginning of messages).
108 pageSize: integer, If specified, determines the maximum number of messages to
109return. If unspecified, the service may choose an appropriate
110default, or may return an arbitrarily large number of results.
Takashi Matsuo06694102015-09-11 13:55:40 -0700111 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000115
116Returns:
117 An object of the form:
118
Takashi Matsuo06694102015-09-11 13:55:40 -0700119 { # Response to a request to list job messages.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;autoscalingEvents&quot;: [ # Autoscaling events in ascending timestamp order.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400121 { # A structured message reporting an autoscaling decision made by the Dataflow
122 # service.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700123 &quot;workerPool&quot;: &quot;A String&quot;, # A short and friendly name for the worker pool this event refers to,
124 # populated from the value of PoolStageRelation::user_pool_name.
125 &quot;targetNumWorkers&quot;: &quot;A String&quot;, # The target number of workers the worker pool wants to resize to use.
126 &quot;currentNumWorkers&quot;: &quot;A String&quot;, # The current number of workers the job has.
127 &quot;eventType&quot;: &quot;A String&quot;, # The type of autoscaling event to report.
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;description&quot;: { # A rich message format, including a human readable string, a key for # A message describing why the system decided to adjust the current
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400129 # number of workers, why it failed, or why the system decided to
130 # not make any changes to the number of workers.
131 # identifying the message, and structured data associated with the message for
132 # programmatic consumption.
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 &quot;messageText&quot;: &quot;A String&quot;, # Human-readable version of message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;messageKey&quot;: &quot;A String&quot;, # Identifier for this message type. Used by external systems to
135 # internationalize or personalize message.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700136 &quot;parameters&quot;: [ # The structured data associated with this message.
137 { # Structured data associated with this message.
138 &quot;value&quot;: &quot;&quot;, # Value for this parameter.
139 &quot;key&quot;: &quot;A String&quot;, # Key or name for this parameter.
140 },
141 ],
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400142 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;time&quot;: &quot;A String&quot;, # The time this event was emitted to indicate a new target or current
144 # num_workers value.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000145 },
146 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token to obtain the next page of results if there are more.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700148 &quot;jobMessages&quot;: [ # Messages in ascending timestamp order.
149 { # A particular message pertaining to a Dataflow job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700150 &quot;messageImportance&quot;: &quot;A String&quot;, # Importance level of the message.
151 &quot;messageText&quot;: &quot;A String&quot;, # The text of the message.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 &quot;id&quot;: &quot;A String&quot;, # Deprecated.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;time&quot;: &quot;A String&quot;, # The timestamp of the message.
154 },
155 ],
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000156 }</pre>
157</div>
158
159<div class="method">
160 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
161 <pre>Retrieves the next page of results.
162
163Args:
164 previous_request: The request for the previous page. (required)
165 previous_response: The response from the request for the previous page. (required)
166
167Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 A request object that you can call &#x27;execute()&#x27; on to request the next
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000169 page. Returns None if there are no more items in the collection.
170 </pre>
171</div>
172
173</body></html>