-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathWidgetLiveSpan.ts
48 lines (45 loc) · 1.49 KB
/
WidgetLiveSpan.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { UnparsedObject } from "../../datadog-api-client-common/util";
/**
* The available timeframes depend on the widget you are using.
*/
export type WidgetLiveSpan =
| typeof PAST_ONE_MINUTE
| typeof PAST_FIVE_MINUTES
| typeof PAST_TEN_MINUTES
| typeof PAST_FIFTEEN_MINUTES
| typeof PAST_THIRTY_MINUTES
| typeof PAST_ONE_HOUR
| typeof PAST_FOUR_HOURS
| typeof PAST_ONE_DAY
| typeof PAST_TWO_DAYS
| typeof PAST_ONE_WEEK
| typeof PAST_ONE_MONTH
| typeof PAST_THREE_MONTHS
| typeof PAST_SIX_MONTHS
| typeof WEEK_TO_DATE
| typeof MONTH_TO_DATE
| typeof PAST_ONE_YEAR
| typeof ALERT
| UnparsedObject;
export const PAST_ONE_MINUTE = "1m";
export const PAST_FIVE_MINUTES = "5m";
export const PAST_TEN_MINUTES = "10m";
export const PAST_FIFTEEN_MINUTES = "15m";
export const PAST_THIRTY_MINUTES = "30m";
export const PAST_ONE_HOUR = "1h";
export const PAST_FOUR_HOURS = "4h";
export const PAST_ONE_DAY = "1d";
export const PAST_TWO_DAYS = "2d";
export const PAST_ONE_WEEK = "1w";
export const PAST_ONE_MONTH = "1mo";
export const PAST_THREE_MONTHS = "3mo";
export const PAST_SIX_MONTHS = "6mo";
export const WEEK_TO_DATE = "week_to_date";
export const MONTH_TO_DATE = "month_to_date";
export const PAST_ONE_YEAR = "1y";
export const ALERT = "alert";