datadog_api_client 2.0.2 → 2.2.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 +6 -6
- data/.generator/poetry.lock +21 -14
- data/.generator/pyproject.toml +1 -1
- data/.generator/schemas/v1/openapi.yaml +840 -908
- data/.generator/schemas/v2/openapi.yaml +1304 -913
- data/.generator/src/generator/formatter.py +1 -1
- data/.generator/src/generator/templates/api_client.j2 +5 -1
- data/.generator/src/generator/templates/configuration.j2 +17 -0
- data/.github/workflows/test.yml +4 -1
- data/.github/workflows/test_integration.yml +5 -0
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +49 -0
- data/README.md +11 -0
- data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1423904722.rb +38 -0
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2850365602.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3117424216.rb +33 -0
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +50 -0
- data/examples/v1/dashboards/CreateDashboard_858397694.rb +41 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
- data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
- data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
- data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
- data/examples/v2/incidents/ListIncidentAttachments.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +11 -0
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +38 -0
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +26 -0
- data/examples/v2/metrics/ListActiveMetricConfigurations.rb +5 -0
- data/examples/v2/metrics/ListTagConfigurations.rb +1 -1
- data/examples/v2/metrics/ListTagConfigurations_265033704.rb +8 -0
- data/examples/v2/metrics/{ListTagConfigurations_103226315.rb → ListTagConfigurations_2739018321.rb} +1 -1
- data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
- data/examples/v2/roles/UpdateRole.rb +13 -0
- data/examples/v2/rum/CreateRUMApplication.rb +15 -0
- data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplication.rb +8 -0
- data/examples/v2/rum/GetRUMApplications.rb +5 -0
- data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +3 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +50 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +5 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +2 -1
- data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +1 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +2 -4
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +2 -4
- data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +8 -0
- data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
- data/generate.sh +30 -0
- data/lib/datadog_api_client/api_client.rb +5 -1
- data/lib/datadog_api_client/configuration.rb +20 -6
- data/lib/datadog_api_client/inflector.rb +67 -1
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +3 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
- data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +14 -2
- data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +28 -5
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +14 -4
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +14 -4
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
- data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective.rb +111 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_attributes.rb +286 -0
- data/lib/datadog_api_client/v1/models/search_service_level_objective_data.rb +134 -0
- data/lib/datadog_api_client/v1/models/search_slo_query.rb +137 -0
- data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +8 -8
- data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +2 -0
- data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +184 -0
- data/lib/datadog_api_client/v1/models/search_slo_timeframe.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_creator.rb +131 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +185 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +149 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +143 -0
- data/lib/datadog_api_client/v1/models/slo_list_widget_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +174 -0
- data/lib/datadog_api_client/v1/models/slo_raw_error_budget_remaining.rb +121 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_operator.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +193 -0
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/topology_query.rb +144 -0
- data/lib/datadog_api_client/v1/models/topology_query_data_source.rb +27 -0
- data/lib/datadog_api_client/v1/models/topology_request.rb +121 -0
- data/lib/datadog_api_client/v1/models/topology_request_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/widget_definition.rb +3 -1
- data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/incidents_api.rb +155 -0
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +77 -9
- data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +68 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +83 -17
- data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attachment_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +187 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +145 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_related_object.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_relationships.rb +111 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +127 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +143 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +136 -0
- data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_related_object.rb +1 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +14 -14
- data/lib/datadog_api_client/v2/models/metric_active_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_and_aggregations_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_suggested_tags_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +124 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +145 -0
- data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
- data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +36 -248
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +36 -151
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +37 -253
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +279 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +275 -0
- data/lib/datadog_api_client/v2/models/{security_monitoring_rule_query_create.rb → security_monitoring_standard_rule_query.rb} +3 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +279 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +97 -6
- data/Makefile +0 -7
- data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -8
|
@@ -28,6 +28,9 @@ module DatadogAPIClient::V1
|
|
|
28
28
|
# When type is `http_header`, name of the header to use to extract the value.
|
|
29
29
|
attr_accessor :field
|
|
30
30
|
|
|
31
|
+
# When type is `local_variable`, name of the local variable to use to extract the value.
|
|
32
|
+
attr_accessor :local_variable_name
|
|
33
|
+
|
|
31
34
|
# Details of the parser to use for the global variable.
|
|
32
35
|
attr_accessor :parser
|
|
33
36
|
|
|
@@ -39,6 +42,7 @@ module DatadogAPIClient::V1
|
|
|
39
42
|
def self.attribute_map
|
|
40
43
|
{
|
|
41
44
|
:'field' => :'field',
|
|
45
|
+
:'local_variable_name' => :'localVariableName',
|
|
42
46
|
:'parser' => :'parser',
|
|
43
47
|
:'type' => :'type'
|
|
44
48
|
}
|
|
@@ -55,6 +59,7 @@ module DatadogAPIClient::V1
|
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
57
61
|
:'field' => :'String',
|
|
62
|
+
:'local_variable_name' => :'String',
|
|
58
63
|
:'parser' => :'SyntheticsVariableParser',
|
|
59
64
|
:'type' => :'SyntheticsGlobalVariableParseTestOptionsType'
|
|
60
65
|
}
|
|
@@ -87,6 +92,10 @@ module DatadogAPIClient::V1
|
|
|
87
92
|
self.field = attributes[:'field']
|
|
88
93
|
end
|
|
89
94
|
|
|
95
|
+
if attributes.key?(:'local_variable_name')
|
|
96
|
+
self.local_variable_name = attributes[:'local_variable_name']
|
|
97
|
+
end
|
|
98
|
+
|
|
90
99
|
if attributes.key?(:'parser')
|
|
91
100
|
self.parser = attributes[:'parser']
|
|
92
101
|
end
|
|
@@ -100,21 +109,10 @@ module DatadogAPIClient::V1
|
|
|
100
109
|
# @return true if the model is valid
|
|
101
110
|
# @!visibility private
|
|
102
111
|
def valid?
|
|
103
|
-
return false if @parser.nil?
|
|
104
112
|
return false if @type.nil?
|
|
105
113
|
true
|
|
106
114
|
end
|
|
107
115
|
|
|
108
|
-
# Custom attribute writer method with validation
|
|
109
|
-
# @param parser [Object] Object to be assigned
|
|
110
|
-
# @!visibility private
|
|
111
|
-
def parser=(parser)
|
|
112
|
-
if parser.nil?
|
|
113
|
-
fail ArgumentError, 'invalid value for "parser", parser cannot be nil.'
|
|
114
|
-
end
|
|
115
|
-
@parser = parser
|
|
116
|
-
end
|
|
117
|
-
|
|
118
116
|
# Custom attribute writer method with validation
|
|
119
117
|
# @param type [Object] Object to be assigned
|
|
120
118
|
# @!visibility private
|
|
@@ -132,6 +130,7 @@ module DatadogAPIClient::V1
|
|
|
132
130
|
return true if self.equal?(o)
|
|
133
131
|
self.class == o.class &&
|
|
134
132
|
field == o.field &&
|
|
133
|
+
local_variable_name == o.local_variable_name &&
|
|
135
134
|
parser == o.parser &&
|
|
136
135
|
type == o.type
|
|
137
136
|
end
|
|
@@ -147,7 +146,7 @@ module DatadogAPIClient::V1
|
|
|
147
146
|
# @return [Integer] Hash code
|
|
148
147
|
# @!visibility private
|
|
149
148
|
def hash
|
|
150
|
-
[field, parser, type].hash
|
|
149
|
+
[field, local_variable_name, parser, type].hash
|
|
151
150
|
end
|
|
152
151
|
end
|
|
153
152
|
end
|
|
@@ -44,9 +44,18 @@ module DatadogAPIClient::V1
|
|
|
44
44
|
# Whether or not to disable CORS mechanism.
|
|
45
45
|
attr_accessor :disable_cors
|
|
46
46
|
|
|
47
|
+
# Disable Content Security Policy for browser tests.
|
|
48
|
+
attr_accessor :disable_csp
|
|
49
|
+
|
|
47
50
|
# For API HTTP test, whether or not the test should follow redirects.
|
|
48
51
|
attr_accessor :follow_redirects
|
|
49
52
|
|
|
53
|
+
# Ignore server certificate error.
|
|
54
|
+
attr_accessor :ignore_server_certificate_error
|
|
55
|
+
|
|
56
|
+
# Timeout before declaring the initial step as failed (in seconds) for browser tests.
|
|
57
|
+
attr_accessor :initial_navigation_timeout
|
|
58
|
+
|
|
50
59
|
# Minimum amount of time in failure required to trigger an alert.
|
|
51
60
|
attr_accessor :min_failure_duration
|
|
52
61
|
|
|
@@ -99,7 +108,10 @@ module DatadogAPIClient::V1
|
|
|
99
108
|
:'ci' => :'ci',
|
|
100
109
|
:'device_ids' => :'device_ids',
|
|
101
110
|
:'disable_cors' => :'disableCors',
|
|
111
|
+
:'disable_csp' => :'disableCsp',
|
|
102
112
|
:'follow_redirects' => :'follow_redirects',
|
|
113
|
+
:'ignore_server_certificate_error' => :'ignoreServerCertificateError',
|
|
114
|
+
:'initial_navigation_timeout' => :'initialNavigationTimeout',
|
|
103
115
|
:'min_failure_duration' => :'min_failure_duration',
|
|
104
116
|
:'min_location_failed' => :'min_location_failed',
|
|
105
117
|
:'monitor_name' => :'monitor_name',
|
|
@@ -129,7 +141,10 @@ module DatadogAPIClient::V1
|
|
|
129
141
|
:'ci' => :'SyntheticsTestCiOptions',
|
|
130
142
|
:'device_ids' => :'Array<SyntheticsDeviceID>',
|
|
131
143
|
:'disable_cors' => :'Boolean',
|
|
144
|
+
:'disable_csp' => :'Boolean',
|
|
132
145
|
:'follow_redirects' => :'Boolean',
|
|
146
|
+
:'ignore_server_certificate_error' => :'Boolean',
|
|
147
|
+
:'initial_navigation_timeout' => :'Integer',
|
|
133
148
|
:'min_failure_duration' => :'Integer',
|
|
134
149
|
:'min_location_failed' => :'Integer',
|
|
135
150
|
:'monitor_name' => :'String',
|
|
@@ -192,10 +207,22 @@ module DatadogAPIClient::V1
|
|
|
192
207
|
self.disable_cors = attributes[:'disable_cors']
|
|
193
208
|
end
|
|
194
209
|
|
|
210
|
+
if attributes.key?(:'disable_csp')
|
|
211
|
+
self.disable_csp = attributes[:'disable_csp']
|
|
212
|
+
end
|
|
213
|
+
|
|
195
214
|
if attributes.key?(:'follow_redirects')
|
|
196
215
|
self.follow_redirects = attributes[:'follow_redirects']
|
|
197
216
|
end
|
|
198
217
|
|
|
218
|
+
if attributes.key?(:'ignore_server_certificate_error')
|
|
219
|
+
self.ignore_server_certificate_error = attributes[:'ignore_server_certificate_error']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'initial_navigation_timeout')
|
|
223
|
+
self.initial_navigation_timeout = attributes[:'initial_navigation_timeout']
|
|
224
|
+
end
|
|
225
|
+
|
|
199
226
|
if attributes.key?(:'min_failure_duration')
|
|
200
227
|
self.min_failure_duration = attributes[:'min_failure_duration']
|
|
201
228
|
end
|
|
@@ -288,7 +315,10 @@ module DatadogAPIClient::V1
|
|
|
288
315
|
ci == o.ci &&
|
|
289
316
|
device_ids == o.device_ids &&
|
|
290
317
|
disable_cors == o.disable_cors &&
|
|
318
|
+
disable_csp == o.disable_csp &&
|
|
291
319
|
follow_redirects == o.follow_redirects &&
|
|
320
|
+
ignore_server_certificate_error == o.ignore_server_certificate_error &&
|
|
321
|
+
initial_navigation_timeout == o.initial_navigation_timeout &&
|
|
292
322
|
min_failure_duration == o.min_failure_duration &&
|
|
293
323
|
min_location_failed == o.min_location_failed &&
|
|
294
324
|
monitor_name == o.monitor_name &&
|
|
@@ -312,7 +342,7 @@ module DatadogAPIClient::V1
|
|
|
312
342
|
# @return [Integer] Hash code
|
|
313
343
|
# @!visibility private
|
|
314
344
|
def hash
|
|
315
|
-
[accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, follow_redirects, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash
|
|
345
|
+
[accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, disable_csp, follow_redirects, ignore_server_certificate_error, initial_navigation_timeout, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash
|
|
316
346
|
end
|
|
317
347
|
end
|
|
318
348
|
end
|
|
@@ -37,6 +37,9 @@ module DatadogAPIClient::V1
|
|
|
37
37
|
# Client certificate to use when performing the test request.
|
|
38
38
|
attr_accessor :certificate
|
|
39
39
|
|
|
40
|
+
# By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`.
|
|
41
|
+
attr_accessor :certificate_domains
|
|
42
|
+
|
|
40
43
|
# DNS server to use for DNS tests.
|
|
41
44
|
attr_accessor :dns_server
|
|
42
45
|
|
|
@@ -101,6 +104,7 @@ module DatadogAPIClient::V1
|
|
|
101
104
|
:'basic_auth' => :'basicAuth',
|
|
102
105
|
:'body' => :'body',
|
|
103
106
|
:'certificate' => :'certificate',
|
|
107
|
+
:'certificate_domains' => :'certificateDomains',
|
|
104
108
|
:'dns_server' => :'dnsServer',
|
|
105
109
|
:'dns_server_port' => :'dnsServerPort',
|
|
106
110
|
:'follow_redirects' => :'follow_redirects',
|
|
@@ -136,6 +140,7 @@ module DatadogAPIClient::V1
|
|
|
136
140
|
:'basic_auth' => :'SyntheticsBasicAuth',
|
|
137
141
|
:'body' => :'String',
|
|
138
142
|
:'certificate' => :'SyntheticsTestRequestCertificate',
|
|
143
|
+
:'certificate_domains' => :'Array<String>',
|
|
139
144
|
:'dns_server' => :'String',
|
|
140
145
|
:'dns_server_port' => :'Integer',
|
|
141
146
|
:'follow_redirects' => :'Boolean',
|
|
@@ -196,6 +201,14 @@ module DatadogAPIClient::V1
|
|
|
196
201
|
self.certificate = attributes[:'certificate']
|
|
197
202
|
end
|
|
198
203
|
|
|
204
|
+
if attributes.key?(:'certificate_domains')
|
|
205
|
+
if (value = attributes[:'certificate_domains']).is_a?(Array)
|
|
206
|
+
self.certificate_domains = value
|
|
207
|
+
end
|
|
208
|
+
else
|
|
209
|
+
self.certificate_domains = []
|
|
210
|
+
end
|
|
211
|
+
|
|
199
212
|
if attributes.key?(:'dns_server')
|
|
200
213
|
self.dns_server = attributes[:'dns_server']
|
|
201
214
|
end
|
|
@@ -316,6 +329,7 @@ module DatadogAPIClient::V1
|
|
|
316
329
|
basic_auth == o.basic_auth &&
|
|
317
330
|
body == o.body &&
|
|
318
331
|
certificate == o.certificate &&
|
|
332
|
+
certificate_domains == o.certificate_domains &&
|
|
319
333
|
dns_server == o.dns_server &&
|
|
320
334
|
dns_server_port == o.dns_server_port &&
|
|
321
335
|
follow_redirects == o.follow_redirects &&
|
|
@@ -347,7 +361,7 @@ module DatadogAPIClient::V1
|
|
|
347
361
|
# @return [Integer] Hash code
|
|
348
362
|
# @!visibility private
|
|
349
363
|
def hash
|
|
350
|
-
[allow_insecure, basic_auth, body, certificate, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
|
|
364
|
+
[allow_insecure, basic_auth, body, certificate, certificate_domains, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
|
|
351
365
|
end
|
|
352
366
|
end
|
|
353
367
|
end
|
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
# This widget displays a topology of nodes and edges for different data sources. It replaces the service map widget.
|
|
21
|
+
class TopologyMapWidgetDefinition
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# List of custom links.
|
|
29
|
+
attr_accessor :custom_links
|
|
30
|
+
|
|
31
|
+
# One or more Topology requests.
|
|
32
|
+
attr_accessor :requests
|
|
33
|
+
|
|
34
|
+
# Title of your widget.
|
|
35
|
+
attr_accessor :title
|
|
36
|
+
|
|
37
|
+
# How to align the text on the widget.
|
|
38
|
+
attr_accessor :title_align
|
|
39
|
+
|
|
40
|
+
# Size of the title.
|
|
41
|
+
attr_accessor :title_size
|
|
42
|
+
|
|
43
|
+
# Type of the topology map widget.
|
|
44
|
+
attr_accessor :type
|
|
45
|
+
|
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'custom_links' => :'custom_links',
|
|
51
|
+
:'requests' => :'requests',
|
|
52
|
+
:'title' => :'title',
|
|
53
|
+
:'title_align' => :'title_align',
|
|
54
|
+
:'title_size' => :'title_size',
|
|
55
|
+
:'type' => :'type'
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
|
60
|
+
# @!visibility private
|
|
61
|
+
def self.acceptable_attributes
|
|
62
|
+
attribute_map.values
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
# @!visibility private
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'custom_links' => :'Array<WidgetCustomLink>',
|
|
70
|
+
:'requests' => :'Array<TopologyRequest>',
|
|
71
|
+
:'title' => :'String',
|
|
72
|
+
:'title_align' => :'WidgetTextAlign',
|
|
73
|
+
:'title_size' => :'String',
|
|
74
|
+
:'type' => :'TopologyMapWidgetDefinitionType'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# List of attributes with nullable: true
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def self.openapi_nullable
|
|
81
|
+
Set.new([
|
|
82
|
+
])
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Initializes the object
|
|
86
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def initialize(attributes = {})
|
|
89
|
+
if (!attributes.is_a?(Hash))
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TopologyMapWidgetDefinition` initialize method"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
95
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TopologyMapWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
97
|
+
end
|
|
98
|
+
h[k.to_sym] = v
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'custom_links')
|
|
102
|
+
if (value = attributes[:'custom_links']).is_a?(Array)
|
|
103
|
+
self.custom_links = value
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'requests')
|
|
108
|
+
if (value = attributes[:'requests']).is_a?(Array)
|
|
109
|
+
self.requests = value
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'title')
|
|
114
|
+
self.title = attributes[:'title']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'title_align')
|
|
118
|
+
self.title_align = attributes[:'title_align']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'title_size')
|
|
122
|
+
self.title_size = attributes[:'title_size']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'type')
|
|
126
|
+
self.type = attributes[:'type']
|
|
127
|
+
else
|
|
128
|
+
self.type = 'topology_map'
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Check to see if the all the properties in the model are valid
|
|
133
|
+
# @return true if the model is valid
|
|
134
|
+
# @!visibility private
|
|
135
|
+
def valid?
|
|
136
|
+
return false if @requests.nil?
|
|
137
|
+
return false if @requests.length < 1
|
|
138
|
+
return false if @type.nil?
|
|
139
|
+
true
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Custom attribute writer method with validation
|
|
143
|
+
# @param requests [Object] Object to be assigned
|
|
144
|
+
# @!visibility private
|
|
145
|
+
def requests=(requests)
|
|
146
|
+
if requests.nil?
|
|
147
|
+
fail ArgumentError, 'invalid value for "requests", requests cannot be nil.'
|
|
148
|
+
end
|
|
149
|
+
if requests.length < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.'
|
|
151
|
+
end
|
|
152
|
+
@requests = requests
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param type [Object] Object to be assigned
|
|
157
|
+
# @!visibility private
|
|
158
|
+
def type=(type)
|
|
159
|
+
if type.nil?
|
|
160
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
161
|
+
end
|
|
162
|
+
@type = type
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Checks equality by comparing each attribute.
|
|
166
|
+
# @param o [Object] Object to be compared
|
|
167
|
+
# @!visibility private
|
|
168
|
+
def ==(o)
|
|
169
|
+
return true if self.equal?(o)
|
|
170
|
+
self.class == o.class &&
|
|
171
|
+
custom_links == o.custom_links &&
|
|
172
|
+
requests == o.requests &&
|
|
173
|
+
title == o.title &&
|
|
174
|
+
title_align == o.title_align &&
|
|
175
|
+
title_size == o.title_size &&
|
|
176
|
+
type == o.type
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param o [Object] Object to be compared
|
|
181
|
+
# @!visibility private
|
|
182
|
+
def eql?(o)
|
|
183
|
+
self == o
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Calculates hash code according to all attributes.
|
|
187
|
+
# @return [Integer] Hash code
|
|
188
|
+
# @!visibility private
|
|
189
|
+
def hash
|
|
190
|
+
[custom_links, requests, title, title_align, title_size, type].hash
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# Type of the topology map widget.
|
|
21
|
+
class TopologyMapWidgetDefinitionType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
TOPOLOGY_MAP = "topology_map".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
# Query to service-based topology data sources like the service map or data streams.
|
|
21
|
+
class TopologyQuery
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# Name of the data source
|
|
29
|
+
attr_accessor :data_source
|
|
30
|
+
|
|
31
|
+
# Your environment and primary tag (or * if enabled for your account).
|
|
32
|
+
attr_accessor :filters
|
|
33
|
+
|
|
34
|
+
# Name of the service
|
|
35
|
+
attr_accessor :service
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'data_source' => :'data_source',
|
|
42
|
+
:'filters' => :'filters',
|
|
43
|
+
:'service' => :'service'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
|
48
|
+
# @!visibility private
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'data_source' => :'TopologyQueryDataSource',
|
|
58
|
+
:'filters' => :'Array<String>',
|
|
59
|
+
:'service' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
# @!visibility private
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::TopologyQuery` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::TopologyQuery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
82
|
+
end
|
|
83
|
+
h[k.to_sym] = v
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'data_source')
|
|
87
|
+
self.data_source = attributes[:'data_source']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'filters')
|
|
91
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
|
92
|
+
self.filters = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'service')
|
|
97
|
+
self.service = attributes[:'service']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def valid?
|
|
105
|
+
return false if !@filters.nil? && @filters.length < 1
|
|
106
|
+
true
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Custom attribute writer method with validation
|
|
110
|
+
# @param filters [Object] Object to be assigned
|
|
111
|
+
# @!visibility private
|
|
112
|
+
def filters=(filters)
|
|
113
|
+
if !filters.nil? && filters.length < 1
|
|
114
|
+
fail ArgumentError, 'invalid value for "filters", number of items must be greater than or equal to 1.'
|
|
115
|
+
end
|
|
116
|
+
@filters = filters
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Checks equality by comparing each attribute.
|
|
120
|
+
# @param o [Object] Object to be compared
|
|
121
|
+
# @!visibility private
|
|
122
|
+
def ==(o)
|
|
123
|
+
return true if self.equal?(o)
|
|
124
|
+
self.class == o.class &&
|
|
125
|
+
data_source == o.data_source &&
|
|
126
|
+
filters == o.filters &&
|
|
127
|
+
service == o.service
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# @see the `==` method
|
|
131
|
+
# @param o [Object] Object to be compared
|
|
132
|
+
# @!visibility private
|
|
133
|
+
def eql?(o)
|
|
134
|
+
self == o
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def hash
|
|
141
|
+
[data_source, filters, service].hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
# Name of the data source
|
|
21
|
+
class TopologyQueryDataSource
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
DATA_STREAMS = "data_streams".freeze
|
|
25
|
+
SERVICE_MAP = "service_map".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|