client

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMonacoUserAgent = "Dynatrace Monitoring as Code/" + version.MonitoringAsCode + " " + (runtime.GOOS + " " + runtime.GOARCH)

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	CustomUserAgent string
	SupportArchive  bool
	CachingDisabled bool
}

type ClientSet

type ClientSet struct {
	// dtClient is the client capable of updating or creating settings and classic configs
	DTClient dtclient.Client
	// autClient is the client capable of updating or creating automation API configs
	AutClient *automation.Client
	// bucketClient is the client capable of updating or creating Grail Bucket configs
	BucketClient *buckets.Client
}

ClientSet composes a "full" set of sub-clients to access Dynatrace APIs Each field may be nil, if the ClientSet is partially initialized - e.g. no autClient will be part of a ClientSet created for a 'classic' Dynatrace environment, as Automations are a Platform feature

func CreateClassicClientSet

func CreateClassicClientSet(url string, token string, opts ClientOptions) (*ClientSet, error)

func CreatePlatformClientSet

func CreatePlatformClientSet(url string, auth PlatformAuth, opts ClientOptions) (*ClientSet, error)

func (ClientSet) Automation

func (s ClientSet) Automation() *automation.Client

func (ClientSet) Bucket added in v2.7.0

func (s ClientSet) Bucket() *buckets.Client

func (ClientSet) Classic

func (s ClientSet) Classic() dtclient.Client

func (ClientSet) Settings

func (s ClientSet) Settings() dtclient.Client

type PlatformAuth

type PlatformAuth struct {
	OauthClientID, OauthClientSecret, OauthTokenURL string
	Token                                           string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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