oadrRegisterReport.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <oadrPayload xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://openadr.org/oadr-2.0b/2012/07">
  3. <oadrSignedObject>
  4. <oadrRegisterReport ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
  5. <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ request_id }}</requestID>
  6. <ei:venID>{{ ven_id }}</ei:venID>
  7. {% for report in reports %}
  8. <oadrReport>
  9. <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
  10. <duration>{{ report.duration }}</duration>
  11. </duration>
  12. {% for rd report.description %}
  13. <oadrReportDescription>
  14. <ei:rID>{{ rd.status }}</ei:rID>
  15. <ei:reportDataSource>
  16. <ei:resourceID>{{ rd.resource_id }}</ei:resourceID>
  17. </ei:reportDataSource>
  18. <ei:reportType>{{ rd.report_type }}</ei:reportType>
  19. <ei:readingType>{{ rd.reading_type }}</ei:readingType>
  20. <marketContext xmlns="http://docs.oasis-open.org/ns/emix/2011/06">{{ rd.market_context }}</marketContext>
  21. <oadrSamplingRate>
  22. <oadrMinPeriod>{{ rd.sampling_rate.min_period }}</oadrMinPeriod>
  23. <oadrMaxPeriod>{{ rd.sampling_rate.max_period }}</oadrMaxPeriod>
  24. <oadrOnChange>{{ rd.sampling_rate.on_change }}</oadrOnChange>
  25. </oadrSamplingRate>
  26. </oadrReportDescription>
  27. {% endfor %}
  28. <ei:reportRequestID>{{ report.report_request_id }}</ei:reportRequestID>
  29. <ei:reportSpecifierID>{{ report.report_specifier_id }}</ei:reportSpecifierID>
  30. <ei:reportName>{{ report.report_name }}</ei:reportName>
  31. <ei:createdDateTime>{{ report.created_date_time }}</ei:createdDateTime>
  32. </oadrReport>
  33. {% endfor %}
  34. <oadrReport>
  35. <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
  36. <duration>{{ duration }}</duration>
  37. </duration>
  38. {% for report_description in reports %}
  39. <oadrReportDescription>
  40. <ei:rID>{{ report_description.r_id }}</ei:rID>
  41. <ei:reportDataSource>
  42. <ei:resourceID>{report_description.report_data_source.resource_id</ei:resourceID>
  43. </ei:reportDataSource>
  44. <ei:reportType>report_description.report_type</ei:reportType>
  45. <energyReal xmlns="http://docs.oasis-open.org/ns/emix/2011/06/power">
  46. <itemDescription>{{report_description.energy_real.item_descirption}}</itemDescription>
  47. <itemUnits>{{ report_description.energy_real.item_units }}</itemUnits>
  48. <siScaleCode xmlns="http://docs.oasis-open.org/ns/emix/2011/06/siscale">{{ report_descirption.energy_real.si_scale_code }}</siScaleCode>
  49. </energyReal>
  50. <ei:readingType>Direct Read</ei:readingType>
  51. <marketContext xmlns="http://docs.oasis-open.org/ns/emix/2011/06">http://MarketContext1</marketContext>
  52. <oadrSamplingRate>
  53. <oadrMinPeriod>PT1M</oadrMinPeriod>
  54. <oadrMaxPeriod>PT1M</oadrMaxPeriod>
  55. <oadrOnChange>false</oadrOnChange>
  56. </oadrSamplingRate>
  57. </oadrReportDescription>
  58. {%
  59. <oadrReportDescription>
  60. <ei:rID>resource1_power</ei:rID>
  61. <ei:reportDataSource>
  62. <ei:resourceID>resource1</ei:resourceID>
  63. </ei:reportDataSource>
  64. <ei:reportType>usage</ei:reportType>
  65. <powerReal xmlns="http://docs.oasis-open.org/ns/emix/2011/06/power">
  66. <itemDescription>RealPower</itemDescription>
  67. <itemUnits>W</itemUnits>
  68. <siScaleCode xmlns="http://docs.oasis-open.org/ns/emix/2011/06/siscale">n</siScaleCode>
  69. <powerAttributes>
  70. <hertz>60</hertz>
  71. <voltage>110</voltage>
  72. <ac>false</ac>
  73. </powerAttributes>
  74. </powerReal>
  75. <ei:readingType>Direct Read</ei:readingType>
  76. <marketContext xmlns="http://docs.oasis-open.org/ns/emix/2011/06">http://MarketContext1</marketContext>
  77. <oadrSamplingRate>
  78. <oadrMinPeriod>PT1M</oadrMinPeriod>
  79. <oadrMaxPeriod>PT1M</oadrMaxPeriod>
  80. <oadrOnChange>false</oadrOnChange>
  81. </oadrSamplingRate>
  82. </oadrReportDescription>
  83. <ei:reportRequestID>0</ei:reportRequestID>
  84. <ei:reportSpecifierID>789ed6cd4e_telemetry_usage</ei:reportSpecifierID>
  85. <ei:reportName>METADATA_TELEMETRY_USAGE</ei:reportName>
  86. <ei:createdDateTime>2019-06-04T10:59:35.6533057Z</ei:createdDateTime>
  87. </oadrReport>
  88. <oadrReport>
  89. <duration xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
  90. <duration>PT2H</duration>
  91. </duration>
  92. <oadrReportDescription>
  93. <ei:rID>resource1_energy</ei:rID>
  94. <ei:reportDataSource>
  95. <ei:resourceID>resource1</ei:resourceID>
  96. </ei:reportDataSource>
  97. <ei:reportType>usage</ei:reportType>
  98. <energyReal xmlns="http://docs.oasis-open.org/ns/emix/2011/06/power">
  99. <itemDescription>RealEnergy</itemDescription>
  100. <itemUnits>Wh</itemUnits>
  101. <siScaleCode xmlns="http://docs.oasis-open.org/ns/emix/2011/06/siscale">n</siScaleCode>
  102. </energyReal>
  103. <ei:readingType>Direct Read</ei:readingType>
  104. <marketContext xmlns="http://docs.oasis-open.org/ns/emix/2011/06">http://MarketContext1</marketContext>
  105. <oadrSamplingRate>
  106. <oadrMinPeriod>PT1M</oadrMinPeriod>
  107. <oadrMaxPeriod>PT1M</oadrMaxPeriod>
  108. <oadrOnChange>false</oadrOnChange>
  109. </oadrSamplingRate>
  110. </oadrReportDescription>
  111. {% endfor %}
  112. <oadrReportDescription>
  113. <ei:rID>resource1_power</ei:rID>
  114. <ei:reportDataSource>
  115. <ei:resourceID>resource1</ei:resourceID>
  116. </ei:reportDataSource>
  117. <ei:reportType>usage</ei:reportType>
  118. <powerReal xmlns="http://docs.oasis-open.org/ns/emix/2011/06/power">
  119. <itemDescription>RealPower</itemDescription>
  120. <itemUnits>W</itemUnits>
  121. <siScaleCode xmlns="http://docs.oasis-open.org/ns/emix/2011/06/siscale">n</siScaleCode>
  122. <powerAttributes>
  123. <hertz>60</hertz>
  124. <voltage>110</voltage>
  125. <ac>false</ac>
  126. </powerAttributes>
  127. </powerReal>
  128. <ei:readingType>Direct Read</ei:readingType>
  129. <marketContext xmlns="http://docs.oasis-open.org/ns/emix/2011/06">http://MarketContext1</marketContext>
  130. <oadrSamplingRate>
  131. <oadrMinPeriod>PT1M</oadrMinPeriod>
  132. <oadrMaxPeriod>PT1M</oadrMaxPeriod>
  133. <oadrOnChange>false</oadrOnChange>
  134. </oadrSamplingRate>
  135. </oadrReportDescription>
  136. <ei:reportRequestID>0</ei:reportRequestID>
  137. <ei:reportSpecifierID>789ed6cd4e_history_usage</ei:reportSpecifierID>
  138. <ei:reportName>METADATA_HISTORY_USAGE</ei:reportName>
  139. <ei:createdDateTime>2019-06-04T10:59:35.6533057Z</ei:createdDateTime>
  140. </oadrReport>
  141. <ei:venID>95a3c2f9068725320753</ei:venID>
  142. </oadrRegisterReport>
  143. </oadrSignedObject>
  144. </oadrPayload>