Documentation ¶
Index ¶
- Constants
- func GetDynatraceURLFromLabel(connection *sdk.Connection, clusterID string) (url string, err error)
- func GetDynatraceURLFromManagementCluster(clusterID string) (string, error)
- func GetManagementCluster(connection *sdk.Connection, cluster *v1.Cluster) (id string, name string, error error)
- func NewCmdDynatrace() *cobra.Command
- func NewCmdLogs() *cobra.Command
- 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) Init(hours int) *DTQuery
- func (q *DTQuery) Limit(limit int) *DTQuery
- func (q *DTQuery) Namespaces(namespaceList []string, clusterID string, hcp bool) *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 ExecuteResponse
- type LogContent
- type Requester
- type Result
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 GetManagementCluster ¶
func NewCmdDynatrace ¶
func NewCmdLogs ¶
Types ¶
type DTPollResult ¶
type DTQuery ¶
type DTQuery struct {
// contains filtered or unexported fields
}
func (*DTQuery) Containers ¶
func (*DTQuery) ContainsPhrase ¶
func (*DTQuery) Namespaces ¶
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 Result ¶
type Result struct {
Records []LogContent `json:"records"`
}
Click to show internal directories.
Click to hide internal directories.