nantum-responses.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. 'use strict';
  2. const sampleEvent1 = {
  3. event_identifier: 'a2fa542eca8d4e829ff5c0f0c8e68710',
  4. client_id: 'D8:1D:4B:20:5A:65:4C:50:32:FA',
  5. test_event: false,
  6. event_mod_number: 2,
  7. offLine: false,
  8. dr_mode_data: {
  9. operation_mode_value: 'NORMAL',
  10. // event_status: 'NEAR',
  11. // currentTime: 'xxxxx',
  12. },
  13. dr_event_data: {
  14. notification_time: '2020-04-25T22:50:00.000Z',
  15. start_time: '2020-04-26T23:00:00.000Z',
  16. end_time: '2020-04-26T23:55:00.000Z',
  17. event_instance: [
  18. {
  19. event_type_id: 'LOAD_AMOUNT',
  20. event_info_values: [
  21. { value: 41, timeOffset: 0 },
  22. { value: 42, timeOffset: 10 },
  23. ],
  24. },
  25. ],
  26. },
  27. };
  28. const sampleReport1 = {
  29. 'D8:1D:4B:20:5A:65:4C:50:32:FA': {
  30. venReportMetadata: [
  31. {
  32. reportRequestIds: ['uuid0'],
  33. reportSpecifierId: 'TELEMETRY_STATUS',
  34. descriptions: [
  35. {
  36. reportId: 'ts1',
  37. reportType: 'x-resourceStatus',
  38. readingType: 'x-notApplicable',
  39. samplingRate: {
  40. minPeriod: 'PT1M',
  41. maxPeriod: 'PT1H',
  42. onChange: false,
  43. },
  44. },
  45. ],
  46. lastReceivedRegister: '2020-04-26T01:00:00.000Z',
  47. },
  48. {
  49. reportRequestIds: ['uuid1'],
  50. reportSpecifierId: 'TELEMETRY_USAGE',
  51. descriptions: [
  52. {
  53. reportId: 'rep1',
  54. reportType: 'usage',
  55. readingType: 'Direct Read',
  56. samplingRate: {
  57. minPeriod: 'PT1M',
  58. maxPeriod: 'PT1H',
  59. onChange: false,
  60. },
  61. },
  62. {
  63. reportId: 'rep2',
  64. reportType: 'usage',
  65. readingType: 'Direct Read',
  66. samplingRate: {
  67. minPeriod: 'PT1M',
  68. maxPeriod: 'PT1H',
  69. onChange: false,
  70. },
  71. },
  72. ],
  73. lastReceivedRegister: '2020-04-26T01:00:00.000Z',
  74. },
  75. ],
  76. },
  77. };
  78. module.exports = {
  79. sampleEvent1,
  80. sampleReport1,
  81. };