Completed
Pull Request — master (#564)
by
unknown
02:19
created

DatadogCreateComment._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 DatadogCreateComment(DatadogBaseAction):
6
    def _run(self, **kwargs):
7
        return api.Comment.create(**kwargs)
8
9
10
class DatadogDeleteComment(DatadogBaseAction):
11
    def _run(self, **kwargs):
12
        return api.Comment.delete(kwargs.pop("comment_id"))
13
14
15
class DatadogEditComment(DatadogBaseAction):
16
    def _run(self, **kwargs):
17
        return api.Comment.update(kwargs.pop("comment_id"), **kwargs)
18