dynatrace

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DTVaultPath string = "dt_vault_path"
	VaultAddr   string = "vault_address"
)

Variables

View Source
var ErrUnsupportedCluster = fmt.Errorf("Not an HCP or MC Cluster")

Functions

func GetDynatraceURLFromManagementCluster

func GetDynatraceURLFromManagementCluster(clusterID string) (string, error)

func GetLinkToWebConsole added in v0.37.0

func GetLinkToWebConsole(dtURL string, since int, finalQuery string) (string, error)

func NewCmdDynatrace

func NewCmdDynatrace() *cobra.Command

func NewCmdHCPMustGather added in v0.31.0

func NewCmdHCPMustGather() *cobra.Command

func NewCmdLogs

func NewCmdLogs() *cobra.Command

Types

type DTEventResult added in v0.31.0

type DTEventResult struct {
	Records []json.RawMessage `json:"records"`
}

type DTEventsPollResult added in v0.31.0

type DTEventsPollResult struct {
	State    string        `json:"state"`
	Progress int           `json:"progress"`
	Result   DTEventResult `json:"result"`
}

type DTExecuteResults added in v0.34.0

type DTExecuteResults struct {
	Result []json.RawMessage `json:"records"`
}

type DTExecuteState added in v0.34.0

type DTExecuteState struct {
	State      string `json:"state"`
	TTLSeconds int    `json:"ttlSeconds"`
}

type DTExecuteToken added in v0.34.0

type DTExecuteToken struct {
	RequestToken string `json:"requestToken"`
}

type DTLogsPollResult added in v0.31.0

type DTLogsPollResult struct {
	State    string    `json:"state"`
	Progress int       `json:"progress"`
	Result   LogResult `json:"result"`
}

type DTPollResult

type DTPollResult struct {
	State string `json:"state"`
}

type DTQuery

type DTQuery struct {
	// contains filtered or unexported fields
}

func GetQuery added in v0.37.0

func GetQuery(hcpCluster HCPCluster) (query DTQuery, error error)

func (*DTQuery) Build

func (q *DTQuery) Build() string

func (*DTQuery) Cluster

func (q *DTQuery) Cluster(mgmtClusterName string) *DTQuery

func (*DTQuery) Containers

func (q *DTQuery) Containers(containerList []string) *DTQuery

func (*DTQuery) ContainsPhrase

func (q *DTQuery) ContainsPhrase(phrase string) *DTQuery

func (*DTQuery) Deployments added in v0.31.0

func (q *DTQuery) Deployments(workloads []string) *DTQuery

func (*DTQuery) InitEvents added in v0.31.0

func (q *DTQuery) InitEvents(hours int) *DTQuery

func (*DTQuery) InitLogs added in v0.31.0

func (q *DTQuery) InitLogs(hours int) *DTQuery

func (*DTQuery) Limit

func (q *DTQuery) Limit(limit int) *DTQuery

func (*DTQuery) Namespaces

func (q *DTQuery) Namespaces(namespaceList []string) *DTQuery

func (*DTQuery) Nodes

func (q *DTQuery) Nodes(nodeList []string) *DTQuery

func (*DTQuery) Pods

func (q *DTQuery) Pods(podList []string) *DTQuery

func (*DTQuery) Sort

func (q *DTQuery) Sort(order string) (query *DTQuery, error error)

func (*DTQuery) Status

func (q *DTQuery) Status(statusList []string) *DTQuery

type DTQueryPayload

type DTQueryPayload struct {
	Query            string `json:"query"`
	MaxResultRecords int    `json:"maxResultRecords"`
}

type DTRequestError added in v0.34.0

type DTRequestError struct {
	Records json.RawMessage `json:"error"`
}

type HCPCluster added in v0.37.0

type HCPCluster struct {
	DynatraceURL string
	// contains filtered or unexported fields
}

func FetchClusterDetails added in v0.37.0

func FetchClusterDetails(clusterKey string) (hcpCluster HCPCluster, error error)

type LogContent

type LogContent struct {
	Content string `json:"content"`
}

type LogResult added in v0.31.0

type LogResult struct {
	Records []LogContent `json:"records"`
}

type Requester

type Requester struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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