instance

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string `json:"address"`
	APIKey  string `json:"apiKey"`
	AppKey  string `json:"appKey"`
}

Config is the structure of the configuration for a single Datadog instance.

type Instance

type Instance interface {
	GetName() string
	GetLogs(ctx context.Context, query string, startTime, endTime int64) ([]datadogV2.Log, error)
}

func New

func New(name string, options map[string]any) (Instance, error)

New returns a new Datadog instance for the given configuration.

Jump to

Keyboard shortcuts

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