toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CustomMetricType.stringList:
      return 'string-list';
    case CustomMetricType.ipAddressList:
      return 'ip-address-list';
    case CustomMetricType.numberList:
      return 'number-list';
    case CustomMetricType.number:
      return 'number';
  }
}