Documentation ¶
Overview ¶
Package metrics handles reporting of identifable metrics about user code for personal and team consumption.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( NewController, NewModeController, )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(exporter *DeferredExporter, tiltBuild model.TiltBuild, gitRemote git.GitRemote) *Controller
func (*Controller) OnChange ¶
func (c *Controller) OnChange(ctx context.Context, rStore store.RStore, _ store.ChangeSummary)
type DeferredExporter ¶
type DeferredExporter struct {
// contains filtered or unexported fields
}
func NewDeferredExporter ¶
func NewDeferredExporter() *DeferredExporter
func (*DeferredExporter) ExportView ¶
func (d *DeferredExporter) ExportView(viewData *view.Data)
func (*DeferredExporter) Flush ¶ added in v0.17.5
func (d *DeferredExporter) Flush()
func (*DeferredExporter) SetRemote ¶
func (d *DeferredExporter) SetRemote(remote RemoteExporter) error
func (*DeferredExporter) Stop ¶ added in v0.17.5
func (d *DeferredExporter) Stop() error
type MetricsDashboardAction ¶ added in v0.18.0
type MetricsDashboardAction struct {
GrafanaHost string
}
Broadcasts information about the Grafana dashboard. In the future, this may come from cloud.tilt.dev.
func (MetricsDashboardAction) Action ¶ added in v0.18.0
func (MetricsDashboardAction) Action()
type MetricsModeAction ¶ added in v0.17.13
type MetricsModeAction struct { Serving store.MetricsServing Settings model.MetricsSettings Manifests []model.Manifest }
func (MetricsModeAction) Action ¶ added in v0.17.13
func (MetricsModeAction) Action()
type MetricsState ¶ added in v0.17.5
type MetricsState struct {
// contains filtered or unexported fields
}
func (MetricsState) Enabled ¶ added in v0.17.5
func (s MetricsState) Enabled() bool
type ModeController ¶ added in v0.17.13
type ModeController struct {
// contains filtered or unexported fields
}
func NewModeController ¶ added in v0.17.13
func NewModeController(host model.WebHost, userPrefs user.PrefsInterface) *ModeController
func (*ModeController) OnChange ¶ added in v0.17.13
func (c *ModeController) OnChange(ctx context.Context, rStore store.RStore, _ store.ChangeSummary)
func (*ModeController) SetUserMode ¶ added in v0.17.13
func (c *ModeController) SetUserMode(ctx context.Context, rStore store.RStore, newMode model.MetricsMode)
type RemoteExporter ¶
Click to show internal directories.
Click to hide internal directories.