-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.py
More file actions
59 lines (57 loc) · 2.11 KB
/
api.py
File metadata and controls
59 lines (57 loc) · 2.11 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from tsdb import api as _api
# Re-export full TSDB API surface, including helper internals used by tests.
app = _api.app
GaugePayload = _api.GaugePayload
CounterPayload = _api.CounterPayload
RetentionPayload = _api.RetentionPayload
SelectorPayload = _api.SelectorPayload
QueryPayload = _api.QueryPayload
LookupPayload = _api.LookupPayload
TagLookupPayload = _api.TagLookupPayload
DashboardPayload = _api.DashboardPayload
TargetPayload = _api.TargetPayload
MonitorPayload = _api.MonitorPayload
MonitorStatePayload = _api.MonitorStatePayload
# Temporary aliases
WatcherPayload = _api.MonitorPayload
WatcherStatePayload = _api.MonitorStatePayload
render_template = _api.render_template
_resolve_metric_ids_from_selectors = _api._resolve_metric_ids_from_selectors
_replace_alias_placeholders = _api._replace_alias_placeholders
# Route handlers
write_gauge = _api.write_gauge
write_counter = _api.write_counter
query = _api.query
list_metrics = _api.list_metrics
delete_metric = _api.delete_metric
update_metric_retention = _api.update_metric_retention
lookup_metrics = _api.lookup_metrics
metric_names = _api.metric_names
metric_tag_values = _api.metric_tag_values
list_dashboards = _api.list_dashboards
get_dashboard = _api.get_dashboard
delete_dashboard = _api.delete_dashboard
save_dashboard = _api.save_dashboard
list_targets = _api.list_targets
get_target = _api.get_target
create_or_update_target = _api.create_or_update_target
delete_target = _api.delete_target
list_monitors = _api.list_monitors
get_monitor = _api.get_monitor
create_monitor = _api.create_monitor
update_monitor = _api.update_monitor
delete_monitor = _api.delete_monitor
get_monitor_state = _api.get_monitor_state
set_monitor_state = _api.set_monitor_state
list_monitor_events = _api.list_monitor_events
append_monitor_event = _api.append_monitor_event
# Temporary aliases
list_watchers = _api.list_monitors
get_watcher = _api.get_monitor
create_watcher = _api.create_monitor
update_watcher = _api.update_monitor
delete_watcher = _api.delete_monitor
get_watcher_state = _api.get_monitor_state
set_watcher_state = _api.set_monitor_state
metric_series = _api.metric_series
ui = _api.ui