|
19 | 19 |
|
20 | 20 | use Google\Service\Dataflow\GetDebugConfigRequest; |
21 | 21 | use Google\Service\Dataflow\GetDebugConfigResponse; |
| 22 | +use Google\Service\Dataflow\GetWorkerStacktracesRequest; |
| 23 | +use Google\Service\Dataflow\GetWorkerStacktracesResponse; |
22 | 24 | use Google\Service\Dataflow\SendDebugCaptureRequest; |
23 | 25 | use Google\Service\Dataflow\SendDebugCaptureResponse; |
24 | 26 |
|
@@ -49,6 +51,22 @@ public function getConfig($projectId, $jobId, GetDebugConfigRequest $postBody, $ |
49 | 51 | $params = array_merge($params, $optParams); |
50 | 52 | return $this->call('getConfig', [$params], GetDebugConfigResponse::class); |
51 | 53 | } |
| 54 | + /** |
| 55 | + * Get worker stacktraces from debug capture. (debug.getWorkerStacktraces) |
| 56 | + * |
| 57 | + * @param string $projectId The project id. |
| 58 | + * @param string $jobId The job for which to get stacktraces. |
| 59 | + * @param GetWorkerStacktracesRequest $postBody |
| 60 | + * @param array $optParams Optional parameters. |
| 61 | + * @return GetWorkerStacktracesResponse |
| 62 | + * @throws \Google\Service\Exception |
| 63 | + */ |
| 64 | + public function getWorkerStacktraces($projectId, $jobId, GetWorkerStacktracesRequest $postBody, $optParams = []) |
| 65 | + { |
| 66 | + $params = ['projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody]; |
| 67 | + $params = array_merge($params, $optParams); |
| 68 | + return $this->call('getWorkerStacktraces', [$params], GetWorkerStacktracesResponse::class); |
| 69 | + } |
52 | 70 | /** |
53 | 71 | * Send encoded debug capture data for component. (debug.sendCapture) |
54 | 72 | * |
|
0 commit comments