Skip to content

add x-simple-model-name to audit logs spec #2587

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-27 17:12:13.841874",
"spec_repo_commit": "ed439f7c"
"regenerated": "2025-05-28 13:03:09.871786",
"spec_repo_commit": "3fd2b5f6"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-27 17:12:13.857049",
"spec_repo_commit": "ed439f7c"
"regenerated": "2025-05-28 13:03:09.921543",
"spec_repo_commit": "3fd2b5f6"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,7 @@ components:
type:
$ref: '#/components/schemas/AuditLogsEventType'
type: object
x-model-simple-name: Event
AuditLogsEventAttributes:
description: JSON object containing all event attributes and their associated
values.
Expand Down Expand Up @@ -3527,6 +3528,7 @@ components:
format: date-time
type: string
type: object
x-model-simple-name: EventAttributes
AuditLogsEventType:
default: audit
description: Type of the event.
Expand All @@ -3536,6 +3538,7 @@ components:
type: string
x-enum-varnames:
- Audit
x-model-simple-name: EventType
AuditLogsEventsResponse:
description: Response object with all events matching the request and pagination
information.
Expand All @@ -3550,6 +3553,7 @@ components:
meta:
$ref: '#/components/schemas/AuditLogsResponseMetadata'
type: object
x-model-simple-name: EventsResponse
AuditLogsQueryFilter:
description: Search and filter query settings.
properties:
Expand All @@ -3571,6 +3575,7 @@ components:
example: now
type: string
type: object
x-model-simple-name: QueryFilter
AuditLogsQueryOptions:
description: 'Global query options that are used during the query.

Expand All @@ -3588,6 +3593,7 @@ components:
example: GMT
type: string
type: object
x-model-simple-name: QueryOptions
AuditLogsQueryPageOptions:
description: Paging attributes for listing events.
properties:
Expand All @@ -3604,6 +3610,7 @@ components:
maximum: 1000
type: integer
type: object
x-model-simple-name: PageOptions
AuditLogsResponseLinks:
description: Links attributes.
properties:
Expand All @@ -3615,6 +3622,7 @@ components:
example: https://app.datadoghq.com/api/v2/audit/event?filter[query]=foo&page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
type: string
type: object
x-model-simple-name: ResponseLinks
AuditLogsResponseMetadata:
description: The metadata associated with a request.
properties:
Expand All @@ -3640,6 +3648,7 @@ components:
$ref: '#/components/schemas/AuditLogsWarning'
type: array
type: object
x-model-simple-name: ResponseMetadata
AuditLogsResponsePage:
description: Paging attributes.
properties:
Expand All @@ -3649,6 +3658,7 @@ components:
example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
type: string
type: object
x-model-simple-name: ResponsePage
AuditLogsResponseStatus:
description: The status of the response.
enum:
Expand All @@ -3659,6 +3669,7 @@ components:
x-enum-varnames:
- DONE
- TIMEOUT
x-model-simple-name: ResponseStatus
AuditLogsSearchEventsRequest:
description: The request for a Audit Logs events list.
properties:
Expand All @@ -3671,6 +3682,7 @@ components:
sort:
$ref: '#/components/schemas/AuditLogsSort'
type: object
x-model-simple-name: SearchRequest
AuditLogsSort:
description: Sort parameters when querying events.
enum:
Expand All @@ -3680,6 +3692,7 @@ components:
x-enum-varnames:
- TIMESTAMP_ASCENDING
- TIMESTAMP_DESCENDING
x-model-simple-name: Sort
AuditLogsWarning:
description: Warning message indicating something that went wrong with the query.
properties:
Expand All @@ -3697,6 +3710,7 @@ components:
from the other indexes
type: string
type: object
x-model-simple-name: Warning
AuthNMapping:
description: The AuthN Mapping object returned by API.
properties:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:43.940Z
2025-04-03T20:58:02.871Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1744280983","host:abc"]},"name":"test
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_bad_request_response-1743713882","host:abc"]},"name":"test
rule","recipients":["@slack-test-channel","@jira-test"]},"type":"monitor-notification-rule"}}'
headers:
accept:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:44.273Z
2025-04-03T20:58:03.005Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984"]},"name":"test
body: '{"data":{"attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883"]},"name":"test
rule","recipients":["slack-test-channel","jira-test"]},"type":"monitor-notification-rule"}}'
headers:
accept:
Expand All @@ -11,8 +11,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
response:
body:
string: '{"data":{"type":"monitor-notification-rule","attributes":{"filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1744280984"]},"recipients":["slack-test-channel","jira-test"],"name":"test
rule","created_at":"2025-04-10T10:29:44.595607+00:00","modified_at":"1970-01-01T00:00:00+00:00"},"id":"a3323ef6-2a04-4ef9-8de8-cbcff5c3c203","relationships":{"created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}}}},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":"frog","handle":"[email protected]","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2025-04-07T20:19:46.118466+00:00","email":"[email protected]","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"}}]}
string: '{"data":{"type":"monitor-notification-rule","id":"55959a04-463a-4579-8386-8c2ca120aa52","attributes":{"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","filter":{"tags":["test:test-create_a_monitor_notification_rule_returns_ok_response-1743713883"]},"created_at":"2025-04-03T20:58:03.137650+00:00","recipients":["slack-test-channel","jira-test"],"name":"test
rule","modified_at":"1970-01-01T00:00:00+00:00"}}}

'
headers:
Expand All @@ -27,7 +27,7 @@ interactions:
accept:
- '*/*'
method: DELETE
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/a3323ef6-2a04-4ef9-8de8-cbcff5c3c203
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/55959a04-463a-4579-8386-8c2ca120aa52
response:
body:
string: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:46.694Z
2025-04-03T20:58:03.324Z
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/00000000-0000-1234-0000-000000000000
response:
body:
string: '{"errors":["Monitor Notification Rule not found"]}'
string: '{"errors":["Monitor notification rule not found"]}'
headers:
content-type:
- application/json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:47.053Z
2025-04-03T20:58:03.428Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"filter":{"tags":["app:test-delete_a_monitor_notification_rule_returns_ok_response-1744280987"]},"name":"test
body: '{"data":{"attributes":{"filter":{"tags":["app:test-delete_a_monitor_notification_rule_returns_ok_response-1743713883"]},"name":"test
rule","recipients":["slack-monitor-app"]},"type":"monitor-notification-rule"}}'
headers:
accept:
Expand All @@ -11,8 +11,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
response:
body:
string: '{"data":{"type":"monitor-notification-rule","relationships":{"created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}}},"attributes":{"filter":{"tags":["app:test-delete_a_monitor_notification_rule_returns_ok_response-1744280987"]},"created_at":"2025-04-10T10:29:47.326243+00:00","name":"test
rule","recipients":["slack-monitor-app"],"modified_at":"1970-01-01T00:00:00+00:00"},"id":"66e399af-c07e-414d-b4f2-93e196d7b7b7"},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":"frog","handle":"[email protected]","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2025-04-07T20:19:46.118466+00:00","email":"[email protected]","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"}}]}
string: '{"data":{"type":"monitor-notification-rule","id":"cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e","attributes":{"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","name":"test
rule","created_at":"2025-04-03T20:58:03.555501+00:00","modified_at":"1970-01-01T00:00:00+00:00","filter":{"tags":["app:test-delete_a_monitor_notification_rule_returns_ok_response-1743713883"]},"recipients":["slack-monitor-app"]}}}
'
headers:
Expand All @@ -27,7 +27,7 @@ interactions:
accept:
- '*/*'
method: DELETE
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/66e399af-c07e-414d-b4f2-93e196d7b7b7
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e
response:
body:
string: ''
Expand All @@ -43,10 +43,10 @@ interactions:
accept:
- '*/*'
method: DELETE
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/66e399af-c07e-414d-b4f2-93e196d7b7b7
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/cef4c2c7-27b3-4259-9bdd-ec434b4a8a0e
response:
body:
string: '{"errors":["Monitor Notification Rule not found"]}'
string: '{"errors":["Monitor notification rule not found"]}'
headers:
content-type:
- application/json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:52.213Z
2025-04-03T20:58:03.884Z
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/00000000-0000-1234-0000-000000000000
response:
body:
string: '{"errors":["Monitor Notification Rule not found"]}'
string: '{"errors":["Monitor notification rule not found"]}'
headers:
content-type:
- application/json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:52.537Z
2025-04-03T20:58:04.007Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992"]},"name":"test
body: '{"data":{"attributes":{"filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884"]},"name":"test
rule","recipients":["slack-monitor-app"]},"type":"monitor-notification-rule"}}'
headers:
accept:
Expand All @@ -11,8 +11,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
response:
body:
string: '{"data":{"type":"monitor-notification-rule","attributes":{"created_at":"2025-04-10T10:29:52.938158+00:00","filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992"]},"recipients":["slack-monitor-app"],"name":"test
rule","modified_at":"1970-01-01T00:00:00+00:00"},"id":"97afb4ac-6953-445f-9a0a-d225673449a6","relationships":{"created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}}}},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":"frog","handle":"[email protected]","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2025-04-07T20:19:46.118466+00:00","email":"[email protected]","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"}}]}
string: '{"data":{"type":"monitor-notification-rule","attributes":{"filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884"]},"created_at":"2025-04-03T20:58:04.156763+00:00","recipients":["slack-monitor-app"],"modified_at":"1970-01-01T00:00:00+00:00","creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","name":"test
rule"},"id":"8e0ab047-d891-476c-8fb1-da4d80ddc129"}}
'
headers:
Expand All @@ -27,11 +27,11 @@ interactions:
accept:
- application/json
method: GET
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/97afb4ac-6953-445f-9a0a-d225673449a6
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/8e0ab047-d891-476c-8fb1-da4d80ddc129
response:
body:
string: '{"data":{"type":"monitor-notification-rule","attributes":{"name":"test
rule","created_at":"2025-04-10T10:29:52.938158+00:00","recipients":["slack-monitor-app"],"filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1744280992"]},"modified_at":"2025-04-10T10:29:52.948837+00:00"},"id":"97afb4ac-6953-445f-9a0a-d225673449a6"}}
string: '{"data":{"type":"monitor-notification-rule","attributes":{"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","name":"test
rule","created_at":"2025-04-03T20:58:04.156763+00:00","recipients":["slack-monitor-app"],"modified_at":"2025-04-03T20:58:04.164001+00:00","filter":{"tags":["app:test-get_a_monitor_notification_rule_returns_ok_response-1743713884"]}},"id":"8e0ab047-d891-476c-8fb1-da4d80ddc129"}}
'
headers:
Expand All @@ -46,7 +46,7 @@ interactions:
accept:
- '*/*'
method: DELETE
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/97afb4ac-6953-445f-9a0a-d225673449a6
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/8e0ab047-d891-476c-8fb1-da4d80ddc129
response:
body:
string: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:54.937Z
2025-04-03T20:58:04.487Z
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: '{"data":{"attributes":{"filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994"]},"name":"test
body: '{"data":{"attributes":{"filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884"]},"name":"test
rule","recipients":["slack-monitor-app"]},"type":"monitor-notification-rule"}}'
headers:
accept:
Expand All @@ -11,8 +11,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
response:
body:
string: '{"data":{"type":"monitor-notification-rule","attributes":{"name":"test
rule","filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994"]},"recipients":["slack-monitor-app"],"modified_at":"1970-01-01T00:00:00+00:00","created_at":"2025-04-10T10:29:55.362004+00:00"},"relationships":{"created_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}}},"id":"b7122864-6517-45d3-8dc1-f226a08dd8f4"},"included":[{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0","attributes":{"name":"frog","handle":"[email protected]","created_at":"2019-10-02T08:15:39.795051+00:00","modified_at":"2025-04-07T20:19:46.118466+00:00","email":"[email protected]","icon":"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro","title":null,"verified":true,"service_account":false,"disabled":false,"allowed_login_methods":[],"status":"Active"}}]}
string: '{"data":{"type":"monitor-notification-rule","attributes":{"filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884"]},"recipients":["slack-monitor-app"],"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","modified_at":"1970-01-01T00:00:00+00:00","name":"test
rule","created_at":"2025-04-03T20:58:04.604345+00:00"},"id":"6e5b7a93-37b5-44b8-9098-2d31b6dd84b6"}}

'
headers:
Expand All @@ -30,8 +30,8 @@ interactions:
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule
response:
body:
string: '{"data":[{"type":"monitor-notification-rule","attributes":{"filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1744280994"]},"name":"test
rule","recipients":["slack-monitor-app"],"modified_at":"2025-04-10T10:29:55.373154+00:00","created_at":"2025-04-10T10:29:55.362004+00:00"},"id":"b7122864-6517-45d3-8dc1-f226a08dd8f4"}]}
string: '{"data":[{"type":"monitor-notification-rule","id":"6e5b7a93-37b5-44b8-9098-2d31b6dd84b6","attributes":{"creator_uuid":"3ad549bf-eba0-11e9-a77a-0705486660d0","name":"test
rule","recipients":["slack-monitor-app"],"created_at":"2025-04-03T20:58:04.604345+00:00","filter":{"tags":["app:test-get_all_monitor_notification_rules_returns_ok_response-1743713884"]},"modified_at":"2025-04-03T20:58:04.616893+00:00"}}]}

'
headers:
Expand All @@ -46,7 +46,7 @@ interactions:
accept:
- '*/*'
method: DELETE
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/b7122864-6517-45d3-8dc1-f226a08dd8f4
uri: https://api.datadoghq.com/api/v2/monitor/notification_rule/6e5b7a93-37b5-44b8-9098-2d31b6dd84b6
response:
body:
string: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-04-10T10:29:56.210Z
2025-04-03T20:58:04.953Z
Loading