falcon_plus_api v0.1.0 FalconPlusApi.Api.Aggreator

Summary

Functions

  • Session Required
  • numerator: 分子
  • denominator: 分母
  • step: 汇报周期(秒为单位)
  • Session Required
  • ex. /api/v1/hostgroup/343/aggregators
  • numerator: 分子
  • denominator: 分母
  • step: 汇报周期(秒为单位)
  • Session Required
  • numerator: 分子
  • denominator: 分母
  • step: 汇报周期(秒为单位)

Functions

create(sig, addr \\ nil, options \\ [])
  • 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" }

delete(sig, post_param, addr \\ nil, options \\ [])

Response

Status: 200 {"message":"aggregator:16 is deleted"}

of_hostgroup(sig, param, addr \\ nil, options \\ [])
  • 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" } ]

update(sig, post_param, addr \\ nil, options \\ [])
  • 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" }