1.2.3 • Published 4 years ago

@datadog/vis-fetch v1.2.3

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@datadog/vis-fetch

This package assists with using data from Datadog APIs.

It is under active development, and subject to breaking changes.

Install

yarn add @datadog/vis-fetch

Usage

import { init } from "@datadog/ui-apps-sdk";
import {
  fetchMetrics,
  metricsResponseToDataFrame,
} from "@datadog/vis-fetch";

const datadogClient = init();

// See Datadog Metrics Query syntax
// https://docs.datadoghq.com/metrics/
const query = 'avg:system.cpu.user{*}';
const now = Date.now();
const timeframe = {
  live: false,
  start: now - 600 // 60 seconds * 10 minutes
  end: now
}

const rawResponse = fetchMetrics(query, timeframe, client);
const dataFrame = metricsResponseToDataFrame(rawResponse);

The full documentation page is under review

1.2.4-next.0

4 years ago

1.2.3-next.13

4 years ago

1.2.3

4 years ago

1.2.3-next.10

4 years ago

1.2.3-next.11

4 years ago

1.2.3-next.12

4 years ago

1.2.3-next.9

4 years ago

1.2.3-next.8

4 years ago

1.2.3-next.6

4 years ago

1.2.3-next.7

4 years ago

1.2.3-next.5

4 years ago

1.2.3-next.4

4 years ago

1.2.3-next.3

4 years ago

1.2.3-next.2

4 years ago

1.2.3-next.1

4 years ago

1.2.3-next.0

4 years ago

1.2.2

4 years ago

1.2.2-next.2

4 years ago

1.2.2-next.5

4 years ago

1.2.2-next.4

4 years ago

1.2.2-next.3

4 years ago

1.2.2-next.1

4 years ago

1.2.1

4 years ago

1.2.1-next.2

4 years ago

1.2.1-next.3

4 years ago

1.2.2-next.0

4 years ago

1.2.1-next.1

4 years ago

1.2.0

4 years ago

1.2.1-next.0

4 years ago

1.2.0-next.6

4 years ago

1.2.0-next.7

4 years ago

2.0.0-next.2

4 years ago

2.0.0-next.1

4 years ago

1.2.0-next.5

4 years ago

1.2.0-next.2

4 years ago

1.2.0-next.1

4 years ago

1.2.0-next.4

4 years ago

1.2.0-next.3

4 years ago

2.0.0-next.0

4 years ago

1.2.0-next.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4-5

4 years ago

0.1.4-4

4 years ago

0.1.4-3

4 years ago

0.1.4-1

4 years ago

0.1.4-0

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago