Documentation ¶ Index ¶ func GetMetricKey(entityID string, m Metric) string func GetPrevMetricKey(entityID string, m Metric) string func Merge(prev, new *structpb.Struct) error type Metric func GetEntityAndMetric(key string) (string, Metric, bool, error) func (m Metric) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetMetricKey ¶ func GetMetricKey(entityID string, m Metric) string func GetPrevMetricKey ¶ func GetPrevMetricKey(entityID string, m Metric) string func Merge ¶ func Merge(prev, new *structpb.Struct) error Types ¶ type Metric ¶ type Metric int const ( MetricNodeRunning Metric = iota MetricEdgeMessageSent MetricEdgeMessageReceived MetricNodeMessageSent MetricNodeMessageReceived MetricEdgeActive ) func GetEntityAndMetric ¶ func GetEntityAndMetric(key string) (string, Metric, bool, error) func (Metric) String ¶ func (m Metric) String() string Source Files ¶ View all Source files merge.gometrics.go Click to show internal directories. Click to hide internal directories.