config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 11 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 {
	// The Dynatrace API Base Url, like 'https://{your-environment-id}.live.dynatrace.com/api' or 'https://{your-domain}/e/{your-environment-id}/api'
	ApiBaseUrl string `json:"apiBaseUrl" split_words:"true" required:"true"`
	// The Dynatrace UI Base Url, like 'https://{your-environment-id}.apps.dynatrace.com/ui'
	UiBaseUrl string `json:"uiBaseUrl" split_words:"true" required:"true"`
	// The Dynatrace API Token
	ApiToken string `json:"apiToken" split_words:"true" required:"true"`
}

Specification is the configuration specification for the extension. Configuration values can be applied through environment variables. Learn more through the documentation of the envconfig package. https://github.com/kelseyhightower/envconfig

var (
	Config Specification
)

func (*Specification) CreateMaintenanceWindow

func (s *Specification) CreateMaintenanceWindow(_ context.Context, maintenanceWindow types.CreateMaintenanceWindowRequest) (*string, *http.Response, error)

func (*Specification) DeleteMaintenanceWindow

func (s *Specification) DeleteMaintenanceWindow(_ context.Context, maintenanceWindowId string) (*http.Response, error)

func (*Specification) GetEntities

func (s *Specification) GetEntities(_ context.Context, entitySelector string) (*types.EntitiesList, *http.Response, error)

func (*Specification) GetProblems

func (s *Specification) GetProblems(_ context.Context, from time.Time, entitySelector *string) ([]types.Problem, *http.Response, error)

func (*Specification) PostEvent

Jump to

Keyboard shortcuts

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