rhobs

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRhobs

func NewCmdRhobs() *cobra.Command

Types

type LogsFormat

type LogsFormat string
const (
	LogsFormatText LogsFormat = "text"
	LogsFormatCsv  LogsFormat = "csv"
	LogsFormatJson LogsFormat = "json"
)

func GetLogsFormatFromString

func GetLogsFormatFromString(formatStr string) (LogsFormat, error)

type MetricsFormat

type MetricsFormat string
const (
	MetricsFormatTable MetricsFormat = "table"
	MetricsFormatCsv   MetricsFormat = "csv"
	MetricsFormatJson  MetricsFormat = "json"
)

func GetMetricsFormatFromString

func GetMetricsFormatFromString(formatStr string) (MetricsFormat, error)

type RhobsFetchUsage

type RhobsFetchUsage string
const (
	RhobsFetchForMetrics RhobsFetchUsage = "metrics"
	RhobsFetchForLogs    RhobsFetchUsage = "logs"
)

type RhobsFetcher

type RhobsFetcher struct {
	RhobsCell string
	// contains filtered or unexported fields
}

func CreateRhobsFetcher

func CreateRhobsFetcher(clusterKey string, rhobsFetchUse RhobsFetchUsage, hiveOcmUrl string) (*RhobsFetcher, error)

func (*RhobsFetcher) PrintLogs

func (q *RhobsFetcher) PrintLogs(lokiExpr string, startTime, endTime time.Time, logsCount int, isGoingForward bool, format LogsFormat, isPrintingTimeValue bool, fieldNames []string) error

func (*RhobsFetcher) PrintMetrics

func (q *RhobsFetcher) PrintMetrics(promExpr string, format MetricsFormat, isPrintingClusterResultsOnly bool) error

func (*RhobsFetcher) StreamLogs

func (q *RhobsFetcher) StreamLogs(lokiExpr string, startTime time.Time, format LogsFormat, isPrintingTimeValue bool, fieldNames []string) error

Jump to

Keyboard shortcuts

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