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 UiMainLoop ¶
func UiMainLoop() error
Types ¶
type BlackholeWriter ¶
type BlackholeWriter struct { }
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 UIDashboard ¶
type UIDashboard string
Click to show internal directories.
Click to hide internal directories.