Documentation
¶
Overview ¶
Package clients contains 'smart' clients for the Dynatrace API.
These clients are generally based on those found in package api/clients, but implement logic to ensure the Dynatrace API can be used for configuration-as-code use-cases reliably.
For the underlying clients see package github.com/dynatrace/dynatrace-configuration-as-code-core/api/clients.
In general, whereas the CRUD api/clients make a single API call per operation, the ones in this package make several and react to API responses as needed.
For example, the clients in this package will resolve and follow pagination in their List methods, whereas an api/clients implementation requires/allows the user to handle pagination and make several requests on their own.
Clients implement the following methods:
- Get
- List
- Create
- Update
- Upsert (Create or Update as needed)
- Delete
A clients.Factory simplifies creation of clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrEnvironmentURLMissing = errors.New("no environment URL provided")
ErrEnvironmentURLMissing indicates that no environment URL was provided.
var ErrOAuthCredentialsMissing = errors.New("no OAuth2 client credentials provided")
ErrOAuthCredentialsMissing indicates that no OAuth2 client credentials were provided.
Functions ¶
Types ¶
This section is empty.