oadrReportDescription.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <oadr:oadrReportDescription xmlns:emix="http://docs.oasis-open.org/ns/emix/2011/06">
  2. <ei:rID>{{ report_description.r_id }}</ei:rID>
  3. {% if report_description.report_subject %}
  4. <ei:reportSubject>
  5. <ei:resourceID>{{ report_description.report_subject.resource_id }}</ei:resourceID>
  6. </ei:reportSubject>
  7. {% endif %}
  8. {% if report_description.report_data_source %}
  9. <ei:reportDataSource>
  10. {% if report_description.report_data_source.emix_interfaces %}
  11. {% for emix_interface in target.emix_interface %}
  12. {% include 'parts/emixInterface.xml' %}
  13. {% endfor %}
  14. {% endif %}
  15. {% if report_description.report_data_source.group_id %}
  16. <ei:groupID>{{ report_description.report_data_source.group_id }}</ei:groupID>
  17. {% endif %}
  18. {% if report_description.report_data_source.group_name %}
  19. <ei:groupName>{{ report_description.report_data_source.group_name }}</ei:groupName>
  20. {% endif %}
  21. {% if report_description.report_data_source.resource_id %}
  22. <ei:resourceID>{{ report_description.report_data_source.resource_id }}</ei:resourceID>
  23. {% endif %}
  24. {% if report_description.report_data_source.ven_id %}
  25. <ei:venID>{{ report_description.report_data_source.ven_id }}</ei:venID>
  26. {% endif %}
  27. {% if report_description.report_data_source.party_id %}
  28. <ei:partyID>{{ report_description.report_data_source.party_id }}</ei:partyID>
  29. {% endif %}
  30. </ei:reportDataSource>
  31. {% endif %}
  32. <ei:reportType>{{ report_description.report_type }}</ei:reportType>
  33. {% include 'parts/reportDescriptionEmix.xml' %}
  34. <ei:readingType>{{ report_description.reading_type }}</ei:readingType>
  35. {% if report_description.market_context %}
  36. <emix:marketContext>{{ report_description.market_context }}</emix:marketContext>
  37. {% endif %}
  38. {% if report_description.sampling_rate %}
  39. <oadr:oadrSamplingRate>
  40. <oadr:oadrMinPeriod>{{ report_description.sampling_rate.min_period|timedeltaformat }}</oadr:oadrMinPeriod>
  41. <oadr:oadrMaxPeriod>{{ report_description.sampling_rate.max_period|timedeltaformat }}</oadr:oadrMaxPeriod>
  42. <oadr:oadrOnChange>{{ report_description.sampling_rate.on_change|booleanformat }}</oadr:oadrOnChange>
  43. </oadr:oadrSamplingRate>
  44. {% endif %}
  45. </oadr:oadrReportDescription>