Skip to content

Commit 36a9b08

Browse files
author
samanthadrago
committed
[api] add event delete api docs for shell
1 parent d723c4e commit 36a9b08

File tree

7 files changed

+37
-0
lines changed

7 files changed

+37
-0
lines changed

code_snippets/api-events-delete.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Deleting events is not yet implemented in the Python
2+
# library. The docs will be updated when it has been implemented.

code_snippets/api-events-delete.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Deleting events is not yet implemented in the Ruby
2+
# library. The docs will be updated when it has been implemented.

code_snippets/api-events-delete.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
api_key=9775a026f1ca7d1c6c5af9d94d9595a4
2+
app_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
3+
event_id=1377281704830403917
4+
5+
curl -X DELETE "https://app.datadoghq.com/api/v1/events/${event_id}?api_key=${api_key}&application_key=${app_key}"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## Deleting events is not yet implemented in the Python
2+
# library. The docs will be updated when it has been implemented.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Deleting events is not yet implemented in the Ruby
2+
# library. The docs will be updated when it has been implemented.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"deleted_event_id": "1377281704830403917"}

content/api/index.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,29 @@ <h5>Example Response</h5>
306306
</div>
307307
</div>
308308

309+
<div class="int-anchor" id="events-delete"></div><a href="#events-delete"><h4>Delete an Event</h4></a>
310+
<div class="row">
311+
<%= left_side_div %>
312+
<p>
313+
This end point allows you to delete an event.
314+
</p>
315+
<h5>Arguments</h5>
316+
<%= no_args %>
317+
</div>
318+
<%= right_side_div %>
319+
<h5>Signature</h5>
320+
<code>DELETE /api/v1/events/:event_id</code>
321+
<h5>Example Request</h5>
322+
<%= snippet_code_block "api-events-delete.py" %>
323+
<%= snippet_code_block "api-events-delete.sh" %>
324+
<%= snippet_code_block "api-events-delete.rb" %>
325+
<h5>Example Response</h5>
326+
<%= snippet_result_code_block "api-events-delete.py" %>
327+
<%= snippet_result_code_block "api-events-delete.sh" %>
328+
<%= snippet_result_code_block "api-events-delete.rb" %>
329+
</div>
330+
</div>
331+
309332
<div class="int-anchor" id="events-get-all"></div><a href="#events-get-all"><h4>Query the Event Stream</h4></a>
310333
<div class="row">
311334
<%= left_side_div %>

0 commit comments

Comments
 (0)