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

Method ms

nodedb/src/control/promql/ast.rs:70–72  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

68
69impl Duration {
70 pub fn ms(&self) -> i64 {
71 self.0
72 }
73
74 /// Parse a PromQL duration string (e.g., "5m", "1h30m", "300s").
75 pub fn parse(s: &str) -> Option<Self> {

Callers 5

parse_postfixMethod · 0.80
eval_subqueryFunction · 0.80
eval_vector_selectorFunction · 0.80
eval_matrix_selectorFunction · 0.80
parse_stepFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected