CustomizedMetricSpecification.fromXml constructor
CustomizedMetricSpecification.fromXml(
- XmlElement elem
Implementation
factory CustomizedMetricSpecification.fromXml(_s.XmlElement elem) {
return CustomizedMetricSpecification(
metricName: _s.extractXmlStringValue(elem, 'MetricName')!,
namespace: _s.extractXmlStringValue(elem, 'Namespace')!,
statistic:
_s.extractXmlStringValue(elem, 'Statistic')!.toMetricStatistic(),
dimensions: _s.extractXmlChild(elem, 'Dimensions')?.let((elem) => elem
.findElements('member')
.map((c) => MetricDimension.fromXml(c))
.toList()),
unit: _s.extractXmlStringValue(elem, 'Unit'),
);
}