MCPcopy
hub / github.com/derailed/k9s / Add

Method Add

internal/view/pulse.go:51–51  ·  view source on GitHub ↗

Add adds a metric

(ok, fault int)

Source from the content-addressed store, hash-verified

49
50 // Add adds a metric
51 Add(ok, fault int)
52
53 AddMetric(time.Time, float64)
54

Callers 15

NewWorkerPoolFunction · 0.65
AddMethod · 0.65
TestWorkerPoolPlainFunction · 0.65
TestWorkerPoolWithErrorFunction · 0.65
FetchNodesMetricsMethod · 0.65
FetchPodsMetricsMethod · 0.65
newFakeK8sServerFunction · 0.65
TestIsValidNamespaceFunction · 0.65
TestCheckCacheBoolFunction · 0.65
CanIMethod · 0.65
ServerVersionMethod · 0.65
ValidNamespaceNamesMethod · 0.65

Calls

no outgoing calls

Tested by 13

TestWorkerPoolPlainFunction · 0.52
TestWorkerPoolWithErrorFunction · 0.52
newFakeK8sServerFunction · 0.52
TestIsValidNamespaceFunction · 0.52
TestCheckCacheBoolFunction · 0.52
Test_scorerAddFunction · 0.52
TestToAgeHumanFunction · 0.52
Test_lastRestartFunction · 0.52
TestSeriesAddFunction · 0.52
TestRowEventsSortFunction · 0.52
TestRowsSortDurationFunction · 0.52
TestWorkerPoolPlainFunction · 0.52