From dc8a7b5ecf9dc2e3a0d496b47630c310c9feceae Mon Sep 17 00:00:00 2001 From: Scott Strickland Date: Fri, 6 Oct 2023 17:34:56 -0700 Subject: [PATCH 1/4] feat(timestamp encoding): add unixtime formats * `unix_ms`: milliseconds * `unix_us`: microseconds * `unix_ns`: nanoseconds * `unix_float`: seconds float --- src/codecs/encoding/transformer.rs | 134 +++++++++++------- website/cue/reference/components/sinks.cue | 4 + .../reference/components/sinks/base/amqp.cue | 4 + .../components/sinks/base/appsignal.cue | 4 + .../sinks/base/aws_cloudwatch_logs.cue | 4 + .../sinks/base/aws_kinesis_firehose.cue | 4 + .../sinks/base/aws_kinesis_streams.cue | 4 + .../components/sinks/base/aws_s3.cue | 4 + .../components/sinks/base/aws_sns.cue | 4 + .../components/sinks/base/aws_sqs.cue | 4 + .../components/sinks/base/azure_blob.cue | 4 + .../sinks/base/azure_monitor_logs.cue | 4 + .../components/sinks/base/clickhouse.cue | 4 + .../components/sinks/base/console.cue | 4 + .../components/sinks/base/databend.cue | 4 + .../components/sinks/base/datadog_logs.cue | 4 + .../components/sinks/base/elasticsearch.cue | 4 + .../reference/components/sinks/base/file.cue | 4 + .../sinks/base/gcp_chronicle_unstructured.cue | 4 + .../sinks/base/gcp_cloud_storage.cue | 4 + .../components/sinks/base/gcp_pubsub.cue | 4 + .../sinks/base/gcp_stackdriver_logs.cue | 4 + .../components/sinks/base/honeycomb.cue | 4 + .../reference/components/sinks/base/http.cue | 4 + .../components/sinks/base/humio_logs.cue | 4 + .../components/sinks/base/influxdb_logs.cue | 4 + .../reference/components/sinks/base/kafka.cue | 4 + .../components/sinks/base/logdna.cue | 4 + .../reference/components/sinks/base/loki.cue | 4 + .../reference/components/sinks/base/mezmo.cue | 4 + .../reference/components/sinks/base/nats.cue | 4 + .../components/sinks/base/new_relic.cue | 4 + .../components/sinks/base/papertrail.cue | 4 + .../components/sinks/base/pulsar.cue | 4 + .../reference/components/sinks/base/redis.cue | 4 + .../components/sinks/base/sematext_logs.cue | 4 + .../components/sinks/base/socket.cue | 4 + .../components/sinks/base/splunk_hec_logs.cue | 4 + .../components/sinks/base/webhdfs.cue | 4 + .../components/sinks/base/websocket.cue | 4 + 40 files changed, 242 insertions(+), 48 deletions(-) diff --git a/src/codecs/encoding/transformer.rs b/src/codecs/encoding/transformer.rs index bd5aee8b7f0bc..f266a379b67c1 100644 --- a/src/codecs/encoding/transformer.rs +++ b/src/codecs/encoding/transformer.rs @@ -1,5 +1,6 @@ #![deny(missing_docs)] +use chrono::{DateTime, Utc}; use core::fmt::Debug; use std::collections::BTreeMap; @@ -176,31 +177,45 @@ impl Transformer { } } + fn format_timestamps(&self, log: &mut LogEvent, extract: F) + where + F: Fn(&DateTime) -> T, + T: Into, + { + if log.value().is_object() { + let mut unix_timestamps = Vec::new(); + for (k, v) in log.all_event_fields().expect("must be an object") { + if let Value::Timestamp(ts) = v { + unix_timestamps.push((k.clone(), extract(&ts).into())); + } + } + for (k, v) in unix_timestamps { + log.parse_path_and_insert(k, v).unwrap(); + } + } else { + // root is not an object + let timestamp = if let Value::Timestamp(ts) = log.value() { + Some(extract(&ts)) + } else { + None + }; + if let Some(ts) = timestamp { + log.insert(event_path!(), ts.into()); + } + } + } + fn apply_timestamp_format(&self, log: &mut LogEvent) { if let Some(timestamp_format) = self.timestamp_format.as_ref() { match timestamp_format { - TimestampFormat::Unix => { - if log.value().is_object() { - let mut unix_timestamps = Vec::new(); - for (k, v) in log.all_event_fields().expect("must be an object") { - if let Value::Timestamp(ts) = v { - unix_timestamps.push((k.clone(), Value::Integer(ts.timestamp()))); - } - } - for (k, v) in unix_timestamps { - log.parse_path_and_insert(k, v).unwrap(); - } - } else { - // root is not an object - let timestamp = if let Value::Timestamp(ts) = log.value() { - Some(ts.timestamp()) - } else { - None - }; - if let Some(ts) = timestamp { - log.insert(event_path!(), Value::Integer(ts)); - } - } + TimestampFormat::Unix => self.format_timestamps(log, |ts| ts.timestamp()), + TimestampFormat::UnixMs => self.format_timestamps(log, |ts| ts.timestamp_millis()), + TimestampFormat::UnixUs => self.format_timestamps(log, |ts| ts.timestamp_micros()), + TimestampFormat::UnixNs => self.format_timestamps(log, |ts| { + ts.timestamp_nanos_opt().expect("Timestamp out of range") + }), + TimestampFormat::UnixFloat => { + self.format_timestamps(log, |ts| ts.timestamp_micros() as f64 / 1e6) } // RFC3339 is the default serialization of a timestamp. TimestampFormat::Rfc3339 => (), @@ -225,7 +240,7 @@ impl Transformer { #[configurable_component] #[derive(Clone, Copy, Debug, Eq, PartialEq)] -#[serde(rename_all = "lowercase")] +#[serde(rename_all = "snake_case")] /// The format in which a timestamp should be represented. pub enum TimestampFormat { /// Represent the timestamp as a Unix timestamp. @@ -233,6 +248,18 @@ pub enum TimestampFormat { /// Represent the timestamp as a RFC 3339 timestamp. Rfc3339, + + /// Represent the timestamp as a Unix timestamp in milliseconds. + UnixMs, + + /// Represent the timestamp as a Unix timestamp in microseconds + UnixUs, + + /// Represent the timestamp as a Unix timestamp in nanoseconds. + UnixNs, + + /// Represent the timestamp as a Unix timestamp in floating point. + UnixFloat, } #[cfg(test)] @@ -344,9 +371,8 @@ mod tests { #[test] fn deserialize_and_transform_timestamp() { - let transformer: Transformer = toml::from_str(r#"timestamp_format = "unix""#).unwrap(); - let mut event = Event::Log(LogEvent::from("Demo")); - let timestamp = event + let mut base = Event::Log(LogEvent::from("Demo")); + let timestamp = base .as_mut_log() .get(( lookup::PathPrefix::Event, @@ -355,32 +381,44 @@ mod tests { .unwrap() .clone(); let timestamp = timestamp.as_timestamp().unwrap(); - event - .as_mut_log() + base.as_mut_log() .insert("another", Value::Timestamp(*timestamp)); - transformer.transform(&mut event); - - match event - .as_mut_log() - .get(( - lookup::PathPrefix::Event, - log_schema().timestamp_key().unwrap(), - )) - .unwrap() - { - Value::Integer(_) => {} - e => panic!( - "Timestamp was not transformed into a Unix timestamp. Was {:?}", - e + let cases = [ + ("unix", Value::from(timestamp.timestamp())), + ("unix_ms", Value::from(timestamp.timestamp_millis())), + ("unix_us", Value::from(timestamp.timestamp_micros())), + ( + "unix_ns", + Value::from(timestamp.timestamp_nanos_opt().unwrap()), ), - } - match event.as_mut_log().get("another").unwrap() { - Value::Integer(_) => {} - e => panic!( - "Timestamp was not transformed into a Unix timestamp. Was {:?}", - e + ( + "unix_float", + Value::from(timestamp.timestamp_micros() as f64 / 1e6), ), + ]; + for (fmt, expected) in cases { + let config: String = format!(r#"timestamp_format = "{}""#, fmt); + let transformer: Transformer = toml::from_str(&config).unwrap(); + let mut event = base.clone(); + transformer.transform(&mut event); + let log = event.as_mut_log(); + + for actual in [ + // original key + log.get(( + lookup::PathPrefix::Event, + log_schema().timestamp_key().unwrap(), + )) + .unwrap(), + // second key + log.get("another").unwrap(), + ] { + // type matches + assert_eq!(expected.kind_str(), actual.kind_str()); + // value matches + assert_eq!(&expected, actual); + } } } diff --git a/website/cue/reference/components/sinks.cue b/website/cue/reference/components/sinks.cue index 90df0f84ab518..b0e1d4817b8fd 100644 --- a/website/cue/reference/components/sinks.cue +++ b/website/cue/reference/components/sinks.cue @@ -254,6 +254,10 @@ components: sinks: [Name=string]: { enum: { rfc3339: "Formats as a RFC3339 string" unix: "Formats as a unix timestamp" + unix_ms: "Formats as a unix timestamp in milliseconds" + unix_us: "Formats as a unix timestamp in microseconds" + unix_ns: "Formats as a unix timestamp in nanoseconds" + unix_float: "Formats as a unix timestamp in floating point" } } } diff --git a/website/cue/reference/components/sinks/base/amqp.cue b/website/cue/reference/components/sinks/base/amqp.cue index a592e402c6f5d..e6c0e55cafbef 100644 --- a/website/cue/reference/components/sinks/base/amqp.cue +++ b/website/cue/reference/components/sinks/base/amqp.cue @@ -268,6 +268,10 @@ base: components: sinks: amqp: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/appsignal.cue b/website/cue/reference/components/sinks/base/appsignal.cue index 2eebeb475dc99..ba79fede1e40c 100644 --- a/website/cue/reference/components/sinks/base/appsignal.cue +++ b/website/cue/reference/components/sinks/base/appsignal.cue @@ -111,6 +111,10 @@ base: components: sinks: appsignal: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue index 68e8b1614b1e4..ef13870921ee4 100644 --- a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue +++ b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue @@ -439,6 +439,10 @@ base: components: sinks: aws_cloudwatch_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue index f1a647e602fd5..bea6523300e14 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue @@ -418,6 +418,10 @@ base: components: sinks: aws_kinesis_firehose: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue index f723f9e8ad5b2..652a96deca755 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue @@ -418,6 +418,10 @@ base: components: sinks: aws_kinesis_streams: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_s3.cue b/website/cue/reference/components/sinks/base/aws_s3.cue index 16b10bc9018bc..101cfe177e462 100644 --- a/website/cue/reference/components/sinks/base/aws_s3.cue +++ b/website/cue/reference/components/sinks/base/aws_s3.cue @@ -527,6 +527,10 @@ base: components: sinks: aws_s3: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_sns.cue b/website/cue/reference/components/sinks/base/aws_sns.cue index 1cf31e8956d8c..0e891805d70fc 100644 --- a/website/cue/reference/components/sinks/base/aws_sns.cue +++ b/website/cue/reference/components/sinks/base/aws_sns.cue @@ -354,6 +354,10 @@ base: components: sinks: aws_sns: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/aws_sqs.cue b/website/cue/reference/components/sinks/base/aws_sqs.cue index cb7b1dcd79a9e..31dbb503c9059 100644 --- a/website/cue/reference/components/sinks/base/aws_sqs.cue +++ b/website/cue/reference/components/sinks/base/aws_sqs.cue @@ -354,6 +354,10 @@ base: components: sinks: aws_sqs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/azure_blob.cue b/website/cue/reference/components/sinks/base/azure_blob.cue index a56680098c0fc..65cfbc8c26f12 100644 --- a/website/cue/reference/components/sinks/base/azure_blob.cue +++ b/website/cue/reference/components/sinks/base/azure_blob.cue @@ -381,6 +381,10 @@ base: components: sinks: azure_blob: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue index 6f1017a90a93a..aaf17246de36f 100644 --- a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue +++ b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue @@ -97,6 +97,10 @@ base: components: sinks: azure_monitor_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/clickhouse.cue b/website/cue/reference/components/sinks/base/clickhouse.cue index 6be7c94fa2a6c..aad754ef9b3ae 100644 --- a/website/cue/reference/components/sinks/base/clickhouse.cue +++ b/website/cue/reference/components/sinks/base/clickhouse.cue @@ -168,6 +168,10 @@ base: components: sinks: clickhouse: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/console.cue b/website/cue/reference/components/sinks/base/console.cue index 9ebd1a606fd5b..8d289d6839540 100644 --- a/website/cue/reference/components/sinks/base/console.cue +++ b/website/cue/reference/components/sinks/base/console.cue @@ -252,6 +252,10 @@ base: components: sinks: console: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/databend.cue b/website/cue/reference/components/sinks/base/databend.cue index 6089ca255071d..2e62ef30e885a 100644 --- a/website/cue/reference/components/sinks/base/databend.cue +++ b/website/cue/reference/components/sinks/base/databend.cue @@ -271,6 +271,10 @@ base: components: sinks: databend: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/datadog_logs.cue b/website/cue/reference/components/sinks/base/datadog_logs.cue index 7de6e0a300989..c5bf945755894 100644 --- a/website/cue/reference/components/sinks/base/datadog_logs.cue +++ b/website/cue/reference/components/sinks/base/datadog_logs.cue @@ -120,6 +120,10 @@ base: components: sinks: datadog_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/elasticsearch.cue b/website/cue/reference/components/sinks/base/elasticsearch.cue index 98b9dbdeff3a6..07e43a9ba714f 100644 --- a/website/cue/reference/components/sinks/base/elasticsearch.cue +++ b/website/cue/reference/components/sinks/base/elasticsearch.cue @@ -402,6 +402,10 @@ base: components: sinks: elasticsearch: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/file.cue b/website/cue/reference/components/sinks/base/file.cue index 590a6fb945d22..36166e0c0ff44 100644 --- a/website/cue/reference/components/sinks/base/file.cue +++ b/website/cue/reference/components/sinks/base/file.cue @@ -272,6 +272,10 @@ base: components: sinks: file: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue index 5a049cd6f6ab2..6c07bc1b644a1 100644 --- a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue +++ b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue @@ -321,6 +321,10 @@ base: components: sinks: gcp_chronicle_unstructured: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue index 47f6bf3b03df7..7048cf67d29e2 100644 --- a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue +++ b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue @@ -405,6 +405,10 @@ base: components: sinks: gcp_cloud_storage: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/gcp_pubsub.cue b/website/cue/reference/components/sinks/base/gcp_pubsub.cue index 0b36642444576..6f48d6a93118f 100644 --- a/website/cue/reference/components/sinks/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sinks/base/gcp_pubsub.cue @@ -319,6 +319,10 @@ base: components: sinks: gcp_pubsub: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue index d1ab258d3ffe9..27a0efdb6efb4 100644 --- a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue +++ b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue @@ -120,6 +120,10 @@ base: components: sinks: gcp_stackdriver_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/honeycomb.cue b/website/cue/reference/components/sinks/base/honeycomb.cue index b6a9c623df8cd..9e6c24981c656 100644 --- a/website/cue/reference/components/sinks/base/honeycomb.cue +++ b/website/cue/reference/components/sinks/base/honeycomb.cue @@ -89,6 +89,10 @@ base: components: sinks: honeycomb: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/http.cue b/website/cue/reference/components/sinks/base/http.cue index 58fcd9c005c81..8d3e84544cac7 100644 --- a/website/cue/reference/components/sinks/base/http.cue +++ b/website/cue/reference/components/sinks/base/http.cue @@ -360,6 +360,10 @@ base: components: sinks: http: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/humio_logs.cue b/website/cue/reference/components/sinks/base/humio_logs.cue index 2892e356c6784..d667584c1d380 100644 --- a/website/cue/reference/components/sinks/base/humio_logs.cue +++ b/website/cue/reference/components/sinks/base/humio_logs.cue @@ -313,6 +313,10 @@ base: components: sinks: humio_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/influxdb_logs.cue b/website/cue/reference/components/sinks/base/influxdb_logs.cue index bf00f976c0b68..884f042e2694f 100644 --- a/website/cue/reference/components/sinks/base/influxdb_logs.cue +++ b/website/cue/reference/components/sinks/base/influxdb_logs.cue @@ -106,6 +106,10 @@ base: components: sinks: influxdb_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/kafka.cue b/website/cue/reference/components/sinks/base/kafka.cue index fd95ee383b816..9aa97738c013f 100644 --- a/website/cue/reference/components/sinks/base/kafka.cue +++ b/website/cue/reference/components/sinks/base/kafka.cue @@ -307,6 +307,10 @@ base: components: sinks: kafka: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/logdna.cue b/website/cue/reference/components/sinks/base/logdna.cue index 7dcd6cb736421..6f12eda612798 100644 --- a/website/cue/reference/components/sinks/base/logdna.cue +++ b/website/cue/reference/components/sinks/base/logdna.cue @@ -102,6 +102,10 @@ base: components: sinks: logdna: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/loki.cue b/website/cue/reference/components/sinks/base/loki.cue index fe7a9160bc88b..f8247dd7ffdb4 100644 --- a/website/cue/reference/components/sinks/base/loki.cue +++ b/website/cue/reference/components/sinks/base/loki.cue @@ -364,6 +364,10 @@ base: components: sinks: loki: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/mezmo.cue b/website/cue/reference/components/sinks/base/mezmo.cue index cf4ce6e40a8e5..0261a7393296e 100644 --- a/website/cue/reference/components/sinks/base/mezmo.cue +++ b/website/cue/reference/components/sinks/base/mezmo.cue @@ -102,6 +102,10 @@ base: components: sinks: mezmo: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/nats.cue b/website/cue/reference/components/sinks/base/nats.cue index 11d3dc126fa7d..77f0a4a755516 100644 --- a/website/cue/reference/components/sinks/base/nats.cue +++ b/website/cue/reference/components/sinks/base/nats.cue @@ -352,6 +352,10 @@ base: components: sinks: nats: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/new_relic.cue b/website/cue/reference/components/sinks/base/new_relic.cue index 1929466c31c80..49b7a949651c4 100644 --- a/website/cue/reference/components/sinks/base/new_relic.cue +++ b/website/cue/reference/components/sinks/base/new_relic.cue @@ -125,6 +125,10 @@ base: components: sinks: new_relic: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/papertrail.cue b/website/cue/reference/components/sinks/base/papertrail.cue index 6f0e9d17eb439..e0df23d12e372 100644 --- a/website/cue/reference/components/sinks/base/papertrail.cue +++ b/website/cue/reference/components/sinks/base/papertrail.cue @@ -252,6 +252,10 @@ base: components: sinks: papertrail: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/pulsar.cue b/website/cue/reference/components/sinks/base/pulsar.cue index 428c4f42791e0..753c7e09f84d0 100644 --- a/website/cue/reference/components/sinks/base/pulsar.cue +++ b/website/cue/reference/components/sinks/base/pulsar.cue @@ -346,6 +346,10 @@ base: components: sinks: pulsar: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/redis.cue b/website/cue/reference/components/sinks/base/redis.cue index 6d2e1964de935..fd97208d42630 100644 --- a/website/cue/reference/components/sinks/base/redis.cue +++ b/website/cue/reference/components/sinks/base/redis.cue @@ -305,6 +305,10 @@ base: components: sinks: redis: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/sematext_logs.cue b/website/cue/reference/components/sinks/base/sematext_logs.cue index 46c6b46875306..1a8e0e154a748 100644 --- a/website/cue/reference/components/sinks/base/sematext_logs.cue +++ b/website/cue/reference/components/sinks/base/sematext_logs.cue @@ -79,6 +79,10 @@ base: components: sinks: sematext_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/socket.cue b/website/cue/reference/components/sinks/base/socket.cue index 99c353f604166..0cd2fb370d239 100644 --- a/website/cue/reference/components/sinks/base/socket.cue +++ b/website/cue/reference/components/sinks/base/socket.cue @@ -264,6 +264,10 @@ base: components: sinks: socket: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue index e79d4cdb46261..cf20919b487d1 100644 --- a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue +++ b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue @@ -363,6 +363,10 @@ base: components: sinks: splunk_hec_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/webhdfs.cue b/website/cue/reference/components/sinks/base/webhdfs.cue index 0dd49a0d683b8..b6b485bb90ea2 100644 --- a/website/cue/reference/components/sinks/base/webhdfs.cue +++ b/website/cue/reference/components/sinks/base/webhdfs.cue @@ -313,6 +313,10 @@ base: components: sinks: webhdfs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } diff --git a/website/cue/reference/components/sinks/base/websocket.cue b/website/cue/reference/components/sinks/base/websocket.cue index c9c30e5e170ec..f6926f4277d9f 100644 --- a/website/cue/reference/components/sinks/base/websocket.cue +++ b/website/cue/reference/components/sinks/base/websocket.cue @@ -299,6 +299,10 @@ base: components: sinks: websocket: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } } From e3bb7e4327454fb1312eea588b52d62e03ae9fb1 Mon Sep 17 00:00:00 2001 From: Scott Strickland Date: Tue, 10 Oct 2023 12:49:24 -0700 Subject: [PATCH 2/4] Fix needless borrow --- src/codecs/encoding/transformer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codecs/encoding/transformer.rs b/src/codecs/encoding/transformer.rs index f266a379b67c1..21f3c705361fc 100644 --- a/src/codecs/encoding/transformer.rs +++ b/src/codecs/encoding/transformer.rs @@ -186,7 +186,7 @@ impl Transformer { let mut unix_timestamps = Vec::new(); for (k, v) in log.all_event_fields().expect("must be an object") { if let Value::Timestamp(ts) = v { - unix_timestamps.push((k.clone(), extract(&ts).into())); + unix_timestamps.push((k.clone(), extract(ts).into())); } } for (k, v) in unix_timestamps { @@ -195,7 +195,7 @@ impl Transformer { } else { // root is not an object let timestamp = if let Value::Timestamp(ts) = log.value() { - Some(extract(&ts)) + Some(extract(ts)) } else { None }; From 91ca701dc73b9fed49cda2569125c8cbcc2245ed Mon Sep 17 00:00:00 2001 From: Scott Strickland Date: Tue, 10 Oct 2023 14:35:56 -0700 Subject: [PATCH 3/4] Format website cue docs --- website/cue/reference/components/sinks.cue | 10 +++++----- website/cue/reference/components/sinks/base/amqp.cue | 10 +++++----- .../cue/reference/components/sinks/base/appsignal.cue | 10 +++++----- .../components/sinks/base/aws_cloudwatch_logs.cue | 10 +++++----- .../components/sinks/base/aws_kinesis_firehose.cue | 10 +++++----- .../components/sinks/base/aws_kinesis_streams.cue | 10 +++++----- website/cue/reference/components/sinks/base/aws_s3.cue | 10 +++++----- .../cue/reference/components/sinks/base/aws_sns.cue | 10 +++++----- .../cue/reference/components/sinks/base/aws_sqs.cue | 10 +++++----- .../cue/reference/components/sinks/base/azure_blob.cue | 10 +++++----- .../components/sinks/base/azure_monitor_logs.cue | 10 +++++----- .../cue/reference/components/sinks/base/clickhouse.cue | 10 +++++----- .../cue/reference/components/sinks/base/console.cue | 10 +++++----- .../cue/reference/components/sinks/base/databend.cue | 10 +++++----- .../reference/components/sinks/base/datadog_logs.cue | 10 +++++----- .../reference/components/sinks/base/elasticsearch.cue | 10 +++++----- website/cue/reference/components/sinks/base/file.cue | 10 +++++----- .../sinks/base/gcp_chronicle_unstructured.cue | 10 +++++----- .../components/sinks/base/gcp_cloud_storage.cue | 10 +++++----- .../cue/reference/components/sinks/base/gcp_pubsub.cue | 10 +++++----- .../components/sinks/base/gcp_stackdriver_logs.cue | 10 +++++----- .../cue/reference/components/sinks/base/honeycomb.cue | 10 +++++----- website/cue/reference/components/sinks/base/http.cue | 10 +++++----- .../cue/reference/components/sinks/base/humio_logs.cue | 10 +++++----- .../reference/components/sinks/base/influxdb_logs.cue | 10 +++++----- website/cue/reference/components/sinks/base/kafka.cue | 10 +++++----- website/cue/reference/components/sinks/base/logdna.cue | 10 +++++----- website/cue/reference/components/sinks/base/loki.cue | 10 +++++----- website/cue/reference/components/sinks/base/mezmo.cue | 10 +++++----- website/cue/reference/components/sinks/base/nats.cue | 10 +++++----- .../cue/reference/components/sinks/base/new_relic.cue | 10 +++++----- .../cue/reference/components/sinks/base/papertrail.cue | 10 +++++----- website/cue/reference/components/sinks/base/pulsar.cue | 10 +++++----- website/cue/reference/components/sinks/base/redis.cue | 10 +++++----- .../reference/components/sinks/base/sematext_logs.cue | 10 +++++----- website/cue/reference/components/sinks/base/socket.cue | 10 +++++----- .../components/sinks/base/splunk_hec_logs.cue | 10 +++++----- .../cue/reference/components/sinks/base/webhdfs.cue | 10 +++++----- .../cue/reference/components/sinks/base/websocket.cue | 10 +++++----- 39 files changed, 195 insertions(+), 195 deletions(-) diff --git a/website/cue/reference/components/sinks.cue b/website/cue/reference/components/sinks.cue index b0e1d4817b8fd..9718fb3d094b4 100644 --- a/website/cue/reference/components/sinks.cue +++ b/website/cue/reference/components/sinks.cue @@ -252,11 +252,11 @@ components: sinks: [Name=string]: { type: string: { default: "rfc3339" enum: { - rfc3339: "Formats as a RFC3339 string" - unix: "Formats as a unix timestamp" - unix_ms: "Formats as a unix timestamp in milliseconds" - unix_us: "Formats as a unix timestamp in microseconds" - unix_ns: "Formats as a unix timestamp in nanoseconds" + rfc3339: "Formats as a RFC3339 string" + unix: "Formats as a unix timestamp" + unix_ms: "Formats as a unix timestamp in milliseconds" + unix_us: "Formats as a unix timestamp in microseconds" + unix_ns: "Formats as a unix timestamp in nanoseconds" unix_float: "Formats as a unix timestamp in floating point" } } diff --git a/website/cue/reference/components/sinks/base/amqp.cue b/website/cue/reference/components/sinks/base/amqp.cue index e6c0e55cafbef..47f5b19b7711d 100644 --- a/website/cue/reference/components/sinks/base/amqp.cue +++ b/website/cue/reference/components/sinks/base/amqp.cue @@ -266,11 +266,11 @@ base: components: sinks: amqp: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/appsignal.cue b/website/cue/reference/components/sinks/base/appsignal.cue index ba79fede1e40c..7d71dd43568b7 100644 --- a/website/cue/reference/components/sinks/base/appsignal.cue +++ b/website/cue/reference/components/sinks/base/appsignal.cue @@ -109,11 +109,11 @@ base: components: sinks: appsignal: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue index ef13870921ee4..4f5337eea4301 100644 --- a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue +++ b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue @@ -437,11 +437,11 @@ base: components: sinks: aws_cloudwatch_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue index bea6523300e14..bfd338bd726f1 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue @@ -416,11 +416,11 @@ base: components: sinks: aws_kinesis_firehose: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue index 652a96deca755..da40488f94d98 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue @@ -416,11 +416,11 @@ base: components: sinks: aws_kinesis_streams: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_s3.cue b/website/cue/reference/components/sinks/base/aws_s3.cue index 101cfe177e462..d17436bf44b4c 100644 --- a/website/cue/reference/components/sinks/base/aws_s3.cue +++ b/website/cue/reference/components/sinks/base/aws_s3.cue @@ -525,11 +525,11 @@ base: components: sinks: aws_s3: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_sns.cue b/website/cue/reference/components/sinks/base/aws_sns.cue index 0e891805d70fc..fd3dd05cb317c 100644 --- a/website/cue/reference/components/sinks/base/aws_sns.cue +++ b/website/cue/reference/components/sinks/base/aws_sns.cue @@ -352,11 +352,11 @@ base: components: sinks: aws_sns: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/aws_sqs.cue b/website/cue/reference/components/sinks/base/aws_sqs.cue index 31dbb503c9059..4662d90b87e26 100644 --- a/website/cue/reference/components/sinks/base/aws_sqs.cue +++ b/website/cue/reference/components/sinks/base/aws_sqs.cue @@ -352,11 +352,11 @@ base: components: sinks: aws_sqs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/azure_blob.cue b/website/cue/reference/components/sinks/base/azure_blob.cue index 65cfbc8c26f12..74bfca2835f41 100644 --- a/website/cue/reference/components/sinks/base/azure_blob.cue +++ b/website/cue/reference/components/sinks/base/azure_blob.cue @@ -379,11 +379,11 @@ base: components: sinks: azure_blob: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue index aaf17246de36f..63c611c0df8a2 100644 --- a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue +++ b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue @@ -95,11 +95,11 @@ base: components: sinks: azure_monitor_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/clickhouse.cue b/website/cue/reference/components/sinks/base/clickhouse.cue index aad754ef9b3ae..7810309dd9072 100644 --- a/website/cue/reference/components/sinks/base/clickhouse.cue +++ b/website/cue/reference/components/sinks/base/clickhouse.cue @@ -166,11 +166,11 @@ base: components: sinks: clickhouse: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/console.cue b/website/cue/reference/components/sinks/base/console.cue index 8d289d6839540..c6116cd1e079e 100644 --- a/website/cue/reference/components/sinks/base/console.cue +++ b/website/cue/reference/components/sinks/base/console.cue @@ -250,11 +250,11 @@ base: components: sinks: console: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/databend.cue b/website/cue/reference/components/sinks/base/databend.cue index 2e62ef30e885a..5c4e1a4c42ab1 100644 --- a/website/cue/reference/components/sinks/base/databend.cue +++ b/website/cue/reference/components/sinks/base/databend.cue @@ -269,11 +269,11 @@ base: components: sinks: databend: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/datadog_logs.cue b/website/cue/reference/components/sinks/base/datadog_logs.cue index c5bf945755894..e0f181cc0b985 100644 --- a/website/cue/reference/components/sinks/base/datadog_logs.cue +++ b/website/cue/reference/components/sinks/base/datadog_logs.cue @@ -118,11 +118,11 @@ base: components: sinks: datadog_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/elasticsearch.cue b/website/cue/reference/components/sinks/base/elasticsearch.cue index 07e43a9ba714f..855deee090874 100644 --- a/website/cue/reference/components/sinks/base/elasticsearch.cue +++ b/website/cue/reference/components/sinks/base/elasticsearch.cue @@ -400,11 +400,11 @@ base: components: sinks: elasticsearch: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/file.cue b/website/cue/reference/components/sinks/base/file.cue index 36166e0c0ff44..82e0e5900b635 100644 --- a/website/cue/reference/components/sinks/base/file.cue +++ b/website/cue/reference/components/sinks/base/file.cue @@ -270,11 +270,11 @@ base: components: sinks: file: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue index 6c07bc1b644a1..88df4806e5e00 100644 --- a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue +++ b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue @@ -319,11 +319,11 @@ base: components: sinks: gcp_chronicle_unstructured: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue index 7048cf67d29e2..0bc698390e9ca 100644 --- a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue +++ b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue @@ -403,11 +403,11 @@ base: components: sinks: gcp_cloud_storage: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/gcp_pubsub.cue b/website/cue/reference/components/sinks/base/gcp_pubsub.cue index 6f48d6a93118f..d70e71ec14922 100644 --- a/website/cue/reference/components/sinks/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sinks/base/gcp_pubsub.cue @@ -317,11 +317,11 @@ base: components: sinks: gcp_pubsub: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue index 27a0efdb6efb4..e43ce893f7e92 100644 --- a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue +++ b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue @@ -118,11 +118,11 @@ base: components: sinks: gcp_stackdriver_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/honeycomb.cue b/website/cue/reference/components/sinks/base/honeycomb.cue index 9e6c24981c656..428ac35fc038e 100644 --- a/website/cue/reference/components/sinks/base/honeycomb.cue +++ b/website/cue/reference/components/sinks/base/honeycomb.cue @@ -87,11 +87,11 @@ base: components: sinks: honeycomb: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/http.cue b/website/cue/reference/components/sinks/base/http.cue index 8d3e84544cac7..4a2397e3d1999 100644 --- a/website/cue/reference/components/sinks/base/http.cue +++ b/website/cue/reference/components/sinks/base/http.cue @@ -358,11 +358,11 @@ base: components: sinks: http: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/humio_logs.cue b/website/cue/reference/components/sinks/base/humio_logs.cue index d667584c1d380..720e660bb8aaf 100644 --- a/website/cue/reference/components/sinks/base/humio_logs.cue +++ b/website/cue/reference/components/sinks/base/humio_logs.cue @@ -311,11 +311,11 @@ base: components: sinks: humio_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/influxdb_logs.cue b/website/cue/reference/components/sinks/base/influxdb_logs.cue index 884f042e2694f..73f7429fe50a8 100644 --- a/website/cue/reference/components/sinks/base/influxdb_logs.cue +++ b/website/cue/reference/components/sinks/base/influxdb_logs.cue @@ -104,11 +104,11 @@ base: components: sinks: influxdb_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/kafka.cue b/website/cue/reference/components/sinks/base/kafka.cue index 9aa97738c013f..02f76b4366911 100644 --- a/website/cue/reference/components/sinks/base/kafka.cue +++ b/website/cue/reference/components/sinks/base/kafka.cue @@ -305,11 +305,11 @@ base: components: sinks: kafka: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/logdna.cue b/website/cue/reference/components/sinks/base/logdna.cue index 6f12eda612798..5ab55296926f0 100644 --- a/website/cue/reference/components/sinks/base/logdna.cue +++ b/website/cue/reference/components/sinks/base/logdna.cue @@ -100,11 +100,11 @@ base: components: sinks: logdna: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/loki.cue b/website/cue/reference/components/sinks/base/loki.cue index f8247dd7ffdb4..6eae5d92ed161 100644 --- a/website/cue/reference/components/sinks/base/loki.cue +++ b/website/cue/reference/components/sinks/base/loki.cue @@ -362,11 +362,11 @@ base: components: sinks: loki: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/mezmo.cue b/website/cue/reference/components/sinks/base/mezmo.cue index 0261a7393296e..599d641415885 100644 --- a/website/cue/reference/components/sinks/base/mezmo.cue +++ b/website/cue/reference/components/sinks/base/mezmo.cue @@ -100,11 +100,11 @@ base: components: sinks: mezmo: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/nats.cue b/website/cue/reference/components/sinks/base/nats.cue index 77f0a4a755516..bafe7be941c76 100644 --- a/website/cue/reference/components/sinks/base/nats.cue +++ b/website/cue/reference/components/sinks/base/nats.cue @@ -350,11 +350,11 @@ base: components: sinks: nats: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/new_relic.cue b/website/cue/reference/components/sinks/base/new_relic.cue index 49b7a949651c4..99642638ed566 100644 --- a/website/cue/reference/components/sinks/base/new_relic.cue +++ b/website/cue/reference/components/sinks/base/new_relic.cue @@ -123,11 +123,11 @@ base: components: sinks: new_relic: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/papertrail.cue b/website/cue/reference/components/sinks/base/papertrail.cue index e0df23d12e372..dc6a3f04f06cf 100644 --- a/website/cue/reference/components/sinks/base/papertrail.cue +++ b/website/cue/reference/components/sinks/base/papertrail.cue @@ -250,11 +250,11 @@ base: components: sinks: papertrail: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/pulsar.cue b/website/cue/reference/components/sinks/base/pulsar.cue index 753c7e09f84d0..53f7044aa2d2d 100644 --- a/website/cue/reference/components/sinks/base/pulsar.cue +++ b/website/cue/reference/components/sinks/base/pulsar.cue @@ -344,11 +344,11 @@ base: components: sinks: pulsar: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/redis.cue b/website/cue/reference/components/sinks/base/redis.cue index fd97208d42630..c54d6d8d9996f 100644 --- a/website/cue/reference/components/sinks/base/redis.cue +++ b/website/cue/reference/components/sinks/base/redis.cue @@ -303,11 +303,11 @@ base: components: sinks: redis: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/sematext_logs.cue b/website/cue/reference/components/sinks/base/sematext_logs.cue index 1a8e0e154a748..dc236df568bc0 100644 --- a/website/cue/reference/components/sinks/base/sematext_logs.cue +++ b/website/cue/reference/components/sinks/base/sematext_logs.cue @@ -77,11 +77,11 @@ base: components: sinks: sematext_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/socket.cue b/website/cue/reference/components/sinks/base/socket.cue index 0cd2fb370d239..f3f1a87a5185a 100644 --- a/website/cue/reference/components/sinks/base/socket.cue +++ b/website/cue/reference/components/sinks/base/socket.cue @@ -262,11 +262,11 @@ base: components: sinks: socket: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue index cf20919b487d1..362e3ce8d9bf4 100644 --- a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue +++ b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue @@ -361,11 +361,11 @@ base: components: sinks: splunk_hec_logs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/webhdfs.cue b/website/cue/reference/components/sinks/base/webhdfs.cue index b6b485bb90ea2..39cfa1e87ace5 100644 --- a/website/cue/reference/components/sinks/base/webhdfs.cue +++ b/website/cue/reference/components/sinks/base/webhdfs.cue @@ -311,11 +311,11 @@ base: components: sinks: webhdfs: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } diff --git a/website/cue/reference/components/sinks/base/websocket.cue b/website/cue/reference/components/sinks/base/websocket.cue index f6926f4277d9f..ccf1b5cea3e6e 100644 --- a/website/cue/reference/components/sinks/base/websocket.cue +++ b/website/cue/reference/components/sinks/base/websocket.cue @@ -297,11 +297,11 @@ base: components: sinks: websocket: configuration: { description: "Format used for timestamp fields." required: false type: string: enum: { - rfc3339: "Represent the timestamp as a RFC 3339 timestamp." - unix: "Represent the timestamp as a Unix timestamp." - unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." - unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." + rfc3339: "Represent the timestamp as a RFC 3339 timestamp." + unix: "Represent the timestamp as a Unix timestamp." + unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds." + unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." unix_float: "Represent the timestamp as a Unix timestamp in floating point." } } From 9b5697796728fa2bb7f437ee73003b19c159c235 Mon Sep 17 00:00:00 2001 From: Scott Strickland Date: Wed, 11 Oct 2023 10:24:19 -0700 Subject: [PATCH 4/4] Fix type conversion and cue formatting --- src/codecs/encoding/transformer.rs | 7 ++++--- website/cue/reference/components/sinks/base/amqp.cue | 4 ++-- website/cue/reference/components/sinks/base/appsignal.cue | 4 ++-- .../components/sinks/base/aws_cloudwatch_logs.cue | 4 ++-- .../components/sinks/base/aws_kinesis_firehose.cue | 4 ++-- .../components/sinks/base/aws_kinesis_streams.cue | 4 ++-- website/cue/reference/components/sinks/base/aws_s3.cue | 4 ++-- website/cue/reference/components/sinks/base/aws_sns.cue | 4 ++-- website/cue/reference/components/sinks/base/aws_sqs.cue | 4 ++-- website/cue/reference/components/sinks/base/azure_blob.cue | 4 ++-- .../reference/components/sinks/base/azure_monitor_logs.cue | 4 ++-- website/cue/reference/components/sinks/base/clickhouse.cue | 4 ++-- website/cue/reference/components/sinks/base/console.cue | 4 ++-- website/cue/reference/components/sinks/base/databend.cue | 4 ++-- .../cue/reference/components/sinks/base/datadog_logs.cue | 4 ++-- .../cue/reference/components/sinks/base/elasticsearch.cue | 4 ++-- website/cue/reference/components/sinks/base/file.cue | 4 ++-- .../components/sinks/base/gcp_chronicle_unstructured.cue | 4 ++-- .../reference/components/sinks/base/gcp_cloud_storage.cue | 4 ++-- website/cue/reference/components/sinks/base/gcp_pubsub.cue | 4 ++-- .../components/sinks/base/gcp_stackdriver_logs.cue | 4 ++-- website/cue/reference/components/sinks/base/honeycomb.cue | 4 ++-- website/cue/reference/components/sinks/base/http.cue | 4 ++-- website/cue/reference/components/sinks/base/humio_logs.cue | 4 ++-- .../cue/reference/components/sinks/base/influxdb_logs.cue | 4 ++-- website/cue/reference/components/sinks/base/kafka.cue | 4 ++-- website/cue/reference/components/sinks/base/logdna.cue | 4 ++-- website/cue/reference/components/sinks/base/loki.cue | 4 ++-- website/cue/reference/components/sinks/base/mezmo.cue | 4 ++-- website/cue/reference/components/sinks/base/nats.cue | 4 ++-- website/cue/reference/components/sinks/base/new_relic.cue | 4 ++-- website/cue/reference/components/sinks/base/papertrail.cue | 4 ++-- website/cue/reference/components/sinks/base/pulsar.cue | 4 ++-- website/cue/reference/components/sinks/base/redis.cue | 4 ++-- .../cue/reference/components/sinks/base/sematext_logs.cue | 4 ++-- website/cue/reference/components/sinks/base/socket.cue | 4 ++-- .../reference/components/sinks/base/splunk_hec_logs.cue | 4 ++-- website/cue/reference/components/sinks/base/webhdfs.cue | 4 ++-- website/cue/reference/components/sinks/base/websocket.cue | 4 ++-- 39 files changed, 80 insertions(+), 79 deletions(-) diff --git a/src/codecs/encoding/transformer.rs b/src/codecs/encoding/transformer.rs index 21f3c705361fc..4e5ed9e195793 100644 --- a/src/codecs/encoding/transformer.rs +++ b/src/codecs/encoding/transformer.rs @@ -6,6 +6,7 @@ use std::collections::BTreeMap; use lookup::lookup_v2::ConfigValuePath; use lookup::{event_path, PathPrefix}; +use ordered_float::NotNan; use serde::{Deserialize, Deserializer}; use vector_config::configurable_component; use vector_core::event::{LogEvent, MaybeAsLogMut}; @@ -214,9 +215,9 @@ impl Transformer { TimestampFormat::UnixNs => self.format_timestamps(log, |ts| { ts.timestamp_nanos_opt().expect("Timestamp out of range") }), - TimestampFormat::UnixFloat => { - self.format_timestamps(log, |ts| ts.timestamp_micros() as f64 / 1e6) - } + TimestampFormat::UnixFloat => self.format_timestamps(log, |ts| { + NotNan::new(ts.timestamp_micros() as f64 / 1e6).unwrap() + }), // RFC3339 is the default serialization of a timestamp. TimestampFormat::Rfc3339 => (), } diff --git a/website/cue/reference/components/sinks/base/amqp.cue b/website/cue/reference/components/sinks/base/amqp.cue index 47f5b19b7711d..11f861db46549 100644 --- a/website/cue/reference/components/sinks/base/amqp.cue +++ b/website/cue/reference/components/sinks/base/amqp.cue @@ -268,10 +268,10 @@ base: components: sinks: amqp: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/appsignal.cue b/website/cue/reference/components/sinks/base/appsignal.cue index 7d71dd43568b7..68904ee5046e6 100644 --- a/website/cue/reference/components/sinks/base/appsignal.cue +++ b/website/cue/reference/components/sinks/base/appsignal.cue @@ -111,10 +111,10 @@ base: components: sinks: appsignal: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue index 4f5337eea4301..fd8bebd59bdc0 100644 --- a/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue +++ b/website/cue/reference/components/sinks/base/aws_cloudwatch_logs.cue @@ -439,10 +439,10 @@ base: components: sinks: aws_cloudwatch_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue index bfd338bd726f1..3e4ac7c1d325b 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_firehose.cue @@ -418,10 +418,10 @@ base: components: sinks: aws_kinesis_firehose: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue index da40488f94d98..a2a7a659b8b46 100644 --- a/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue +++ b/website/cue/reference/components/sinks/base/aws_kinesis_streams.cue @@ -418,10 +418,10 @@ base: components: sinks: aws_kinesis_streams: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_s3.cue b/website/cue/reference/components/sinks/base/aws_s3.cue index d17436bf44b4c..5e6e0fef81491 100644 --- a/website/cue/reference/components/sinks/base/aws_s3.cue +++ b/website/cue/reference/components/sinks/base/aws_s3.cue @@ -527,10 +527,10 @@ base: components: sinks: aws_s3: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_sns.cue b/website/cue/reference/components/sinks/base/aws_sns.cue index fd3dd05cb317c..81b67a6c45565 100644 --- a/website/cue/reference/components/sinks/base/aws_sns.cue +++ b/website/cue/reference/components/sinks/base/aws_sns.cue @@ -354,10 +354,10 @@ base: components: sinks: aws_sns: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/aws_sqs.cue b/website/cue/reference/components/sinks/base/aws_sqs.cue index 4662d90b87e26..28e012cc9a1a5 100644 --- a/website/cue/reference/components/sinks/base/aws_sqs.cue +++ b/website/cue/reference/components/sinks/base/aws_sqs.cue @@ -354,10 +354,10 @@ base: components: sinks: aws_sqs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/azure_blob.cue b/website/cue/reference/components/sinks/base/azure_blob.cue index 74bfca2835f41..34d92a850d390 100644 --- a/website/cue/reference/components/sinks/base/azure_blob.cue +++ b/website/cue/reference/components/sinks/base/azure_blob.cue @@ -381,10 +381,10 @@ base: components: sinks: azure_blob: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue index 63c611c0df8a2..e9f4c16b7e31f 100644 --- a/website/cue/reference/components/sinks/base/azure_monitor_logs.cue +++ b/website/cue/reference/components/sinks/base/azure_monitor_logs.cue @@ -97,10 +97,10 @@ base: components: sinks: azure_monitor_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/clickhouse.cue b/website/cue/reference/components/sinks/base/clickhouse.cue index 7810309dd9072..acd2cafb2c588 100644 --- a/website/cue/reference/components/sinks/base/clickhouse.cue +++ b/website/cue/reference/components/sinks/base/clickhouse.cue @@ -168,10 +168,10 @@ base: components: sinks: clickhouse: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/console.cue b/website/cue/reference/components/sinks/base/console.cue index c6116cd1e079e..c2a69fbc13dc2 100644 --- a/website/cue/reference/components/sinks/base/console.cue +++ b/website/cue/reference/components/sinks/base/console.cue @@ -252,10 +252,10 @@ base: components: sinks: console: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/databend.cue b/website/cue/reference/components/sinks/base/databend.cue index 5c4e1a4c42ab1..8bc2434cbb1b7 100644 --- a/website/cue/reference/components/sinks/base/databend.cue +++ b/website/cue/reference/components/sinks/base/databend.cue @@ -271,10 +271,10 @@ base: components: sinks: databend: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/datadog_logs.cue b/website/cue/reference/components/sinks/base/datadog_logs.cue index e0f181cc0b985..1858aab1659eb 100644 --- a/website/cue/reference/components/sinks/base/datadog_logs.cue +++ b/website/cue/reference/components/sinks/base/datadog_logs.cue @@ -120,10 +120,10 @@ base: components: sinks: datadog_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/elasticsearch.cue b/website/cue/reference/components/sinks/base/elasticsearch.cue index 855deee090874..9e0041fcdd068 100644 --- a/website/cue/reference/components/sinks/base/elasticsearch.cue +++ b/website/cue/reference/components/sinks/base/elasticsearch.cue @@ -402,10 +402,10 @@ base: components: sinks: elasticsearch: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/file.cue b/website/cue/reference/components/sinks/base/file.cue index 82e0e5900b635..d56bfb50db925 100644 --- a/website/cue/reference/components/sinks/base/file.cue +++ b/website/cue/reference/components/sinks/base/file.cue @@ -272,10 +272,10 @@ base: components: sinks: file: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue index 88df4806e5e00..0c5ab5adf1115 100644 --- a/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue +++ b/website/cue/reference/components/sinks/base/gcp_chronicle_unstructured.cue @@ -321,10 +321,10 @@ base: components: sinks: gcp_chronicle_unstructured: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue index 0bc698390e9ca..d28a12a3693c7 100644 --- a/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue +++ b/website/cue/reference/components/sinks/base/gcp_cloud_storage.cue @@ -405,10 +405,10 @@ base: components: sinks: gcp_cloud_storage: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/gcp_pubsub.cue b/website/cue/reference/components/sinks/base/gcp_pubsub.cue index d70e71ec14922..c2b12e0240170 100644 --- a/website/cue/reference/components/sinks/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sinks/base/gcp_pubsub.cue @@ -319,10 +319,10 @@ base: components: sinks: gcp_pubsub: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue index e43ce893f7e92..291261fe47866 100644 --- a/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue +++ b/website/cue/reference/components/sinks/base/gcp_stackdriver_logs.cue @@ -120,10 +120,10 @@ base: components: sinks: gcp_stackdriver_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/honeycomb.cue b/website/cue/reference/components/sinks/base/honeycomb.cue index 428ac35fc038e..9b762b95e873b 100644 --- a/website/cue/reference/components/sinks/base/honeycomb.cue +++ b/website/cue/reference/components/sinks/base/honeycomb.cue @@ -89,10 +89,10 @@ base: components: sinks: honeycomb: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/http.cue b/website/cue/reference/components/sinks/base/http.cue index 4a2397e3d1999..4f2733fba9158 100644 --- a/website/cue/reference/components/sinks/base/http.cue +++ b/website/cue/reference/components/sinks/base/http.cue @@ -360,10 +360,10 @@ base: components: sinks: http: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/humio_logs.cue b/website/cue/reference/components/sinks/base/humio_logs.cue index 720e660bb8aaf..74fe040a84fcb 100644 --- a/website/cue/reference/components/sinks/base/humio_logs.cue +++ b/website/cue/reference/components/sinks/base/humio_logs.cue @@ -313,10 +313,10 @@ base: components: sinks: humio_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/influxdb_logs.cue b/website/cue/reference/components/sinks/base/influxdb_logs.cue index 73f7429fe50a8..3dafc496d1e02 100644 --- a/website/cue/reference/components/sinks/base/influxdb_logs.cue +++ b/website/cue/reference/components/sinks/base/influxdb_logs.cue @@ -106,10 +106,10 @@ base: components: sinks: influxdb_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/kafka.cue b/website/cue/reference/components/sinks/base/kafka.cue index 02f76b4366911..e68f12ae52fe5 100644 --- a/website/cue/reference/components/sinks/base/kafka.cue +++ b/website/cue/reference/components/sinks/base/kafka.cue @@ -307,10 +307,10 @@ base: components: sinks: kafka: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/logdna.cue b/website/cue/reference/components/sinks/base/logdna.cue index 5ab55296926f0..2067a596cbc33 100644 --- a/website/cue/reference/components/sinks/base/logdna.cue +++ b/website/cue/reference/components/sinks/base/logdna.cue @@ -102,10 +102,10 @@ base: components: sinks: logdna: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/loki.cue b/website/cue/reference/components/sinks/base/loki.cue index 6eae5d92ed161..c44bc390a0c1a 100644 --- a/website/cue/reference/components/sinks/base/loki.cue +++ b/website/cue/reference/components/sinks/base/loki.cue @@ -364,10 +364,10 @@ base: components: sinks: loki: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/mezmo.cue b/website/cue/reference/components/sinks/base/mezmo.cue index 599d641415885..f4e0b59357fa6 100644 --- a/website/cue/reference/components/sinks/base/mezmo.cue +++ b/website/cue/reference/components/sinks/base/mezmo.cue @@ -102,10 +102,10 @@ base: components: sinks: mezmo: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/nats.cue b/website/cue/reference/components/sinks/base/nats.cue index bafe7be941c76..836ab584fcc33 100644 --- a/website/cue/reference/components/sinks/base/nats.cue +++ b/website/cue/reference/components/sinks/base/nats.cue @@ -352,10 +352,10 @@ base: components: sinks: nats: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/new_relic.cue b/website/cue/reference/components/sinks/base/new_relic.cue index 99642638ed566..1adcd87c1e0d8 100644 --- a/website/cue/reference/components/sinks/base/new_relic.cue +++ b/website/cue/reference/components/sinks/base/new_relic.cue @@ -125,10 +125,10 @@ base: components: sinks: new_relic: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/papertrail.cue b/website/cue/reference/components/sinks/base/papertrail.cue index dc6a3f04f06cf..7a9d7172cd514 100644 --- a/website/cue/reference/components/sinks/base/papertrail.cue +++ b/website/cue/reference/components/sinks/base/papertrail.cue @@ -252,10 +252,10 @@ base: components: sinks: papertrail: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/pulsar.cue b/website/cue/reference/components/sinks/base/pulsar.cue index 53f7044aa2d2d..d866b1916cab1 100644 --- a/website/cue/reference/components/sinks/base/pulsar.cue +++ b/website/cue/reference/components/sinks/base/pulsar.cue @@ -346,10 +346,10 @@ base: components: sinks: pulsar: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/redis.cue b/website/cue/reference/components/sinks/base/redis.cue index c54d6d8d9996f..7c39ffc442c46 100644 --- a/website/cue/reference/components/sinks/base/redis.cue +++ b/website/cue/reference/components/sinks/base/redis.cue @@ -305,10 +305,10 @@ base: components: sinks: redis: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/sematext_logs.cue b/website/cue/reference/components/sinks/base/sematext_logs.cue index dc236df568bc0..31ac3952b4bfd 100644 --- a/website/cue/reference/components/sinks/base/sematext_logs.cue +++ b/website/cue/reference/components/sinks/base/sematext_logs.cue @@ -79,10 +79,10 @@ base: components: sinks: sematext_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/socket.cue b/website/cue/reference/components/sinks/base/socket.cue index f3f1a87a5185a..a05ffec17f6f0 100644 --- a/website/cue/reference/components/sinks/base/socket.cue +++ b/website/cue/reference/components/sinks/base/socket.cue @@ -264,10 +264,10 @@ base: components: sinks: socket: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue index 362e3ce8d9bf4..f105e81aad584 100644 --- a/website/cue/reference/components/sinks/base/splunk_hec_logs.cue +++ b/website/cue/reference/components/sinks/base/splunk_hec_logs.cue @@ -363,10 +363,10 @@ base: components: sinks: splunk_hec_logs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/webhdfs.cue b/website/cue/reference/components/sinks/base/webhdfs.cue index 39cfa1e87ace5..e85dc6de61bf1 100644 --- a/website/cue/reference/components/sinks/base/webhdfs.cue +++ b/website/cue/reference/components/sinks/base/webhdfs.cue @@ -313,10 +313,10 @@ base: components: sinks: webhdfs: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } } diff --git a/website/cue/reference/components/sinks/base/websocket.cue b/website/cue/reference/components/sinks/base/websocket.cue index ccf1b5cea3e6e..1f3835e123d3e 100644 --- a/website/cue/reference/components/sinks/base/websocket.cue +++ b/website/cue/reference/components/sinks/base/websocket.cue @@ -299,10 +299,10 @@ base: components: sinks: websocket: configuration: { type: string: enum: { rfc3339: "Represent the timestamp as a RFC 3339 timestamp." unix: "Represent the timestamp as a Unix timestamp." + unix_float: "Represent the timestamp as a Unix timestamp in floating point." unix_ms: "Represent the timestamp as a Unix timestamp in milliseconds." - unix_us: "Represent the timestamp as a Unix timestamp in microseconds." unix_ns: "Represent the timestamp as a Unix timestamp in nanoseconds." - unix_float: "Represent the timestamp as a Unix timestamp in floating point." + unix_us: "Represent the timestamp as a Unix timestamp in microseconds" } } }