Skip to content

Commit d179c57

Browse files
maycmleetobz
andauthored
docs: Editorial edits for updated component descriptions (vectordotdev#18590)
* editorial edits * revert changes and change to double forward slashes * small edits * update docs --------- Co-authored-by: Toby Lawrence <[email protected]>
1 parent e80d7b7 commit d179c57

Some content is hidden

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

51 files changed

+240
-240
lines changed

lib/codecs/src/decoding/format/gelf.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ use super::{default_lossy, Deserializer};
2020
use crate::gelf::GELF_TARGET_PATHS;
2121
use crate::{gelf_fields::*, VALID_FIELD_REGEX};
2222

23-
/// On GELF decoding behavior:
24-
/// Graylog has a relaxed decoding. They are much more lenient than the spec would
25-
/// suggest. We've elected to take a more strict approach to maintain backwards compatibility
26-
/// in the event that we need to change the behavior to be more relaxed, so that prior versions
27-
/// of vector will still work with the new relaxed decoding.
23+
// On GELF decoding behavior:
24+
// Graylog has a relaxed decoding. They are much more lenient than the spec would
25+
// suggest. We've elected to take a more strict approach to maintain backwards compatibility
26+
// in the event that we need to change the behavior to be more relaxed, so that prior versions
27+
// of vector will still work with the new relaxed decoding.
2828

2929
/// Config used to build a `GelfDeserializer`.
3030
#[configurable_component]

lib/codecs/src/decoding/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,15 @@ pub enum DeserializerConfig {
216216
/// [rfc5424]: https://www.ietf.org/rfc/rfc5424.txt
217217
Syslog(SyslogDeserializerConfig),
218218

219-
/// Decodes the raw bytes as Vector’s [native Protocol Buffers format][vector_native_protobuf].
219+
/// Decodes the raw bytes as [native Protocol Buffers format][vector_native_protobuf].
220220
///
221221
/// This codec is **[experimental][experimental]**.
222222
///
223223
/// [vector_native_protobuf]: https://github.com/vectordotdev/vector/blob/master/lib/vector-core/proto/event.proto
224224
/// [experimental]: https://vector.dev/highlights/2022-03-31-native-event-codecs
225225
Native,
226226

227-
/// Decodes the raw bytes as Vector’s [native JSON format][vector_native_json].
227+
/// Decodes the raw bytes as [native JSON format][vector_native_json].
228228
///
229229
/// This codec is **[experimental][experimental]**.
230230
///

lib/codecs/src/encoding/format/csv.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ use vector_core::{
1515
#[derive(Copy, Clone, Debug, PartialEq, Eq, Default)]
1616
#[serde(rename_all = "snake_case")]
1717
pub enum QuoteStyle {
18-
/// This puts quotes around every field. Always.
18+
/// Always puts quotes around every field.
1919
Always,
2020

21-
/// This puts quotes around fields only when necessary.
22-
/// They are necessary when fields contain a quote, delimiter or record terminator.
21+
/// Puts quotes around fields only when necessary.
22+
/// They are necessary when fields contain a quote, delimiter, or record terminator.
2323
/// Quotes are also necessary when writing an empty record
2424
/// (which is indistinguishable from a record with one empty field).
2525
#[default]
2626
Necessary,
2727

28-
/// This puts quotes around all fields that are non-numeric.
28+
/// Puts quotes around all fields that are non-numeric.
2929
/// Namely, when writing a field that does not parse as a valid float or integer,
30-
/// then quotes will be used even if they arent strictly necessary.
30+
/// then quotes are used even if they aren't strictly necessary.
3131
NonNumeric,
3232

33-
/// This never writes quotes, even if it would produce invalid CSV data.
33+
/// Never writes quotes, even if it produces invalid CSV data.
3434
Never,
3535
}
3636

@@ -97,7 +97,7 @@ pub struct CsvSerializerOptions {
9797
/// In some variants of CSV, quotes are escaped using a special escape character
9898
/// like \ (instead of escaping quotes by doubling them).
9999
///
100-
/// To use this `double_quotes` needs to be disabled as well otherwise it is ignored
100+
/// To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
101101
#[serde(
102102
default = "default_escape",
103103
with = "vector_core::serde::ascii_char",

src/sources/file.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ pub struct FileConfig {
206206
pub multiline: Option<MultilineConfig>,
207207

208208
/// Max amount of bytes to read from a single file before switching over to the next file.
209-
/// **Note:** This does not apply when `oldest_first` is `true.
209+
/// **Note:** This does not apply when `oldest_first` is `true`.
210210
///
211211
/// This allows distributing the reads more or less evenly across
212212
/// the files.
213213
#[serde(default = "default_max_read_bytes")]
214214
#[configurable(metadata(docs::type_unit = "bytes"))]
215215
pub max_read_bytes: usize,
216216

217-
/// Instead of balancing read capacity fairly across all watched files, prioritize draining the oldest files before moving on to read data from younger files.
217+
/// Instead of balancing read capacity fairly across all watched files, prioritize draining the oldest files before moving on to read data from more recent files.
218218
#[serde(default)]
219219
pub oldest_first: bool,
220220

src/sources/kubernetes_logs/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ pub struct Config {
164164
ignore_older_secs: Option<u64>,
165165

166166
/// Max amount of bytes to read from a single file before switching over to the next file.
167-
/// **Note:** This does not apply when `oldest_first` is `true.
167+
/// **Note:** This does not apply when `oldest_first` is `true`.
168168
///
169169
/// This allows distributing the reads more or less evenly across
170170
/// the files.
171171
#[configurable(metadata(docs::type_unit = "bytes"))]
172172
max_read_bytes: usize,
173173

174-
/// Instead of balancing read capacity fairly across all watched files, prioritize draining the oldest files before moving on to read data from younger files.
174+
/// Instead of balancing read capacity fairly across all watched files, prioritize draining the oldest files before moving on to read data from more recent files.
175175
#[serde(default = "default_oldest_first")]
176176
pub oldest_first: bool,
177177

website/cue/reference/components/sinks/base/amqp.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ base: components: sinks: amqp: configuration: {
158158
In some variants of CSV, quotes are escaped using a special escape character
159159
like \\ (instead of escaping quotes by doubling them).
160160
161-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
161+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
162162
"""
163163
required: false
164164
type: uint: default: 34
@@ -187,18 +187,18 @@ base: components: sinks: amqp: configuration: {
187187
type: string: {
188188
default: "necessary"
189189
enum: {
190-
always: "This puts quotes around every field. Always."
190+
always: "Always puts quotes around every field."
191191
necessary: """
192-
This puts quotes around fields only when necessary.
193-
They are necessary when fields contain a quote, delimiter or record terminator.
192+
Puts quotes around fields only when necessary.
193+
They are necessary when fields contain a quote, delimiter, or record terminator.
194194
Quotes are also necessary when writing an empty record
195195
(which is indistinguishable from a record with one empty field).
196196
"""
197-
never: "This never writes quotes, even if it would produce invalid CSV data."
197+
never: "Never writes quotes, even if it produces invalid CSV data."
198198
non_numeric: """
199-
This puts quotes around all fields that are non-numeric.
199+
Puts quotes around all fields that are non-numeric.
200200
Namely, when writing a field that does not parse as a valid float or integer,
201-
then quotes will be used even if they arent strictly necessary.
201+
then quotes are used even if they aren't strictly necessary.
202202
"""
203203
}
204204
}

website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ base: components: sinks: aws_cloudwatch_logs: configuration: {
329329
In some variants of CSV, quotes are escaped using a special escape character
330330
like \\ (instead of escaping quotes by doubling them).
331331
332-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
332+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
333333
"""
334334
required: false
335335
type: uint: default: 34
@@ -358,18 +358,18 @@ base: components: sinks: aws_cloudwatch_logs: configuration: {
358358
type: string: {
359359
default: "necessary"
360360
enum: {
361-
always: "This puts quotes around every field. Always."
361+
always: "Always puts quotes around every field."
362362
necessary: """
363-
This puts quotes around fields only when necessary.
364-
They are necessary when fields contain a quote, delimiter or record terminator.
363+
Puts quotes around fields only when necessary.
364+
They are necessary when fields contain a quote, delimiter, or record terminator.
365365
Quotes are also necessary when writing an empty record
366366
(which is indistinguishable from a record with one empty field).
367367
"""
368-
never: "This never writes quotes, even if it would produce invalid CSV data."
368+
never: "Never writes quotes, even if it produces invalid CSV data."
369369
non_numeric: """
370-
This puts quotes around all fields that are non-numeric.
370+
Puts quotes around all fields that are non-numeric.
371371
Namely, when writing a field that does not parse as a valid float or integer,
372-
then quotes will be used even if they arent strictly necessary.
372+
then quotes are used even if they aren't strictly necessary.
373373
"""
374374
}
375375
}

website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ base: components: sinks: aws_kinesis_firehose: configuration: {
308308
In some variants of CSV, quotes are escaped using a special escape character
309309
like \\ (instead of escaping quotes by doubling them).
310310
311-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
311+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
312312
"""
313313
required: false
314314
type: uint: default: 34
@@ -337,18 +337,18 @@ base: components: sinks: aws_kinesis_firehose: configuration: {
337337
type: string: {
338338
default: "necessary"
339339
enum: {
340-
always: "This puts quotes around every field. Always."
340+
always: "Always puts quotes around every field."
341341
necessary: """
342-
This puts quotes around fields only when necessary.
343-
They are necessary when fields contain a quote, delimiter or record terminator.
342+
Puts quotes around fields only when necessary.
343+
They are necessary when fields contain a quote, delimiter, or record terminator.
344344
Quotes are also necessary when writing an empty record
345345
(which is indistinguishable from a record with one empty field).
346346
"""
347-
never: "This never writes quotes, even if it would produce invalid CSV data."
347+
never: "Never writes quotes, even if it produces invalid CSV data."
348348
non_numeric: """
349-
This puts quotes around all fields that are non-numeric.
349+
Puts quotes around all fields that are non-numeric.
350350
Namely, when writing a field that does not parse as a valid float or integer,
351-
then quotes will be used even if they arent strictly necessary.
351+
then quotes are used even if they aren't strictly necessary.
352352
"""
353353
}
354354
}

website/cue/reference/components/sinks/base/aws_kinesis_streams.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ base: components: sinks: aws_kinesis_streams: configuration: {
308308
In some variants of CSV, quotes are escaped using a special escape character
309309
like \\ (instead of escaping quotes by doubling them).
310310
311-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
311+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
312312
"""
313313
required: false
314314
type: uint: default: 34
@@ -337,18 +337,18 @@ base: components: sinks: aws_kinesis_streams: configuration: {
337337
type: string: {
338338
default: "necessary"
339339
enum: {
340-
always: "This puts quotes around every field. Always."
340+
always: "Always puts quotes around every field."
341341
necessary: """
342-
This puts quotes around fields only when necessary.
343-
They are necessary when fields contain a quote, delimiter or record terminator.
342+
Puts quotes around fields only when necessary.
343+
They are necessary when fields contain a quote, delimiter, or record terminator.
344344
Quotes are also necessary when writing an empty record
345345
(which is indistinguishable from a record with one empty field).
346346
"""
347-
never: "This never writes quotes, even if it would produce invalid CSV data."
347+
never: "Never writes quotes, even if it produces invalid CSV data."
348348
non_numeric: """
349-
This puts quotes around all fields that are non-numeric.
349+
Puts quotes around all fields that are non-numeric.
350350
Namely, when writing a field that does not parse as a valid float or integer,
351-
then quotes will be used even if they arent strictly necessary.
351+
then quotes are used even if they aren't strictly necessary.
352352
"""
353353
}
354354
}

website/cue/reference/components/sinks/base/aws_s3.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ base: components: sinks: aws_s3: configuration: {
417417
In some variants of CSV, quotes are escaped using a special escape character
418418
like \\ (instead of escaping quotes by doubling them).
419419
420-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
420+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
421421
"""
422422
required: false
423423
type: uint: default: 34
@@ -446,18 +446,18 @@ base: components: sinks: aws_s3: configuration: {
446446
type: string: {
447447
default: "necessary"
448448
enum: {
449-
always: "This puts quotes around every field. Always."
449+
always: "Always puts quotes around every field."
450450
necessary: """
451-
This puts quotes around fields only when necessary.
452-
They are necessary when fields contain a quote, delimiter or record terminator.
451+
Puts quotes around fields only when necessary.
452+
They are necessary when fields contain a quote, delimiter, or record terminator.
453453
Quotes are also necessary when writing an empty record
454454
(which is indistinguishable from a record with one empty field).
455455
"""
456-
never: "This never writes quotes, even if it would produce invalid CSV data."
456+
never: "Never writes quotes, even if it produces invalid CSV data."
457457
non_numeric: """
458-
This puts quotes around all fields that are non-numeric.
458+
Puts quotes around all fields that are non-numeric.
459459
Namely, when writing a field that does not parse as a valid float or integer,
460-
then quotes will be used even if they arent strictly necessary.
460+
then quotes are used even if they aren't strictly necessary.
461461
"""
462462
}
463463
}

website/cue/reference/components/sinks/base/aws_sns.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ base: components: sinks: aws_sns: configuration: {
244244
In some variants of CSV, quotes are escaped using a special escape character
245245
like \\ (instead of escaping quotes by doubling them).
246246
247-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
247+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
248248
"""
249249
required: false
250250
type: uint: default: 34
@@ -273,18 +273,18 @@ base: components: sinks: aws_sns: configuration: {
273273
type: string: {
274274
default: "necessary"
275275
enum: {
276-
always: "This puts quotes around every field. Always."
276+
always: "Always puts quotes around every field."
277277
necessary: """
278-
This puts quotes around fields only when necessary.
279-
They are necessary when fields contain a quote, delimiter or record terminator.
278+
Puts quotes around fields only when necessary.
279+
They are necessary when fields contain a quote, delimiter, or record terminator.
280280
Quotes are also necessary when writing an empty record
281281
(which is indistinguishable from a record with one empty field).
282282
"""
283-
never: "This never writes quotes, even if it would produce invalid CSV data."
283+
never: "Never writes quotes, even if it produces invalid CSV data."
284284
non_numeric: """
285-
This puts quotes around all fields that are non-numeric.
285+
Puts quotes around all fields that are non-numeric.
286286
Namely, when writing a field that does not parse as a valid float or integer,
287-
then quotes will be used even if they arent strictly necessary.
287+
then quotes are used even if they aren't strictly necessary.
288288
"""
289289
}
290290
}

website/cue/reference/components/sinks/base/aws_sqs.cue

+7-7
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ base: components: sinks: aws_sqs: configuration: {
244244
In some variants of CSV, quotes are escaped using a special escape character
245245
like \\ (instead of escaping quotes by doubling them).
246246
247-
To use this `double_quotes` needs to be disabled as well otherwise it is ignored
247+
To use this, `double_quotes` needs to be disabled as well otherwise it is ignored.
248248
"""
249249
required: false
250250
type: uint: default: 34
@@ -273,18 +273,18 @@ base: components: sinks: aws_sqs: configuration: {
273273
type: string: {
274274
default: "necessary"
275275
enum: {
276-
always: "This puts quotes around every field. Always."
276+
always: "Always puts quotes around every field."
277277
necessary: """
278-
This puts quotes around fields only when necessary.
279-
They are necessary when fields contain a quote, delimiter or record terminator.
278+
Puts quotes around fields only when necessary.
279+
They are necessary when fields contain a quote, delimiter, or record terminator.
280280
Quotes are also necessary when writing an empty record
281281
(which is indistinguishable from a record with one empty field).
282282
"""
283-
never: "This never writes quotes, even if it would produce invalid CSV data."
283+
never: "Never writes quotes, even if it produces invalid CSV data."
284284
non_numeric: """
285-
This puts quotes around all fields that are non-numeric.
285+
Puts quotes around all fields that are non-numeric.
286286
Namely, when writing a field that does not parse as a valid float or integer,
287-
then quotes will be used even if they arent strictly necessary.
287+
then quotes are used even if they aren't strictly necessary.
288288
"""
289289
}
290290
}

0 commit comments

Comments
 (0)