Class: DatadogAPIClient::V1::LogsDateRemapper

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/logs_date_remapper.rb

Overview

As Datadog receives logs, it timestamps them using the value(s) from any of these default attributes.

- `timestamp`
- `date`
- `_timestamp`
- `Timestamp`
- `eventTime`
- `published_date`

If your logs put their dates in an attribute not in this list,
use the log date Remapper Processor to define their date attribute as the official log timestamp.
The recognized date formats are ISO8601, UNIX (the milliseconds EPOCH format), and RFC3164.

**Note:** If your logs don’t contain any of the default attributes
and you haven’t defined your own date attribute, Datadog timestamps
the logs with the date it received them.

If multiple log date 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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



54
55
56
# File 'lib/datadog_api_client/v1/models/logs_date_remapper.rb', line 54

def additional_properties
  @additional_properties
end

#is_enabledObject

Whether or not the processor is enabled.



43
44
45
# File 'lib/datadog_api_client/v1/models/logs_date_remapper.rb', line 43

def is_enabled
  @is_enabled
end

#nameObject

Name of the processor.



46
47
48
# File 'lib/datadog_api_client/v1/models/logs_date_remapper.rb', line 46

def name
  @name
end

#sourcesObject

Array of source attributes.



49
50
51
# File 'lib/datadog_api_client/v1/models/logs_date_remapper.rb', line 49

def sources
  @sources
end

#typeObject

Type of logs date remapper.



52
53
54
# File 'lib/datadog_api_client/v1/models/logs_date_remapper.rb', line 52

def type
  @type
end