diagnosis

package
v0.0.0-...-8588661 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DiagnosisLinkExpiry              = 5 * time.Minute
	ConsoleDiagnosisFileServerPrefix = "diagnosis/console-diagnosis/"
	AgentDiagnosisFileServerPrefix   = "diagnosis/agent-diagnosis/"
	CloudScannerDiagnosticLogsPrefix = "diagnosis/cloud-scanner-diagnosis/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiagnosticLogsLink struct {
	URLLink   string `json:"url_link"`
	Label     string `json:"label"`
	Type      string `json:"type"`
	FileName  string `json:"-"`
	Message   string `json:"message"`
	CreatedAt string `json:"created_at"`
}

type DiagnosticLogsStatus

type DiagnosticLogsStatus struct {
	NodeID  string `path:"node_id" validate:"required" required:"true"`
	Status  string `json:"status" validate:"required" required:"true"`
	Message string `json:"message"`
}

type DiagnosticNotification

type DiagnosticNotification struct {
	Content             string      `json:"content"`
	ExpiryInSecs        interface{} `json:"expiry_in_secs"`
	FollowURL           interface{} `json:"follow_url"`
	SourceApplicationID string      `json:"source_application_id"`
	UpdatedAt           string      `json:"updated_at"`
}

type GenerateAgentDiagnosticLogsRequest

type GenerateAgentDiagnosticLogsRequest struct {
	NodeIds []NodeIdentifier `json:"node_ids" validate:"required,gt=0" required:"true"`
	Tail    int              `json:"tail" validate:"required,min=100,max=10000" required:"true"`
}

type GenerateCloudScannerDiagnosticLogsRequest

type GenerateCloudScannerDiagnosticLogsRequest struct {
	NodeIds []NodeIdentifier `json:"node_ids" validate:"required,gt=0" required:"true"`
	Tail    int              `json:"tail" validate:"required,min=100,max=10000" required:"true"`
}

type GenerateConsoleDiagnosticLogsRequest

type GenerateConsoleDiagnosticLogsRequest struct {
	Tail int `json:"tail" validate:"required,min=100,max=10000" required:"true"`
}

type GetDiagnosticLogsResponse

type GetDiagnosticLogsResponse struct {
	ConsoleLogs      []DiagnosticLogsLink `json:"console_logs"`
	AgentLogs        []DiagnosticLogsLink `json:"agent_logs"`
	CloudScannerLogs []DiagnosticLogsLink `json:"cloud_scanner_logs"`
}

func GetDiagnosticLogs

func GetDiagnosticLogs(ctx context.Context, consoleURL string) (*GetDiagnosticLogsResponse, error)

type NodeIdentifier

type NodeIdentifier struct {
	NodeID   string `json:"node_id" validate:"required,min=1" required:"true"`
	NodeType string `json:"node_type" required:"true" validate:"required,oneof=host cluster cloud_account" enum:"host,cluster,cloud_account"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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