datadog_api_client 2.46.0 → 2.47.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/.generator/schemas/v1/openapi.yaml +105 -7
- data/.generator/schemas/v2/openapi.yaml +1285 -324
- data/CHANGELOG.md +26 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/security-monitoring/CreateCases.rb +2 -2
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +1 -1
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +2 -2
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +14 -69
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/lib/datadog_api_client/configuration.rb +4 -3
- data/lib/datadog_api_client/inflector.rb +43 -6
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +71 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +0 -18
- data/lib/datadog_api_client/v2/api/on_call_api.rb +277 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +99 -11
- data/lib/datadog_api_client/v2/api/teams_api.rb +6 -0
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +3 -3
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_array_included.rb → cloud_workload_security_agent_rule_action_set_value.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +3 -15
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +43 -3
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +35 -14
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_config.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_phone_notification_channel_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case.rb → create_user_notification_channel_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +2 -2
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +4 -4
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_attributes_fields.rb → list_deployment_rules_response_data_attributes.rb} +12 -10
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +24 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +18 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +22 -24
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case_data.rb → service_list_data.rb} +17 -18
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +55 -9
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +0 -56
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +0 -64
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Get a suppression's version history returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "suppression" in the system
|
|
7
|
+
SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"]
|
|
8
|
+
p api_instance.get_suppression_version_history(SUPPRESSION_DATA_ID)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Validate a detection rule with detection method 'new_value' with enabled feature 'instantaneousBaseline' returns "OK"
|
|
2
|
+
response
|
|
3
|
+
|
|
4
|
+
require "datadog_api_client"
|
|
5
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
6
|
+
|
|
7
|
+
body = DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload.new({
|
|
8
|
+
cases: [
|
|
9
|
+
DatadogAPIClient::V2::SecurityMonitoringRuleCaseCreate.new({
|
|
10
|
+
name: "",
|
|
11
|
+
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
|
|
12
|
+
notifications: [],
|
|
13
|
+
}),
|
|
14
|
+
],
|
|
15
|
+
has_extended_title: true,
|
|
16
|
+
is_enabled: true,
|
|
17
|
+
message: "My security monitoring rule",
|
|
18
|
+
name: "My security monitoring rule",
|
|
19
|
+
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
|
|
20
|
+
evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::ZERO_MINUTES,
|
|
21
|
+
keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::FIVE_MINUTES,
|
|
22
|
+
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::TEN_MINUTES,
|
|
23
|
+
detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::NEW_VALUE,
|
|
24
|
+
new_value_options: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions.new({
|
|
25
|
+
forget_after: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsForgetAfter::ONE_WEEK,
|
|
26
|
+
instantaneous_baseline: true,
|
|
27
|
+
learning_duration: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningDuration::ONE_DAY,
|
|
28
|
+
learning_threshold: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningThreshold::ZERO_OCCURRENCES,
|
|
29
|
+
learning_method: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningMethod::DURATION,
|
|
30
|
+
}),
|
|
31
|
+
}),
|
|
32
|
+
queries: [
|
|
33
|
+
DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery.new({
|
|
34
|
+
query: "source:source_here",
|
|
35
|
+
group_by_fields: [
|
|
36
|
+
"@userIdentity.assumed_role",
|
|
37
|
+
],
|
|
38
|
+
distinct_fields: [],
|
|
39
|
+
metric: "name",
|
|
40
|
+
metrics: [
|
|
41
|
+
"name",
|
|
42
|
+
],
|
|
43
|
+
aggregation: DatadogAPIClient::V2::SecurityMonitoringRuleQueryAggregation::NEW_VALUE,
|
|
44
|
+
name: "",
|
|
45
|
+
data_source: DatadogAPIClient::V2::SecurityMonitoringStandardDataSource::LOGS,
|
|
46
|
+
}),
|
|
47
|
+
],
|
|
48
|
+
tags: [
|
|
49
|
+
"env:prod",
|
|
50
|
+
"team:security",
|
|
51
|
+
],
|
|
52
|
+
type: DatadogAPIClient::V2::SecurityMonitoringRuleTypeCreate::LOG_DETECTION,
|
|
53
|
+
})
|
|
54
|
+
api_instance.validate_security_monitoring_rule(body)
|
|
@@ -208,8 +208,10 @@ module DatadogAPIClient
|
|
|
208
208
|
"v2.get_open_api": false,
|
|
209
209
|
"v2.list_apis": false,
|
|
210
210
|
"v2.update_open_api": false,
|
|
211
|
+
"v2.attach_jira_issue": false,
|
|
211
212
|
"v2.cancel_threat_hunting_job": false,
|
|
212
213
|
"v2.convert_job_result_to_signal": false,
|
|
214
|
+
"v2.create_jira_issues": false,
|
|
213
215
|
"v2.delete_threat_hunting_job": false,
|
|
214
216
|
"v2.get_finding": false,
|
|
215
217
|
"v2.get_rule_version_history": false,
|
|
@@ -242,18 +244,17 @@ module DatadogAPIClient
|
|
|
242
244
|
"v2.delete_deployment_gate": false,
|
|
243
245
|
"v2.delete_deployment_rule": false,
|
|
244
246
|
"v2.get_deployment_gate": false,
|
|
247
|
+
"v2.get_deployment_gate_rules": false,
|
|
245
248
|
"v2.get_deployment_rule": false,
|
|
246
249
|
"v2.update_deployment_gate": false,
|
|
247
250
|
"v2.update_deployment_rule": false,
|
|
248
251
|
"v2.create_incident": false,
|
|
249
|
-
"v2.create_incident_impact": false,
|
|
250
252
|
"v2.create_incident_integration": false,
|
|
251
253
|
"v2.create_incident_notification_rule": false,
|
|
252
254
|
"v2.create_incident_notification_template": false,
|
|
253
255
|
"v2.create_incident_todo": false,
|
|
254
256
|
"v2.create_incident_type": false,
|
|
255
257
|
"v2.delete_incident": false,
|
|
256
|
-
"v2.delete_incident_impact": false,
|
|
257
258
|
"v2.delete_incident_integration": false,
|
|
258
259
|
"v2.delete_incident_notification_rule": false,
|
|
259
260
|
"v2.delete_incident_notification_template": false,
|
|
@@ -266,7 +267,6 @@ module DatadogAPIClient
|
|
|
266
267
|
"v2.get_incident_todo": false,
|
|
267
268
|
"v2.get_incident_type": false,
|
|
268
269
|
"v2.list_incident_attachments": false,
|
|
269
|
-
"v2.list_incident_impacts": false,
|
|
270
270
|
"v2.list_incident_integrations": false,
|
|
271
271
|
"v2.list_incident_notification_rules": false,
|
|
272
272
|
"v2.list_incident_notification_templates": false,
|
|
@@ -624,6 +624,7 @@ module DatadogAPIClient
|
|
|
624
624
|
"us3.datadoghq.com",
|
|
625
625
|
"us5.datadoghq.com",
|
|
626
626
|
"ap1.datadoghq.com",
|
|
627
|
+
"ap2.datadoghq.com",
|
|
627
628
|
"datadoghq.eu",
|
|
628
629
|
"ddog-gov.com"
|
|
629
630
|
]
|
|
@@ -134,6 +134,7 @@ module DatadogAPIClient
|
|
|
134
134
|
"v1.formula_and_function_metric_aggregation" => "FormulaAndFunctionMetricAggregation",
|
|
135
135
|
"v1.formula_and_function_metric_data_source" => "FormulaAndFunctionMetricDataSource",
|
|
136
136
|
"v1.formula_and_function_metric_query_definition" => "FormulaAndFunctionMetricQueryDefinition",
|
|
137
|
+
"v1.formula_and_function_metric_semantic_mode" => "FormulaAndFunctionMetricSemanticMode",
|
|
137
138
|
"v1.formula_and_function_process_query_data_source" => "FormulaAndFunctionProcessQueryDataSource",
|
|
138
139
|
"v1.formula_and_function_process_query_definition" => "FormulaAndFunctionProcessQueryDefinition",
|
|
139
140
|
"v1.formula_and_function_query_definition" => "FormulaAndFunctionQueryDefinition",
|
|
@@ -161,6 +162,7 @@ module DatadogAPIClient
|
|
|
161
162
|
"v1.geomap_widget_definition_type" => "GeomapWidgetDefinitionType",
|
|
162
163
|
"v1.geomap_widget_definition_view" => "GeomapWidgetDefinitionView",
|
|
163
164
|
"v1.geomap_widget_request" => "GeomapWidgetRequest",
|
|
165
|
+
"v1.geomap_widget_request_style" => "GeomapWidgetRequestStyle",
|
|
164
166
|
"v1.graph_snapshot" => "GraphSnapshot",
|
|
165
167
|
"v1.group_type" => "GroupType",
|
|
166
168
|
"v1.group_widget_definition" => "GroupWidgetDefinition",
|
|
@@ -1191,6 +1193,7 @@ module DatadogAPIClient
|
|
|
1191
1193
|
"v2.aws_auth_config" => "AWSAuthConfig",
|
|
1192
1194
|
"v2.aws_auth_config_keys" => "AWSAuthConfigKeys",
|
|
1193
1195
|
"v2.aws_auth_config_role" => "AWSAuthConfigRole",
|
|
1196
|
+
"v2.awsccm_config" => "AWSCCMConfig",
|
|
1194
1197
|
"v2.aws_credentials" => "AWSCredentials",
|
|
1195
1198
|
"v2.aws_credentials_update" => "AWSCredentialsUpdate",
|
|
1196
1199
|
"v2.aws_cur_config" => "AwsCURConfig",
|
|
@@ -1553,8 +1556,10 @@ module DatadogAPIClient
|
|
|
1553
1556
|
"v2.cloud_workload_security_agent_policy_update_request" => "CloudWorkloadSecurityAgentPolicyUpdateRequest",
|
|
1554
1557
|
"v2.cloud_workload_security_agent_policy_version" => "CloudWorkloadSecurityAgentPolicyVersion",
|
|
1555
1558
|
"v2.cloud_workload_security_agent_rule_action" => "CloudWorkloadSecurityAgentRuleAction",
|
|
1559
|
+
"v2.cloud_workload_security_agent_rule_action_hash" => "CloudWorkloadSecurityAgentRuleActionHash",
|
|
1556
1560
|
"v2.cloud_workload_security_agent_rule_action_metadata" => "CloudWorkloadSecurityAgentRuleActionMetadata",
|
|
1557
1561
|
"v2.cloud_workload_security_agent_rule_action_set" => "CloudWorkloadSecurityAgentRuleActionSet",
|
|
1562
|
+
"v2.cloud_workload_security_agent_rule_action_set_value" => "CloudWorkloadSecurityAgentRuleActionSetValue",
|
|
1558
1563
|
"v2.cloud_workload_security_agent_rule_attributes" => "CloudWorkloadSecurityAgentRuleAttributes",
|
|
1559
1564
|
"v2.cloud_workload_security_agent_rule_create_attributes" => "CloudWorkloadSecurityAgentRuleCreateAttributes",
|
|
1560
1565
|
"v2.cloud_workload_security_agent_rule_create_data" => "CloudWorkloadSecurityAgentRuleCreateData",
|
|
@@ -1703,16 +1708,16 @@ module DatadogAPIClient
|
|
|
1703
1708
|
"v2.create_deployment_rule_params" => "CreateDeploymentRuleParams",
|
|
1704
1709
|
"v2.create_deployment_rule_params_data" => "CreateDeploymentRuleParamsData",
|
|
1705
1710
|
"v2.create_deployment_rule_params_data_attributes" => "CreateDeploymentRuleParamsDataAttributes",
|
|
1711
|
+
"v2.create_email_notification_channel_config" => "CreateEmailNotificationChannelConfig",
|
|
1706
1712
|
"v2.create_incident_notification_rule_request" => "CreateIncidentNotificationRuleRequest",
|
|
1707
1713
|
"v2.create_incident_notification_template_request" => "CreateIncidentNotificationTemplateRequest",
|
|
1708
1714
|
"v2.create_jira_issue_request_array" => "CreateJiraIssueRequestArray",
|
|
1709
|
-
"v2.create_jira_issue_request_array_included" => "CreateJiraIssueRequestArrayIncluded",
|
|
1710
1715
|
"v2.create_jira_issue_request_data" => "CreateJiraIssueRequestData",
|
|
1711
1716
|
"v2.create_jira_issue_request_data_attributes" => "CreateJiraIssueRequestDataAttributes",
|
|
1712
|
-
"v2.create_jira_issue_request_data_attributes_fields" => "CreateJiraIssueRequestDataAttributesFields",
|
|
1713
1717
|
"v2.create_jira_issue_request_data_relationships" => "CreateJiraIssueRequestDataRelationships",
|
|
1714
|
-
"v2.
|
|
1715
|
-
"v2.
|
|
1718
|
+
"v2.create_notification_channel_attributes" => "CreateNotificationChannelAttributes",
|
|
1719
|
+
"v2.create_notification_channel_config" => "CreateNotificationChannelConfig",
|
|
1720
|
+
"v2.create_notification_channel_data" => "CreateNotificationChannelData",
|
|
1716
1721
|
"v2.create_notification_rule_parameters" => "CreateNotificationRuleParameters",
|
|
1717
1722
|
"v2.create_notification_rule_parameters_data" => "CreateNotificationRuleParametersData",
|
|
1718
1723
|
"v2.create_notification_rule_parameters_data_attributes" => "CreateNotificationRuleParametersDataAttributes",
|
|
@@ -1727,6 +1732,7 @@ module DatadogAPIClient
|
|
|
1727
1732
|
"v2.create_page_response" => "CreatePageResponse",
|
|
1728
1733
|
"v2.create_page_response_data" => "CreatePageResponseData",
|
|
1729
1734
|
"v2.create_page_response_data_type" => "CreatePageResponseDataType",
|
|
1735
|
+
"v2.create_phone_notification_channel_config" => "CreatePhoneNotificationChannelConfig",
|
|
1730
1736
|
"v2.create_rule_request" => "CreateRuleRequest",
|
|
1731
1737
|
"v2.create_rule_request_data" => "CreateRuleRequestData",
|
|
1732
1738
|
"v2.create_rule_response" => "CreateRuleResponse",
|
|
@@ -1762,6 +1768,7 @@ module DatadogAPIClient
|
|
|
1762
1768
|
"v2.create_upload_response_data" => "CreateUploadResponseData",
|
|
1763
1769
|
"v2.create_upload_response_data_attributes" => "CreateUploadResponseDataAttributes",
|
|
1764
1770
|
"v2.create_upload_response_data_type" => "CreateUploadResponseDataType",
|
|
1771
|
+
"v2.create_user_notification_channel_request" => "CreateUserNotificationChannelRequest",
|
|
1765
1772
|
"v2.create_workflow_request" => "CreateWorkflowRequest",
|
|
1766
1773
|
"v2.create_workflow_response" => "CreateWorkflowResponse",
|
|
1767
1774
|
"v2.creator" => "Creator",
|
|
@@ -1882,6 +1889,7 @@ module DatadogAPIClient
|
|
|
1882
1889
|
"v2.datadog_integration" => "DatadogIntegration",
|
|
1883
1890
|
"v2.datadog_integration_type" => "DatadogIntegrationType",
|
|
1884
1891
|
"v2.datadog_integration_update" => "DatadogIntegrationUpdate",
|
|
1892
|
+
"v2.data_export_config" => "DataExportConfig",
|
|
1885
1893
|
"v2.data_relationships_teams" => "DataRelationshipsTeams",
|
|
1886
1894
|
"v2.data_relationships_teams_data_items" => "DataRelationshipsTeamsDataItems",
|
|
1887
1895
|
"v2.data_relationships_teams_data_items_type" => "DataRelationshipsTeamsDataItemsType",
|
|
@@ -1930,6 +1938,7 @@ module DatadogAPIClient
|
|
|
1930
1938
|
"v2.deployment_gate_response_data_attributes" => "DeploymentGateResponseDataAttributes",
|
|
1931
1939
|
"v2.deployment_gate_response_data_attributes_created_by" => "DeploymentGateResponseDataAttributesCreatedBy",
|
|
1932
1940
|
"v2.deployment_gate_response_data_attributes_updated_by" => "DeploymentGateResponseDataAttributesUpdatedBy",
|
|
1941
|
+
"v2.deployment_gate_rules_response" => "DeploymentGateRulesResponse",
|
|
1933
1942
|
"v2.deployment_metadata" => "DeploymentMetadata",
|
|
1934
1943
|
"v2.deployment_relationship" => "DeploymentRelationship",
|
|
1935
1944
|
"v2.deployment_relationship_data" => "DeploymentRelationshipData",
|
|
@@ -2435,6 +2444,9 @@ module DatadogAPIClient
|
|
|
2435
2444
|
"v2.get_rule_version_history_data_type" => "GetRuleVersionHistoryDataType",
|
|
2436
2445
|
"v2.get_rule_version_history_response" => "GetRuleVersionHistoryResponse",
|
|
2437
2446
|
"v2.get_sbom_response" => "GetSBOMResponse",
|
|
2447
|
+
"v2.get_suppression_version_history_data" => "GetSuppressionVersionHistoryData",
|
|
2448
|
+
"v2.get_suppression_version_history_data_type" => "GetSuppressionVersionHistoryDataType",
|
|
2449
|
+
"v2.get_suppression_version_history_response" => "GetSuppressionVersionHistoryResponse",
|
|
2438
2450
|
"v2.get_team_memberships_sort" => "GetTeamMembershipsSort",
|
|
2439
2451
|
"v2.get_workflow_response" => "GetWorkflowResponse",
|
|
2440
2452
|
"v2.github_webhook_trigger" => "GithubWebhookTrigger",
|
|
@@ -2793,6 +2805,9 @@ module DatadogAPIClient
|
|
|
2793
2805
|
"v2.list_connections_response_data_attributes_connections_items" => "ListConnectionsResponseDataAttributesConnectionsItems",
|
|
2794
2806
|
"v2.list_connections_response_data_attributes_connections_items_join" => "ListConnectionsResponseDataAttributesConnectionsItemsJoin",
|
|
2795
2807
|
"v2.list_connections_response_data_type" => "ListConnectionsResponseDataType",
|
|
2808
|
+
"v2.list_deployment_rule_response_data" => "ListDeploymentRuleResponseData",
|
|
2809
|
+
"v2.list_deployment_rules_data_type" => "ListDeploymentRulesDataType",
|
|
2810
|
+
"v2.list_deployment_rules_response_data_attributes" => "ListDeploymentRulesResponseDataAttributes",
|
|
2796
2811
|
"v2.list_devices_response" => "ListDevicesResponse",
|
|
2797
2812
|
"v2.list_devices_response_metadata" => "ListDevicesResponseMetadata",
|
|
2798
2813
|
"v2.list_devices_response_metadata_page" => "ListDevicesResponseMetadataPage",
|
|
@@ -2804,6 +2819,7 @@ module DatadogAPIClient
|
|
|
2804
2819
|
"v2.list_findings_page" => "ListFindingsPage",
|
|
2805
2820
|
"v2.list_findings_response" => "ListFindingsResponse",
|
|
2806
2821
|
"v2.list_kind_catalog_response" => "ListKindCatalogResponse",
|
|
2822
|
+
"v2.list_notification_channels_response" => "ListNotificationChannelsResponse",
|
|
2807
2823
|
"v2.list_pipelines_response" => "ListPipelinesResponse",
|
|
2808
2824
|
"v2.list_pipelines_response_meta" => "ListPipelinesResponseMeta",
|
|
2809
2825
|
"v2.list_powerpacks_response" => "ListPowerpacksResponse",
|
|
@@ -3089,6 +3105,18 @@ module DatadogAPIClient
|
|
|
3089
3105
|
"v2.ms_teams_integration_metadata" => "MSTeamsIntegrationMetadata",
|
|
3090
3106
|
"v2.ms_teams_integration_metadata_teams_item" => "MSTeamsIntegrationMetadataTeamsItem",
|
|
3091
3107
|
"v2.notebook_trigger_wrapper" => "NotebookTriggerWrapper",
|
|
3108
|
+
"v2.notification_channel" => "NotificationChannel",
|
|
3109
|
+
"v2.notification_channel_attributes" => "NotificationChannelAttributes",
|
|
3110
|
+
"v2.notification_channel_config" => "NotificationChannelConfig",
|
|
3111
|
+
"v2.notification_channel_data" => "NotificationChannelData",
|
|
3112
|
+
"v2.notification_channel_email_config" => "NotificationChannelEmailConfig",
|
|
3113
|
+
"v2.notification_channel_email_config_type" => "NotificationChannelEmailConfigType",
|
|
3114
|
+
"v2.notification_channel_email_format_type" => "NotificationChannelEmailFormatType",
|
|
3115
|
+
"v2.notification_channel_phone_config" => "NotificationChannelPhoneConfig",
|
|
3116
|
+
"v2.notification_channel_phone_config_type" => "NotificationChannelPhoneConfigType",
|
|
3117
|
+
"v2.notification_channel_push_config" => "NotificationChannelPushConfig",
|
|
3118
|
+
"v2.notification_channel_push_config_type" => "NotificationChannelPushConfigType",
|
|
3119
|
+
"v2.notification_channel_type" => "NotificationChannelType",
|
|
3092
3120
|
"v2.notification_rule" => "NotificationRule",
|
|
3093
3121
|
"v2.notification_rule_attributes" => "NotificationRuleAttributes",
|
|
3094
3122
|
"v2.notification_rule_response" => "NotificationRuleResponse",
|
|
@@ -3127,6 +3155,7 @@ module DatadogAPIClient
|
|
|
3127
3155
|
"v2.observability_pipeline_aws_auth" => "ObservabilityPipelineAwsAuth",
|
|
3128
3156
|
"v2.observability_pipeline_config" => "ObservabilityPipelineConfig",
|
|
3129
3157
|
"v2.observability_pipeline_config_destination_item" => "ObservabilityPipelineConfigDestinationItem",
|
|
3158
|
+
"v2.observability_pipeline_config_processor_group" => "ObservabilityPipelineConfigProcessorGroup",
|
|
3130
3159
|
"v2.observability_pipeline_config_processor_item" => "ObservabilityPipelineConfigProcessorItem",
|
|
3131
3160
|
"v2.observability_pipeline_config_source_item" => "ObservabilityPipelineConfigSourceItem",
|
|
3132
3161
|
"v2.observability_pipeline_crowd_strike_next_gen_siem_destination" => "ObservabilityPipelineCrowdStrikeNextGenSiemDestination",
|
|
@@ -3708,8 +3737,6 @@ module DatadogAPIClient
|
|
|
3708
3737
|
"v2.rule_user" => "RuleUser",
|
|
3709
3738
|
"v2.rule_version_history" => "RuleVersionHistory",
|
|
3710
3739
|
"v2.rule_versions" => "RuleVersions",
|
|
3711
|
-
"v2.rule_version_update" => "RuleVersionUpdate",
|
|
3712
|
-
"v2.rule_version_update_type" => "RuleVersionUpdateType",
|
|
3713
3740
|
"v2.rum_aggregate_bucket_value" => "RUMAggregateBucketValue",
|
|
3714
3741
|
"v2.rum_aggregate_bucket_value_timeseries_point" => "RUMAggregateBucketValueTimeseriesPoint",
|
|
3715
3742
|
"v2.rum_aggregate_request" => "RUMAggregateRequest",
|
|
@@ -4138,6 +4165,11 @@ module DatadogAPIClient
|
|
|
4138
4165
|
"v2.service_definition_v2_slack" => "ServiceDefinitionV2Slack",
|
|
4139
4166
|
"v2.service_definition_v2_slack_type" => "ServiceDefinitionV2SlackType",
|
|
4140
4167
|
"v2.service_definition_v2_version" => "ServiceDefinitionV2Version",
|
|
4168
|
+
"v2.service_list" => "ServiceList",
|
|
4169
|
+
"v2.service_list_data" => "ServiceListData",
|
|
4170
|
+
"v2.service_list_data_attributes" => "ServiceListDataAttributes",
|
|
4171
|
+
"v2.service_list_data_attributes_metadata_items" => "ServiceListDataAttributesMetadataItems",
|
|
4172
|
+
"v2.service_list_data_type" => "ServiceListDataType",
|
|
4141
4173
|
"v2.service_now_basic_auth" => "ServiceNowBasicAuth",
|
|
4142
4174
|
"v2.service_now_basic_auth_type" => "ServiceNowBasicAuthType",
|
|
4143
4175
|
"v2.service_now_basic_auth_update" => "ServiceNowBasicAuthUpdate",
|
|
@@ -4267,6 +4299,8 @@ module DatadogAPIClient
|
|
|
4267
4299
|
"v2.step" => "Step",
|
|
4268
4300
|
"v2.step_display" => "StepDisplay",
|
|
4269
4301
|
"v2.step_display_bounds" => "StepDisplayBounds",
|
|
4302
|
+
"v2.suppression_version_history" => "SuppressionVersionHistory",
|
|
4303
|
+
"v2.suppression_versions" => "SuppressionVersions",
|
|
4270
4304
|
"v2.table_result_v2" => "TableResultV2",
|
|
4271
4305
|
"v2.table_result_v2_array" => "TableResultV2Array",
|
|
4272
4306
|
"v2.table_result_v2_data" => "TableResultV2Data",
|
|
@@ -4553,6 +4587,8 @@ module DatadogAPIClient
|
|
|
4553
4587
|
"v2.validation_error" => "ValidationError",
|
|
4554
4588
|
"v2.validation_error_meta" => "ValidationErrorMeta",
|
|
4555
4589
|
"v2.validation_response" => "ValidationResponse",
|
|
4590
|
+
"v2.version_history_update" => "VersionHistoryUpdate",
|
|
4591
|
+
"v2.version_history_update_type" => "VersionHistoryUpdateType",
|
|
4556
4592
|
"v2.virus_total_api_key" => "VirusTotalAPIKey",
|
|
4557
4593
|
"v2.virus_total_api_key_type" => "VirusTotalAPIKeyType",
|
|
4558
4594
|
"v2.virus_total_api_key_update" => "VirusTotalAPIKeyUpdate",
|
|
@@ -4642,6 +4678,7 @@ module DatadogAPIClient
|
|
|
4642
4678
|
"v2.actions_datastores_api" => "ActionsDatastoresAPI",
|
|
4643
4679
|
"v2.agentless_scanning_api" => "AgentlessScanningAPI",
|
|
4644
4680
|
"v2.api_management_api" => "APIManagementAPI",
|
|
4681
|
+
"v2.apm_api" => "APMAPI",
|
|
4645
4682
|
"v2.apm_retention_filters_api" => "APMRetentionFiltersAPI",
|
|
4646
4683
|
"v2.app_builder_api" => "AppBuilderAPI",
|
|
4647
4684
|
"v2.application_security_api" => "ApplicationSecurityAPI",
|
|
@@ -36,6 +36,9 @@ module DatadogAPIClient::V1
|
|
|
36
36
|
# Metrics query definition.
|
|
37
37
|
attr_reader :query
|
|
38
38
|
|
|
39
|
+
# Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed.
|
|
40
|
+
attr_accessor :semantic_mode
|
|
41
|
+
|
|
39
42
|
attr_accessor :additional_properties
|
|
40
43
|
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -46,7 +49,8 @@ module DatadogAPIClient::V1
|
|
|
46
49
|
:'cross_org_uuids' => :'cross_org_uuids',
|
|
47
50
|
:'data_source' => :'data_source',
|
|
48
51
|
:'name' => :'name',
|
|
49
|
-
:'query' => :'query'
|
|
52
|
+
:'query' => :'query',
|
|
53
|
+
:'semantic_mode' => :'semantic_mode'
|
|
50
54
|
}
|
|
51
55
|
end
|
|
52
56
|
|
|
@@ -58,7 +62,8 @@ module DatadogAPIClient::V1
|
|
|
58
62
|
:'cross_org_uuids' => :'Array<String>',
|
|
59
63
|
:'data_source' => :'FormulaAndFunctionMetricDataSource',
|
|
60
64
|
:'name' => :'String',
|
|
61
|
-
:'query' => :'String'
|
|
65
|
+
:'query' => :'String',
|
|
66
|
+
:'semantic_mode' => :'FormulaAndFunctionMetricSemanticMode'
|
|
62
67
|
}
|
|
63
68
|
end
|
|
64
69
|
|
|
@@ -101,6 +106,10 @@ module DatadogAPIClient::V1
|
|
|
101
106
|
if attributes.key?(:'query')
|
|
102
107
|
self.query = attributes[:'query']
|
|
103
108
|
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'semantic_mode')
|
|
111
|
+
self.semantic_mode = attributes[:'semantic_mode']
|
|
112
|
+
end
|
|
104
113
|
end
|
|
105
114
|
|
|
106
115
|
# Check to see if the all the properties in the model are valid
|
|
@@ -185,6 +194,7 @@ module DatadogAPIClient::V1
|
|
|
185
194
|
data_source == o.data_source &&
|
|
186
195
|
name == o.name &&
|
|
187
196
|
query == o.query &&
|
|
197
|
+
semantic_mode == o.semantic_mode &&
|
|
188
198
|
additional_properties == o.additional_properties
|
|
189
199
|
end
|
|
190
200
|
|
|
@@ -192,7 +202,7 @@ module DatadogAPIClient::V1
|
|
|
192
202
|
# @return [Integer] Hash code
|
|
193
203
|
# @!visibility private
|
|
194
204
|
def hash
|
|
195
|
-
[aggregator, cross_org_uuids, data_source, name, query, additional_properties].hash
|
|
205
|
+
[aggregator, cross_org_uuids, data_source, name, query, semantic_mode, additional_properties].hash
|
|
196
206
|
end
|
|
197
207
|
end
|
|
198
208
|
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
|
+
# Semantic mode for metrics queries. This determines how metrics from different sources are combined or displayed.
|
|
21
|
+
class FormulaAndFunctionMetricSemanticMode
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
COMBINED = "combined".freeze
|
|
25
|
+
NATIVE = "native".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -24,8 +24,7 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# A list of custom links.
|
|
25
25
|
attr_accessor :custom_links
|
|
26
26
|
|
|
27
|
-
# Array of
|
|
28
|
-
#
|
|
27
|
+
# Array of request objects to display in the widget. May include an optional request for the region layer and/or an optional request for the points layer. Region layer requests must contain a `group-by` tag whose value is a country ISO code.
|
|
29
28
|
# See the [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json)
|
|
30
29
|
# for information about building the `REQUEST_SCHEMA`.
|
|
31
30
|
attr_reader :requests
|
|
@@ -149,7 +148,7 @@ module DatadogAPIClient::V1
|
|
|
149
148
|
# @!visibility private
|
|
150
149
|
def valid?
|
|
151
150
|
return false if @requests.nil?
|
|
152
|
-
return false if @requests.length >
|
|
151
|
+
return false if @requests.length > 2
|
|
153
152
|
return false if @requests.length < 1
|
|
154
153
|
return false if @style.nil?
|
|
155
154
|
return false if @type.nil?
|
|
@@ -164,8 +163,8 @@ module DatadogAPIClient::V1
|
|
|
164
163
|
if requests.nil?
|
|
165
164
|
fail ArgumentError, 'invalid value for "requests", requests cannot be nil.'
|
|
166
165
|
end
|
|
167
|
-
if requests.length >
|
|
168
|
-
fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to
|
|
166
|
+
if requests.length > 2
|
|
167
|
+
fail ArgumentError, 'invalid value for "requests", number of items must be less than or equal to 2.'
|
|
169
168
|
end
|
|
170
169
|
if requests.length < 1
|
|
171
170
|
fail ArgumentError, 'invalid value for "requests", number of items must be greater than or equal to 1.'
|
|
@@ -21,7 +21,7 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class GeomapWidgetDefinitionView
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
# The 2-letter ISO code of a country to focus the map on
|
|
24
|
+
# The 2-letter ISO code of a country to focus the map on, or `WORLD` for global view, or a region (`EMEA`, `APAC`, `LATAM`), or a continent (`NORTH_AMERICA`, `SOUTH_AMERICA`, `EUROPE`, `AFRICA`, `ASIA`, `OCEANIA`).
|
|
25
25
|
attr_reader :focus
|
|
26
26
|
|
|
27
27
|
attr_accessor :additional_properties
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
# Widget columns.
|
|
25
25
|
attr_accessor :columns
|
|
26
26
|
|
|
27
|
+
# Threshold (numeric) conditional formatting rules may be used by a regions layer.
|
|
28
|
+
attr_accessor :conditional_formats
|
|
29
|
+
|
|
27
30
|
# List of formulas that operate on queries.
|
|
28
31
|
attr_accessor :formulas
|
|
29
32
|
|
|
@@ -51,6 +54,12 @@ module DatadogAPIClient::V1
|
|
|
51
54
|
# The controls for sorting the widget.
|
|
52
55
|
attr_accessor :sort
|
|
53
56
|
|
|
57
|
+
# The style to apply to the request for points layer.
|
|
58
|
+
attr_accessor :style
|
|
59
|
+
|
|
60
|
+
# Text formatting rules may be used by a points layer.
|
|
61
|
+
attr_accessor :text_formats
|
|
62
|
+
|
|
54
63
|
attr_accessor :additional_properties
|
|
55
64
|
|
|
56
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -58,6 +67,7 @@ module DatadogAPIClient::V1
|
|
|
58
67
|
def self.attribute_map
|
|
59
68
|
{
|
|
60
69
|
:'columns' => :'columns',
|
|
70
|
+
:'conditional_formats' => :'conditional_formats',
|
|
61
71
|
:'formulas' => :'formulas',
|
|
62
72
|
:'log_query' => :'log_query',
|
|
63
73
|
:'q' => :'q',
|
|
@@ -66,7 +76,9 @@ module DatadogAPIClient::V1
|
|
|
66
76
|
:'response_format' => :'response_format',
|
|
67
77
|
:'rum_query' => :'rum_query',
|
|
68
78
|
:'security_query' => :'security_query',
|
|
69
|
-
:'sort' => :'sort'
|
|
79
|
+
:'sort' => :'sort',
|
|
80
|
+
:'style' => :'style',
|
|
81
|
+
:'text_formats' => :'text_formats'
|
|
70
82
|
}
|
|
71
83
|
end
|
|
72
84
|
|
|
@@ -75,6 +87,7 @@ module DatadogAPIClient::V1
|
|
|
75
87
|
def self.openapi_types
|
|
76
88
|
{
|
|
77
89
|
:'columns' => :'Array<ListStreamColumn>',
|
|
90
|
+
:'conditional_formats' => :'Array<WidgetConditionalFormat>',
|
|
78
91
|
:'formulas' => :'Array<WidgetFormula>',
|
|
79
92
|
:'log_query' => :'LogQueryDefinition',
|
|
80
93
|
:'q' => :'String',
|
|
@@ -83,7 +96,9 @@ module DatadogAPIClient::V1
|
|
|
83
96
|
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
84
97
|
:'rum_query' => :'LogQueryDefinition',
|
|
85
98
|
:'security_query' => :'LogQueryDefinition',
|
|
86
|
-
:'sort' => :'WidgetSortBy'
|
|
99
|
+
:'sort' => :'WidgetSortBy',
|
|
100
|
+
:'style' => :'GeomapWidgetRequestStyle',
|
|
101
|
+
:'text_formats' => :'Array<TableWidgetTextFormatRule>'
|
|
87
102
|
}
|
|
88
103
|
end
|
|
89
104
|
|
|
@@ -111,6 +126,12 @@ module DatadogAPIClient::V1
|
|
|
111
126
|
end
|
|
112
127
|
end
|
|
113
128
|
|
|
129
|
+
if attributes.key?(:'conditional_formats')
|
|
130
|
+
if (value = attributes[:'conditional_formats']).is_a?(Array)
|
|
131
|
+
self.conditional_formats = value
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
114
135
|
if attributes.key?(:'formulas')
|
|
115
136
|
if (value = attributes[:'formulas']).is_a?(Array)
|
|
116
137
|
self.formulas = value
|
|
@@ -150,6 +171,16 @@ module DatadogAPIClient::V1
|
|
|
150
171
|
if attributes.key?(:'sort')
|
|
151
172
|
self.sort = attributes[:'sort']
|
|
152
173
|
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'style')
|
|
176
|
+
self.style = attributes[:'style']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'text_formats')
|
|
180
|
+
if (value = attributes[:'text_formats']).is_a?(Array)
|
|
181
|
+
self.text_formats = value
|
|
182
|
+
end
|
|
183
|
+
end
|
|
153
184
|
end
|
|
154
185
|
|
|
155
186
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -179,6 +210,7 @@ module DatadogAPIClient::V1
|
|
|
179
210
|
return true if self.equal?(o)
|
|
180
211
|
self.class == o.class &&
|
|
181
212
|
columns == o.columns &&
|
|
213
|
+
conditional_formats == o.conditional_formats &&
|
|
182
214
|
formulas == o.formulas &&
|
|
183
215
|
log_query == o.log_query &&
|
|
184
216
|
q == o.q &&
|
|
@@ -188,6 +220,8 @@ module DatadogAPIClient::V1
|
|
|
188
220
|
rum_query == o.rum_query &&
|
|
189
221
|
security_query == o.security_query &&
|
|
190
222
|
sort == o.sort &&
|
|
223
|
+
style == o.style &&
|
|
224
|
+
text_formats == o.text_formats &&
|
|
191
225
|
additional_properties == o.additional_properties
|
|
192
226
|
end
|
|
193
227
|
|
|
@@ -195,7 +229,7 @@ module DatadogAPIClient::V1
|
|
|
195
229
|
# @return [Integer] Hash code
|
|
196
230
|
# @!visibility private
|
|
197
231
|
def hash
|
|
198
|
-
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, additional_properties].hash
|
|
232
|
+
[columns, conditional_formats, formulas, log_query, q, queries, query, response_format, rum_query, security_query, sort, style, text_formats, additional_properties].hash
|
|
199
233
|
end
|
|
200
234
|
end
|
|
201
235
|
end
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
# The style to apply to the request for points layer.
|
|
21
|
+
class GeomapWidgetRequestStyle
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The category to color the points by.
|
|
25
|
+
attr_accessor :color_by
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'color_by' => :'color_by'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'color_by' => :'String'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GeomapWidgetRequestStyle` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'color_by')
|
|
64
|
+
self.color_by = attributes[:'color_by']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
color_by == o.color_by &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[color_by, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|