Skip to content

Commit 2c037cf

Browse files
committed
[FLINK-Web][Web Dashboard] Update REST API snapshot for Top N Metrics endpoint
1 parent 2898ef3 commit 2c037cf

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

flink-runtime-web/src/test/resources/rest_api_v1.snapshot

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,6 +2741,95 @@
27412741
"response" : {
27422742
"type" : "any"
27432743
}
2744+
}, {
2745+
"url" : "/jobs/:jobid/metrics/top-n",
2746+
"method" : "GET",
2747+
"status-code" : "200 OK",
2748+
"file-upload" : false,
2749+
"path-parameters" : {
2750+
"pathParameters" : [ {
2751+
"key" : "jobid"
2752+
} ]
2753+
},
2754+
"query-parameters" : {
2755+
"queryParameters" : [ ]
2756+
},
2757+
"request" : {
2758+
"type" : "object",
2759+
"id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:EmptyRequestBody"
2760+
},
2761+
"response" : {
2762+
"type" : "object",
2763+
"id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:job:metrics:TopNMetricsResponseBody",
2764+
"properties" : {
2765+
"topCpuConsumers" : {
2766+
"type" : "array",
2767+
"items" : {
2768+
"type" : "object",
2769+
"id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:job:metrics:TopNMetricsResponseBody:CpuConsumerInfo",
2770+
"properties" : {
2771+
"subtaskId" : {
2772+
"type" : "integer"
2773+
},
2774+
"taskName" : {
2775+
"type" : "string"
2776+
},
2777+
"operatorName" : {
2778+
"type" : "string"
2779+
},
2780+
"cpuPercentage" : {
2781+
"type" : "number"
2782+
},
2783+
"taskManagerId" : {
2784+
"type" : "string"
2785+
}
2786+
}
2787+
}
2788+
},
2789+
"topBackpressureOperators" : {
2790+
"type" : "array",
2791+
"items" : {
2792+
"type" : "object",
2793+
"id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:job:metrics:TopNMetricsResponseBody:BackpressureOperatorInfo",
2794+
"properties" : {
2795+
"operatorId" : {
2796+
"type" : "string"
2797+
},
2798+
"operatorName" : {
2799+
"type" : "string"
2800+
},
2801+
"backpressureRatio" : {
2802+
"type" : "number"
2803+
},
2804+
"subtaskId" : {
2805+
"type" : "integer"
2806+
}
2807+
}
2808+
}
2809+
},
2810+
"topGcIntensiveTasks" : {
2811+
"type" : "array",
2812+
"items" : {
2813+
"type" : "object",
2814+
"id" : "urn:jsonschema:org:apache:flink:runtime:rest:messages:job:metrics:TopNMetricsResponseBody:GcTaskInfo",
2815+
"properties" : {
2816+
"taskId" : {
2817+
"type" : "string"
2818+
},
2819+
"taskName" : {
2820+
"type" : "string"
2821+
},
2822+
"gcTimePercentage" : {
2823+
"type" : "number"
2824+
},
2825+
"taskManagerId" : {
2826+
"type" : "string"
2827+
}
2828+
}
2829+
}
2830+
}
2831+
}
2832+
}
27442833
}, {
27452834
"url" : "/jobs/:jobid/plan",
27462835
"method" : "GET",

0 commit comments

Comments
 (0)