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: 1 module, 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"`
	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

func (h *Handler) GetLicense(ctx context.Context) (*License, error)

GetLicense retrieves environment license information.

func (*Handler) GetLicenseSettings

func (h *Handler) GetLicenseSettings(ctx context.Context, keys ...string) (*LicenseSettings, error)

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

type LicenseSetting struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

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.

Jump to

Keyboard shortcuts

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