Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
impl 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_postfix
Method · 0.80
eval_subquery
Function · 0.80
eval_vector_selector
Function · 0.80
eval_matrix_selector
Function · 0.80
parse_step
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected