toInstanceMetricName method
Implementation
InstanceMetricName toInstanceMetricName() {
switch (this) {
case 'CPUUtilization':
return InstanceMetricName.cPUUtilization;
case 'NetworkIn':
return InstanceMetricName.networkIn;
case 'NetworkOut':
return InstanceMetricName.networkOut;
case 'StatusCheckFailed':
return InstanceMetricName.statusCheckFailed;
case 'StatusCheckFailed_Instance':
return InstanceMetricName.statusCheckFailedInstance;
case 'StatusCheckFailed_System':
return InstanceMetricName.statusCheckFailedSystem;
case 'BurstCapacityTime':
return InstanceMetricName.burstCapacityTime;
case 'BurstCapacityPercentage':
return InstanceMetricName.burstCapacityPercentage;
}
throw Exception('$this is not known in enum InstanceMetricName');
}