@prometheus-io/lezer-promql 0.306.0 → 0.307.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -1
- package/dist/index.cjs +91 -87
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +90 -88
- package/package.json +2 -2
- package/src/parser.js +87 -85
- package/src/parser.terms.js +78 -76
- package/src/promql.grammar +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.7.0-rc.0 / 2025-10-02
|
|
4
|
+
|
|
5
|
+
* [CHANGE] Remote-write: Deprecate `prometheus_remote_storage_{samples,exemplars,histograms}_in_total` and `prometheus_remote_storage_highest_timestamp_in_seconds` metrics, see their respective descriptions for alternatives. #17065
|
|
6
|
+
* [FEATURE] PromQL: Add support for experimental anchored and smoothed rate behind feature flag `promql-extended-range-selectors`. #16457
|
|
7
|
+
* [FEATURE] Federation: Add support for native histograms with custom buckets (NHCB). #17215
|
|
8
|
+
* [FEATURE] PromQL: Add `first_over_time(...)` and `ts_of_first_over_time(...)` behind feature flag `experimental-promql-functions`. #16963 #17021
|
|
9
|
+
* [FEATURE] Remote-write: Add support for Azure Workload Identity as an authentication method for the receiver. #16788
|
|
10
|
+
* [FEATURE] Remote-write: Add type and unit labels to outgoing time series in remote-write 2.0 when the `type-and-unit-labels` feature flag is enabled. #17033
|
|
11
|
+
* [FEATURE] OTLP: Write start time of metrics as created time zero samples into TSDB when `created-timestamp-zero-ingestion` feature flag is enabled. #16951
|
|
12
|
+
* [ENHANCEMENT] PromQL: Add warn-level annotations for counter reset conflicts in certain histogram operations. #17051 #17094
|
|
13
|
+
* [ENHANCEMENT] UI: Add scrape interval and scrape timeout to targets page. #17158
|
|
14
|
+
* [ENHANCEMENT] TSDB: Reduce the resolution of native histograms read from chunks or remote read if the schema is exponential. #17213
|
|
15
|
+
* [ENHANCEMENT] Remote write: Add logging for unexpected metadata in sample batches, when metadata entries are found in samples-only batches. #17034 #17082
|
|
16
|
+
* [ENHANCEMENT] Remote-write: Add `prometheus_remote_storage_queue_highest_timestamp_seconds` metric, tracking the highest timestamp actually enqueued, taking `write_relabel_configs` into account. #17065
|
|
17
|
+
* [ENHANCEMENT] Mixin: Replace `prometheus_remote_storage_highest_timestamp_in_seconds` metric with the new `prometheus_remote_storage_queue_highest_timestamp_seconds` metric in dashboards and alerts to properly account for relabeling, for better accuracy. #17065
|
|
18
|
+
* [ENHANCEMENT] Rules: Support concurrent evaluation for rules querying `ALERTS` and `ALERTS_FOR_STATE`. #17064
|
|
19
|
+
* [ENHANCEMENT] TSDB: Add logs to improve visibility into internal operations. #17074
|
|
20
|
+
* [PERF] OTLP: Write directly to TSDB instead of passing through a Remote-Write adapter when receiving OTLP metrics. #16951
|
|
21
|
+
* [PERF] OTLP: Reduce number of logs emitted from OTLP endpoint. No need to log duplicate sample errors. #17201
|
|
22
|
+
* [PERF] PromQL: Move more work to preprocessing step. #16896
|
|
23
|
+
* [PERF] PromQL: Reduce allocations when walking the syntax tree. #16593
|
|
24
|
+
* [PERF] TSDB: Optimize appender creation, slightly speeding up startup. #16922
|
|
25
|
+
* [PERF] TSDB: Improve reverse index lookup performance. #13971
|
|
26
|
+
* [BUGFIX] Alerting: Mutating alerts relabeling (using `replace` actions, etc.) within a `alertmanager_config.alert_relabel_configs` block is now scoped correctly and no longer yields altered alerts to subsequent blocks. #17063
|
|
27
|
+
* [BUGFIX] Config: Infer valid escaping scheme when scrape config validation scheme is set. #16923
|
|
28
|
+
* [BUGFIX] TSDB: Correctly handle appending mixed-typed samples to the same series. #17071 #17241 #17290 #17295 #17296
|
|
29
|
+
* [BUGFIX] Remote-write: Prevent sending unsupported native histograms with custom buckets (NHCB) over Remote-write 1.0, log warning. #17146
|
|
30
|
+
* [BUGFIX] TSDB: Fix metadata entries handling on `metadata-wal-records` feature for Native Histograms with custom buckets in protobuf scraping. #17156
|
|
31
|
+
* [BUGFIX] TSDB: Ignore Native Histograms with invalid schemas during WAL/WBL replay. #17214
|
|
32
|
+
* [BUGFIX] PromQL: Avoid empty metric names in annotations for `histogram_quantile()`. #16794
|
|
33
|
+
* [BUGFIX] PromQL: Fix the character position of errors in some aggregate expressions. #16996 #17031
|
|
34
|
+
* [BUGFIX] PromQL: Fix `info()` function on churning series. #17135
|
|
35
|
+
* [BUGFIX] PromQL: Set native histogram to gauge type when subtracting or multiplying/dividing with negative factors. #17004
|
|
36
|
+
* [BUGFIX] TSDB: Reject unsupported native histogram schemas when attempting to append to TSDB. For scrape and remote-write implement reducing the resolution to fit the maximum if the schema is within the -9 to 52. #17189
|
|
37
|
+
* [BUGFIX] Remote-write: Fix HTTP handler to return after writing error response for invalid compression. #17050
|
|
38
|
+
* [BUGFIX] Remote-write: Return HTTP error `400` instead of `5xx` for wrongly formatted Native Histograms. #17210
|
|
39
|
+
* [BUGFIX] Scrape: Prevent staleness markers from generating unnecessary series. #16429
|
|
40
|
+
* [BUGFIX] TSDB: Avoid misleading `Failed to calculate size of \"wal\" dir` error logs during WAL clean-up. #17006
|
|
41
|
+
* [BUGFIX] TSDB: Prevent erroneously dropping series records during WAL checkpoints. #17029
|
|
42
|
+
* [BUGFIX] UI: Fix redirect to path of `-web.external-url` if `-web.route-prefix` is configured. #17240
|
|
43
|
+
* [BUGIFX] Remote-write: Do not panic on invalid symbol table in remote-write 2.0. #17160
|
|
4
44
|
|
|
5
45
|
## 3.6.0 / 2025-09-17
|
|
6
46
|
|
package/dist/index.cjs
CHANGED
|
@@ -4,8 +4,8 @@ var lr = require('@lezer/lr');
|
|
|
4
4
|
var highlight = require('@lezer/highlight');
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
|
-
const inf$1 =
|
|
8
|
-
nan$1 =
|
|
7
|
+
const inf$1 = 163,
|
|
8
|
+
nan$1 = 164,
|
|
9
9
|
Bool$1 = 1,
|
|
10
10
|
Ignoring$1 = 2,
|
|
11
11
|
On$1 = 3,
|
|
@@ -128,29 +128,29 @@ const promQLHighLight = highlight.styleTags({
|
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
131
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
131
|
+
const spec_Identifier = {__proto__:null,absent_over_time:345, absent:347, abs:349, acos:351, acosh:353, asin:355, asinh:357, atan:359, atanh:361, avg_over_time:363, ceil:365, changes:367, clamp:369, clamp_max:371, clamp_min:373, cos:375, cosh:377, count_over_time:379, days_in_month:381, day_of_month:383, day_of_week:385, day_of_year:387, deg:389, delta:391, deriv:393, exp:395, first_over_time:397, floor:399, histogram_count:401, histogram_fraction:403, histogram_quantile:405, histogram_stddev:407, histogram_stdvar:409, histogram_sum:411, histogram_avg:413, double_exponential_smoothing:415, hour:417, idelta:419, increase:421, info:423, irate:425, label_replace:427, label_join:429, last_over_time:431, ln:433, log10:435, log2:437, mad_over_time:439, max_over_time:441, min_over_time:443, ts_of_first_over_time:445, ts_of_max_over_time:447, ts_of_min_over_time:449, ts_of_last_over_time:451, minute:453, month:455, pi:457, predict_linear:459, present_over_time:461, quantile_over_time:463, rad:465, rate:467, resets:469, round:471, scalar:473, sgn:475, sin:477, sinh:479, sort:481, sort_desc:483, sort_by_label:485, sort_by_label_desc:487, sqrt:489, stddev_over_time:491, stdvar_over_time:493, sum_over_time:495, tan:497, tanh:499, timestamp:501, time:503, vector:505, year:507};
|
|
132
132
|
const parser = lr.LRParser.deserialize({
|
|
133
133
|
version: 14,
|
|
134
|
-
states: "
|
|
135
|
-
stateData: "
|
|
136
|
-
goto: ")
|
|
137
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
138
|
-
maxTerm:
|
|
134
|
+
states: ":QOYQPOOO(TQPOOOOQO'#C|'#C|O(YQPO'#C{Q(eQQOOOOQO'#De'#DeO(`QPO'#DdOOQO'#F_'#F_O)rQPO'#FdOYQPO'#FaOYQPO'#FcO0vQSO'#FfO1RQQO'#FeOOQO'#Fe'#FeOOQO'#Fy'#FyOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#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&t&t&t&t&t&t&t&t&t&t&t&t&t$s'Q'Z$s$s$s$s'j$s'v(V(_PPP(V$sP(fP(i(o(uPPPPP(|PPP)le^OXY#V#u#v#w#x#y$]eROXY#V#u#v#w#x#y$]Q#WRR#p#XQ#m#UQ$`#rR%S$xQ#hZQ$[#lU$m$W$p$}V%O$r%Q%VQ#XRQ#bUR#p#WZ#t#Y#Z#[#]#^Y#s#Y#Z#[#]#^R$a#teUOXY#V#u#v#w#x#y$]eTOXY#V#u#v#w#x#y$]Q#|#_Q#}#`R$z$id^OXY#V#u#v#w#x#y$]R$Q#aeYOXY#V#u#v#w#x#y$]d]OXY#V#u#v#w#x#y$]R#k[Q#jZV$n$W$p$}Q$U#gT$V#h$mR$R#aQ$s$[R%R$sQ$^#oR$v$^S$X#h#jR$q$XQSOQ#dXQ#eYQ#o#VQ$b#uQ$c#vQ$d#wQ$e#xQ$f#yR$u$]Q#u#YQ#v#ZQ#w#[Q#x#]R#y#^",
|
|
137
|
+
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
138
|
+
maxTerm: 261,
|
|
139
139
|
nodeProps: [
|
|
140
|
-
["group", -12,31,37,39,54,
|
|
140
|
+
["group", -12,31,37,39,54,139,141,142,143,144,145,147,155,"Expr"]
|
|
141
141
|
],
|
|
142
142
|
propSources: [promQLHighLight],
|
|
143
143
|
skippedNodes: [0,29],
|
|
144
144
|
repeatNodeCount: 3,
|
|
145
|
-
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$
|
|
145
|
+
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$l~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$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#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&k~!Q![0p!c!i0p#T#Z0pV1VT&mS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$]P!_!`2d#r#s2iQ2iO!QQ~2nO$^~~2sP!S~!_!`2v~2{O!R~~3QO$b~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&h~~3rO&l~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&n~~4kO&o~",
|
|
146
146
|
tokenizers: [0, 1, 2],
|
|
147
|
-
topRules: {"PromQL":[0,30],"MetricName":[1,
|
|
147
|
+
topRules: {"PromQL":[0,30],"MetricName":[1,158]},
|
|
148
148
|
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
149
149
|
tokenPrec: 0
|
|
150
150
|
});
|
|
151
151
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
152
|
-
const inf =
|
|
153
|
-
nan =
|
|
152
|
+
const inf = 163,
|
|
153
|
+
nan = 164,
|
|
154
154
|
Bool = 1,
|
|
155
155
|
Ignoring = 2,
|
|
156
156
|
On = 3,
|
|
@@ -233,80 +233,82 @@ const inf = 161,
|
|
|
233
233
|
Delta = 80,
|
|
234
234
|
Deriv = 81,
|
|
235
235
|
Exp = 82,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
236
|
+
FirstOverTime = 83,
|
|
237
|
+
Floor = 84,
|
|
238
|
+
HistogramCount = 85,
|
|
239
|
+
HistogramFraction = 86,
|
|
240
|
+
HistogramQuantile = 87,
|
|
241
|
+
HistogramStdDev = 88,
|
|
242
|
+
HistogramStdVar = 89,
|
|
243
|
+
HistogramSum = 90,
|
|
244
|
+
HistogramAvg = 91,
|
|
245
|
+
DoubleExponentialSmoothing = 92,
|
|
246
|
+
Hour = 93,
|
|
247
|
+
Idelta = 94,
|
|
248
|
+
Increase = 95,
|
|
249
|
+
Info = 96,
|
|
250
|
+
Irate = 97,
|
|
251
|
+
LabelReplace = 98,
|
|
252
|
+
LabelJoin = 99,
|
|
253
|
+
LastOverTime = 100,
|
|
254
|
+
Ln = 101,
|
|
255
|
+
Log10 = 102,
|
|
256
|
+
Log2 = 103,
|
|
257
|
+
MadOverTime = 104,
|
|
258
|
+
MaxOverTime = 105,
|
|
259
|
+
MinOverTime = 106,
|
|
260
|
+
TsOfFirstOverTime = 107,
|
|
261
|
+
TsOfMaxOverTime = 108,
|
|
262
|
+
TsOfMinOverTime = 109,
|
|
263
|
+
TsOfLastOverTime = 110,
|
|
264
|
+
Minute = 111,
|
|
265
|
+
Month = 112,
|
|
266
|
+
Pi = 113,
|
|
267
|
+
PredictLinear = 114,
|
|
268
|
+
PresentOverTime = 115,
|
|
269
|
+
QuantileOverTime = 116,
|
|
270
|
+
Rad = 117,
|
|
271
|
+
Rate = 118,
|
|
272
|
+
Resets = 119,
|
|
273
|
+
Round = 120,
|
|
274
|
+
Scalar = 121,
|
|
275
|
+
Sgn = 122,
|
|
276
|
+
Sin = 123,
|
|
277
|
+
Sinh = 124,
|
|
278
|
+
Sort = 125,
|
|
279
|
+
SortDesc = 126,
|
|
280
|
+
SortByLabel = 127,
|
|
281
|
+
SortByLabelDesc = 128,
|
|
282
|
+
Sqrt = 129,
|
|
283
|
+
StddevOverTime = 130,
|
|
284
|
+
StdvarOverTime = 131,
|
|
285
|
+
SumOverTime = 132,
|
|
286
|
+
Tan = 133,
|
|
287
|
+
Tanh = 134,
|
|
288
|
+
Timestamp = 135,
|
|
289
|
+
Time = 136,
|
|
290
|
+
Vector = 137,
|
|
291
|
+
Year = 138,
|
|
292
|
+
MatrixSelector = 139,
|
|
293
|
+
NumberDurationLiteralInDurationContext = 140,
|
|
294
|
+
NumberDurationLiteral = 141,
|
|
295
|
+
OffsetExpr = 142,
|
|
296
|
+
ParenExpr = 143,
|
|
297
|
+
SubqueryExpr = 144,
|
|
298
|
+
UnaryExpr = 145,
|
|
299
|
+
UnaryOp = 146,
|
|
300
|
+
VectorSelector = 147,
|
|
301
|
+
LabelMatchers = 148,
|
|
302
|
+
UnquotedLabelMatcher = 149,
|
|
303
|
+
MatchOp = 150,
|
|
304
|
+
EqlSingle = 151,
|
|
305
|
+
EqlRegex = 152,
|
|
306
|
+
NeqRegex = 153,
|
|
307
|
+
QuotedLabelMatcher = 154,
|
|
308
|
+
StepInvariantExpr = 155,
|
|
309
|
+
At = 156,
|
|
310
|
+
AtModifierPreprocessors = 157,
|
|
311
|
+
MetricName = 158;
|
|
310
312
|
|
|
311
313
|
exports.Abs = Abs;
|
|
312
314
|
exports.Absent = Absent;
|
|
@@ -356,6 +358,7 @@ exports.Eql = Eql;
|
|
|
356
358
|
exports.EqlRegex = EqlRegex;
|
|
357
359
|
exports.EqlSingle = EqlSingle;
|
|
358
360
|
exports.Exp = Exp;
|
|
361
|
+
exports.FirstOverTime = FirstOverTime;
|
|
359
362
|
exports.Floor = Floor;
|
|
360
363
|
exports.FunctionCall = FunctionCall;
|
|
361
364
|
exports.FunctionCallBody = FunctionCallBody;
|
|
@@ -453,6 +456,7 @@ exports.Tanh = Tanh;
|
|
|
453
456
|
exports.Time = Time;
|
|
454
457
|
exports.Timestamp = Timestamp;
|
|
455
458
|
exports.Topk = Topk;
|
|
459
|
+
exports.TsOfFirstOverTime = TsOfFirstOverTime;
|
|
456
460
|
exports.TsOfLastOverTime = TsOfLastOverTime;
|
|
457
461
|
exports.TsOfMaxOverTime = TsOfMaxOverTime;
|
|
458
462
|
exports.TsOfMinOverTime = TsOfMinOverTime;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export const
|
|
|
102
102
|
Delta: number,
|
|
103
103
|
Deriv: number,
|
|
104
104
|
Exp: number,
|
|
105
|
+
FirstOverTime: number,
|
|
105
106
|
Floor: number,
|
|
106
107
|
HistogramCount: number,
|
|
107
108
|
HistogramFraction: number,
|
|
@@ -125,6 +126,7 @@ export const
|
|
|
125
126
|
MadOverTime: number,
|
|
126
127
|
MaxOverTime: number,
|
|
127
128
|
MinOverTime: number,
|
|
129
|
+
TsOfFirstOverTime: number,
|
|
128
130
|
TsOfMaxOverTime: number,
|
|
129
131
|
TsOfMinOverTime: number,
|
|
130
132
|
TsOfLastOverTime: number,
|
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { LRParser } from '@lezer/lr';
|
|
|
2
2
|
import { styleTags, tags } from '@lezer/highlight';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
|
-
const inf$1 =
|
|
6
|
-
nan$1 =
|
|
5
|
+
const inf$1 = 163,
|
|
6
|
+
nan$1 = 164,
|
|
7
7
|
Bool$1 = 1,
|
|
8
8
|
Ignoring$1 = 2,
|
|
9
9
|
On$1 = 3,
|
|
@@ -126,29 +126,29 @@ const promQLHighLight = styleTags({
|
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
129
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
129
|
+
const spec_Identifier = {__proto__:null,absent_over_time:345, absent:347, abs:349, acos:351, acosh:353, asin:355, asinh:357, atan:359, atanh:361, avg_over_time:363, ceil:365, changes:367, clamp:369, clamp_max:371, clamp_min:373, cos:375, cosh:377, count_over_time:379, days_in_month:381, day_of_month:383, day_of_week:385, day_of_year:387, deg:389, delta:391, deriv:393, exp:395, first_over_time:397, floor:399, histogram_count:401, histogram_fraction:403, histogram_quantile:405, histogram_stddev:407, histogram_stdvar:409, histogram_sum:411, histogram_avg:413, double_exponential_smoothing:415, hour:417, idelta:419, increase:421, info:423, irate:425, label_replace:427, label_join:429, last_over_time:431, ln:433, log10:435, log2:437, mad_over_time:439, max_over_time:441, min_over_time:443, ts_of_first_over_time:445, ts_of_max_over_time:447, ts_of_min_over_time:449, ts_of_last_over_time:451, minute:453, month:455, pi:457, predict_linear:459, present_over_time:461, quantile_over_time:463, rad:465, rate:467, resets:469, round:471, scalar:473, sgn:475, sin:477, sinh:479, sort:481, sort_desc:483, sort_by_label:485, sort_by_label_desc:487, sqrt:489, stddev_over_time:491, stdvar_over_time:493, sum_over_time:495, tan:497, tanh:499, timestamp:501, time:503, vector:505, year:507};
|
|
130
130
|
const parser = LRParser.deserialize({
|
|
131
131
|
version: 14,
|
|
132
|
-
states: "
|
|
133
|
-
stateData: "
|
|
134
|
-
goto: ")
|
|
135
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
136
|
-
maxTerm:
|
|
132
|
+
states: ":QOYQPOOO(TQPOOOOQO'#C|'#C|O(YQPO'#C{Q(eQQOOOOQO'#De'#DeO(`QPO'#DdOOQO'#F_'#F_O)rQPO'#FdOYQPO'#FaOYQPO'#FcO0vQSO'#FfO1RQQO'#FeOOQO'#Fe'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PPPPPPPPPPPPPPPPPPPPPPPPPPP$s%P%]%cP%lP%|$sP&V&^PPPPPPPPPPP$s&h&tP&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t&t$s'Q'Z$s$s$s$s'j$s'v(V(_PPP(V$sP(fP(i(o(uPPPPP(|PPP)le^OXY#V#u#v#w#x#y$]eROXY#V#u#v#w#x#y$]Q#WRR#p#XQ#m#UQ$`#rR%S$xQ#hZQ$[#lU$m$W$p$}V%O$r%Q%VQ#XRQ#bUR#p#WZ#t#Y#Z#[#]#^Y#s#Y#Z#[#]#^R$a#teUOXY#V#u#v#w#x#y$]eTOXY#V#u#v#w#x#y$]Q#|#_Q#}#`R$z$id^OXY#V#u#v#w#x#y$]R$Q#aeYOXY#V#u#v#w#x#y$]d]OXY#V#u#v#w#x#y$]R#k[Q#jZV$n$W$p$}Q$U#gT$V#h$mR$R#aQ$s$[R%R$sQ$^#oR$v$^S$X#h#jR$q$XQSOQ#dXQ#eYQ#o#VQ$b#uQ$c#vQ$d#wQ$e#xQ$f#yR$u$]Q#u#YQ#v#ZQ#w#[Q#x#]R#y#^",
|
|
135
|
+
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
136
|
+
maxTerm: 261,
|
|
137
137
|
nodeProps: [
|
|
138
|
-
["group", -12,31,37,39,54,
|
|
138
|
+
["group", -12,31,37,39,54,139,141,142,143,144,145,147,155,"Expr"]
|
|
139
139
|
],
|
|
140
140
|
propSources: [promQLHighLight],
|
|
141
141
|
skippedNodes: [0,29],
|
|
142
142
|
repeatNodeCount: 3,
|
|
143
|
-
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$
|
|
143
|
+
tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!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~-{R!Q![-x#a#b.U#g#h.x~.ZQ&k~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&k~~.}P&k~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&k~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&k~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&k~!Q![0p!c!i0p#T#Z0pV1VT&mS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$]P!_!`2d#r#s2iQ2iO!QQ~2nO$^~~2sP!S~!_!`2v~2{O!R~~3QO$b~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&h~~3rO&l~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&n~~4kO&o~",
|
|
144
144
|
tokenizers: [0, 1, 2],
|
|
145
|
-
topRules: {"PromQL":[0,30],"MetricName":[1,
|
|
145
|
+
topRules: {"PromQL":[0,30],"MetricName":[1,158]},
|
|
146
146
|
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
147
147
|
tokenPrec: 0
|
|
148
148
|
});
|
|
149
149
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
150
|
-
const inf =
|
|
151
|
-
nan =
|
|
150
|
+
const inf = 163,
|
|
151
|
+
nan = 164,
|
|
152
152
|
Bool = 1,
|
|
153
153
|
Ignoring = 2,
|
|
154
154
|
On = 3,
|
|
@@ -231,79 +231,81 @@ const inf = 161,
|
|
|
231
231
|
Delta = 80,
|
|
232
232
|
Deriv = 81,
|
|
233
233
|
Exp = 82,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
234
|
+
FirstOverTime = 83,
|
|
235
|
+
Floor = 84,
|
|
236
|
+
HistogramCount = 85,
|
|
237
|
+
HistogramFraction = 86,
|
|
238
|
+
HistogramQuantile = 87,
|
|
239
|
+
HistogramStdDev = 88,
|
|
240
|
+
HistogramStdVar = 89,
|
|
241
|
+
HistogramSum = 90,
|
|
242
|
+
HistogramAvg = 91,
|
|
243
|
+
DoubleExponentialSmoothing = 92,
|
|
244
|
+
Hour = 93,
|
|
245
|
+
Idelta = 94,
|
|
246
|
+
Increase = 95,
|
|
247
|
+
Info = 96,
|
|
248
|
+
Irate = 97,
|
|
249
|
+
LabelReplace = 98,
|
|
250
|
+
LabelJoin = 99,
|
|
251
|
+
LastOverTime = 100,
|
|
252
|
+
Ln = 101,
|
|
253
|
+
Log10 = 102,
|
|
254
|
+
Log2 = 103,
|
|
255
|
+
MadOverTime = 104,
|
|
256
|
+
MaxOverTime = 105,
|
|
257
|
+
MinOverTime = 106,
|
|
258
|
+
TsOfFirstOverTime = 107,
|
|
259
|
+
TsOfMaxOverTime = 108,
|
|
260
|
+
TsOfMinOverTime = 109,
|
|
261
|
+
TsOfLastOverTime = 110,
|
|
262
|
+
Minute = 111,
|
|
263
|
+
Month = 112,
|
|
264
|
+
Pi = 113,
|
|
265
|
+
PredictLinear = 114,
|
|
266
|
+
PresentOverTime = 115,
|
|
267
|
+
QuantileOverTime = 116,
|
|
268
|
+
Rad = 117,
|
|
269
|
+
Rate = 118,
|
|
270
|
+
Resets = 119,
|
|
271
|
+
Round = 120,
|
|
272
|
+
Scalar = 121,
|
|
273
|
+
Sgn = 122,
|
|
274
|
+
Sin = 123,
|
|
275
|
+
Sinh = 124,
|
|
276
|
+
Sort = 125,
|
|
277
|
+
SortDesc = 126,
|
|
278
|
+
SortByLabel = 127,
|
|
279
|
+
SortByLabelDesc = 128,
|
|
280
|
+
Sqrt = 129,
|
|
281
|
+
StddevOverTime = 130,
|
|
282
|
+
StdvarOverTime = 131,
|
|
283
|
+
SumOverTime = 132,
|
|
284
|
+
Tan = 133,
|
|
285
|
+
Tanh = 134,
|
|
286
|
+
Timestamp = 135,
|
|
287
|
+
Time = 136,
|
|
288
|
+
Vector = 137,
|
|
289
|
+
Year = 138,
|
|
290
|
+
MatrixSelector = 139,
|
|
291
|
+
NumberDurationLiteralInDurationContext = 140,
|
|
292
|
+
NumberDurationLiteral = 141,
|
|
293
|
+
OffsetExpr = 142,
|
|
294
|
+
ParenExpr = 143,
|
|
295
|
+
SubqueryExpr = 144,
|
|
296
|
+
UnaryExpr = 145,
|
|
297
|
+
UnaryOp = 146,
|
|
298
|
+
VectorSelector = 147,
|
|
299
|
+
LabelMatchers = 148,
|
|
300
|
+
UnquotedLabelMatcher = 149,
|
|
301
|
+
MatchOp = 150,
|
|
302
|
+
EqlSingle = 151,
|
|
303
|
+
EqlRegex = 152,
|
|
304
|
+
NeqRegex = 153,
|
|
305
|
+
QuotedLabelMatcher = 154,
|
|
306
|
+
StepInvariantExpr = 155,
|
|
307
|
+
At = 156,
|
|
308
|
+
AtModifierPreprocessors = 157,
|
|
309
|
+
MetricName = 158;
|
|
308
310
|
|
|
309
|
-
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Info, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, TsOfLastOverTime, TsOfMaxOverTime, TsOfMinOverTime, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
|
311
|
+
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, FirstOverTime, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Info, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, TsOfFirstOverTime, TsOfLastOverTime, TsOfMaxOverTime, TsOfMinOverTime, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.307.0-rc.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@lezer/generator": "^1.
|
|
34
|
+
"@lezer/generator": "^1.8.0",
|
|
35
35
|
"@lezer/highlight": "^1.2.1",
|
|
36
36
|
"@lezer/lr": "^1.4.2",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^16.0.1"
|
package/src/parser.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import {LRParser} from "@lezer/lr"
|
|
3
3
|
import {specializeIdentifier, extendIdentifier} from "./tokens"
|
|
4
4
|
import {promQLHighLight} from "./highlight"
|
|
5
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
5
|
+
const spec_Identifier = {__proto__:null,absent_over_time:345, absent:347, abs:349, acos:351, acosh:353, asin:355, asinh:357, atan:359, atanh:361, avg_over_time:363, ceil:365, changes:367, clamp:369, clamp_max:371, clamp_min:373, cos:375, cosh:377, count_over_time:379, days_in_month:381, day_of_month:383, day_of_week:385, day_of_year:387, deg:389, delta:391, deriv:393, exp:395, first_over_time:397, floor:399, histogram_count:401, histogram_fraction:403, histogram_quantile:405, histogram_stddev:407, histogram_stdvar:409, histogram_sum:411, histogram_avg:413, double_exponential_smoothing:415, hour:417, idelta:419, increase:421, info:423, irate:425, label_replace:427, label_join:429, last_over_time:431, ln:433, log10:435, log2:437, mad_over_time:439, max_over_time:441, min_over_time:443, ts_of_first_over_time:445, ts_of_max_over_time:447, ts_of_min_over_time:449, ts_of_last_over_time:451, minute:453, month:455, pi:457, predict_linear:459, present_over_time:461, quantile_over_time:463, rad:465, rate:467, resets:469, round:471, scalar:473, sgn:475, sin:477, sinh:479, sort:481, sort_desc:483, sort_by_label:485, sort_by_label_desc:487, sqrt:489, stddev_over_time:491, stdvar_over_time:493, sum_over_time:495, tan:497, tanh:499, timestamp:501, time:503, vector:505, year:507}
|
|
6
6
|
export const parser = LRParser.deserialize({
|
|
7
7
|
version: 14,
|
|
8
|
-
states: "
|
|
9
|
-
stateData: "
|
|
10
|
-
goto: ")
|
|
11
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
12
|
-
maxTerm:
|
|
8
|
+
states: ":QOYQPOOO(TQPOOOOQO'#C|'#C|O(YQPO'#C{Q(eQQOOOOQO'#De'#DeO(`QPO'#DdOOQO'#F_'#F_O)rQPO'#FdOYQPO'#FaOYQPO'#FcO0vQSO'#FfO1RQQO'#FeOOQO'#Fe'#FeOOQO'#Fy'#FyOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOO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#dXQ#eYQ#o#VQ$b#uQ$c#vQ$d#wQ$e#xQ$f#yR$u$]Q#u#YQ#v#ZQ#w#[Q#x#]R#y#^",
|
|
11
|
+
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
12
|
+
maxTerm: 261,
|
|
13
13
|
nodeProps: [
|
|
14
|
-
["group", -12,31,37,39,54,
|
|
14
|
+
["group", -12,31,37,39,54,139,141,142,143,144,145,147,155,"Expr"]
|
|
15
15
|
],
|
|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21
|
+
topRules: {"PromQL":[0,30],"MetricName":[1,158]},
|
|
22
22
|
specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value, stack) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value, stack) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
|
|
23
23
|
tokenPrec: 0
|
|
24
24
|
})
|
|
25
25
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
26
26
|
export const
|
|
27
|
-
inf =
|
|
28
|
-
nan =
|
|
27
|
+
inf = 163,
|
|
28
|
+
nan = 164,
|
|
29
29
|
Bool = 1,
|
|
30
30
|
Ignoring = 2,
|
|
31
31
|
On = 3,
|
|
@@ -108,77 +108,79 @@ export const
|
|
|
108
108
|
Delta = 80,
|
|
109
109
|
Deriv = 81,
|
|
110
110
|
Exp = 82,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
111
|
+
FirstOverTime = 83,
|
|
112
|
+
Floor = 84,
|
|
113
|
+
HistogramCount = 85,
|
|
114
|
+
HistogramFraction = 86,
|
|
115
|
+
HistogramQuantile = 87,
|
|
116
|
+
HistogramStdDev = 88,
|
|
117
|
+
HistogramStdVar = 89,
|
|
118
|
+
HistogramSum = 90,
|
|
119
|
+
HistogramAvg = 91,
|
|
120
|
+
DoubleExponentialSmoothing = 92,
|
|
121
|
+
Hour = 93,
|
|
122
|
+
Idelta = 94,
|
|
123
|
+
Increase = 95,
|
|
124
|
+
Info = 96,
|
|
125
|
+
Irate = 97,
|
|
126
|
+
LabelReplace = 98,
|
|
127
|
+
LabelJoin = 99,
|
|
128
|
+
LastOverTime = 100,
|
|
129
|
+
Ln = 101,
|
|
130
|
+
Log10 = 102,
|
|
131
|
+
Log2 = 103,
|
|
132
|
+
MadOverTime = 104,
|
|
133
|
+
MaxOverTime = 105,
|
|
134
|
+
MinOverTime = 106,
|
|
135
|
+
TsOfFirstOverTime = 107,
|
|
136
|
+
TsOfMaxOverTime = 108,
|
|
137
|
+
TsOfMinOverTime = 109,
|
|
138
|
+
TsOfLastOverTime = 110,
|
|
139
|
+
Minute = 111,
|
|
140
|
+
Month = 112,
|
|
141
|
+
Pi = 113,
|
|
142
|
+
PredictLinear = 114,
|
|
143
|
+
PresentOverTime = 115,
|
|
144
|
+
QuantileOverTime = 116,
|
|
145
|
+
Rad = 117,
|
|
146
|
+
Rate = 118,
|
|
147
|
+
Resets = 119,
|
|
148
|
+
Round = 120,
|
|
149
|
+
Scalar = 121,
|
|
150
|
+
Sgn = 122,
|
|
151
|
+
Sin = 123,
|
|
152
|
+
Sinh = 124,
|
|
153
|
+
Sort = 125,
|
|
154
|
+
SortDesc = 126,
|
|
155
|
+
SortByLabel = 127,
|
|
156
|
+
SortByLabelDesc = 128,
|
|
157
|
+
Sqrt = 129,
|
|
158
|
+
StddevOverTime = 130,
|
|
159
|
+
StdvarOverTime = 131,
|
|
160
|
+
SumOverTime = 132,
|
|
161
|
+
Tan = 133,
|
|
162
|
+
Tanh = 134,
|
|
163
|
+
Timestamp = 135,
|
|
164
|
+
Time = 136,
|
|
165
|
+
Vector = 137,
|
|
166
|
+
Year = 138,
|
|
167
|
+
MatrixSelector = 139,
|
|
168
|
+
NumberDurationLiteralInDurationContext = 140,
|
|
169
|
+
NumberDurationLiteral = 141,
|
|
170
|
+
OffsetExpr = 142,
|
|
171
|
+
ParenExpr = 143,
|
|
172
|
+
SubqueryExpr = 144,
|
|
173
|
+
UnaryExpr = 145,
|
|
174
|
+
UnaryOp = 146,
|
|
175
|
+
VectorSelector = 147,
|
|
176
|
+
LabelMatchers = 148,
|
|
177
|
+
UnquotedLabelMatcher = 149,
|
|
178
|
+
MatchOp = 150,
|
|
179
|
+
EqlSingle = 151,
|
|
180
|
+
EqlRegex = 152,
|
|
181
|
+
NeqRegex = 153,
|
|
182
|
+
QuotedLabelMatcher = 154,
|
|
183
|
+
StepInvariantExpr = 155,
|
|
184
|
+
At = 156,
|
|
185
|
+
AtModifierPreprocessors = 157,
|
|
186
|
+
MetricName = 158
|
package/src/parser.terms.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
2
2
|
export const
|
|
3
|
-
inf =
|
|
4
|
-
nan =
|
|
3
|
+
inf = 163,
|
|
4
|
+
nan = 164,
|
|
5
5
|
Bool = 1,
|
|
6
6
|
Ignoring = 2,
|
|
7
7
|
On = 3,
|
|
@@ -84,77 +84,79 @@ export const
|
|
|
84
84
|
Delta = 80,
|
|
85
85
|
Deriv = 81,
|
|
86
86
|
Exp = 82,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
87
|
+
FirstOverTime = 83,
|
|
88
|
+
Floor = 84,
|
|
89
|
+
HistogramCount = 85,
|
|
90
|
+
HistogramFraction = 86,
|
|
91
|
+
HistogramQuantile = 87,
|
|
92
|
+
HistogramStdDev = 88,
|
|
93
|
+
HistogramStdVar = 89,
|
|
94
|
+
HistogramSum = 90,
|
|
95
|
+
HistogramAvg = 91,
|
|
96
|
+
DoubleExponentialSmoothing = 92,
|
|
97
|
+
Hour = 93,
|
|
98
|
+
Idelta = 94,
|
|
99
|
+
Increase = 95,
|
|
100
|
+
Info = 96,
|
|
101
|
+
Irate = 97,
|
|
102
|
+
LabelReplace = 98,
|
|
103
|
+
LabelJoin = 99,
|
|
104
|
+
LastOverTime = 100,
|
|
105
|
+
Ln = 101,
|
|
106
|
+
Log10 = 102,
|
|
107
|
+
Log2 = 103,
|
|
108
|
+
MadOverTime = 104,
|
|
109
|
+
MaxOverTime = 105,
|
|
110
|
+
MinOverTime = 106,
|
|
111
|
+
TsOfFirstOverTime = 107,
|
|
112
|
+
TsOfMaxOverTime = 108,
|
|
113
|
+
TsOfMinOverTime = 109,
|
|
114
|
+
TsOfLastOverTime = 110,
|
|
115
|
+
Minute = 111,
|
|
116
|
+
Month = 112,
|
|
117
|
+
Pi = 113,
|
|
118
|
+
PredictLinear = 114,
|
|
119
|
+
PresentOverTime = 115,
|
|
120
|
+
QuantileOverTime = 116,
|
|
121
|
+
Rad = 117,
|
|
122
|
+
Rate = 118,
|
|
123
|
+
Resets = 119,
|
|
124
|
+
Round = 120,
|
|
125
|
+
Scalar = 121,
|
|
126
|
+
Sgn = 122,
|
|
127
|
+
Sin = 123,
|
|
128
|
+
Sinh = 124,
|
|
129
|
+
Sort = 125,
|
|
130
|
+
SortDesc = 126,
|
|
131
|
+
SortByLabel = 127,
|
|
132
|
+
SortByLabelDesc = 128,
|
|
133
|
+
Sqrt = 129,
|
|
134
|
+
StddevOverTime = 130,
|
|
135
|
+
StdvarOverTime = 131,
|
|
136
|
+
SumOverTime = 132,
|
|
137
|
+
Tan = 133,
|
|
138
|
+
Tanh = 134,
|
|
139
|
+
Timestamp = 135,
|
|
140
|
+
Time = 136,
|
|
141
|
+
Vector = 137,
|
|
142
|
+
Year = 138,
|
|
143
|
+
MatrixSelector = 139,
|
|
144
|
+
NumberDurationLiteralInDurationContext = 140,
|
|
145
|
+
NumberDurationLiteral = 141,
|
|
146
|
+
OffsetExpr = 142,
|
|
147
|
+
ParenExpr = 143,
|
|
148
|
+
SubqueryExpr = 144,
|
|
149
|
+
UnaryExpr = 145,
|
|
150
|
+
UnaryOp = 146,
|
|
151
|
+
VectorSelector = 147,
|
|
152
|
+
LabelMatchers = 148,
|
|
153
|
+
UnquotedLabelMatcher = 149,
|
|
154
|
+
MatchOp = 150,
|
|
155
|
+
EqlSingle = 151,
|
|
156
|
+
EqlRegex = 152,
|
|
157
|
+
NeqRegex = 153,
|
|
158
|
+
QuotedLabelMatcher = 154,
|
|
159
|
+
StepInvariantExpr = 155,
|
|
160
|
+
At = 156,
|
|
161
|
+
AtModifierPreprocessors = 157,
|
|
162
|
+
MetricName = 158
|
package/src/promql.grammar
CHANGED
|
@@ -133,6 +133,7 @@ FunctionIdentifier {
|
|
|
133
133
|
Delta |
|
|
134
134
|
Deriv |
|
|
135
135
|
Exp |
|
|
136
|
+
FirstOverTime |
|
|
136
137
|
Floor |
|
|
137
138
|
HistogramCount |
|
|
138
139
|
HistogramFraction |
|
|
@@ -156,6 +157,7 @@ FunctionIdentifier {
|
|
|
156
157
|
MadOverTime |
|
|
157
158
|
MaxOverTime |
|
|
158
159
|
MinOverTime |
|
|
160
|
+
TsOfFirstOverTime |
|
|
159
161
|
TsOfMaxOverTime |
|
|
160
162
|
TsOfMinOverTime |
|
|
161
163
|
TsOfLastOverTime |
|
|
@@ -384,6 +386,7 @@ NumberDurationLiteralInDurationContext {
|
|
|
384
386
|
Delta { condFn<"delta"> }
|
|
385
387
|
Deriv { condFn<"deriv"> }
|
|
386
388
|
Exp { condFn<"exp"> }
|
|
389
|
+
FirstOverTime {condFn<"first_over_time">}
|
|
387
390
|
Floor { condFn<"floor"> }
|
|
388
391
|
HistogramAvg { condFn<"histogram_avg"> }
|
|
389
392
|
HistogramCount { condFn<"histogram_count"> }
|
|
@@ -407,6 +410,8 @@ NumberDurationLiteralInDurationContext {
|
|
|
407
410
|
MadOverTime { condFn<"mad_over_time"> }
|
|
408
411
|
MaxOverTime { condFn<"max_over_time"> }
|
|
409
412
|
MinOverTime { condFn<"min_over_time"> }
|
|
413
|
+
TsOfFirstOverTime { condFn<"ts_of_first_over_time"> }
|
|
414
|
+
TsOfMaxFirstTime { condFn<"ts_of_first_over_time"> }
|
|
410
415
|
TsOfMaxOverTime { condFn<"ts_of_max_over_time"> }
|
|
411
416
|
TsOfMinOverTime { condFn<"ts_of_min_over_time"> }
|
|
412
417
|
TsOfLastOverTime { condFn<"ts_of_last_over_time"> }
|