Skip to content

Commit e14fd45

Browse files
authored
Merge branch 'master' into enhancement/loki-support-healthcheck.uri
2 parents 786b296 + d10f3a5 commit e14fd45

File tree

17 files changed

+93
-1
lines changed

17 files changed

+93
-1
lines changed

Cargo.lock

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ members = [
128128
"lib/vector-stream",
129129
"lib/vector-tap",
130130
"lib/vector-top",
131+
"lib/vector-vrl/category",
131132
"lib/vector-vrl/cli",
132133
"lib/vector-vrl/functions",
133134
"lib/vector-vrl/tests",
@@ -207,6 +208,7 @@ vector-config-common = { path = "lib/vector-config-common" }
207208
vector-config-macros = { path = "lib/vector-config-macros" }
208209
vector-common-macros = { path = "lib/vector-common-macros" }
209210
vector-lib = { path = "lib/vector-lib", default-features = false, features = ["vrl"] }
211+
vector-vrl-category = { path = "lib/vector-vrl/category" }
210212
vector-vrl-functions = { path = "lib/vector-vrl/functions" }
211213
vrl = { git = "https://github.com/vectordotdev/vrl.git", branch = "main", features = ["arbitrary", "cli", "test", "test_framework"] }
212214
mock_instant = { version = "0.6" }

lib/dnstap-parser/src/vrl_functions/parse_dnstap.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ impl Function for ParseDnstap {
4747
]
4848
}
4949

50+
fn category(&self) -> &'static str {
51+
Category::Parse.as_ref()
52+
}
53+
5054
fn return_kind(&self) -> u16 {
5155
kind::OBJECT
5256
}

lib/enrichment/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ const-str.workspace = true
1212
dyn-clone = { version = "1.0.20", default-features = false }
1313
indoc.workspace = true
1414
vrl.workspace = true
15+
vector-vrl-category.workspace = true

lib/enrichment/src/find_enrichment_table_records.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{collections::BTreeMap, sync::LazyLock};
22

3+
use vector_vrl_category::Category;
34
use vrl::prelude::*;
45

56
use crate::{
@@ -98,6 +99,10 @@ impl Function for FindEnrichmentTableRecords {
9899
)
99100
}
100101

102+
fn category(&self) -> &'static str {
103+
Category::Enrichment.as_ref()
104+
}
105+
101106
fn return_kind(&self) -> u16 {
102107
kind::ARRAY
103108
}

lib/enrichment/src/get_enrichment_table_record.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{collections::BTreeMap, sync::LazyLock};
22

3+
use vector_vrl_category::Category;
34
use vrl::prelude::*;
45

56
use crate::{
@@ -103,6 +104,10 @@ impl Function for GetEnrichmentTableRecord {
103104
]
104105
}
105106

107+
fn category(&self) -> &'static str {
108+
Category::Enrichment.as_ref()
109+
}
110+
106111
fn return_kind(&self) -> u16 {
107112
kind::OBJECT
108113
}

lib/vector-vrl-metrics/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ vector-core = { path = "../vector-core", default-features = false, features = ["
1414
vector-common = { path = "../vector-common", default-features = false }
1515
tokio.workspace = true
1616
tokio-stream.workspace = true
17+
vector-vrl-category.workspace = true

lib/vector-vrl-metrics/src/aggregate_vector_metrics.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::collections::BTreeMap;
22
use std::sync::LazyLock;
3+
use vector_vrl_category::Category;
34
use vrl::prelude::expression::Expr;
45
use vrl::value;
56

@@ -82,6 +83,10 @@ impl Function for AggregateVectorMetrics {
8283
)
8384
}
8485

86+
fn category(&self) -> &'static str {
87+
Category::Metrics.as_ref()
88+
}
89+
8590
fn return_kind(&self) -> u16 {
8691
kind::FLOAT | kind::NULL
8792
}

lib/vector-vrl-metrics/src/find_vector_metrics.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use std::{collections::BTreeMap, sync::LazyLock};
2+
use vector_vrl_category::Category;
23
use vrl::prelude::expression::Expr;
34

45
use vrl::prelude::*;
@@ -58,6 +59,10 @@ impl Function for FindVectorMetrics {
5859
)
5960
}
6061

62+
fn category(&self) -> &'static str {
63+
Category::Metrics.as_ref()
64+
}
65+
6166
fn return_kind(&self) -> u16 {
6267
kind::ARRAY
6368
}

lib/vector-vrl-metrics/src/get_vector_metric.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::{collections::BTreeMap, sync::LazyLock};
22

3+
use vector_vrl_category::Category;
34
use vrl::prelude::{expression::Expr, *};
45

56
use crate::common::{
@@ -55,6 +56,10 @@ impl Function for GetVectorMetric {
5556
)
5657
}
5758

59+
fn category(&self) -> &'static str {
60+
Category::Metrics.as_ref()
61+
}
62+
5863
fn return_kind(&self) -> u16 {
5964
kind::OBJECT | kind::NULL
6065
}

0 commit comments

Comments
 (0)