DatadogGetTimeboard   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A _run() 0 2 1
1
from base import DatadogBaseAction
0 ignored issues
show
Bug introduced by
The name DatadogBaseAction does not seem to exist in module base.
Loading history...
2
from datadog import api
3
4
5
class DatadogCreateTimeboard(DatadogBaseAction):
6
    def _run(self, **kwargs):
7
        return api.Timeboard.create(**kwargs)
8
9
10
class DatadogDeleteTimeboard(DatadogBaseAction):
11
    def _run(self, **kwargs):
12
        return api.Timeboard.delete(kwargs.pop("board_id"))
13
14
15
class DatadogGetAllTimeboards(DatadogBaseAction):
16
    def _run(self):
17
        return api.Timeboard.get_all()
18
19
20
class DatadogGetTimeboard(DatadogBaseAction):
21
    def _run(self, **kwargs):
22
        return api.Timeboard.get(kwargs.pop("board_id"))
23
24
25
class DatadogUpdateTimeboard(DatadogBaseAction):
26
    def _run(self, **kwargs):
27
        return api.Timeboard.update(kwargs.pop("board_id"), **kwargs)
28