Documentation ¶
Index ¶
- Constants
- Variables
- func GetDynatraceURLFromManagementCluster(clusterID string) (string, error)
- func GetLinkToWebConsole(dtURL string, since int, finalQuery string) (string, 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 HCPCluster
- type LogContent
- type LogResult
- type Requester
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 GetLinkToWebConsole ¶ added in v0.37.0
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 GetQuery ¶ added in v0.37.0
func GetQuery(hcpCluster HCPCluster) (query DTQuery, error error)
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 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"`
}
Click to show internal directories.
Click to hide internal directories.