Documentation
¶
Overview ¶
Package hosttags provides a mechanism to fetch host tags for metrics in the Datadog Agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostTagProvider ¶
HostTagProvider is a struct that provides host tags for metrics.
func NewHostTagProvider ¶
func NewHostTagProvider() *HostTagProvider
NewHostTagProvider creates a new HostTagProvider with the default expected tags duration from the configuration.
func NewHostTagProviderWithDuration ¶
func NewHostTagProviderWithDuration(duration time.Duration) *HostTagProvider
NewHostTagProviderWithDuration creates a new HostTagProvider with a specified duration for host tags expiration.
func (*HostTagProvider) GetHostTags ¶
func (p *HostTagProvider) GetHostTags() []string
GetHostTags returns the current host tags. If the tags have expired, it returns an empty slice.
Click to show internal directories.
Click to hide internal directories.