Documentation ¶
Index ¶
- Variables
- type Environment
- type EnvironmentList
- type ServiceClient
- func (cs *ServiceClient) Create(environment *Environment) (*api.Stub, error)
- func (cs *ServiceClient) Delete(id string) error
- func (cs *ServiceClient) Get(id string) (*Environment, error)
- func (cs *ServiceClient) ListAll() (*EnvironmentList, error)
- func (cs *ServiceClient) Update(environment *Environment) error
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var States = struct { Enabled State Disabled State }{ Enabled: State("ENABLED"), Disabled: State("DISABLED"), }
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { ID *string `json:"id,omitempty"` // The ID of the environment Name string `json:"name"` // The display name of the environment Trial *bool `json:"trial"` // Specifies whether the environment is a trial environment or a non-trial environment. Creating a trial environment is only possible if your license allows that. The default value is false (non-trial) State State `json:"state"` // Indicates whether the environment is enabled or disabled. The default value is ENABLED Tags []string `json:"tags,omitempty"` // A set of tags that are assigned to this environment. Every tag can have a maximum length of 100 characters Quotas *quota.Settings `json:"quotas,omitempty"` // Environment level consumption and quotas information. Only returned if includeConsumptionInfo or includeUncachedConsumptionInfo param is true Storage *storage.Settings `json:"storage,omitempty"` // Environment level storage usage and limit information. Not returned if includeStorageInfo param is not true. If skipped when editing via PUT method then already set limits will remain }
Environment representas basic configuration for an environment
func (*Environment) MarshalHCL ¶
func (me *Environment) MarshalHCL(properties hcl.Properties) error
func (*Environment) UnmarshalHCL ¶
func (me *Environment) UnmarshalHCL(decoder hcl.Decoder) error
type EnvironmentList ¶
type EnvironmentList struct {
Environments []*Environment `json:"environments"`
}
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
ServiceClient TODO: documentation
func NewService ¶
func NewService(baseURL string, token string) *ServiceClient
NewService creates a new Service Client baseURL should look like this: "https://siz65484.live.dynatrace.com/api/config/v1" token is an API Token
func (*ServiceClient) Create ¶
func (cs *ServiceClient) Create(environment *Environment) (*api.Stub, error)
Create TODO: documentation
func (*ServiceClient) Delete ¶
func (cs *ServiceClient) Delete(id string) error
Delete TODO: documentation
func (*ServiceClient) Get ¶
func (cs *ServiceClient) Get(id string) (*Environment, error)
Get TODO: documentation
func (*ServiceClient) ListAll ¶
func (cs *ServiceClient) ListAll() (*EnvironmentList, error)
ListAll TODO: documentation
func (*ServiceClient) Update ¶
func (cs *ServiceClient) Update(environment *Environment) error
Update TODO: documentation
Click to show internal directories.
Click to hide internal directories.