func (o *Origin) TagsPayload() []byte {
	var tagsPayload []byte

	source := o.Source()
	if source != "" {
		tagsPayload = append(tagsPayload, []byte("[dd ddsource=\""+source+"\"]")...)
	}
	sourceCategory := o.LogSource.Config.SourceCategory
	if sourceCategory != "" {
		tagsPayload = append(tagsPayload, []byte("[dd ddsourcecategory=\""+sourceCategory+"\"]")...)
	}

	var tags []string
	tags = append(tags, o.LogSource.Config.Tags...)
	tags = append(tags, o.tags...)

	if len(tags) > 0 {
		tagsPayload = append(tagsPayload, []byte("[dd ddtags=\""+strings.Join(tags, ",")+"\"]")...)
	}
	if len(tagsPayload) == 0 {
		tagsPayload = []byte{}
	}
	return tagsPayload
}
// TagsPayload returns the raw tag payload of the origin.
TagsPayload returns the raw tag payload of the origin.
// TagsPayload returns the raw tag payload of the origin .
func (o *Origin) TagsPayload() []byte {
	var tagsPayload []byte
	source := o.Source()
	if source != "" {
		tagsPayload = append(tagsPayload, []byte("[dd ddsource=\""+source+"\"]")...)
	}
	sourceCategory := o.LogSource.Config.SourceCategory
	if sourceCategory != "" {
		tagsPayload = append(tagsPayload, []byte("[dd ddsourcecategory=\""+sourceCategory+"\"]")...)
	}
	var tags []string
	tags = append(tags, o.LogSource.Config.Tags...)
	tags = append(tags, o.tags...)
	if len(tags) > 0 {
		tagsPayload = append(tagsPayload, []byte("[dd ddtags=\""+strings.Join(tags, ",")+"\"]")...)
	}
	if len(tagsPayload) == 0 {
		tagsPayload = []byte{}
	}
	return tagsPayload
}
func ( o * Origin ) TagsPayload ( ) [ ] byte { var tagsPayload [ ] byte source := o . Source ( ) if source != " " { tagsPayload = append ( tagsPayload , [ ] byte ( " \" " + source + " \" " ) ... ) } sourceCategory := o . LogSource . Config . SourceCategory if sourceCategory != " " { tagsPayload = append ( tagsPayload , [ ] byte ( " \" " + sourceCategory + " \" " ) ... ) } var tags [ ] string tags = append ( tags , o . LogSource . Config . Tags ... ) tags = append ( tags , o . tags ... ) if len ( tags ) > 0 { tagsPayload = append ( tagsPayload , [ ] byte ( " \" " + strings . Join ( tags , " " ) + " \" " ) ... ) } if len ( tagsPayload ) == 0 { tagsPayload = [ ] byte { } } return tagsPayload }
TagsPayload returns the raw tag payload of the origin.
TagsPayload returns the raw tag payload of the origin .