Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. https://172.25.x.x:8001/API/v1/pm/1/devicePerformance/sysuptime
  2.  
  3. {
  4. "id" :"mainSchema.json",
  5. "$schema": "http://json-schema.org/draft-04/schema#",
  6. "links" : [
  7. {
  8. "title" : "performance ",
  9. "href" : "/pm/1/",
  10. "method": "GET",
  11. "schema" : {"$ref" : "subSchema.json" }
  12. }]
  13. }
  14.  
  15. {
  16. "id" : "subSchema.json",
  17. "title" : "API to Pm data ",
  18. "$schema": "http://json-schema.org/draft-04/schema#",
  19. "$ref" : "#/definitions/PMCategoryList",
  20. "links" : [
  21. {
  22. "title" : "List of PM Data Category",
  23. "href" : "/",
  24. "method" : "GET",
  25. "rel" : "categories",
  26. "schema" : {"$ref" : "#/definitions/PMCategoryList"}
  27. }
  28. ],
  29.  
  30. "definitions" : {
  31. "PMCategoryList" : {
  32. "type" :"object",
  33. "properties" :{
  34. "pmdatatype" : {
  35. "type" : "array",
  36. "items" : { "$ref" : "#/definitions/PMDataType"}
  37. }
  38. }
  39. },
  40. "PMDataType" : {
  41. "description" :"A given PM data type",
  42. "type" : "string",
  43. "enum" : ["devicePerformance/sysuptime","devicePerformance/systemuptime","devicePerformance/cputemp","devicePerformance/cpuusage","devicePerformance/memusage","devicePerformance/memoryusage","networkPerformance/ping","networkPerformance/advping","networkPerformance/lspping","networkPerformance/sla","networkPerformance/linklatency" ]
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement