123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- {
- "ApiSpecs": [
- {
- "HttpVerb": "POST",
- "Path": "/api/v1/aggregator",
- "Calls": [
- {
- "Id": 0,
- "CurrentPath": "/api/v1/aggregator",
- "MethodType": "POST",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
- "Content-Type": " application/json\r",
- "X-Forwarded-For": " 127.0.0.1\r"
- },
- "CommonRequestHeaders": null,
- "ResponseHeader": {
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "{\"tags\":\"\",\"step\":60,\"numerator\":\"$(cpu.idle)\",\"metric\":\"test.idle\",\"hostgroup_id\":343,\"endpoint\":\"testenp\",\"denominator\":\"2\"}",
- "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"2\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "GET",
- "Path": "/api/v1/hostgroup/343/aggregators",
- "Calls": [
- {
- "Id": 1,
- "CurrentPath": "/api/v1/hostgroup/343/aggregators",
- "MethodType": "GET",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
- "X-Forwarded-For": " 127.0.0.1\r"
- },
- "CommonRequestHeaders": null,
- "ResponseHeader": {
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "{\"hostgroup\": \"test_group\", \"aggregators\": [{\"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\"}]}",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "PUT",
- "Path": "/api/v1/aggregator",
- "Calls": [
- {
- "Id": 2,
- "CurrentPath": "/api/v1/aggregator",
- "MethodType": "PUT",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
- "Content-Type": " application/json\r",
- "X-Forwarded-For": " 127.0.0.1\r"
- },
- "CommonRequestHeaders": null,
- "ResponseHeader": {
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "{\"tags\":\"\",\"step\":60,\"numerator\":\"$(cpu.idle)\",\"metric\":\"test.idle\",\"id\":16,\"endpoint\":\"testenp\",\"denominator\":\"$#\"}",
- "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"$#\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "GET",
- "Path": "/api/v1/aggregator/16",
- "Calls": [
- {
- "Id": 3,
- "CurrentPath": "/api/v1/aggregator/16",
- "MethodType": "GET",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
- "X-Forwarded-For": " 127.0.0.1\r"
- },
- "CommonRequestHeaders": null,
- "ResponseHeader": {
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "{\"id\":16,\"grp_id\":343,\"numerator\":\"$(cpu.idle)\",\"denominator\":\"$#\",\"endpoint\":\"testenp\",\"metric\":\"test.idle\",\"tags\":\"\",\"ds_type\":\"GAUGE\",\"step\":60,\"creator\":\"root\"}",
- "ResponseCode": 200
- }
- ]
- },
- {
- "HttpVerb": "DELETE",
- "Path": "/api/v1/aggregator/16",
- "Calls": [
- {
- "Id": 4,
- "CurrentPath": "/api/v1/aggregator/16",
- "MethodType": "DELETE",
- "PostForm": null,
- "RequestHeader": {
- "Apitoken": "{\"name\":\"root\",\"sig\":\"427d6803b78311e68afd0242ac130006\"}",
- "X-Forwarded-For": " 127.0.0.1\r"
- },
- "CommonRequestHeaders": null,
- "ResponseHeader": {
- "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"
- },
- "RequestUrlParams": {},
- "RequestBody": "",
- "ResponseBody": "{\"message\":\"aggregator:16 is deleted\"}",
- "ResponseCode": 200
- }
- ]
- }
- ]
- }
|