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