Add an option to specify a custom datadog URL (#4800)

This commit is contained in:
Kevin Conaway
2018-10-05 16:51:16 -04:00
committed by Daniel Nelson
parent 422c142463
commit 34caf12db5
2 changed files with 14 additions and 9 deletions

View File

@@ -21,6 +21,12 @@ var (
fakeApiKey = "123456"
)
func NewDatadog(url string) *Datadog {
return &Datadog{
URL: url,
}
}
func fakeDatadog() *Datadog {
d := NewDatadog(fakeUrl)
d.Apikey = fakeApiKey