Lodol Docs

Datadog

API actions for the Datadog integration.

Datadog

Monitor infrastructure and send events with Datadog.


Create event

Create a Datadog event.

Parameters

ParameterTypeRequiredDescription
titlestringYesThe title of the event
textstringYesThe body text of the event
alert_typestringNo[Optional] The alert type (e.g., error, warning, info, success)

Response

{
  "id": 67890,
  "text": "Application v1.2.3 deployed successfully",
  "title": "Deployment Complete",
  "url": "https://app.datadoghq.com/event/event?id=67890"
}

Get monitor

Retrieve a monitor by id.

Parameters

ParameterTypeRequiredDescription
monitor_idstringYesThe unique identifier of the monitor to retrieve

Response

{
  "id": 12345,
  "message": "CPU usage is high",
  "name": "CPU Usage Monitor",
  "overall_state": "OK",
  "query": "avg(last_5m):avg:system.cpu.user{*} > 90",
  "type": "metric alert"
}

On this page