oadrRegisterReport.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <oadr:oadrSignedObject xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07" oadr:Id="oadrSignedObject">
  2. <oadr:oadrRegisterReport ei:schemaVersion="2.0b" xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110">
  3. <requestID xmlns="http://docs.oasis-open.org/ns/energyinterop/201110/payloads">{{ request_id }}</requestID>
  4. {% for report in reports %}
  5. <oadr:oadrReport xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" xmlns:strm="urn:ietf:params:xml:ns:icalendar-2.0:stream">
  6. {% if report.dtstart is defined and report.dtstart is not none %}
  7. <xcal:dtstart>
  8. <xcal:date-time>{{ report.duration|timedeltaformat }}</xcal:date-time>
  9. </xcal:dtstart>
  10. {% endif %}
  11. {% if report.duration is defined and report.duration is not none %}
  12. <xcal:duration>
  13. <xcal:duration>{{ report.duration|timedeltaformat }}</xcal:duration>
  14. </xcal:duration>
  15. {% endif %}
  16. <ei:eiReportID>{{ report.report_id }}</ei:eiReportID>
  17. {% for report_description in report.report_descriptions %}
  18. {% include 'parts/oadrReportDescription.xml' %}
  19. {% endfor %}
  20. {% if report.report_request_id is defined and report.report_request_id is not none %}
  21. <ei:reportRequestID>{{ report.report_request_id }}</ei:reportRequestID>
  22. {% else %}
  23. <ei:reportRequestID></ei:reportRequestID>
  24. {% endif %}
  25. <ei:reportSpecifierID>{{ report.report_specifier_id }}</ei:reportSpecifierID>
  26. <ei:reportName>{{ report.report_name }}</ei:reportName>
  27. <ei:createdDateTime>{{ report.created_date_time|datetimeformat }}</ei:createdDateTime>
  28. </oadr:oadrReport>
  29. {% endfor %}
  30. {% if ven_id is defined and ven_id is not none %}
  31. <ei:venID>{{ ven_id }}</ei:venID>
  32. {% endif %}
  33. {% if report_request_id is defined and report_request_id is not none %}
  34. <ei:reportRequestID>{{ report_request_id }}</ei:reportRequestID>
  35. {% endif %}
  36. </oadr:oadrRegisterReport>
  37. </oadr:oadrSignedObject>