-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathtypes.py
More file actions
32 lines (25 loc) · 1.21 KB
/
types.py
File metadata and controls
32 lines (25 loc) · 1.21 KB
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
from enum import Enum
from typing import TypedDict
class ChartType(Enum):
"""
This enum defines the chart styles we can render.
This directly maps to the chartcuterie configuration [0] in the frontend
code. Be sure to keep these in sync when adding or removing types.
[0]: app/chartcuterie/config.tsx.
"""
SLACK_DISCOVER_TOTAL_PERIOD = "slack:discover.totalPeriod"
SLACK_DISCOVER_TOTAL_DAILY = "slack:discover.totalDaily"
SLACK_DISCOVER_TOP5_PERIOD = "slack:discover.top5Period"
SLACK_DISCOVER_TOP5_PERIOD_LINE = "slack:discover.top5PeriodLine"
SLACK_DISCOVER_TOP5_DAILY = "slack:discover.top5Daily"
SLACK_DISCOVER_PREVIOUS_PERIOD = "slack:discover.previousPeriod"
SLACK_METRIC_ALERT_EVENTS = "slack:metricAlert.events"
SLACK_METRIC_ALERT_SESSIONS = "slack:metricAlert.sessions"
SLACK_PERFORMANCE_ENDPOINT_REGRESSION = "slack:performance.endpointRegression"
SLACK_PERFORMANCE_FUNCTION_REGRESSION = "slack:performance.functionRegression"
SLACK_METRIC_DETECTOR_EVENTS = "slack:metricDetector.events"
SLACK_METRIC_DETECTOR_SESSIONS = "slack:metricDetector.sessions"
SLACK_TIMESERIES = "slack:timeseries"
class ChartSize(TypedDict):
width: int
height: int