Documentation
¶
Overview ¶
Package datadog provides Datadog configuration steps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyModel ¶
type APIKeyModel struct {
// contains filtered or unexported fields
}
APIKeyModel handles Datadog API key entry.
func NewAPIKey ¶
func NewAPIKey( ctx context.Context, theme styles.Theme, account domain.Account, site domain.DatadogSite, services api.APIServices, scope log.Scope, ) *APIKeyModel
NewAPIKey creates a new API key entry step.
func (*APIKeyModel) SetSize ¶
func (m *APIKeyModel) SetSize(width, height int)
SetSize updates dimensions.
func (*APIKeyModel) ShortHelp ¶
func (m *APIKeyModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
type AppKeyModel ¶
type AppKeyModel struct {
// contains filtered or unexported fields
}
AppKeyModel handles Datadog Application key entry and account creation.
func NewAppKey ¶
func NewAppKey( ctx context.Context, theme styles.Theme, account domain.Account, site domain.DatadogSite, apiKey string, services api.APIServices, scope log.Scope, ) *AppKeyModel
NewAppKey creates a new App key entry step.
func (*AppKeyModel) SetSize ¶
func (m *AppKeyModel) SetSize(width, height int)
SetSize updates dimensions.
func (*AppKeyModel) ShortHelp ¶
func (m *AppKeyModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
type CheckModel ¶
type CheckModel struct {
// contains filtered or unexported fields
}
CheckModel checks if Datadog is configured for the account.
func NewCheck ¶
func NewCheck( ctx context.Context, theme styles.Theme, account domain.Account, services api.APIServices, scope log.Scope, ) *CheckModel
NewCheck creates a new datadog check step.
func (*CheckModel) Init ¶
func (m *CheckModel) Init() tea.Cmd
Init starts checking for Datadog configuration.
func (*CheckModel) SetSize ¶
func (m *CheckModel) SetSize(width, height int)
SetSize updates dimensions.
func (*CheckModel) ShortHelp ¶
func (m *CheckModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
type DiscoveryModel ¶
type DiscoveryModel struct {
// contains filtered or unexported fields
}
DiscoveryModel polls for Datadog discovery status.
func NewDiscovery ¶
func NewDiscovery( ctx context.Context, theme styles.Theme, datadogAccountID domain.DatadogAccountID, services api.APIServices, scope log.Scope, ) *DiscoveryModel
NewDiscovery creates a new discovery step.
func (*DiscoveryModel) Init ¶
func (m *DiscoveryModel) Init() tea.Cmd
Init starts polling for status.
func (*DiscoveryModel) SetSize ¶
func (m *DiscoveryModel) SetSize(width, height int)
SetSize updates dimensions.
func (*DiscoveryModel) ShortHelp ¶
func (m *DiscoveryModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
type RegionModel ¶
type RegionModel struct {
// contains filtered or unexported fields
}
RegionModel handles Datadog region selection.
func NewRegion ¶
func NewRegion(theme styles.Theme, scope log.Scope) *RegionModel
NewRegion creates a new region selection step.
func (*RegionModel) SetSize ¶
func (m *RegionModel) SetSize(width, height int)
SetSize updates dimensions.
func (*RegionModel) ShortHelp ¶
func (m *RegionModel) ShortHelp() []key.Binding
ShortHelp returns the key bindings for the short help view.
func (*RegionModel) Update ¶
func (m *RegionModel) Update(msg tea.Msg) tea.Cmd
Update handles messages.
func (*RegionModel) View ¶
func (m *RegionModel) View() string
View renders the region selection UI.