config

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration

func ValidateConfiguration()

Types

type Specification

type Specification struct {
	// see https://docs.datadoghq.com/getting_started/site/#access-the-datadog-site
	SiteParameter  string `json:"siteParameter" split_words:"true" required:"true"`
	SiteUrl        string `json:"siteUrl" split_words:"true" required:"true"`
	ApiKey         string `json:"apiKey" split_words:"true" required:"true"`
	ApplicationKey string `json:"applicationKey" split_words:"true" required:"true"`
	// Only used for testing:
	TestingScheme                      *string  `json:"testingScheme" split_words:"true" required:"false"`
	TestingHost                        *string  `json:"testingHost" split_words:"true" required:"false"`
	DiscoveryAttributesExcludesMonitor []string `json:"discoveryAttributesExcludesMonitor" split_words:"true" required:"false"`
}
var (
	Config Specification
)

func (*Specification) CancelDowntime added in v1.7.0

func (s *Specification) CancelDowntime(ctx context.Context, downtimeId string) (*http.Response, error)

func (*Specification) CreateDowntime added in v1.7.0

func (*Specification) GetMonitor

func (*Specification) ListMonitors

func (*Specification) SendEvent added in v1.2.1

func (*Specification) ValidateCredentials

func (*Specification) WrapContextWithDatadogContextValues

func (s *Specification) WrapContextWithDatadogContextValues(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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