curl --location 'https://api.flashcat.cloud/api/v2/firemap/builtin/template/detail?component_id=123&payload_id=123&payload_uuid=1' \
--header 'X-User-Token: YOUR_USER_TOKEN' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6IjM2ZTRjZjI3LWI4OWYtNDFlZS04ZDhmLWZiMjdhMmZlZGIzOSIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTc3NTExMTEyMywidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.IwPWDg92AjjvuUTGplaXgpexmOSsONx73M7Y7pOI_vE'{
"request_id": "0ace0011649b99a4742c592762c584b0",
"error": null,
"data": {
"id": 123,
"workspace_id": 123,
"name": "示例名称",
"note": "string",
"order": 1,
"enable": true,
"created_at": 1,
"updated_at": 1,
"created_by": "string",
"updated_by": "string",
"aggr_mode": true,
"label_match_settings": {
"label_match_enable": true,
"label_match_rules": [
{
"metric": "string",
"match_all": true,
"label_matches": [
{
"card_label": "string",
"metric_label": "string",
"operation": "string"
}
]
}
]
},
"data_source_type": "prometheus",
"data_source_ids": [
123
],
"window_seconds": 300,
"original_series_mode": true,
"multi_thresholds": [
{
"is_critical": true,
"thresholds": [
{
"exp_idx": "string",
"metric": "string",
"name": "示例名称",
"threshold": 99.9,
"limit": 20,
"operator": "string",
"logic": "string",
"aggregation": "string",
"normalize": "string",
"is_critical": true,
"unit": "string",
"dynamic": {
"service_cal_ids": [
123
],
"algo_name": "string",
"algo_param": {
"key": "value"
},
"num_of_days": 1,
"bucket_in_minutes": 1,
"fitting_method": "string",
"limit": 20,
"factor": 99.9,
"operator": "string",
"multi_factors_enable": true,
"multi_factors": [
{
"operator": "string",
"threshold": 99.9,
"factor": 99.9
}
]
},
"offset": {
"num_of_days": 1,
"limit": 20,
"factor_p": 99.9,
"operator": "string"
},
"step_by_step": {
"num_of_steps": 1,
"factor_p": 99.9,
"operator": "string",
"limit": 20,
"method": "string"
}
}
],
"severity": 1,
"mode": 1,
"expression": "string",
"advanced_enable": true,
"advanced_settings": {
"enable_stimes": [
"2025-01-01T00:00:00+08:00"
],
"enable_etimes": [
"2025-01-01T00:00:00+08:00"
],
"enable_days_of_weeks": [
[
"string"
]
],
"service_cal_ids": [
123
]
},
"label_filter_enable": true,
"label_filter_settings": {
"logic": "string",
"filters": [
{
"key": "string",
"operator": "string",
"values": [
"string"
]
}
]
}
}
],
"thresholds": [
{
"exp_idx": "string",
"metric": "string",
"name": "示例名称",
"threshold": 99.9,
"limit": 20,
"operator": "string",
"logic": "string",
"aggregation": "string",
"normalize": "string",
"is_critical": true,
"unit": "string",
"dynamic": {
"service_cal_ids": [
123
],
"algo_name": "string",
"algo_param": {
"key": "value"
},
"num_of_days": 1,
"bucket_in_minutes": 1,
"fitting_method": "string",
"limit": 20,
"factor": 99.9,
"operator": "string",
"multi_factors_enable": true,
"multi_factors": [
{
"operator": "string",
"threshold": 99.9,
"factor": 99.9
}
]
},
"offset": {
"num_of_days": 1,
"limit": 20,
"factor_p": 99.9,
"operator": "string"
},
"step_by_step": {
"num_of_steps": 1,
"factor_p": 99.9,
"operator": "string",
"limit": 20,
"method": "string"
}
}
],
"metrics": [
{
"metric_idx": "string",
"metric": "string",
"name": "示例名称",
"settings": {
"key": "value"
},
"mode": 1,
"layout_number": 1,
"unit": "string",
"data_source_type": "prometheus",
"data_source_ids": [
123
],
"downsample": "string"
}
],
"labels": {
"key": "value"
},
"label_enrich": [
{
"type": "string",
"settings": "string"
}
],
"disable_data_dump": true,
"delay_seconds": 300,
"calculation": 1,
"series_mode": true,
"metric_advanced_settings": [
{
"metric": "string",
"metrics": [
"string"
],
"fill_value_if_null": "string",
"downsample": "string",
"aggregate": "string",
"chart_config": "string",
"value_mapping": "string"
}
],
"metric_display_settings": {
"pinned_metrics": [
{
"metric": "string",
"aggregate": "string"
}
],
"data_view_mode": "string"
},
"metric_handlers": [
{
"metric": "string",
"method": "string",
"params": "string"
}
],
"fill_zero_if_null": true,
"automatic": true,
"num_of_cycle": 1,
"unit_of_cycle": "m",
"execution_time": "2025-01-01T00:00:00+08:00",
"limit": 20,
"bugroup_name": "string",
"bugroup_is_system": true,
"business_name": "示例名称",
"business_icon": "string",
"group_names": [
"示例名称"
],
"card_name": "示例名称",
"description": "string",
"owners": [
"string"
],
"firemap_type": "function",
"group_name": "示例名称",
"bugroup_id": 123,
"business_id": 123,
"group_ids": [
123
],
"group_id": 123,
"card_name_template": "string",
"settings": {
"key": "value"
},
"blacklists": [
{
"key": "value"
}
],
"delete_rule": {
"num_of_nodata_days": 1,
"delete_by_path_match": true,
"time_unit_of_path_match": "2025-01-01T00:00:00+08:00",
"time_num_of_path_match": 1
},
"drilldown_rules": [
{
"target_type": "string",
"knowledge": "string",
"target": [
{
"key": "value"
}
]
}
],
"is_deleting": true
}
}