Add Datadog connector enum value, migration, and settings
Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -55,6 +55,7 @@ const (
|
||||
ConnectorProviderTailscale ConnectorProvider = "TAILSCALE"
|
||||
ConnectorProviderAnthropic ConnectorProvider = "ANTHROPIC"
|
||||
ConnectorProviderCursor ConnectorProvider = "CURSOR"
|
||||
ConnectorProviderDatadog ConnectorProvider = "DATADOG"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -97,6 +98,7 @@ func ConnectorProviders() []ConnectorProvider {
|
||||
ConnectorProviderTailscale,
|
||||
ConnectorProviderAnthropic,
|
||||
ConnectorProviderCursor,
|
||||
ConnectorProviderDatadog,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +136,8 @@ func (v ConnectorProvider) IsValid() bool {
|
||||
ConnectorProviderMetabase,
|
||||
ConnectorProviderTailscale,
|
||||
ConnectorProviderAnthropic,
|
||||
ConnectorProviderCursor:
|
||||
ConnectorProviderCursor,
|
||||
ConnectorProviderDatadog:
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -102,6 +102,15 @@ type (
|
||||
PostHogConnectorSettings struct {
|
||||
BaseURL string `json:"base_url"`
|
||||
}
|
||||
|
||||
// DatadogConnectorSettings holds the per-customer Datadog site captured
|
||||
// during the OAuth callback. Region is the site key (e.g. "US3") used for
|
||||
// the AccessSource title; Domain is the API domain (e.g.
|
||||
// "us3.datadoghq.com") the driver and name resolver use to build hosts.
|
||||
DatadogConnectorSettings struct {
|
||||
Region string `json:"region"`
|
||||
Domain string `json:"domain"`
|
||||
}
|
||||
)
|
||||
|
||||
// GrantType returns the OAuth2 grant type recorded on the connector's
|
||||
|
||||
15
pkg/coredata/migrations/20260529T491240Z.sql
Normal file
15
pkg/coredata/migrations/20260529T491240Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@getprobo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'DATADOG';
|
||||
@@ -56,6 +56,7 @@ enum ConnectorProvider
|
||||
value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderAnthropic"
|
||||
)
|
||||
CURSOR @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderCursor")
|
||||
DATADOG @goEnum(value: "go.probo.inc/probo/pkg/coredata.ConnectorProviderDatadog")
|
||||
}
|
||||
|
||||
type ConnectorProviderInfo {
|
||||
|
||||
Reference in New Issue
Block a user