Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json
X-Forwarded-For 127.0.0.1

Request Body

{"tags":"","step":60,"numerator":"$(cpu.idle)","metric":"test.idle","hostgroup_id":343,"endpoint":"testenp","denominator":"2"}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"id":16,"grp_id":343,"numerator":"$(cpu.idle)","denominator":"2","endpoint":"testenp","metric":"test.idle","tags":"","ds_type":"GAUGE","step":60,"creator":"root"}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
X-Forwarded-For 127.0.0.1

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

[{"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"},{"id":15,"grp_id":343,"numerator":"$(cpu.idle)","denominator":"2","endpoint":"testenp","metric":"test.idle","tags":"","ds_type":"GAUGE","step":60,"creator":"root"},{"id":16,"grp_id":343,"numerator":"$(cpu.idle)","denominator":"2","endpoint":"testenp","metric":"test.idle","tags":"","ds_type":"GAUGE","step":60,"creator":"root"}]

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
Content-Type application/json
X-Forwarded-For 127.0.0.1

Request Body

{"tags":"","step":60,"numerator":"$(cpu.idle)","metric":"test.idle","id":16,"endpoint":"testenp","denominator":"$#"}

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"id":16,"grp_id":343,"numerator":"$(cpu.idle)","denominator":"$#","endpoint":"testenp","metric":"test.idle","tags":"","ds_type":"GAUGE","step":60,"creator":"root"}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
X-Forwarded-For 127.0.0.1

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

{"id":16,"grp_id":343,"numerator":"$(cpu.idle)","denominator":"$#","endpoint":"testenp","metric":"test.idle","tags":"","ds_type":"GAUGE","step":60,"creator":"root"}

Request Headers

Key Value
Apitoken {"name":"root","sig":"427d6803b78311e68afd0242ac130006"}
X-Forwarded-For 127.0.0.1

Response Code

200

Response Headers

Key Value
Access-Control-Allow-Credentials true
Access-Control-Allow-Headers Content-Type, Content-Length, Apitoken
Access-Control-Allow-Methods POST, GET, OPTIONS, PUT, DELETE, UPDATE
Access-Control-Allow-Origin *
Access-Control-Expose-Headers Content-Length
Access-Control-Max-Age 86400
Content-Type application/json; charset=utf-8

Response Body

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