@datadog/datadog-api-client
Version:
OpenAPI client for Datadog APIs
62 lines • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogsDateRemapper = void 0;
/**
* 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.
*/
class LogsDateRemapper {
constructor() { }
/**
* @ignore
*/
static getAttributeTypeMap() {
return LogsDateRemapper.attributeTypeMap;
}
}
exports.LogsDateRemapper = LogsDateRemapper;
/**
* @ignore
*/
LogsDateRemapper.attributeTypeMap = {
isEnabled: {
baseName: "is_enabled",
type: "boolean",
},
name: {
baseName: "name",
type: "string",
},
sources: {
baseName: "sources",
type: "Array<string>",
required: true,
},
type: {
baseName: "type",
type: "LogsDateRemapperType",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};
//# sourceMappingURL=LogsDateRemapper.js.map