MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / Duration

Class Duration

nodedb/src/control/promql/ast.rs:67–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65/// Duration in milliseconds (PromQL durations: 5s, 1m, 1h, etc.).
66#[derive(Debug, Clone, Copy, PartialEq, Eq)]
67pub struct Duration(pub i64);
68
69impl Duration {
70 pub fn ms(&self) -> i64 {

Callers 15

fromMethod · 0.85
readMethod · 0.85
parseMethod · 0.85
parse_postfixMethod · 0.85
parse_durationMethod · 0.85
lex_number_or_durationFunction · 0.85

Calls

no outgoing calls

Tested by 10

run_merge_cycle_testFunction · 0.68
test_configFunction · 0.68
test_configFunction · 0.68