Documentation ¶
Index ¶
- func AddTag(name, value string)
- func Gauge(name string, value float64, tags ...Tags)
- func InitializeClient()
- func NewClient() *statsd.Client
- func RunGaugeTask(name string, duration time.Duration, tags Tags, exec func() (float64, error))
- func SendEvent(event Event, tags ...Tags)
- func SetPrefix(value string)
- func Start()
- type Event
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gauge ¶
Gauge Stored as a GAUGE type in DataDog. Each value in the stored time-series is the last gauge value submitted for the metric during the StatsD flush period.
func InitializeClient ¶
func InitializeClient()
func RunGaugeTask ¶
RunGaugeTask every duration and send value as Gauge
Types ¶
type Event ¶
type Event struct { // Title of the event. Required. Title string // Text is the description of the event. Required. Text string // AggregationKey groups this event with others of the same key. AggregationKey string // Priority of the event. Can be statsd.Low or statsd.Normal. Priority statsd.EventPriority // SourceTypeName is a source type for the event. SourceTypeName string // AlertType can be statsd.Info, statsd.Error, statsd.Warning, or statsd.Success. // If absent, the default value applied by the dogstatsd server is Info. AlertType statsd.EventAlertType }
Click to show internal directories.
Click to hide internal directories.