Documentation ¶
Index ¶
- Constants
- type ProviderMetrics
- func (p *ProviderMetrics) ClearState()
- func (p *ProviderMetrics) Collect(metrics chan<- prometheus.Metric)
- func (p *ProviderMetrics) Create(_ *semver.Version) bool
- func (p *ProviderMetrics) Describe(descs chan<- *prometheus.Desc)
- func (p *ProviderMetrics) FQName() string
- func (p *ProviderMetrics) MarkFeatureDisabled(featureName string)
- func (p *ProviderMetrics) MarkFeatureEnabled(featureName string)
Constants ¶
View Source
const FeatureDisabled = 0
View Source
const FeatureEnabled = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderMetrics ¶
type ProviderMetrics struct { Name string // contains filtered or unexported fields }
func NewProviderMetrics ¶
func NewProviderMetrics(providerName, providerVersion string) ProviderMetrics
NewProviderMetrics returns a prometheus.Collector for Provider Metrics.
func (*ProviderMetrics) ClearState ¶
func (p *ProviderMetrics) ClearState()
func (*ProviderMetrics) Collect ¶
func (p *ProviderMetrics) Collect(metrics chan<- prometheus.Metric)
func (*ProviderMetrics) Create ¶
func (p *ProviderMetrics) Create(_ *semver.Version) bool
func (*ProviderMetrics) Describe ¶
func (p *ProviderMetrics) Describe(descs chan<- *prometheus.Desc)
func (*ProviderMetrics) FQName ¶
func (p *ProviderMetrics) FQName() string
func (*ProviderMetrics) MarkFeatureDisabled ¶
func (p *ProviderMetrics) MarkFeatureDisabled(featureName string)
func (*ProviderMetrics) MarkFeatureEnabled ¶
func (p *ProviderMetrics) MarkFeatureEnabled(featureName string)
Click to show internal directories.
Click to hide internal directories.