func (e Entity) GetTags(cardinality collectors.TagCardinality) []string {
	tagArrays := make([][]string, 0, 3)
	tagArrays = append(tagArrays, e.LowCardinalityTags)

	switch cardinality {
	case collectors.OrchestratorCardinality:
		tagArrays = append(tagArrays, e.OrchestratorCardinalityTags)
	case collectors.HighCardinality:
		tagArrays = append(tagArrays, e.OrchestratorCardinalityTags)
		tagArrays = append(tagArrays, e.HighCardinalityTags)
	}

	return utils.ConcatenateTags(tagArrays)
}
// GetTags flattens all tags from all cardinalities into a single slice of tag
// strings.
GetTags flattens all tags from all cardinalities into a single slice of tag
strings.
// GetTags flattens all tags from all cardinalities into a single slice of tag // strings .
func (e Entity) GetTags(cardinality collectors.TagCardinality) []string {
	tagArrays := make([][]string, 0, 3)
	tagArrays = append(tagArrays, e.LowCardinalityTags)
	switch cardinality {
	case collectors.OrchestratorCardinality:
		tagArrays = append(tagArrays, e.OrchestratorCardinalityTags)
	case collectors.HighCardinality:
		tagArrays = append(tagArrays, e.OrchestratorCardinalityTags)
		tagArrays = append(tagArrays, e.HighCardinalityTags)
	}
	return utils.ConcatenateTags(tagArrays)
}
func ( e Entity ) GetTags ( cardinality collectors . TagCardinality ) [ ] string { tagArrays := make ( [ ] [ ] string , 0 , 3 ) tagArrays = append ( tagArrays , e . LowCardinalityTags ) switch cardinality { case collectors . OrchestratorCardinality : tagArrays = append ( tagArrays , e . OrchestratorCardinalityTags ) case collectors . HighCardinality : tagArrays = append ( tagArrays , e . OrchestratorCardinalityTags ) tagArrays = append ( tagArrays , e . HighCardinalityTags ) } return utils . ConcatenateTags ( tagArrays ) }
GetTags flattens all tags from all cardinalities into a single slice of tag
strings.
GetTags flattens all tags from all cardinalities into a single slice of tag strings .