func StringToTagCardinality(c string) (TagCardinality, error) {
	switch strings.ToLower(c) {
	case HighCardinalityString:
		return HighCardinality, nil
	case ShortOrchestratorCardinalityString, OrchestratorCardinalityString:
		return OrchestratorCardinality, nil
	case LowCardinalityString:
		return LowCardinality, nil
	default:
		return LowCardinality, fmt.Errorf("unsupported value %s received for tag cardinality", c)
	}
}
// StringToTagCardinality extracts a TagCardinality from a string.
// In case of failure to parse, returns an error and defaults to Low.
StringToTagCardinality extracts a TagCardinality from a string.
In case of failure to parse, returns an error and defaults to Low.
// StringToTagCardinality extracts a TagCardinality from a string . // In case of failure to parse returns an error and defaults to Low .
func StringToTagCardinality(c string) (TagCardinality, error) {
	switch strings.ToLower(c) {
	case HighCardinalityString:
		return HighCardinality, nil
	case ShortOrchestratorCardinalityString, OrchestratorCardinalityString:
		return OrchestratorCardinality, nil
	case LowCardinalityString:
		return LowCardinality, nil
	default:
		return LowCardinality, fmt.Errorf("unsupported value %s received for tag cardinality", c)
	}
}
func StringToTagCardinality ( c string ) ( TagCardinality , error ) { switch strings . ToLower ( c ) { case HighCardinalityString : return HighCardinality , nil case ShortOrchestratorCardinalityString , OrchestratorCardinalityString : return OrchestratorCardinality , nil case LowCardinalityString : return LowCardinality , nil default : return LowCardinality , fmt . Errorf ( " " , c ) } }
StringToTagCardinality extracts a TagCardinality from a string.
StringToTagCardinality extracts a TagCardinality from a string .