platform

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewHandler(c *client.Client) *Handler

NewHandler creates a new platform management handler.

func (*Handler) GetEnvironment

func (h *Handler) GetEnvironment() (*EnvironmentInfo, error)

GetEnvironment retrieves environment information.

func (*Handler) GetLicense

func (h *Handler) GetLicense() (*License, error)

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.

Jump to

Keyboard shortcuts

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