npm.io
0.0.1-beta.2 • Published 9 months ago

@datadog/datadog-api-client-logs-custom-destinations

Licence
Apache-2.0
Version
0.0.1-beta.2
Deps
1
Size
164 kB
Vulns
0
Weekly
0
Stars
104

@datadog/datadog-api-client-logs-custom-destinations

Description

Custom Destinations forward all the logs ingested to an external destination.

Note: Log forwarding is not available for the Government (US1-FED) site. Contact your account representative for more information.

See the Custom Destinations Page for a list of the custom destinations currently configured in web UI.

Navigation

Installation

# NPM
npm install @datadog/datadog-api-client-logs-custom-destinations
# Yarn
yarn add @datadog/datadog-api-client-logs-custom-destinations

Getting Started

import { createConfiguration } from "@datadog/datadog-api-client";
import { LogsCustomDestinationsApiV2 } from "@datadog/datadog-api-client-logs-custom-destinations";
import { v2 } from "@datadog/datadog-api-client-logs-custom-destinations";

const configuration = createConfiguration();
const apiInstance = new LogsCustomDestinationsApiV2(configuration);

apiInstance.listLogsCustomDestinations().then((data) => {
    console.log("API called successfully. Returned data: " + JSON.stringify(data));
}).catch((error) => {
    console.error("Error calling API: " + error);
});

Keywords