(metrics, nsIndexStat map[string]interface{})
| 706 | } |
| 707 | |
| 708 | func 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 | |
| 718 | func extractMossStats(mossStats *moss.CollectionStats, nsIndexStat map[string]interface{}) error { |
| 719 | updateStat("num_recs_to_persist", float64(mossStats.CurDirtyOps), nsIndexStat) |
no test coverage detected