Completed
Pull Request — master (#565)
by
unknown
02:46
created

DatadogQueryEvent._run()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 2
rs 10
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 DatadogGetEvent(DatadogBaseAction):
6
    def _run(self, **kwargs):
7
        return api.Event.get(kwargs.pop("event_id"))
8
9
10
class DatadogPostEvent(DatadogBaseAction):
11
    def _run(self, **kwargs):
12
        return api.Event.create(**kwargs)
13
14
15
class DatadogQueryEvent(DatadogBaseAction):
16
    def _run(self, **kwargs):
17
        return api.Event.query(**kwargs)
18