curl --location --request GET 'https://api.flashcat.cloud/api/v1/northstar/metric/list?p&limit&query&orderby=&asc=' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6ImFhNGUyNGQ0LTI0OTEtNGY5Ny04NjA3LWY5YjY4ZjZlNzA5YSIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTY1MzYzMzY4MywidXNlcl9pZGVudGl0eSI6IjEtcm9vdCJ9.sssJhBn8R3ml6rZbuWgPG2GKlTqL3k8IrI7xvP8DioE'
{
"request_id": "d9c08d8bb8bad6970c7ce87b4d45af40",
"data": {
"p": 0,
"limit": 0,
"total": 0,
"items": [
{
"id": 49,
"name": "history2",
"identifier": "history2",
"data_source_id": 204,
"data_source_name": "zabb_history_shadow",
"data_source_type": "mysql",
"related_business": [],
"settings": {
"mysql.sql": "select count(*) from history2",
"mysql.table": "history2",
"mysql.ts.column": "updated_at",
"mysql.ts.format": "DATE",
"mysql.window.seconds": 60
},
"interval": 60,
"enable": true,
"owners": [
"ss"
],
"created_at": 1643193144,
"updated_at": 1651129338
},
{
"id": 58,
"name": "oracle_test",
"identifier": "oracle_test",
"data_source_id": 600,
"data_source_name": "oracle.test",
"data_source_type": "oracle",
"related_business": [
{
"id": 19,
"name": "电商业务"
},
{
"id": 24,
"name": "快猫业务"
}
],
"settings": {
"oracle.sql": "select count(*) from TEST",
"oracle.table": "TEST",
"oracle.ts.column": "TS_122",
"oracle.ts.format": "DATE",
"oracle.window.seconds": 60
},
"interval": 60,
"enable": true,
"owners": [
"111"
],
"created_at": 1649664542,
"updated_at": 1650597893
},
{
"id": 62,
"name": "111",
"identifier": "northstar_5ddd98cf9a",
"data_source_id": 0,
"data_source_name": "多维分析",
"data_source_type": "dimensions",
"related_business": [],
"settings": {
"dimensions.filters": [
{
"key": "http_host",
"name": "域名",
"value": "api-store.gaojihealth.cn"
}
],
"dimensions.name": "host"
},
"interval": 60,
"enable": true,
"owners": [
"222"
],
"created_at": 1651136676,
"updated_at": 1651136676
},
{
"id": 63,
"name": "多tag指标",
"identifier": "northstar_3d7c8f06cf",
"data_source_id": 1,
"data_source_name": "prometheus_2",
"data_source_type": "prometheus",
"related_business": [
{
"id": 27,
"name": "智能报警测试-勿删"
}
],
"settings": {
"prometheus.promql": "sum(rate(http_request_duration_seconds_count[1m])) by (module)",
"prometheus.window.seconds": 60
},
"interval": 60,
"enable": true,
"owners": [
"test"
],
"created_at": 1652145882,
"updated_at": 1652145882
}
]
}
}