datadog

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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) Init

func (m *APIKeyModel) Init() tea.Cmd

Init focuses the input.

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.

func (*APIKeyModel) Update

func (m *APIKeyModel) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*APIKeyModel) View

func (m *APIKeyModel) View() string

View renders the API key entry UI.

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) Init

func (m *AppKeyModel) Init() tea.Cmd

Init focuses the input.

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.

func (*AppKeyModel) Update

func (m *AppKeyModel) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*AppKeyModel) View

func (m *AppKeyModel) View() string

View renders the App key entry UI.

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.

func (*CheckModel) Update

func (m *CheckModel) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*CheckModel) View

func (m *CheckModel) View() string

View renders the check UI.

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.

func (*DiscoveryModel) Update

func (m *DiscoveryModel) Update(msg tea.Msg) tea.Cmd

Update handles messages.

func (*DiscoveryModel) View

func (m *DiscoveryModel) View() string

View renders the discovery UI.

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) Init

func (m *RegionModel) Init() tea.Cmd

Init returns nil.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL