Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentInfo ¶
type EnvironmentInfo struct {
EnvironmentID string `json:"environmentId" table:"ID"`
Type string `json:"type" table:"TYPE"`
State string `json:"state" table:"STATE"`
CreateTime time.Time `json:"createTime" table:"CREATED,wide"`
BlockTime time.Time `json:"blockTime" table:"BLOCK_TIME,wide"`
}
EnvironmentInfo represents the Dynatrace environment details with CLI display fields.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles Platform Management resources.
func NewHandler ¶
NewHandler creates a new platform management handler.
func (*Handler) GetEnvironment ¶
func (h *Handler) GetEnvironment() (*EnvironmentInfo, error)
GetEnvironment retrieves environment information.
func (*Handler) GetLicense ¶
GetLicense retrieves environment license information.
func (*Handler) GetLicenseSettings ¶
func (h *Handler) GetLicenseSettings(keys ...string) ([]LicenseSetting, error)
GetLicenseSettings retrieves license feature settings, optionally filtered to specific keys.
type License ¶
type License struct {
Trial bool `json:"trial" table:"TRIAL"`
PlatformSubscription bool `json:"platformSubscription" table:"PLATFORM_SUBSCRIPTION"`
}
License represents the environment license details with CLI display fields.
type LicenseSetting ¶
type LicenseSetting struct {
Key string `json:"key" table:"KEY"`
// Value is a JSON string from the API (e.g. "true"/"false"), not a boolean.
Value string `json:"value" table:"ENABLED"`
}
LicenseSetting is a single feature-flag entry from the license settings list.