dynatrace

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DTVaultPath string = "dt_vault_path"
	VaultAddr   string = "vault_address"
)
View Source
const (
	DynatraceTenantKeyLabel    string = "sre-capabilities.dtp.tenant"
	HypershiftClusterTypeLabel string = "ext-hypershift.openshift.io/cluster-type"
)

Variables

This section is empty.

Functions

func GetDynatraceURLFromLabel

func GetDynatraceURLFromLabel(connection *sdk.Connection, clusterID string) (url string, err error)

func GetDynatraceURLFromManagementCluster

func GetDynatraceURLFromManagementCluster(clusterID string) (string, error)

func GetManagementCluster

func GetManagementCluster(connection *sdk.Connection, cluster *v1.Cluster) (id string, name string, error error)

func NewCmdDynatrace

func NewCmdDynatrace() *cobra.Command

func NewCmdLogs

func NewCmdLogs() *cobra.Command

Types

type DTPollResult

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

type DTQuery

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

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) Init

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

func (*DTQuery) Limit

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

func (*DTQuery) Namespaces

func (q *DTQuery) Namespaces(namespaceList []string, clusterID string, hcp bool) *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"`
}

type ExecuteResponse

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

type LogContent

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

type Requester

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

type Result

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

Jump to

Keyboard shortcuts

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