config

package
v1.1.3 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()

Types

type Specification

type Specification struct {
	// The Instana Base Url, like 'https://unit-example.instana.io'
	BaseUrl string `json:"baseUrl" split_words:"true" required:"true"`
	// The Instana 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 added in v1.1.0

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

func (*Specification) DeleteMaintenanceWindow added in v1.1.0

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

func (*Specification) GetApplicationPerspectives added in v1.1.0

func (s *Specification) GetApplicationPerspectives(_ context.Context, page int, pageSize int) (*types.ApplicationPerspectiveResponse, error)

func (*Specification) GetEvents

func (s *Specification) GetEvents(_ context.Context, from time.Time, to time.Time, eventTypeFilters []string) ([]types.Event, error)

func (*Specification) GetSnapshotIds added in v1.1.0

func (s *Specification) GetSnapshotIds(_ context.Context, applicationPerspectiveId string) ([]string, error)

Jump to

Keyboard shortcuts

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