def _convert_xml_to_metrics(xml, metrics):
<EOL>metrics.version = xml.find('<STR_LIT>').text<EOL>metrics.enabled = _bool(xml.find('<STR_LIT>').text)<EOL>include_apis_element = xml.find('<STR_LIT>')<EOL>if include_apis_element is not None:<EOL><INDENT>metrics.include_apis = _bool(include_apis_element.text)<EOL><DEDENT>_convert_xml_to_retention_policy(xml.find('<STR_LIT>'), metrics.retention_policy)<EOL>
<Version>version-number</Version>
<Enabled>true|false</Enabled>
<IncludeAPIs>true|false</IncludeAPIs>
<RetentionPolicy>
    <Enabled>true|false</Enabled>
    <Days>number-of-days</Days>
</RetentionPolicy>