MCPcopy
hub / github.com/kubernetes/node-problem-detector / newInt64Metric

Function newInt64Metric

pkg/systemstatsmonitor/net_collector.go:32–34  ·  view source on GitHub ↗

newInt64Metric is a wrapper of metrics.NewInt64Metric that returns an interface instead of the specific type

(metricID metrics.MetricID, viewName string, description string, unit string, aggregation metrics.Aggregation, tagNames []string)

Source from the content-addressed store, hash-verified

30
31// newInt64Metric is a wrapper of metrics.NewInt64Metric that returns an interface instead of the specific type
32func newInt64Metric(metricID metrics.MetricID, viewName string, description string, unit string, aggregation metrics.Aggregation, tagNames []string) (metrics.Int64MetricInterface, error) {
33 return metrics.NewInt64Metric(metricID, viewName, description, unit, aggregation, tagNames)
34}
35
36type netCollector struct {
37 config *ssmtypes.NetStatsConfig

Callers

nothing calls this directly

Calls 1

NewInt64MetricFunction · 0.92

Tested by

no test coverage detected