MCPcopy Create free account
hub / github.com/couchbase/cbft / extractMetricsStats

Function extractMetricsStats

ns_server.go:708–716  ·  view source on GitHub ↗
(metrics, nsIndexStat map[string]interface{})

Source from the content-addressed store, hash-verified

706}
707
708func extractMetricsStats(metrics, nsIndexStat map[string]interface{}) error {
709 for path, statname := range metricStats {
710 v := jsonpointer.Get(metrics, path)
711 if vint64, ok := v.(int64); ok {
712 updateStat(statname, float64(vint64), nsIndexStat)
713 }
714 }
715 return nil
716}
717
718func extractMossStats(mossStats *moss.CollectionStats, nsIndexStat map[string]interface{}) error {
719 updateStat("num_recs_to_persist", float64(mossStats.CurDirtyOps), nsIndexStat)

Callers 1

extractStatsFunction · 0.85

Calls 2

updateStatFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected