Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 855 Bytes

File metadata and controls

30 lines (23 loc) · 855 Bytes

@datadog/datadog-api-client-logs-indexes

Description

Manage configuration of log indexes.

Installation

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

Getting Started

import { createConfiguration } from "@datadog/datadog-api-client";
import { LogsIndexesApiV1 } from "@datadog/datadog-api-client-logs-indexes";
import { v1 } from "@datadog/datadog-api-client-logs-indexes";

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

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