|
| 1 | +/** |
| 2 | + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. |
| 3 | + * This product includes software developed at Datadog (https://www.datadoghq.com/). |
| 4 | + * Copyright 2020-Present Datadog, Inc. |
| 5 | + */ |
| 6 | + |
| 7 | +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; |
| 8 | + |
| 9 | +/** |
| 10 | + * Defines how the `datadog_logs` destination routes matching logs to a Datadog site using a specific API key. |
| 11 | + */ |
| 12 | +export class ObservabilityPipelineDatadogLogsDestinationRoute { |
| 13 | + /** |
| 14 | + * Name of the environment variable or secret that stores the Datadog API key used by this route. |
| 15 | + */ |
| 16 | + "apiKeyKey"?: string; |
| 17 | + /** |
| 18 | + * A Datadog search query that determines which logs are forwarded using this route. |
| 19 | + */ |
| 20 | + "include"?: string; |
| 21 | + /** |
| 22 | + * Unique identifier for this route within the destination. |
| 23 | + */ |
| 24 | + "routeId"?: string; |
| 25 | + /** |
| 26 | + * Datadog site where matching logs are sent (for example, `us1`). |
| 27 | + */ |
| 28 | + "site"?: string; |
| 29 | + |
| 30 | + /** |
| 31 | + * A container for additional, undeclared properties. |
| 32 | + * This is a holder for any undeclared properties as specified with |
| 33 | + * the 'additionalProperties' keyword in the OAS document. |
| 34 | + */ |
| 35 | + "additionalProperties"?: { [key: string]: any }; |
| 36 | + |
| 37 | + /** |
| 38 | + * @ignore |
| 39 | + */ |
| 40 | + "_unparsed"?: boolean; |
| 41 | + |
| 42 | + /** |
| 43 | + * @ignore |
| 44 | + */ |
| 45 | + static readonly attributeTypeMap: AttributeTypeMap = { |
| 46 | + apiKeyKey: { |
| 47 | + baseName: "api_key_key", |
| 48 | + type: "string", |
| 49 | + }, |
| 50 | + include: { |
| 51 | + baseName: "include", |
| 52 | + type: "string", |
| 53 | + }, |
| 54 | + routeId: { |
| 55 | + baseName: "route_id", |
| 56 | + type: "string", |
| 57 | + }, |
| 58 | + site: { |
| 59 | + baseName: "site", |
| 60 | + type: "string", |
| 61 | + }, |
| 62 | + additionalProperties: { |
| 63 | + baseName: "additionalProperties", |
| 64 | + type: "{ [key: string]: any; }", |
| 65 | + }, |
| 66 | + }; |
| 67 | + |
| 68 | + /** |
| 69 | + * @ignore |
| 70 | + */ |
| 71 | + static getAttributeTypeMap(): AttributeTypeMap { |
| 72 | + return ObservabilityPipelineDatadogLogsDestinationRoute.attributeTypeMap; |
| 73 | + } |
| 74 | + |
| 75 | + public constructor() {} |
| 76 | +} |
0 commit comments