Add an option to specify a custom datadog URL (#4800)
This commit is contained in:
committed by
Daniel Nelson
parent
422c142463
commit
34caf12db5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user