for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from base import DatadogBaseAction
DatadogBaseAction
base
from datadog import api
class DatadogCreateTimeboard(DatadogBaseAction):
def _run(self, **kwargs):
return api.Timeboard.create(**kwargs)
class DatadogDeleteTimeboard(DatadogBaseAction):
return api.Timeboard.delete(kwargs.pop("board_id"))
class DatadogGetAllTimeboards(DatadogBaseAction):
def _run(self):
return api.Timeboard.get_all()
class DatadogGetTimeboard(DatadogBaseAction):
return api.Timeboard.get(kwargs.pop("board_id"))
class DatadogUpdateTimeboard(DatadogBaseAction):
return api.Timeboard.update(kwargs.pop("board_id"), **kwargs)