|
| 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 | +import { ObservabilityPipelineBufferOptions } from "./ObservabilityPipelineBufferOptions"; |
| 7 | +import { ObservabilityPipelineDatabricksZerobusDestinationAuth } from "./ObservabilityPipelineDatabricksZerobusDestinationAuth"; |
| 8 | +import { ObservabilityPipelineDatabricksZerobusDestinationType } from "./ObservabilityPipelineDatabricksZerobusDestinationType"; |
| 9 | + |
| 10 | +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; |
| 11 | + |
| 12 | +/** |
| 13 | + * The `databricks_zerobus` destination sends logs to Databricks using the Zerobus ingestion API, streaming data directly into your Databricks Lakehouse. |
| 14 | + * |
| 15 | + * **Supported pipeline types:** Logs, rehydration |
| 16 | + */ |
| 17 | +export class ObservabilityPipelineDatabricksZerobusDestination { |
| 18 | + /** |
| 19 | + * OAuth credentials for authenticating with the Databricks Zerobus ingestion API. |
| 20 | + */ |
| 21 | + "auth": ObservabilityPipelineDatabricksZerobusDestinationAuth; |
| 22 | + /** |
| 23 | + * Configuration for buffer settings on destination components. |
| 24 | + */ |
| 25 | + "buffer"?: ObservabilityPipelineBufferOptions; |
| 26 | + /** |
| 27 | + * The unique identifier for this component. |
| 28 | + */ |
| 29 | + "id": string; |
| 30 | + /** |
| 31 | + * Your Databricks Zerobus ingestion endpoint. This is the endpoint used to stream data directly into your Databricks Lakehouse. |
| 32 | + */ |
| 33 | + "ingestionEndpoint": string; |
| 34 | + /** |
| 35 | + * A list of component IDs whose output is used as the `input` for this component. |
| 36 | + */ |
| 37 | + "inputs": Array<string>; |
| 38 | + /** |
| 39 | + * The fully qualified name of your target Databricks table. Make sure this table already exists in your Databricks workspace before deploying. |
| 40 | + */ |
| 41 | + "tableName": string; |
| 42 | + /** |
| 43 | + * The destination type. The value must be `databricks_zerobus`. |
| 44 | + */ |
| 45 | + "type": ObservabilityPipelineDatabricksZerobusDestinationType; |
| 46 | + /** |
| 47 | + * Your Databricks workspace URL. This is used to communicate with the Unity Catalog API. |
| 48 | + */ |
| 49 | + "unityCatalogEndpoint": string; |
| 50 | + |
| 51 | + /** |
| 52 | + * A container for additional, undeclared properties. |
| 53 | + * This is a holder for any undeclared properties as specified with |
| 54 | + * the 'additionalProperties' keyword in the OAS document. |
| 55 | + */ |
| 56 | + "additionalProperties"?: { [key: string]: any }; |
| 57 | + |
| 58 | + /** |
| 59 | + * @ignore |
| 60 | + */ |
| 61 | + "_unparsed"?: boolean; |
| 62 | + |
| 63 | + /** |
| 64 | + * @ignore |
| 65 | + */ |
| 66 | + static readonly attributeTypeMap: AttributeTypeMap = { |
| 67 | + auth: { |
| 68 | + baseName: "auth", |
| 69 | + type: "ObservabilityPipelineDatabricksZerobusDestinationAuth", |
| 70 | + required: true, |
| 71 | + }, |
| 72 | + buffer: { |
| 73 | + baseName: "buffer", |
| 74 | + type: "ObservabilityPipelineBufferOptions", |
| 75 | + }, |
| 76 | + id: { |
| 77 | + baseName: "id", |
| 78 | + type: "string", |
| 79 | + required: true, |
| 80 | + }, |
| 81 | + ingestionEndpoint: { |
| 82 | + baseName: "ingestion_endpoint", |
| 83 | + type: "string", |
| 84 | + required: true, |
| 85 | + }, |
| 86 | + inputs: { |
| 87 | + baseName: "inputs", |
| 88 | + type: "Array<string>", |
| 89 | + required: true, |
| 90 | + }, |
| 91 | + tableName: { |
| 92 | + baseName: "table_name", |
| 93 | + type: "string", |
| 94 | + required: true, |
| 95 | + }, |
| 96 | + type: { |
| 97 | + baseName: "type", |
| 98 | + type: "ObservabilityPipelineDatabricksZerobusDestinationType", |
| 99 | + required: true, |
| 100 | + }, |
| 101 | + unityCatalogEndpoint: { |
| 102 | + baseName: "unity_catalog_endpoint", |
| 103 | + type: "string", |
| 104 | + required: true, |
| 105 | + }, |
| 106 | + additionalProperties: { |
| 107 | + baseName: "additionalProperties", |
| 108 | + type: "{ [key: string]: any; }", |
| 109 | + }, |
| 110 | + }; |
| 111 | + |
| 112 | + /** |
| 113 | + * @ignore |
| 114 | + */ |
| 115 | + static getAttributeTypeMap(): AttributeTypeMap { |
| 116 | + return ObservabilityPipelineDatabricksZerobusDestination.attributeTypeMap; |
| 117 | + } |
| 118 | + |
| 119 | + public constructor() {} |
| 120 | +} |
0 commit comments