cmd

package
v0.0.0-...-236ec6c Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIDashboardCluster = "Cluster"
	UIDashboardTopic   = "Topic"
	UIDashboardRequest = "Request"
)

Variables

View Source
var (
	GloballHotKeys = []widgets.HotKey{
		{
			Key: "1", Name: string(ccloudmetrics.GranularityOneMin), Action: func() widgets.HotKeyAction {
				queryContext.Granulatory = ccloudmetrics.GranularityOneMin
				return widgets.HotKeyUpdate
			},
		},
		{
			Key: "2", Name: string(ccloudmetrics.GranularityFiveMin), Action: func() widgets.HotKeyAction {
				queryContext.Granulatory = ccloudmetrics.GranularityFiveMin
				return widgets.HotKeyUpdate
			},
		},
		{
			Key: "3", Name: string(ccloudmetrics.GranularityFifteenMin), Action: func() widgets.HotKeyAction {
				queryContext.Granulatory = ccloudmetrics.GranularityFifteenMin
				return widgets.HotKeyUpdate
			},
		},
		{
			Key: "4", Name: string(ccloudmetrics.GranularityThirtyMin), Action: func() widgets.HotKeyAction {
				queryContext.Granulatory = ccloudmetrics.GranularityThirtyMin
				return widgets.HotKeyUpdate
			},
		},
		{
			Key: "5", Name: string(ccloudmetrics.GranularityOneHour), Action: func() widgets.HotKeyAction {
				queryContext.Granulatory = ccloudmetrics.GranularityOneHour
				return widgets.HotKeyUpdate
			},
		},
	}
)

Functions

func Execute

func Execute()

func UiMainLoop

func UiMainLoop() error

Types

type BlackholeWriter

type BlackholeWriter struct {
}

func (*BlackholeWriter) Write

func (wr *BlackholeWriter) Write(b []byte) (int, error)

type ClusterGraphSet

type ClusterGraphSet struct {
	ui.Grid
	Granularity ccloudmetrics.Granularity

	Bytes             *widgets.CCloudMetricsPlot
	Records           *widgets.CCloudMetricsPlot
	RetainedBytes     *widgets.CCloudMetricsPlot
	Partitions        *widgets.CCloudMetricsPlot
	ActiveConnections *widgets.CCloudMetricsPlot
	// contains filtered or unexported fields
}

func NewClusterGraphSet

func NewClusterGraphSet(queryContext *QueryContext, api *ccloudmetrics.MetricsClient) *ClusterGraphSet

func (*ClusterGraphSet) Graph

func (g *ClusterGraphSet) Graph() interface{}

func (*ClusterGraphSet) GraphTitle

func (g *ClusterGraphSet) GraphTitle() string

func (*ClusterGraphSet) HotKeys

func (g *ClusterGraphSet) HotKeys() []widgets.HotKey

func (*ClusterGraphSet) Update

func (g *ClusterGraphSet) Update()

type QueryContext

type QueryContext struct {
	ClusterId   string
	Topic       string
	Type        string
	Granulatory ccloudmetrics.Granularity
}

type UIContext

type UIContext struct {
	// contains filtered or unexported fields
}

type UIDashboard

type UIDashboard string

Jump to

Keyboard shortcuts

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