Documentation ¶
Index ¶
- Constants
- func GetDynatraceURLFromLabel(connection *sdk.Connection, clusterID string) (url string, err error)
- func GetDynatraceURLFromManagementCluster(clusterID string) (string, error)
- func GetHCPNamespacesFromInternalID(clientset *kubernetes.Clientset, clusterID string) (klusterletNS string, shortNS string, hcpNS string, error error)
- func GetManagementCluster(connection *sdk.Connection, cluster *v1.Cluster) (id string, name string, error error)
- func NewCmdDynatrace() *cobra.Command
- func NewCmdHCPMustGather() *cobra.Command
- func NewCmdLogs() *cobra.Command
- type DTEventResult
- type DTEventsPollResult
- type DTExecuteResults
- type DTExecuteState
- type DTExecuteToken
- type DTLogsPollResult
- type DTPollResult
- type DTQuery
- func (q *DTQuery) Build() string
- func (q *DTQuery) Cluster(mgmtClusterName string) *DTQuery
- func (q *DTQuery) Containers(containerList []string) *DTQuery
- func (q *DTQuery) ContainsPhrase(phrase string) *DTQuery
- func (q *DTQuery) Deployments(workloads []string) *DTQuery
- func (q *DTQuery) InitEvents(hours int) *DTQuery
- func (q *DTQuery) InitLogs(hours int) *DTQuery
- func (q *DTQuery) Limit(limit int) *DTQuery
- func (q *DTQuery) Namespaces(namespaceList []string) *DTQuery
- func (q *DTQuery) Nodes(nodeList []string) *DTQuery
- func (q *DTQuery) Pods(podList []string) *DTQuery
- func (q *DTQuery) Sort(order string) (query *DTQuery, error error)
- func (q *DTQuery) Status(statusList []string) *DTQuery
- type DTQueryPayload
- type DTRequestError
- type LogContent
- type LogResult
- type Requester
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 GetHCPNamespacesFromInternalID ¶ added in v0.31.0
func GetManagementCluster ¶
func NewCmdDynatrace ¶
func NewCmdHCPMustGather ¶ added in v0.31.0
func NewCmdLogs ¶
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 DTExecuteToken ¶ added in v0.34.0
type DTExecuteToken struct {
RequestToken string `json:"requestToken"`
}
type DTLogsPollResult ¶ added in v0.31.0
type DTPollResult ¶
type DTPollResult struct {
State string `json:"state"`
}
type DTQuery ¶
type DTQuery struct {
// contains filtered or unexported fields
}
func (*DTQuery) Containers ¶
func (*DTQuery) ContainsPhrase ¶
func (*DTQuery) Deployments ¶ added in v0.31.0
func (*DTQuery) InitEvents ¶ added in v0.31.0
func (*DTQuery) Namespaces ¶
type DTQueryPayload ¶
type DTRequestError ¶ added in v0.34.0
type DTRequestError struct {
Records json.RawMessage `json:"error"`
}
type LogContent ¶
type LogContent struct {
Content string `json:"content"`
}
type LogResult ¶ added in v0.31.0
type LogResult struct {
Records []LogContent `json:"records"`
}
Click to show internal directories.
Click to hide internal directories.