@datadog/datadog-api-client
Version:
OpenAPI client for Datadog APIs
65 lines (64 loc) • 1.99 kB
TypeScript
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { LogsSchemaRemapperType } from "./LogsSchemaRemapperType";
import { TargetFormatType } from "./TargetFormatType";
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
/**
* The schema remapper maps source log fields to their correct fields.
*/
export declare class LogsSchemaRemapper {
/**
* Name of the logs schema remapper.
*/
"name": string;
/**
* Override or not the target element if already set.
*/
"overrideOnConflict"?: boolean;
/**
* Remove or preserve the remapped source element.
*/
"preserveSource"?: boolean;
/**
* Array of source attributes.
*/
"sources": Array<string>;
/**
* Target field to map log source field to.
*/
"target": string;
/**
* If the `target_type` of the remapper is `attribute`, try to cast the value to a new specific type.
* If the cast is not possible, the original type is kept. `string`, `integer`, or `double` are the possible types.
* If the `target_type` is `tag`, this parameter may not be specified.
*/
"targetFormat"?: TargetFormatType;
/**
* Type of logs schema remapper.
*/
"type": LogsSchemaRemapperType;
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: {
[key: string]: any;
};
/**
* @ignore
*/
"_unparsed"?: boolean;
/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap;
/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap;
constructor();
}