Class: DatadogAPIClient::V1::LogsStatusRemapper
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::LogsStatusRemapper
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v1/models/logs_status_remapper.rb
Overview
Use this Processor if you want to assign some attributes as the official status.
Each incoming status value is mapped as follows.
- Integers from 0 to 7 map to the Syslog severity standards
- Strings beginning with `emerg` or f (case-insensitive) map to `emerg` (0)
- Strings beginning with `a` (case-insensitive) map to `alert` (1)
- Strings beginning with `c` (case-insensitive) map to `critical` (2)
- Strings beginning with `err` (case-insensitive) map to `error` (3)
- Strings beginning with `w` (case-insensitive) map to `warning` (4)
- Strings beginning with `n` (case-insensitive) map to `notice` (5)
- Strings beginning with `i` (case-insensitive) map to `info` (6)
- Strings beginning with `d`, `trace` or `verbose` (case-insensitive) map to `debug` (7)
- Strings beginning with `o` or matching `OK` or `Success` (case-insensitive) map to OK
- All others map to `info` (6)
**Note:** If multiple log status remapper processors can be applied to a given log,
only the first one (according to the pipelines order) is taken into account.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#is_enabled ⇒ Object
Whether or not the processor is enabled.
-
#name ⇒ Object
Name of the processor.
-
#sources ⇒ Object
readonly
Array of source attributes.
-
#type ⇒ Object
readonly
Type of logs status remapper.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
53 54 55 |
# File 'lib/datadog_api_client/v1/models/logs_status_remapper.rb', line 53 def additional_properties @additional_properties end |
#is_enabled ⇒ Object
Whether or not the processor is enabled.
42 43 44 |
# File 'lib/datadog_api_client/v1/models/logs_status_remapper.rb', line 42 def is_enabled @is_enabled end |
#name ⇒ Object
Name of the processor.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/logs_status_remapper.rb', line 45 def name @name end |
#sources ⇒ Object
Array of source attributes.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/logs_status_remapper.rb', line 48 def sources @sources end |
#type ⇒ Object
Type of logs status remapper.
51 52 53 |
# File 'lib/datadog_api_client/v1/models/logs_status_remapper.rb', line 51 def type @type end |