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"`
Type string `json:"type"`
State string `json:"state"`
CreateTime time.Time `json:"createTime"`
BlockTime time.Time `json:"blockTime"`
}
EnvironmentInfo represents the Dynatrace environment details.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles Platform Management API resources.
func NewHandler ¶
func NewHandler(c *httpclient.Client) *Handler
NewHandler creates a new platform management handler.
func (*Handler) GetEnvironment ¶
func (h *Handler) GetEnvironment(ctx context.Context) (*EnvironmentInfo, error)
GetEnvironment retrieves environment information.
func (*Handler) GetLicense ¶
GetLicense retrieves environment license information.
func (*Handler) GetLicenseSettings ¶
GetLicenseSettings retrieves environment license feature settings, optionally filtered by key.
type License ¶
type License struct {
Trial bool `json:"trial"`
PlatformSubscription bool `json:"platformSubscription"`
}
License represents the environment license details.
type LicenseSetting ¶
LicenseSetting is a single feature-flag entry from the license settings list.
type LicenseSettings ¶
type LicenseSettings struct {
Settings []LicenseSetting `json:"settings"`
}
LicenseSettings is the response from the license settings endpoint.