Documentation
¶
Index ¶
- func NewCmdRhobs() *cobra.Command
- type LogsFormat
- type MetricsFormat
- type RhobsFetchUsage
- type RhobsFetcher
- func (q *RhobsFetcher) PrintLogs(lokiExpr string, startTime, endTime time.Time, logsCount int, ...) error
- func (q *RhobsFetcher) PrintMetrics(promExpr string, format MetricsFormat, isPrintingClusterResultsOnly bool) error
- func (q *RhobsFetcher) StreamLogs(lokiExpr string, startTime time.Time, format LogsFormat, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdRhobs ¶
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
Click to show internal directories.
Click to hide internal directories.