client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteLogsSearch

func ExecuteLogsSearch(
	ctx context.Context,
	client *datadog.APIClient,
	query dd_types.DatadogQuery,
	processor func(context.Context, types.Row) error,
) error

ExecuteLogsSearch executes a Datadog logs search and streams results to a processor

func NewDatadogClient

func NewDatadogClient(config DatadogConfig) (*datadog.APIClient, error)

NewDatadogClient creates a new Datadog API client with authentication

Types

type DatadogConfig

type DatadogConfig struct {
	APIKey string
	AppKey string
	Site   string
	// RawHTTP enables raw, un-redacted HTTP debug output for the Datadog client
	RawHTTP bool
}

DatadogConfig holds Datadog API configuration

func GetDatadogConfigFromEnv

func GetDatadogConfigFromEnv() DatadogConfig

GetDatadogConfigFromEnv creates DatadogConfig from environment variables

Jump to

Keyboard shortcuts

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