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_typestringNoThe type of alert: error, warning, info, or 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

Look up a Datadog monitor by its ID.

Parameters

ParameterTypeRequiredDescription
monitor_idstringYesThe ID of the monitor to look up, for example, 12345

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