Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10153,6 +10153,7 @@ components:
- "data-quality alert"
- "network-path alert"
- "data-jobs alert"
- "llm-observability alert"
example: "query alert"
type: string
x-enum-varnames:
Expand All @@ -10178,6 +10179,7 @@ components:
- DATA_QUALITY_ALERT
- NETWORK_PATH_ALERT
- DATA_JOBS_ALERT
- LLM_OBSERVABILITY_ALERT
MonitorUpdateRequest:
description: Object describing a monitor update request.
properties:
Expand Down
43 changes: 43 additions & 0 deletions examples/v1/monitors/CreateMonitor_1348801712.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Create an LLM Observability monitor returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v1.api.MonitorsApi;
import com.datadog.api.client.v1.model.Monitor;
import com.datadog.api.client.v1.model.MonitorOptions;
import com.datadog.api.client.v1.model.MonitorThresholds;
import com.datadog.api.client.v1.model.MonitorType;
import java.util.Arrays;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = ApiClient.getDefaultApiClient();
MonitorsApi apiInstance = new MonitorsApi(defaultClient);

Monitor body =
new Monitor()
.name("Example-Monitor")
.type(MonitorType.LLM_OBSERVABILITY_ALERT)
.query("""
llm-observability("*").rollup("count").last("2h") > 0
""")
.message("LLM observability alert triggered")
.tags(Arrays.asList("test:examplemonitor", "env:ci"))
.options(
new MonitorOptions()
.thresholds(new MonitorThresholds())
.includeTags(true)
.notifyAudit(false));

try {
Monitor result = apiInstance.createMonitor(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MonitorsApi#createMonitor");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public class MonitorType extends ModelEnum<String> {
"cost alert",
"data-quality alert",
"network-path alert",
"data-jobs alert"));
"data-jobs alert",
"llm-observability alert"));

public static final MonitorType COMPOSITE = new MonitorType("composite");
public static final MonitorType EVENT_ALERT = new MonitorType("event alert");
Expand All @@ -75,6 +76,8 @@ public class MonitorType extends ModelEnum<String> {
public static final MonitorType DATA_QUALITY_ALERT = new MonitorType("data-quality alert");
public static final MonitorType NETWORK_PATH_ALERT = new MonitorType("network-path alert");
public static final MonitorType DATA_JOBS_ALERT = new MonitorType("data-jobs alert");
public static final MonitorType LLM_OBSERVABILITY_ALERT =
new MonitorType("llm-observability alert");

MonitorType(String value) {
super(value, allowedValues);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-08-11T15:01:12.326Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"message\": \"LLM observability alert triggered\", \"name\": \"Test-Create_an_LLM_Observability_monitor_returns_OK_response-1786460472\", \"options\": {\"include_tags\": true, \"notify_audit\": false, \"thresholds\": {\"critical\": 0}}, \"query\": \"llm-observability(\\\"*\\\").rollup(\\\"count\\\").last(\\\"2h\\\") > 0\", \"tags\": [\"test:testcreateanllmobservabilitymonitorreturnsokresponse1786460472\", \"env:ci\"], \"type\": \"llm-observability alert\"}"
},
"headers": {},
"method": "POST",
"path": "/api/v1/monitor",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"id\":312833678,\"org_id\":321813,\"type\":\"llm-observability alert\",\"name\":\"Test-Create_an_LLM_Observability_monitor_returns_OK_response-1786460472\",\"message\":\"LLM observability alert triggered\",\"tags\":[\"test:testcreateanllmobservabilitymonitorreturnsokresponse1786460472\",\"env:ci\"],\"query\":\"llm-observability(\\\"*\\\").rollup(\\\"count\\\").last(\\\"2h\\\") > 0\",\"options\":{\"include_tags\":true,\"notify_audit\":false,\"thresholds\":{\"critical\":0.0},\"notify_no_data\":false,\"new_host_delay\":300,\"groupby_simple_monitor\":false,\"silenced\":{}},\"multi\":false,\"created_at\":1786460473000,\"created\":\"2026-08-11T15:01:13.078330+00:00\",\"modified\":\"2026-08-11T15:01:13.078330+00:00\",\"deleted\":null,\"priority\":null,\"restricted_roles\":null,\"restriction_policy\":null,\"draft_status\":\"published\",\"assets\":[],\"overall_state_modified\":null,\"overall_state\":\"No Data\",\"creator\":{\"name\":\"Francesco Pighi\",\"handle\":\"francesco.pighi@datadoghq.com\",\"email\":\"francesco.pighi@datadoghq.com\",\"id\":21235577}}\n",
"headers": {
"Content-Type": [
"application/json"
]
},
"statusCode": 200,
"reasonPhrase": "OK"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "444d9614-ef08-53db-b75a-78d720740e17"
},
{
"httpRequest": {
"headers": {},
"method": "DELETE",
"path": "/api/v1/monitor/312833678",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"deleted_monitor_id\":312833678}\n",
"headers": {
"Content-Type": [
"application/json"
]
},
"statusCode": 200,
"reasonPhrase": "OK"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "31cda55f-eafe-51e3-55f7-d7e2ef82d121"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f01"
"id": "3f83caea-c405-97df-c554-ee2d9f9e4f02"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "73fd406e-d686-10bd-50ee-83f2c499e8a9"
"id": "73fd406e-d686-10bd-50ee-83f2c499e8a8"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9ee9"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eee"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea"
},
{
"httpRequest": {
Expand All @@ -53,7 +53,7 @@
"timeToLive": {
"unlimited": true
},
"id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6f"
"id": "ab2123e3-6fb5-0f90-fe98-365e086c9c6e"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cd"
"id": "a3ebb722-60eb-fa89-589a-ff3630e3a2cc"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eee"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "3d4d0603-9fed-1cc5-8004-086b9b6ef691"
"id": "3d4d0603-9fed-1cc5-8004-086b9b6ef690"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e"
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0f"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"timeToLive": {
"unlimited": true
},
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d10"
"id": "d0ec7736-ef6c-d071-3390-4a5c3a301d0e"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eea"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eeb"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eed"
"id": "194b15fb-fcae-9b9a-e1a7-0daa19dc9eec"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145ef"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f6"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145f0"
"id": "79babc38-7a70-5347-c8a6-73b0e70145eb"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145f6"
"id": "79babc38-7a70-5347-c8a6-73b0e70145fd"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145e9"
"id": "79babc38-7a70-5347-c8a6-73b0e70145ee"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2e"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d31"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d33"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2c"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d2d"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d34"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d35"
"id": "6574cf7e-1c55-24e1-45d2-b92f9fa74d30"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffe"
"id": "6bb82102-e994-f0d1-ee96-e1e3f1d80ffd"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145ed"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f9"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"timeToLive": {
"unlimited": true
},
"id": "79babc38-7a70-5347-c8a6-73b0e70145fa"
"id": "79babc38-7a70-5347-c8a6-73b0e70145f0"
},
{
"httpRequest": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"timeToLive": {
"unlimited": true
},
"id": "58d1c8d5-bb10-59b9-aa85-8871f8479221"
"id": "58d1c8d5-bb10-59b9-aa85-8871f847921f"
},
{
"httpRequest": {
Expand Down
Loading
Loading