Documentation ¶
Index ¶
- type CounterMetric
- type CounterMetricState
- func (s *CounterMetricState) AddMetric(family *dto.MetricFamily, metric *dto.Metric)
- func (s *CounterMetricState) GetMetric(family *dto.MetricFamily, metric *dto.Metric) (bool, float64, int64)
- func (s *CounterMetricState) Read(reader io.Reader) error
- func (s *CounterMetricState) Write(writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterMetric ¶
type CounterMetricState ¶
type CounterMetricState struct {
// contains filtered or unexported fields
}
func New ¶
func New() *CounterMetricState
func NewFromFile ¶
func NewFromFile(filename string) (*CounterMetricState, error)
NewFromFile creates a new metric state and populates it with the content of the specified JSON file.
func (*CounterMetricState) AddMetric ¶
func (s *CounterMetricState) AddMetric(family *dto.MetricFamily, metric *dto.Metric)
func (*CounterMetricState) GetMetric ¶
func (s *CounterMetricState) GetMetric(family *dto.MetricFamily, metric *dto.Metric) (bool, float64, int64)
Click to show internal directories.
Click to hide internal directories.