toValue method
Implementation
String toValue() {
switch (this) {
case MetricName.cPUUtilization:
return 'CPUUtilization';
case MetricName.networkIn:
return 'NetworkIn';
case MetricName.networkOut:
return 'NetworkOut';
case MetricName.statusCheckFailed:
return 'StatusCheckFailed';
case MetricName.statusCheckFailedInstance:
return 'StatusCheckFailed_Instance';
case MetricName.statusCheckFailedSystem:
return 'StatusCheckFailed_System';
case MetricName.clientTLSNegotiationErrorCount:
return 'ClientTLSNegotiationErrorCount';
case MetricName.healthyHostCount:
return 'HealthyHostCount';
case MetricName.unhealthyHostCount:
return 'UnhealthyHostCount';
case MetricName.hTTPCodeLb_4xxCount:
return 'HTTPCode_LB_4XX_Count';
case MetricName.hTTPCodeLb_5xxCount:
return 'HTTPCode_LB_5XX_Count';
case MetricName.hTTPCodeInstance_2xxCount:
return 'HTTPCode_Instance_2XX_Count';
case MetricName.hTTPCodeInstance_3xxCount:
return 'HTTPCode_Instance_3XX_Count';
case MetricName.hTTPCodeInstance_4xxCount:
return 'HTTPCode_Instance_4XX_Count';
case MetricName.hTTPCodeInstance_5xxCount:
return 'HTTPCode_Instance_5XX_Count';
case MetricName.instanceResponseTime:
return 'InstanceResponseTime';
case MetricName.rejectedConnectionCount:
return 'RejectedConnectionCount';
case MetricName.requestCount:
return 'RequestCount';
case MetricName.databaseConnections:
return 'DatabaseConnections';
case MetricName.diskQueueDepth:
return 'DiskQueueDepth';
case MetricName.freeStorageSpace:
return 'FreeStorageSpace';
case MetricName.networkReceiveThroughput:
return 'NetworkReceiveThroughput';
case MetricName.networkTransmitThroughput:
return 'NetworkTransmitThroughput';
case MetricName.burstCapacityTime:
return 'BurstCapacityTime';
case MetricName.burstCapacityPercentage:
return 'BurstCapacityPercentage';
}
}