falcon_plus_api v0.2.1 FalconPlusApi.Api.Aggreator
Summary
Functions
- Session Required
- numerator: 分子
- denominator: 分母
- step: 汇报周期(秒为单位)
Request
{
"tags": "",
"step": 60,
"numerator": "$(cpu.idle)",
"metric": "test.idle",
"hostgroup_id": 343,
"endpoint": "testenp",
"denominator": "2"
}
Response
Status: 200
{
"id": 16,
"grp_id": 343,
"numerator": "$(cpu.idle)",
"denominator": "2",
"endpoint": "testenp",
"metric": "test.idle",
"tags": "",
"ds_type": "GAUGE",
"step": 60,
"creator": "root"
}
- Session Required
Response
Status: 200
{"message":"aggregator:16 is deleted"}
- Session Required
- ex. /api/v1/hostgroup/343/aggregators
- numerator: 分子
- denominator: 分母
- step: 汇报周期(秒为单位)
Response
Status: 200
[
{
"id": 13,
"grp_id": 343,
"numerator": "$(cpu.idle)",
"denominator": "2",
"endpoint": "testenp",
"metric": "test.idle",
"tags": "",
"ds_type": "GAUGE",
"step": 60,
"creator": "root"
},
{
"id": 14,
"grp_id": 343,
"numerator": "$(cpu.idle)",
"denominator": "2",
"endpoint": "testenp",
"metric": "test.idle",
"tags": "",
"ds_type": "GAUGE",
"step": 60,
"creator": "root"
}
]
- Session Required
- numerator: 分子
- denominator: 分母
- step: 汇报周期(秒为单位)
Request
{
"tags": "",
"step": 60,
"numerator": "$(cpu.idle)",
"metric": "test.idle",
"id": 16,
"endpoint": "testenp",
"denominator": "$#"
}
Response
Status: 200
{
"id": 16,
"grp_id": 343,
"numerator": "$(cpu.idle)",
"denominator": "$#",
"endpoint": "testenp",
"metric": "test.idle",
"tags": "",
"ds_type": "GAUGE",
"step": 60,
"creator": "root"
}