Skip to content

Commit e5ec01d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[ECT-2482] Improve documentation to redirect common events usage to V1 endpoint (#2322)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 68110c7 commit e5ec01d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-13 16:09:27.276499",
8-
"spec_repo_commit": "936a5463"
7+
"regenerated": "2024-12-16 18:27:46.347897",
8+
"spec_repo_commit": "a179b579"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-13 16:09:27.294189",
13-
"spec_repo_commit": "936a5463"
12+
"regenerated": "2024-12-16 18:27:46.361768",
13+
"spec_repo_commit": "a179b579"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31987,12 +31987,10 @@ paths:
3198731987
permissions:
3198831988
- events_read
3198931989
post:
31990-
description: 'This endpoint allows you to post events.
31991-
31992-
31993-
Only events with **`change` category** are under General Availability. Refer
31994-
to [Change Tracking](https://docs.datadoghq.com/change_tracking) for further
31995-
details.'
31990+
description: "This endpoint allows you to post events.\n\n\u2705 **Only events
31991+
with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking)
31992+
for more details.\n\n\u274C For use cases involving other event categories,
31993+
please use the V1 endpoint."
3199631994
operationId: CreateEvent
3199731995
requestBody:
3199831996
content:

src/datadog_api_client/v2/api/events_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def create_event(
130130
131131
This endpoint allows you to post events.
132132
133-
Only events with **change category** are under General Availability. Refer to `Change Tracking <https://docs.datadoghq.com/change_tracking>`_ for further details.
133+
✅ **Only events with the change category** are in General Availability. See `Change Tracking <https://docs.datadoghq.com/change_tracking>`_ for more details.
134+
135+
❌ For use cases involving other event categories, please use the V1 endpoint.
134136
135137
:param body: Event request object
136138
:type body: EventCreateRequestPayload

0 commit comments

Comments
 (0)