query struct to promql
Changed onpost/query/ts/struct_to_promql
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/query/ts/struct_to_promql
- Authnone declared
Headers
traceparentstring
TraceID
Bk-Query-Sourcestring
来源
X-Bk-Scope-Space-Uidstring
空间UID
Request body
Example request
{
"down_sample_range": "5m",
"end_time": "1657851600",
"legacy_output_ref": "C",
"metric_merge": "a",
"output_list": [
{
"expression": "A",
"reference_name": "A"
}
],
"query_list": [
{
"conditions": {
"condition_list": [
"and"
],
"field_list": [
{
"field_name": "bk_biz_id",
"op": "contains",
"value": [
"2"
]
}
]
},
"dimensions": [
"bk_target_ip",
"bk_target_cloud_id"
],
"field_name": "usage",
"function": [
{
"dimensions": [
"bk_target_ip",
"bk_target_cloud_id"
],
"field": "field",
"method": "mean",
"window": "60s"
}
],
"reference_name": "a",
"table_id": "system.cpu_summary",
"table_id_conditions": [
[
{
"field_name": "bk_biz_id",
"op": "contains",
"value": [
"2"
]
}
]
],
"time_aggregation": {
"function": "avg_over_time",
"window": "60s"
}
}
],
"response_contract": "named_outputs/v1",
"start_time": "1657848000",
"step": "1m",
"timezone": "Asia/Shanghai"
}Response
OK
Example response
{
"down_sample_range": "5m",
"timezone": "Asia/Shanghai"
}Changes
- info
api operation id
struct-to-promqlremoved and replaced withtransform_struct_to_promql
- info
- info
api operation id
transform_struct_to_promqlremoved and replaced withstruct-to-promql
- info