获取作业自动调优PlanJson内容。
通过本API用户可以查看到历史调优某次PlanJson的详细内容。需要和获取作业历史调优PlanJson列表配合使用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
除公共请求头,该接口还需要指定以下请求头。关于公共请求头,请参见公共请求参数文档。
名称 | 类型 | 是否必选 | 示例 | 描述 |
---|---|---|---|---|
RegionId | String | 是 | cn-shanghai |
地区ID |
请求语法
GET /api/v2/projects/[projectName]/jobs/[jobName]/instance/[instanceId]/autoscale/plancontent HTTP/1.1
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
instanceId | Long | 是 | -1 |
作业实例ID。流作业填 |
jobName | String | 是 | job1 |
作业名称。 |
planName | String | 是 | 2018-09-18 10:10:20 |
自动调优某次PlanJson的名称。 |
projectName | String | 是 | project1 |
项目名称。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PlanContent | String | {k:v} |
PlanJson的详细内容。 |
RequestId | String | FD0FF8C0-779A-45EB-9674-FF3E127B**** |
请求ID。 |
示例
请求示例
GET /api/v2/projects/[projectName]/jobs/[jobName]/instance/[instanceId]/autoscale/plancontent HTTP/1.1
RegionId: cn-shanghai
公共请求头
{
"instanceId": -1
"jobName": "job1"
"planName": "2018-09-18 10:10:20"
"projectName": "project1"
}
正常返回示例
XML
格式
<RequestId>07A03B91-ED83-493D-A481-B14395212312</RequestId>
<PlanContent>{
"global" : [ {
"jobManagerMinCpuCores" : 0.1,
"jobManagerMinMemoryCores" : 1024,
"jobManagerCpuCores" : 0.25,
"jobManagerMemoryInMB" : 1024
} ],
"nodes" : [ {
"id" : 1,
"uid" : "1",
"name" : "DataHubTableSource-poc_through_in-Stream",
"pact" : "Source",
"slotSharingGroup" : null,
"chainingStrategy" : "HEAD",
"parallelism" : 10,
"maxParallelism" : 32768,
"vcore" : 0.25,
"heap_memory" : 252,
"native_memory" : 4
}, {
"id" : 2,
"uid" : "2",
"name" : "SourceConversion(table:[builtin, default, _DataStreamTable_0, source: [DataHubTableSource-poc_through_in]], fields:(f0))",
"pact" : "Operator",
"slotSharingGroup" : null,
"parallelism" : 10,
"maxParallelism" : 32768,
"vcore" : 0.25,
"heap_memory" : 252,
"native_memory" : 4
}, {
"id" : 3,
"uid" : "3",
"name" : "correlate: table(DatahubParser_poc_through_in0($cor0.f0)), select: poc_throughout",
"pact" : "Operator",
"slotSharingGroup" : null,
"parallelism" : 10,
"maxParallelism" : 32768,
"vcore" : 0.25,
"heap_memory" : 252,
"native_memory" : 4
}, {
"id" : 4,
"uid" : "4",
"name" : "SinkConversion to Tuple2",
"pact" : "Operator",
"slotSharingGroup" : null,
"parallelism" : 10,
"maxParallelism" : 32768,
"vcore" : 0.25,
"heap_memory" : 252,
"native_memory" : 4
}, {
"id" : 5,
"uid" : "5",
"name" : "TupleOutputFormatAdapterSink:com.alibaba.blink.streaming.connectors.datahub.sink.DatahubOutputFormat@120d3fd",
"pact" : "Sink",
"slotSharingGroup" : null,
"parallelism" : 10,
"maxParallelism" : 32768,
"vcore" : 0.25,
"heap_memory" : 252,
"native_memory" : 4
} ],
"links" : [ {
"source" : 1,
"target" : 2
}, {
"source" : 2,
"target" : 3
}, {
"source" : 3,
"target" : 4
}, {
"source" : 4,
"target" : 5
} ]
}</PlanContent>
JSON
格式
{
"PlanContent":"{\n \"global\" : [ {\n \"jobManagerMinCpuCores\" : 0.1,\n \"jobManagerMinMemoryCores\" : 1024,\n \"jobManagerCpuCores\" : 0.25,\n \"jobManagerMemoryInMB\" : 1024\n } ],\n \"nodes\" : [ {\n \"id\" : 1,\n \"uid\" : \"1\",\n \"name\" : \"DataHubTableSource-poc_through_in-Stream\",\n \"pact\" : \"Source\",\n \"slotSharingGroup\" : null,\n \"chainingStrategy\" : \"HEAD\",\n \"parallelism\" : 10,\n \"maxParallelism\" : 32768,\n \"vcore\" : 0.25,\n \"heap_memory\" : 252,\n \"native_memory\" : 4\n }, {\n \"id\" : 2,\n \"uid\" : \"2\",\n \"name\" : \"SourceConversion(table:[builtin, default, _DataStreamTable_0, source: [DataHubTableSource-poc_through_in]], fields:(f0))\",\n \"pact\" : \"Operator\",\n \"slotSharingGroup\" : null,\n \"parallelism\" : 10,\n \"maxParallelism\" : 32768,\n \"vcore\" : 0.25,\n \"heap_memory\" : 252,\n \"native_memory\" : 4\n }, {\n \"id\" : 3,\n \"uid\" : \"3\",\n \"name\" : \"correlate: table(DatahubParser_poc_through_in0($cor0.f0)), select: poc_throughout\",\n \"pact\" : \"Operator\",\n \"slotSharingGroup\" : null,\n \"parallelism\" : 10,\n \"maxParallelism\" : 32768,\n \"vcore\" : 0.25,\n \"heap_memory\" : 252,\n \"native_memory\" : 4\n }, {\n \"id\" : 4,\n \"uid\" : \"4\",\n \"name\" : \"SinkConversion to Tuple2\",\n \"pact\" : \"Operator\",\n \"slotSharingGroup\" : null,\n \"parallelism\" : 10,\n \"maxParallelism\" : 32768,\n \"vcore\" : 0.25,\n \"heap_memory\" : 252,\n \"native_memory\" : 4\n }, {\n \"id\" : 5,\n \"uid\" : \"5\",\n \"name\" : \"TupleOutputFormatAdapterSink:com.alibaba.blink.streaming.connectors.datahub.sink.DatahubOutputFormat@120d3fd\",\n \"pact\" : \"Sink\",\n \"slotSharingGroup\" : null,\n \"parallelism\" : 10,\n \"maxParallelism\" : 32768,\n \"vcore\" : 0.25,\n \"heap_memory\" : 252,\n \"native_memory\" : 4\n } ],\n \"links\" : [ {\n \"source\" : 1,\n \"target\" : 2\n }, {\n \"source\" : 2,\n \"target\" : 3\n }, {\n \"source\" : 3,\n \"target\" : 4\n }, {\n \"source\" : 4,\n \"target\" : 5\n } ]\n}",
"RequestId":"07A03B91-ED83-493D-A481-B14395212312"
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交