| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, 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 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, 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="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.locations.html">locations</a> . <a href="dataflow_v1b3.projects.locations.jobs.html">jobs</a> . <a href="dataflow_v1b3.projects.locations.jobs.debug.html">debug</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#getConfig">getConfig(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Get encoded debug configuration for component. Not cacheable.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#getWorkerStacktraces">getWorkerStacktraces(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Get worker stacktraces from debug capture.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#sendCapture">sendCapture(projectId, location, jobId, body=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Send encoded debug capture data for component.</p> |
| 89 |
<h3>Method Details</h3> |
| 90 |
<div class="method"> |
| 91 |
<code class="details" id="close">close()</code> |
| 92 |
<pre>Close httplib2 connections.</pre> |
| 93 |
</div> |
| 94 |
|
| 95 |
<div class="method"> |
| 96 |
<code class="details" id="getConfig">getConfig(projectId, location, jobId, body=None, x__xgafv=None)</code> |
| 97 |
<pre>Get encoded debug configuration for component. Not cacheable. |
| 98 |
|
| 99 |
Args: |
| 100 |
projectId: string, The project id. (required) |
| 101 |
location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required) |
| 102 |
jobId: string, The job id. (required) |
| 103 |
body: object, The request body. |
| 104 |
The object takes the form of: |
| 105 |
|
| 106 |
{ # Request to get updated debug configuration for component. |
| 107 |
"componentId": "A String", # The internal component id for which debug configuration is requested. |
| 108 |
"location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. |
| 109 |
"workerId": "A String", # The worker id, i.e., VM hostname. |
| 110 |
} |
| 111 |
|
| 112 |
x__xgafv: string, V1 error format. |
| 113 |
Allowed values |
| 114 |
1 - v1 error format |
| 115 |
2 - v2 error format |
| 116 |
|
| 117 |
Returns: |
| 118 |
An object of the form: |
| 119 |
|
| 120 |
{ # Response to a get debug configuration request. |
| 121 |
"config": "A String", # The encoded debug configuration for the requested component. |
| 122 |
}</pre> |
| 123 |
</div> |
| 124 |
|
| 125 |
<div class="method"> |
| 126 |
<code class="details" id="getWorkerStacktraces">getWorkerStacktraces(projectId, location, jobId, body=None, x__xgafv=None)</code> |
| 127 |
<pre>Get worker stacktraces from debug capture. |
| 128 |
|
| 129 |
Args: |
| 130 |
projectId: string, The project id. (required) |
| 131 |
location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required) |
| 132 |
jobId: string, The job for which to get stacktraces. (required) |
| 133 |
body: object, The request body. |
| 134 |
The object takes the form of: |
| 135 |
|
| 136 |
{ # Request to get worker stacktraces from debug capture. |
| 137 |
"endTime": "A String", # The end time for the stacktrace query. The returned stacktraces will be a recent stack trace at or shortly before this time. |
| 138 |
"workerId": "A String", # The worker for which to get stacktraces. The returned stacktraces will be for the SDK harness running on this worker. |
| 139 |
} |
| 140 |
|
| 141 |
x__xgafv: string, V1 error format. |
| 142 |
Allowed values |
| 143 |
1 - v1 error format |
| 144 |
2 - v2 error format |
| 145 |
|
| 146 |
Returns: |
| 147 |
An object of the form: |
| 148 |
|
| 149 |
{ # Response to get worker stacktraces from debug capture. |
| 150 |
"sdks": [ # Repeated as unified worker may have multiple SDK processes. |
| 151 |
{ # A structured representation of an SDK. |
| 152 |
"sdkId": "A String", # The SDK harness id. |
| 153 |
"stacks": [ # The stacktraces for the processes running on the SDK harness. |
| 154 |
{ # A structuredstacktrace for a process running on the worker. |
| 155 |
"stackContent": "A String", # The raw stack trace. |
| 156 |
"threadCount": 42, # With java thread dumps we may get collapsed stacks e.g., N threads in stack "". Instead of having to copy over the same stack trace N times, this int field captures this. |
| 157 |
"threadName": "A String", # Thread name. For example, "CommitThread-0,10,main" |
| 158 |
"threadState": "A String", # The state of the thread. For example, "WAITING". |
| 159 |
"timestamp": "A String", # Timestamp at which the stack was captured. |
| 160 |
}, |
| 161 |
], |
| 162 |
}, |
| 163 |
], |
| 164 |
}</pre> |
| 165 |
</div> |
| 166 |
|
| 167 |
<div class="method"> |
| 168 |
<code class="details" id="sendCapture">sendCapture(projectId, location, jobId, body=None, x__xgafv=None)</code> |
| 169 |
<pre>Send encoded debug capture data for component. |
| 170 |
|
| 171 |
Args: |
| 172 |
projectId: string, The project id. (required) |
| 173 |
location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. (required) |
| 174 |
jobId: string, The job id. (required) |
| 175 |
body: object, The request body. |
| 176 |
The object takes the form of: |
| 177 |
|
| 178 |
{ # Request to send encoded debug information. Next ID: 8 |
| 179 |
"componentId": "A String", # The internal component id for which debug information is sent. |
| 180 |
"data": "A String", # The encoded debug information. |
| 181 |
"dataFormat": "A String", # Format for the data field above (id=5). |
| 182 |
"location": "A String", # The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the job specified by job_id. |
| 183 |
"workerId": "A String", # The worker id, i.e., VM hostname. |
| 184 |
} |
| 185 |
|
| 186 |
x__xgafv: string, V1 error format. |
| 187 |
Allowed values |
| 188 |
1 - v1 error format |
| 189 |
2 - v2 error format |
| 190 |
|
| 191 |
Returns: |
| 192 |
An object of the form: |
| 193 |
|
| 194 |
{ # Response to a send capture request. nothing |
| 195 |
}</pre> |
| 196 |
</div> |
| 197 |
|
| 198 |
</body></html> |