Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. API for reports. Preferably JSON
  2.  
  3. // This struct is returned when fetching the list of screens
  4.  
  5. screen: struct
  6. id: int32
  7. title: char[]
  8. machines: int32[] // List of machines selectable for this reports
  9. widgets: widget[]
  10.  
  11. widget: struct
  12. id: int32
  13. title: char[]
  14. type: int32
  15. behavior: int32
  16. - one widget per machine
  17. - show all machines in one widget
  18. - (aggregate) sum machines
  19. - (aggregate) average machines
  20. - (aggregate) average (not 0) machines
  21. values: valueDef[]
  22.  
  23. valueDef: struct
  24. name: char[]
  25. format: char[]
  26. type: int32
  27.  
  28. // Get data for screen
  29.  
  30. screenId: int32
  31. machines: int32[] // The subset of screen machines to fetch data for
  32. timeStart: int32 // Unix timestamp
  33. timeEnd: int32 // Unix timestamp
  34.  
  35. // Return value
  36.  
  37. dictionary:
  38. key: machineId
  39. value: struct
  40. item1: date
  41. item2: object[] // string, int, float
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement