Documentation ¶
Index ¶
- func ParseConfiguration()
- func ValidateConfiguration()
- type Specification
- func (s *Specification) CreateMaintenanceWindow(_ context.Context, maintenanceWindow types.CreateMaintenanceWindowRequest) (*string, *http.Response, error)
- func (s *Specification) DeleteMaintenanceWindow(_ context.Context, maintenanceWindowId string) (*http.Response, error)
- func (s *Specification) GetEntities(_ context.Context, entitySelector string) (*types.EntitiesList, *http.Response, error)
- func (s *Specification) GetProblems(_ context.Context, from time.Time, entitySelector *string) ([]types.Problem, *http.Response, error)
- func (s *Specification) PostEvent(_ context.Context, event types.EventIngest) (*types.EventIngestResults, *http.Response, error)
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 (*Specification) GetEntities ¶
func (s *Specification) GetEntities(_ context.Context, entitySelector string) (*types.EntitiesList, *http.Response, error)
func (*Specification) GetProblems ¶
func (*Specification) PostEvent ¶
func (s *Specification) PostEvent(_ context.Context, event types.EventIngest) (*types.EventIngestResults, *http.Response, error)
Click to show internal directories.
Click to hide internal directories.