新增/修改图表
POST
https://api.flashcat.cloud/api/v1/northstar/business/dashboard/upsert
最后修改时间:2024-03-15 07:52:27
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/api/v1/northstar/business/dashboard/upsert' \
--header 'FC-WORKSPACE-ID: FC-WORKSPACE-ID' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"name": "有原值指标-prom",
"order": 0,
"business_id": 8,
"metrics": [
{
"id": 73,
"name": "有原值指标-prom",
"identifier": "northstar_79d8ba8ce0",
"aggregate": "sum",
"legend": "total"
}
],
"chart_config": {
"downsample": "sum_over_time",
"maxYaxis": "20000"
}
}'
响应示例响应示例
{
"request_id": "string",
"data": 0
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
FC-WORKSPACE-ID
string
必需
示例值:
FC-WORKSPACE-ID
Body 参数application/json