Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsAdder ¶
type MetricsAdder interface { // AddMetricBatches stores the specified metric batches in the state. AddMetricBatches(batches params.MetricBatchParams) (params.ErrorResults, error) }
MetricsAdder defines methods that are used to store metric batches in the state.
type MetricsAdderAPI ¶
type MetricsAdderAPI struct {
// contains filtered or unexported fields
}
MetricsAdderAPI implements the metrics adder interface and is the concrete implementation of the API end point.
func NewMetricsAdderAPI ¶
func NewMetricsAdderAPI( st *state.State, resources facade.Resources, authorizer facade.Authorizer, ) (*MetricsAdderAPI, error)
NewMetricsAdderAPI creates a new API endpoint for adding metrics to state.
func (*MetricsAdderAPI) AddMetricBatches ¶
func (api *MetricsAdderAPI) AddMetricBatches(args params.MetricBatchParams) (params.ErrorResults, error)
AddMetricBatches implements the MetricsAdder interface.
Click to show internal directories.
Click to hide internal directories.