falcon_plus_api v0.2.1 FalconPlusApi.Api.Nodata

Summary

Functions

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

Request

{ "tags": "", "step": 60, "obj_type": "host", "obj": "docker-agent", "name": "testnodata", "mock": -1, "metric": "test.metric", "dstype": "GAUGE" }

Response

Status: 200 { "id": 4, "name": "testnodata", "obj": "docker-agent", "obj_type": "host", "metric": "test.metric", "tags": "", "dstype": "GAUGE", "step": 60, "mock": -1, "creator": "root" }

delete(sig, param, addr \\ nil, options \\ [])
  • Session Required
  • ex. /api/v1/nodata/4

Response

Status: 200 {"message":"mockcfg:4 is deleted"}

info_by_id(sig, param, addr \\ nil, options \\ [])
  • Session Required
  • ex. /api/v1/nodata/2

Response

Status: 200 { "id": 2, "name": "owl_nodate", "obj": "docker-agent", "obj_type": "host", "metric": "test.metric", "tags": "", "dstype": "GAUGE", "step": 60, "mock": -2, "creator": "root" }

list(sig, addr \\ nil, options \\ [])

Response

Status: 200 [ { "id": 2, "name": "owl_nodate", "obj": "docker-agent", "obj_type": "host", "metric": "test.metric", "tags": "", "dstype": "GAUGE", "step": 60, "mock": -2, "creator": "root" } ]

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

Request

{ "tags": "", "step": 60, "obj_type": "host", "obj": "docker-agent", "mock": -2, "metric": "test.metric", "id": 4, "dstype": "GAUGE" }

Response

Status: 200 { "id": 0, "name": "", "obj": "docker-agent", "obj_type": "host", "metric": "test.metric", "tags": "", "dstype": "GAUGE", "step": 60, "mock": -2, "creator": "" }