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

DatadogEditComment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
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 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