From cc4fd4b683c3d1a0cc989005f98fdab187233223 Mon Sep 17 00:00:00 2001 From: KeisukeYamashita <19yamashita15@gmail.com> Date: Tue, 8 Oct 2019 13:52:24 +0900 Subject: [PATCH] :watermelon: add datadog product --- providers/datadog/datadog.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/providers/datadog/datadog.go b/providers/datadog/datadog.go index bdfb258..61fd508 100644 --- a/providers/datadog/datadog.go +++ b/providers/datadog/datadog.go @@ -47,16 +47,25 @@ func (p *Provider) GetTargetURL() (string, error) { return p.URL.String(), nil } func (p *Provider) addProductPath(product string) { - p.join(product) switch product { case "watchdogs": + p.join(product) case "events": p.join("events/stream") + case "dashboard": + p.join(product) + case "infrastructure": + p.join(product) + case "monitors": + p.join(product) case "metrics": + p.join(product) case "integrations": p.join("account/settings") case "apm": + p.join(product) case "notebook": + p.join(product) case "logs": var view string if view = p.GetCtxString("view"); view != "" { @@ -65,6 +74,7 @@ func (p *Provider) addProductPath(product string) { p.URL.RawQuery = param.Encode() } case "synthetics": + p.join(product) default: p.join("apm/home") }