toValue method
Implementation
String toValue() {
switch (this) {
case MetricName.activatingGameSessions:
return 'ActivatingGameSessions';
case MetricName.activeGameSessions:
return 'ActiveGameSessions';
case MetricName.activeInstances:
return 'ActiveInstances';
case MetricName.availableGameSessions:
return 'AvailableGameSessions';
case MetricName.availablePlayerSessions:
return 'AvailablePlayerSessions';
case MetricName.currentPlayerSessions:
return 'CurrentPlayerSessions';
case MetricName.idleInstances:
return 'IdleInstances';
case MetricName.percentAvailableGameSessions:
return 'PercentAvailableGameSessions';
case MetricName.percentIdleInstances:
return 'PercentIdleInstances';
case MetricName.queueDepth:
return 'QueueDepth';
case MetricName.waitTime:
return 'WaitTime';
}
}