MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / QueryLatencySamples

Method QueryLatencySamples

internal/nodes/store.go:132–132  ·  view source on GitHub ↗

QueryLatencySamples 查询指定节点在时间范围内的延迟采样,按 sampled_at 升序。

(nodeIDs []string, from, to time.Time)

Source from the content-addressed store, hash-verified

130 SaveLatencySamples(samples []LatencySample) error
131 // QueryLatencySamples 查询指定节点在时间范围内的延迟采样,按 sampled_at 升序。
132 QueryLatencySamples(nodeIDs []string, from, to time.Time) ([]LatencySample, error)
133 // CleanupOldLatencySamples 删除 before 之前的采样记录。
134 CleanupOldLatencySamples(before time.Time) error
135}

Callers 2

buildStatPayloadMethod · 0.65
handleLatencyMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected