datadog_api_client 2.37.0 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +20 -1
- data/.generator/schemas/v2/openapi.yaml +1083 -74
- data/CHANGELOG.md +20 -0
- data/examples/v2/action-connection/GetAppKeyRegistration.rb +5 -0
- data/examples/v2/action-connection/ListAppKeyRegistrations.rb +5 -0
- data/examples/v2/action-connection/RegisterAppKey.rb +5 -0
- data/examples/v2/action-connection/UnregisterAppKey.rb +5 -0
- data/examples/v2/events/CreateEvent.rb +4 -2
- data/examples/v2/monitors/CreateMonitorUserTemplate.rb +37 -0
- data/examples/v2/monitors/DeleteMonitorUserTemplate.rb +8 -0
- data/examples/v2/monitors/GetMonitorUserTemplate.rb +11 -0
- data/examples/v2/monitors/ListMonitorUserTemplates.rb +8 -0
- data/examples/v2/monitors/UpdateMonitorUserTemplate.rb +41 -0
- data/examples/v2/monitors/ValidateExistingMonitorUserTemplate.rb +41 -0
- data/examples/v2/monitors/ValidateMonitorUserTemplate.rb +37 -0
- data/lib/datadog_api_client/configuration.rb +59 -0
- data/lib/datadog_api_client/inflector.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +12 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_dns_server_port.rb +63 -0
- data/lib/datadog_api_client/v2/api/action_connection_api.rb +263 -4
- data/lib/datadog_api_client/v2/api/app_builder_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/events_api.rb +8 -4
- data/lib/datadog_api_client/v2/api/monitors_api.rb +512 -0
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +8 -8
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes_links_items.rb +152 -0
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes_links_items_category.rb +28 -0
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes_priority.rb +30 -0
- data/lib/datadog_api_client/v2/models/alert_event_custom_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/app_key_registration_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/app_key_registration_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes.rb +19 -33
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_author.rb +10 -31
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource.rb +15 -32
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_changed_resource_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_impacted_resources_items.rb +15 -32
- data/lib/datadog_api_client/v2/models/change_event_custom_attributes_impacted_resources_items_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/event_category.rb +2 -1
- data/lib/datadog_api_client/v2/models/event_create_request.rb +32 -3
- data/lib/datadog_api_client/v2/models/event_create_request_payload.rb +20 -2
- data/lib/datadog_api_client/v2/models/event_create_response.rb +3 -3
- data/lib/datadog_api_client/v2/models/event_create_response_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/event_create_response_attributes_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/event_create_response_attributes_attributes_evt.rb +14 -4
- data/lib/datadog_api_client/v2/models/event_create_response_payload.rb +15 -5
- data/lib/datadog_api_client/v2/models/event_create_response_payload_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/event_payload.rb +48 -36
- data/lib/datadog_api_client/v2/models/event_payload_attributes.rb +3 -2
- data/lib/datadog_api_client/v2/models/event_payload_integration_id.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_app_key_registration_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/job_definition_from_rule.rb +1 -26
- data/lib/datadog_api_client/v2/models/list_app_key_registrations_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/list_app_key_registrations_response_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template.rb +200 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_create_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_request_attributes.rb +172 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_response_attributes.rb +188 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_response_data_with_versions.rb +125 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_template_variables_items.rb +132 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/monitor_user_template_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/register_app_key_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/simple_monitor_user_template.rb +188 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +41 -1
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 2.38.0/2025-06-30
|
4
|
+
|
5
|
+
### Fixed
|
6
|
+
* Synthetics mobile test `message` field is now required [#2500](https://github.com/DataDog/datadog-api-client-ruby/pull/2500)
|
7
|
+
* Make dns port be string and number [#2484](https://github.com/DataDog/datadog-api-client-ruby/pull/2484)
|
8
|
+
|
9
|
+
### Security
|
10
|
+
* Remove caseIndex from historical jobs api spec [#2499](https://github.com/DataDog/datadog-api-client-ruby/pull/2499)
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
* Update events intake specs for v2 Events post endpoint [#2495](https://github.com/DataDog/datadog-api-client-ruby/pull/2495)
|
14
|
+
|
15
|
+
### Added
|
16
|
+
* Update Incident API specs to include `is_test` in `POST /incidents` and incidents response [#2494](https://github.com/DataDog/datadog-api-client-ruby/pull/2494)
|
17
|
+
* Add App Key Registration API [#2488](https://github.com/DataDog/datadog-api-client-ruby/pull/2488)
|
18
|
+
* Add Monitor Template API [#2425](https://github.com/DataDog/datadog-api-client-ruby/pull/2425)
|
19
|
+
|
20
|
+
### Deprecated
|
21
|
+
* Deprecate SLO metadata fields in api spec [#2454](https://github.com/DataDog/datadog-api-client-ruby/pull/2454)
|
22
|
+
|
3
23
|
## 2.37.0/2025-06-24
|
4
24
|
|
5
25
|
### Fixed
|
@@ -6,9 +6,10 @@ api_instance = DatadogAPIClient::V2::EventsAPI.new
|
|
6
6
|
body = DatadogAPIClient::V2::EventCreateRequestPayload.new({
|
7
7
|
data: DatadogAPIClient::V2::EventCreateRequest.new({
|
8
8
|
attributes: DatadogAPIClient::V2::EventPayload.new({
|
9
|
+
aggregation_key: "aggregation_key_123",
|
9
10
|
attributes: DatadogAPIClient::V2::ChangeEventCustomAttributes.new({
|
10
11
|
author: DatadogAPIClient::V2::ChangeEventCustomAttributesAuthor.new({
|
11
|
-
name: "
|
12
|
+
name: "example@datadog.com",
|
12
13
|
type: DatadogAPIClient::V2::ChangeEventCustomAttributesAuthorType::USER,
|
13
14
|
}),
|
14
15
|
change_metadata: {
|
@@ -32,9 +33,10 @@ body = DatadogAPIClient::V2::EventCreateRequestPayload.new({
|
|
32
33
|
},
|
33
34
|
}),
|
34
35
|
category: DatadogAPIClient::V2::EventCategory::CHANGE,
|
36
|
+
integration_id: DatadogAPIClient::V2::EventPayloadIntegrationId::CUSTOM_EVENTS,
|
35
37
|
message: "payment_processed feature flag has been enabled",
|
36
38
|
tags: [
|
37
|
-
"env:
|
39
|
+
"env:api_client_test",
|
38
40
|
],
|
39
41
|
title: "payment_processed feature flag updated",
|
40
42
|
}),
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Create a monitor user template returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.create_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::MonitorUserTemplateCreateRequest.new({
|
10
|
+
data: DatadogAPIClient::V2::MonitorUserTemplateCreateData.new({
|
11
|
+
attributes: DatadogAPIClient::V2::MonitorUserTemplateRequestAttributes.new({
|
12
|
+
description: "A description.",
|
13
|
+
monitor_definition: {
|
14
|
+
"message": "A msg.", "name": "A name example-monitor", "query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", "type": "query alert",
|
15
|
+
},
|
16
|
+
tags: [
|
17
|
+
"integration:Azure",
|
18
|
+
],
|
19
|
+
template_variables: [
|
20
|
+
DatadogAPIClient::V2::MonitorUserTemplateTemplateVariablesItems.new({
|
21
|
+
available_values: [
|
22
|
+
"value1",
|
23
|
+
"value2",
|
24
|
+
],
|
25
|
+
defaults: [
|
26
|
+
"defaultValue",
|
27
|
+
],
|
28
|
+
name: "regionName",
|
29
|
+
tag_key: "datacenter",
|
30
|
+
}),
|
31
|
+
],
|
32
|
+
title: "Postgres DB example-monitor",
|
33
|
+
}),
|
34
|
+
type: DatadogAPIClient::V2::MonitorUserTemplateResourceType::MONITOR_USER_TEMPLATE,
|
35
|
+
}),
|
36
|
+
})
|
37
|
+
p api_instance.create_monitor_user_template(body)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Delete a monitor user template returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.delete_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
api_instance.delete_monitor_user_template("template_id")
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Get a monitor user template returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.get_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
|
9
|
+
# there is a valid "monitor_user_template" in the system
|
10
|
+
MONITOR_USER_TEMPLATE_DATA_ID = ENV["MONITOR_USER_TEMPLATE_DATA_ID"]
|
11
|
+
p api_instance.get_monitor_user_template(MONITOR_USER_TEMPLATE_DATA_ID)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Get all monitor user templates returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.list_monitor_user_templates".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
p api_instance.list_monitor_user_templates()
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Update a monitor user template to a new version returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.update_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
|
9
|
+
# there is a valid "monitor_user_template" in the system
|
10
|
+
MONITOR_USER_TEMPLATE_DATA_ID = ENV["MONITOR_USER_TEMPLATE_DATA_ID"]
|
11
|
+
|
12
|
+
body = DatadogAPIClient::V2::MonitorUserTemplateUpdateRequest.new({
|
13
|
+
data: DatadogAPIClient::V2::MonitorUserTemplateUpdateData.new({
|
14
|
+
attributes: DatadogAPIClient::V2::MonitorUserTemplateRequestAttributes.new({
|
15
|
+
description: "A description.",
|
16
|
+
monitor_definition: {
|
17
|
+
"message": "A msg.", "name": "A name example-monitor", "query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", "type": "query alert",
|
18
|
+
},
|
19
|
+
tags: [
|
20
|
+
"integration:Azure",
|
21
|
+
],
|
22
|
+
template_variables: [
|
23
|
+
DatadogAPIClient::V2::MonitorUserTemplateTemplateVariablesItems.new({
|
24
|
+
available_values: [
|
25
|
+
"value1",
|
26
|
+
"value2",
|
27
|
+
],
|
28
|
+
defaults: [
|
29
|
+
"defaultValue",
|
30
|
+
],
|
31
|
+
name: "regionName",
|
32
|
+
tag_key: "datacenter",
|
33
|
+
}),
|
34
|
+
],
|
35
|
+
title: "Postgres DB example-monitor",
|
36
|
+
}),
|
37
|
+
id: MONITOR_USER_TEMPLATE_DATA_ID,
|
38
|
+
type: DatadogAPIClient::V2::MonitorUserTemplateResourceType::MONITOR_USER_TEMPLATE,
|
39
|
+
}),
|
40
|
+
})
|
41
|
+
p api_instance.update_monitor_user_template(MONITOR_USER_TEMPLATE_DATA_ID, body)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Validate an existing monitor user template returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.validate_existing_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
|
9
|
+
# there is a valid "monitor_user_template" in the system
|
10
|
+
MONITOR_USER_TEMPLATE_DATA_ID = ENV["MONITOR_USER_TEMPLATE_DATA_ID"]
|
11
|
+
|
12
|
+
body = DatadogAPIClient::V2::MonitorUserTemplateUpdateRequest.new({
|
13
|
+
data: DatadogAPIClient::V2::MonitorUserTemplateUpdateData.new({
|
14
|
+
attributes: DatadogAPIClient::V2::MonitorUserTemplateRequestAttributes.new({
|
15
|
+
description: "A description.",
|
16
|
+
monitor_definition: {
|
17
|
+
"message": "A msg.", "name": "A name example-monitor", "query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", "type": "query alert",
|
18
|
+
},
|
19
|
+
tags: [
|
20
|
+
"integration:Azure",
|
21
|
+
],
|
22
|
+
template_variables: [
|
23
|
+
DatadogAPIClient::V2::MonitorUserTemplateTemplateVariablesItems.new({
|
24
|
+
available_values: [
|
25
|
+
"value1",
|
26
|
+
"value2",
|
27
|
+
],
|
28
|
+
defaults: [
|
29
|
+
"defaultValue",
|
30
|
+
],
|
31
|
+
name: "regionName",
|
32
|
+
tag_key: "datacenter",
|
33
|
+
}),
|
34
|
+
],
|
35
|
+
title: "Postgres DB example-monitor",
|
36
|
+
}),
|
37
|
+
id: MONITOR_USER_TEMPLATE_DATA_ID,
|
38
|
+
type: DatadogAPIClient::V2::MonitorUserTemplateResourceType::MONITOR_USER_TEMPLATE,
|
39
|
+
}),
|
40
|
+
})
|
41
|
+
api_instance.validate_existing_monitor_user_template(MONITOR_USER_TEMPLATE_DATA_ID, body)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Validate a monitor user template returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
DatadogAPIClient.configure do |config|
|
5
|
+
config.unstable_operations["v2.validate_monitor_user_template".to_sym] = true
|
6
|
+
end
|
7
|
+
api_instance = DatadogAPIClient::V2::MonitorsAPI.new
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::MonitorUserTemplateCreateRequest.new({
|
10
|
+
data: DatadogAPIClient::V2::MonitorUserTemplateCreateData.new({
|
11
|
+
attributes: DatadogAPIClient::V2::MonitorUserTemplateRequestAttributes.new({
|
12
|
+
description: "A description.",
|
13
|
+
monitor_definition: {
|
14
|
+
"message": "A msg.", "name": "A name example-monitor", "query": "avg(last_5m):sum:system.net.bytes_rcvd{host:host0} > 100", "type": "query alert",
|
15
|
+
},
|
16
|
+
tags: [
|
17
|
+
"integration:Azure",
|
18
|
+
],
|
19
|
+
template_variables: [
|
20
|
+
DatadogAPIClient::V2::MonitorUserTemplateTemplateVariablesItems.new({
|
21
|
+
available_values: [
|
22
|
+
"value1",
|
23
|
+
"value2",
|
24
|
+
],
|
25
|
+
defaults: [
|
26
|
+
"defaultValue",
|
27
|
+
],
|
28
|
+
name: "regionName",
|
29
|
+
tag_key: "datacenter",
|
30
|
+
}),
|
31
|
+
],
|
32
|
+
title: "Postgres DB example-monitor",
|
33
|
+
}),
|
34
|
+
type: DatadogAPIClient::V2::MonitorUserTemplateResourceType::MONITOR_USER_TEMPLATE,
|
35
|
+
}),
|
36
|
+
})
|
37
|
+
api_instance.validate_monitor_user_template(body)
|
@@ -242,10 +242,17 @@ module DatadogAPIClient
|
|
242
242
|
"v2.update_aws_account": false,
|
243
243
|
"v2.list_aws_logs_services": false,
|
244
244
|
"v2.create_monitor_notification_rule": false,
|
245
|
+
"v2.create_monitor_user_template": false,
|
245
246
|
"v2.delete_monitor_notification_rule": false,
|
247
|
+
"v2.delete_monitor_user_template": false,
|
246
248
|
"v2.get_monitor_notification_rule": false,
|
247
249
|
"v2.get_monitor_notification_rules": false,
|
250
|
+
"v2.get_monitor_user_template": false,
|
251
|
+
"v2.list_monitor_user_templates": false,
|
248
252
|
"v2.update_monitor_notification_rule": false,
|
253
|
+
"v2.update_monitor_user_template": false,
|
254
|
+
"v2.validate_existing_monitor_user_template": false,
|
255
|
+
"v2.validate_monitor_user_template": false,
|
249
256
|
"v2.get_aggregated_connections": false,
|
250
257
|
"v2.create_pipeline": false,
|
251
258
|
"v2.delete_pipeline": false,
|
@@ -538,6 +545,58 @@ module DatadogAPIClient
|
|
538
545
|
}
|
539
546
|
}
|
540
547
|
],
|
548
|
+
"v2.create_event": [
|
549
|
+
{
|
550
|
+
url: +"https://{subdomain}.{site}",
|
551
|
+
description: "No description provided",
|
552
|
+
variables: {
|
553
|
+
site: {
|
554
|
+
description: "The regional site for customers.",
|
555
|
+
default_value: "datadoghq.com",
|
556
|
+
enum_values: [
|
557
|
+
"datadoghq.com",
|
558
|
+
"us3.datadoghq.com",
|
559
|
+
"us5.datadoghq.com",
|
560
|
+
"ap1.datadoghq.com",
|
561
|
+
"datadoghq.eu",
|
562
|
+
"ddog-gov.com"
|
563
|
+
]
|
564
|
+
},
|
565
|
+
subdomain: {
|
566
|
+
description: "The subdomain where the API is deployed.",
|
567
|
+
default_value: "event-management-intake",
|
568
|
+
}
|
569
|
+
}
|
570
|
+
},
|
571
|
+
{
|
572
|
+
url: +"{protocol}://{name}",
|
573
|
+
description: "No description provided",
|
574
|
+
variables: {
|
575
|
+
name: {
|
576
|
+
description: "Full site DNS name.",
|
577
|
+
default_value: "event-management-intake.datadoghq.com",
|
578
|
+
},
|
579
|
+
protocol: {
|
580
|
+
description: "The protocol for accessing the API.",
|
581
|
+
default_value: "https",
|
582
|
+
}
|
583
|
+
}
|
584
|
+
},
|
585
|
+
{
|
586
|
+
url: +"https://{subdomain}.{site}",
|
587
|
+
description: "No description provided",
|
588
|
+
variables: {
|
589
|
+
site: {
|
590
|
+
description: "Any Datadog deployment.",
|
591
|
+
default_value: "datadoghq.com",
|
592
|
+
},
|
593
|
+
subdomain: {
|
594
|
+
description: "The subdomain where the API is deployed.",
|
595
|
+
default_value: "event-management-intake",
|
596
|
+
}
|
597
|
+
}
|
598
|
+
}
|
599
|
+
],
|
541
600
|
"v2.submit_log": [
|
542
601
|
{
|
543
602
|
url: +"https://{subdomain}.{site}",
|
@@ -711,6 +711,7 @@ module DatadogAPIClient
|
|
711
711
|
"v1.synthetics_test_request_body_type" => "SyntheticsTestRequestBodyType",
|
712
712
|
"v1.synthetics_test_request_certificate" => "SyntheticsTestRequestCertificate",
|
713
713
|
"v1.synthetics_test_request_certificate_item" => "SyntheticsTestRequestCertificateItem",
|
714
|
+
"v1.synthetics_test_request_dns_server_port" => "SyntheticsTestRequestDNSServerPort",
|
714
715
|
"v1.synthetics_test_request_port" => "SyntheticsTestRequestPort",
|
715
716
|
"v1.synthetics_test_request_proxy" => "SyntheticsTestRequestProxy",
|
716
717
|
"v1.synthetics_test_restriction_policy_binding" => "SyntheticsTestRestrictionPolicyBinding",
|
@@ -957,6 +958,11 @@ module DatadogAPIClient
|
|
957
958
|
"v2.active_billing_dimensions_type" => "ActiveBillingDimensionsType",
|
958
959
|
"v2.add_member_team_request" => "AddMemberTeamRequest",
|
959
960
|
"v2.advisory" => "Advisory",
|
961
|
+
"v2.alert_event_custom_attributes" => "AlertEventCustomAttributes",
|
962
|
+
"v2.alert_event_custom_attributes_links_items" => "AlertEventCustomAttributesLinksItems",
|
963
|
+
"v2.alert_event_custom_attributes_links_items_category" => "AlertEventCustomAttributesLinksItemsCategory",
|
964
|
+
"v2.alert_event_custom_attributes_priority" => "AlertEventCustomAttributesPriority",
|
965
|
+
"v2.alert_event_custom_attributes_status" => "AlertEventCustomAttributesStatus",
|
960
966
|
"v2.annotation" => "Annotation",
|
961
967
|
"v2.annotation_display" => "AnnotationDisplay",
|
962
968
|
"v2.annotation_display_bounds" => "AnnotationDisplayBounds",
|
@@ -984,6 +990,8 @@ module DatadogAPIClient
|
|
984
990
|
"v2.app_builder_event_type" => "AppBuilderEventType",
|
985
991
|
"v2.app_definition_type" => "AppDefinitionType",
|
986
992
|
"v2.app_deployment_type" => "AppDeploymentType",
|
993
|
+
"v2.app_key_registration_data" => "AppKeyRegistrationData",
|
994
|
+
"v2.app_key_registration_data_type" => "AppKeyRegistrationDataType",
|
987
995
|
"v2.application_key_create_attributes" => "ApplicationKeyCreateAttributes",
|
988
996
|
"v2.application_key_create_data" => "ApplicationKeyCreateData",
|
989
997
|
"v2.application_key_create_request" => "ApplicationKeyCreateRequest",
|
@@ -1779,8 +1787,10 @@ module DatadogAPIClient
|
|
1779
1787
|
"v2.event_create_response_attributes_attributes" => "EventCreateResponseAttributesAttributes",
|
1780
1788
|
"v2.event_create_response_attributes_attributes_evt" => "EventCreateResponseAttributesAttributesEvt",
|
1781
1789
|
"v2.event_create_response_payload" => "EventCreateResponsePayload",
|
1790
|
+
"v2.event_create_response_payload_links" => "EventCreateResponsePayloadLinks",
|
1782
1791
|
"v2.event_payload" => "EventPayload",
|
1783
1792
|
"v2.event_payload_attributes" => "EventPayloadAttributes",
|
1793
|
+
"v2.event_payload_integration_id" => "EventPayloadIntegrationId",
|
1784
1794
|
"v2.event_priority" => "EventPriority",
|
1785
1795
|
"v2.event_response" => "EventResponse",
|
1786
1796
|
"v2.event_response_attributes" => "EventResponseAttributes",
|
@@ -1856,6 +1866,7 @@ module DatadogAPIClient
|
|
1856
1866
|
"v2.gcpsts_service_account_update_request" => "GCPSTSServiceAccountUpdateRequest",
|
1857
1867
|
"v2.gcpsts_service_account_update_request_data" => "GCPSTSServiceAccountUpdateRequestData",
|
1858
1868
|
"v2.get_action_connection_response" => "GetActionConnectionResponse",
|
1869
|
+
"v2.get_app_key_registration_response" => "GetAppKeyRegistrationResponse",
|
1859
1870
|
"v2.get_app_response" => "GetAppResponse",
|
1860
1871
|
"v2.get_app_response_data" => "GetAppResponseData",
|
1861
1872
|
"v2.get_app_response_data_attributes" => "GetAppResponseDataAttributes",
|
@@ -2092,6 +2103,8 @@ module DatadogAPIClient
|
|
2092
2103
|
"v2.list_apis_response_data_attributes" => "ListAPIsResponseDataAttributes",
|
2093
2104
|
"v2.list_apis_response_meta" => "ListAPIsResponseMeta",
|
2094
2105
|
"v2.list_apis_response_meta_pagination" => "ListAPIsResponseMetaPagination",
|
2106
|
+
"v2.list_app_key_registrations_response" => "ListAppKeyRegistrationsResponse",
|
2107
|
+
"v2.list_app_key_registrations_response_meta" => "ListAppKeyRegistrationsResponseMeta",
|
2095
2108
|
"v2.list_application_keys_response" => "ListApplicationKeysResponse",
|
2096
2109
|
"v2.list_apps_response" => "ListAppsResponse",
|
2097
2110
|
"v2.list_apps_response_data_items" => "ListAppsResponseDataItems",
|
@@ -2363,6 +2376,20 @@ module DatadogAPIClient
|
|
2363
2376
|
"v2.monitor_trigger" => "MonitorTrigger",
|
2364
2377
|
"v2.monitor_trigger_wrapper" => "MonitorTriggerWrapper",
|
2365
2378
|
"v2.monitor_type" => "MonitorType",
|
2379
|
+
"v2.monitor_user_template" => "MonitorUserTemplate",
|
2380
|
+
"v2.monitor_user_template_create_data" => "MonitorUserTemplateCreateData",
|
2381
|
+
"v2.monitor_user_template_create_request" => "MonitorUserTemplateCreateRequest",
|
2382
|
+
"v2.monitor_user_template_create_response" => "MonitorUserTemplateCreateResponse",
|
2383
|
+
"v2.monitor_user_template_list_response" => "MonitorUserTemplateListResponse",
|
2384
|
+
"v2.monitor_user_template_request_attributes" => "MonitorUserTemplateRequestAttributes",
|
2385
|
+
"v2.monitor_user_template_resource_type" => "MonitorUserTemplateResourceType",
|
2386
|
+
"v2.monitor_user_template_response" => "MonitorUserTemplateResponse",
|
2387
|
+
"v2.monitor_user_template_response_attributes" => "MonitorUserTemplateResponseAttributes",
|
2388
|
+
"v2.monitor_user_template_response_data" => "MonitorUserTemplateResponseData",
|
2389
|
+
"v2.monitor_user_template_response_data_with_versions" => "MonitorUserTemplateResponseDataWithVersions",
|
2390
|
+
"v2.monitor_user_template_template_variables_items" => "MonitorUserTemplateTemplateVariablesItems",
|
2391
|
+
"v2.monitor_user_template_update_data" => "MonitorUserTemplateUpdateData",
|
2392
|
+
"v2.monitor_user_template_update_request" => "MonitorUserTemplateUpdateRequest",
|
2366
2393
|
"v2.monthly_cost_attribution_attributes" => "MonthlyCostAttributionAttributes",
|
2367
2394
|
"v2.monthly_cost_attribution_body" => "MonthlyCostAttributionBody",
|
2368
2395
|
"v2.monthly_cost_attribution_meta" => "MonthlyCostAttributionMeta",
|
@@ -2672,6 +2699,7 @@ module DatadogAPIClient
|
|
2672
2699
|
"v2.query_sort_order" => "QuerySortOrder",
|
2673
2700
|
"v2.readiness_gate" => "ReadinessGate",
|
2674
2701
|
"v2.readiness_gate_threshold_type" => "ReadinessGateThresholdType",
|
2702
|
+
"v2.register_app_key_response" => "RegisterAppKeyResponse",
|
2675
2703
|
"v2.relation_attributes" => "RelationAttributes",
|
2676
2704
|
"v2.relation_entity" => "RelationEntity",
|
2677
2705
|
"v2.relation_include_type" => "RelationIncludeType",
|
@@ -3185,6 +3213,7 @@ module DatadogAPIClient
|
|
3185
3213
|
"v2.shift_data_relationships_user_data_type" => "ShiftDataRelationshipsUserDataType",
|
3186
3214
|
"v2.shift_data_type" => "ShiftDataType",
|
3187
3215
|
"v2.shift_included" => "ShiftIncluded",
|
3216
|
+
"v2.simple_monitor_user_template" => "SimpleMonitorUserTemplate",
|
3188
3217
|
"v2.single_aggregated_connection_response_array" => "SingleAggregatedConnectionResponseArray",
|
3189
3218
|
"v2.single_aggregated_connection_response_data" => "SingleAggregatedConnectionResponseData",
|
3190
3219
|
"v2.single_aggregated_connection_response_data_attributes" => "SingleAggregatedConnectionResponseDataAttributes",
|
@@ -28,7 +28,7 @@ module DatadogAPIClient::V1
|
|
28
28
|
attr_accessor :device_ids
|
29
29
|
|
30
30
|
# Notification message associated with the test.
|
31
|
-
|
31
|
+
attr_reader :message
|
32
32
|
|
33
33
|
# The associated monitor ID.
|
34
34
|
attr_accessor :monitor_id
|
@@ -167,6 +167,7 @@ module DatadogAPIClient::V1
|
|
167
167
|
# @!visibility private
|
168
168
|
def valid?
|
169
169
|
return false if @config.nil?
|
170
|
+
return false if @message.nil?
|
170
171
|
return false if @name.nil?
|
171
172
|
return false if @options.nil?
|
172
173
|
return false if @type.nil?
|
@@ -183,6 +184,16 @@ module DatadogAPIClient::V1
|
|
183
184
|
@config = config
|
184
185
|
end
|
185
186
|
|
187
|
+
# Custom attribute writer method with validation
|
188
|
+
# @param message [Object] Object to be assigned
|
189
|
+
# @!visibility private
|
190
|
+
def message=(message)
|
191
|
+
if message.nil?
|
192
|
+
fail ArgumentError, 'invalid value for "message", message cannot be nil.'
|
193
|
+
end
|
194
|
+
@message = message
|
195
|
+
end
|
196
|
+
|
186
197
|
# Custom attribute writer method with validation
|
187
198
|
# @param name [Object] Object to be assigned
|
188
199
|
# @!visibility private
|
@@ -179,7 +179,7 @@ module DatadogAPIClient::V1
|
|
179
179
|
:'compressed_json_descriptor' => :'String',
|
180
180
|
:'compressed_proto_file' => :'String',
|
181
181
|
:'dns_server' => :'String',
|
182
|
-
:'dns_server_port' => :'
|
182
|
+
:'dns_server_port' => :'SyntheticsTestRequestDNSServerPort',
|
183
183
|
:'files' => :'Array<SyntheticsTestRequestBodyFile>',
|
184
184
|
:'follow_redirects' => :'Boolean',
|
185
185
|
:'form' => :'Hash<String, String>',
|
@@ -0,0 +1,63 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V1 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V1
|
20
|
+
# DNS server port to use for DNS tests.
|
21
|
+
module SyntheticsTestRequestDNSServerPort
|
22
|
+
class << self
|
23
|
+
include BaseOneOfModel
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
25
|
+
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
27
|
+
def openapi_one_of
|
28
|
+
[
|
29
|
+
:'Integer',
|
30
|
+
:'String'
|
31
|
+
]
|
32
|
+
end
|
33
|
+
# Builds the object
|
34
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
35
|
+
# @return [Object] Returns the model or the data itself
|
36
|
+
def build(data)
|
37
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
38
|
+
# Note:
|
39
|
+
# - We do not attempt to check whether exactly one item matches.
|
40
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
41
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
42
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
43
|
+
# - TODO: logging when debugging is set.
|
44
|
+
openapi_one_of.each do |klass|
|
45
|
+
begin
|
46
|
+
next if klass == :AnyType # "nullable: true"
|
47
|
+
typed_data = find_and_cast_into_type(klass, data)
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
49
|
+
return typed_data if typed_data
|
50
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
if openapi_one_of.include?(:AnyType)
|
55
|
+
data
|
56
|
+
else
|
57
|
+
self._unparsed = true
|
58
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|