Skip to content

Commit b858989

Browse files
authored
Merge branch 'master' into pablosichert/vrl-core
2 parents fbc30d7 + 18a8bed commit b858989

File tree

106 files changed

+2161
-673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+2161
-673
lines changed

Cargo.lock

Lines changed: 111 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ tokio = { version = "1.17.0", default-features = false, features = ["full"] }
123123
tokio-openssl = { version = "0.6.3", default-features = false }
124124
tokio-stream = { version = "0.1.8", default-features = false, features = ["net", "sync", "time"] }
125125
tokio-util = { version = "0.6", default-features = false, features = ["time"] }
126-
console-subscriber = { version = "0.1.2", optional = true }
126+
console-subscriber = { version = "0.1.3", optional = true }
127127

128128
# Tracing
129129
tracing = { version = "0.1.31", default-features = false }
@@ -290,7 +290,7 @@ socket2 = { version = "0.4.4", default-features = false }
290290
stream-cancel = { version = "0.8.1", default-features = false }
291291
strip-ansi-escapes = { version = "0.1.1", default-features = false }
292292
structopt = { version = "0.3.26", default-features = false }
293-
strum = { version = "0.23", default-features = false }
293+
strum = { version = "0.24", default-features = false }
294294
strum_macros = { version = "0.23", default-features = false }
295295
syslog = { version = "6.0.1", default-features = false, optional = true }
296296
syslog_loose = { version = "0.16.0", default-features = false, optional = true }
@@ -327,7 +327,7 @@ approx = "0.5.1"
327327
assert_cmd = "2.0.4"
328328
base64 = "0.13.0"
329329
criterion = { version = "0.3.5", features = ["html_reports", "async_tokio"] }
330-
libc = "0.2.118"
330+
libc = "0.2.119"
331331
libz-sys = "1.1.3"
332332
matches = "0.1.9"
333333
pretty_assertions = "1.1.0"

lib/vector-api-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ serde = { version = "1.0.136", features = ["derive"] }
1313
serde_json = { version = "1.0.79", features = ["raw_value"] }
1414

1515
# Error handling
16-
anyhow = "1.0.53"
16+
anyhow = "1.0.55"
1717

1818
# Tokio / Futures
1919
async-stream = "0.3.2"

lib/vector-api-client/graphql/schema.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5566,7 +5566,7 @@
55665566
"description": "A stream of events emitted from matched component ID patterns",
55675567
"args": [
55685568
{
5569-
"name": "patterns",
5569+
"name": "outputsPatterns",
55705570
"description": null,
55715571
"type": {
55725572
"kind": "NON_NULL",
@@ -5587,6 +5587,24 @@
55875587
},
55885588
"defaultValue": null
55895589
},
5590+
{
5591+
"name": "inputsPatterns",
5592+
"description": null,
5593+
"type": {
5594+
"kind": "LIST",
5595+
"name": null,
5596+
"ofType": {
5597+
"kind": "NON_NULL",
5598+
"name": null,
5599+
"ofType": {
5600+
"kind": "SCALAR",
5601+
"name": "String",
5602+
"ofType": null
5603+
}
5604+
}
5605+
},
5606+
"defaultValue": null
5607+
},
55905608
{
55915609
"name": "interval",
55925610
"description": null,

lib/vector-api-client/graphql/subscriptions/output_events_by_component_id_patterns.graphql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subscription OutputEventsByComponentIdPatternsSubscription(
2-
$patterns: [String!]!, $limit: Int!, $interval: Int!, $encoding: EventEncodingType!){
3-
outputEventsByComponentIdPatterns(patterns: $patterns, limit: $limit, interval: $interval) {
2+
$outputsPatterns: [String!]!, $inputsPatterns: [String!], $limit: Int!, $interval: Int!, $encoding: EventEncodingType!){
3+
outputEventsByComponentIdPatterns(outputsPatterns: $outputsPatterns, inputsPatterns: $inputsPatterns, limit: $limit, interval: $interval) {
44
__typename
55
... on Log {
66
componentId
@@ -13,6 +13,10 @@ subscription OutputEventsByComponentIdPatternsSubscription(
1313
timestamp
1414
string(encoding: $encoding)
1515
}
16+
... on Trace {
17+
componentId
18+
string(encoding: $encoding)
19+
}
1620
... on EventNotification {
1721
pattern
1822
notification

lib/vector-api-client/src/gql/tap.rs

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,12 @@ impl From<TapEncodingFormat>
5353
}
5454
}
5555

56-
impl output_events_by_component_id_patterns_subscription::OutputEventsByComponentIdPatternsSubscriptionOutputEventsByComponentIdPatterns {
57-
pub fn as_string(
58-
&self,
59-
) -> Option<&str>{
60-
match self {
61-
output_events_by_component_id_patterns_subscription::OutputEventsByComponentIdPatternsSubscriptionOutputEventsByComponentIdPatterns::Log(ev) => Some(ev.string.as_ref()),
62-
output_events_by_component_id_patterns_subscription::OutputEventsByComponentIdPatternsSubscriptionOutputEventsByComponentIdPatterns::Metric(ev) => Some(ev.string.as_ref()),
63-
_ => None,
64-
}
65-
}
66-
}
67-
6856
pub trait TapSubscriptionExt {
6957
/// Executes an output events subscription.
7058
fn output_events_by_component_id_patterns_subscription(
7159
&self,
72-
component_patterns: Vec<String>,
60+
outputs_patterns: Vec<String>,
61+
inputs_patterns: Vec<String>,
7362
encoding: TapEncodingFormat,
7463
limit: i64,
7564
interval: i64,
@@ -80,14 +69,16 @@ impl TapSubscriptionExt for crate::SubscriptionClient {
8069
/// Executes an output events subscription.
8170
fn output_events_by_component_id_patterns_subscription(
8271
&self,
83-
patterns: Vec<String>,
72+
outputs_patterns: Vec<String>,
73+
inputs_patterns: Vec<String>,
8474
encoding: TapEncodingFormat,
8575
limit: i64,
8676
interval: i64,
8777
) -> BoxedSubscription<OutputEventsByComponentIdPatternsSubscription> {
8878
let request_body = OutputEventsByComponentIdPatternsSubscription::build_query(
8979
output_events_by_component_id_patterns_subscription::Variables {
90-
patterns,
80+
outputs_patterns,
81+
inputs_patterns: Some(inputs_patterns),
9182
limit,
9283
interval,
9384
encoding: encoding.into(),

0 commit comments

Comments
 (0)