vector_common/internal_event/prelude.rs
1// Set of `stage` tags to use when emitting error events.
2pub mod error_stage {
3 pub const INITIALIZING: &str = "initializing";
4 pub const RECEIVING: &str = "receiving";
5 pub const PROCESSING: &str = "processing";
6 pub const SENDING: &str = "sending";
7}
8
9// Set of `error_type` tags to use when emitting error events.
10pub mod error_type {
11 // When the event acknowledgment failed.
12 pub const ACKNOWLEDGMENT_FAILED: &str = "acknowledgment_failed";
13 // When the external command called by the component failed.
14 pub const COMMAND_FAILED: &str = "command_failed";
15 // When a condition for the event to be valid failed.
16 // This is used for example when a field is missing or should be a string.
17 pub const CONDITION_FAILED: &str = "condition_failed";
18 // When the component or the service on which it depends is not configured properly.
19 pub const CONFIGURATION_FAILED: &str = "configuration_failed";
20 // When the component failed to connect to an external service.
21 pub const CONNECTION_FAILED: &str = "connection_failed";
22 // When the component failed to convert a value.
23 // For example, when converting from string to float.
24 pub const CONVERSION_FAILED: &str = "conversion_failed";
25 // When the component failed to convert an event to a structure required
26 // by the external service the event should be sent to.
27 pub const ENCODER_FAILED: &str = "encoder_failed";
28 // When the received event has an unexpected metric.
29 pub const INVALID_METRIC: &str = "invalid_metric";
30 // When the component was unable to perform an IO.
31 pub const IO_FAILED: &str = "io_failed";
32 // When the component is unable to parse a message to build an event.
33 pub const PARSER_FAILED: &str = "parser_failed";
34 // When the component was unable to read from the source.
35 pub const READER_FAILED: &str = "reader_failed";
36 // When the component was unable to perform a request or the request failed.
37 pub const REQUEST_FAILED: &str = "request_failed";
38 // When the component depends on a script that failed
39 pub const SCRIPT_FAILED: &str = "script_failed";
40 // When the component was unable to build a template or interpolate it.
41 pub const TEMPLATE_FAILED: &str = "template_failed";
42 // When an execution took longer than expected and failed.
43 pub const TIMED_OUT: &str = "timed_out";
44 // When the component was unable to write some data.
45 pub const WRITER_FAILED: &str = "writer_failed";
46}