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
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.47.0/2025-12-17
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
* Mark Incident Impact Endpoints stable [#2840](https://github.com/DataDog/datadog-api-client-ruby/pull/2840)
|
|
7
|
+
* Vulnerability Management - Update ListVulnerabilities endpoint query params and response schema [#2832](https://github.com/DataDog/datadog-api-client-ruby/pull/2832)
|
|
8
|
+
* Update specs for AWS account updates and creation for CCM configs [#2825](https://github.com/DataDog/datadog-api-client-ruby/pull/2825)
|
|
9
|
+
* add suppression version history [#2801](https://github.com/DataDog/datadog-api-client-ruby/pull/2801)
|
|
10
|
+
* Add processors groups to Observability Pipelines [#2760](https://github.com/DataDog/datadog-api-client-ruby/pull/2760)
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
* Update security finding triage specs [#2833](https://github.com/DataDog/datadog-api-client-ruby/pull/2833)
|
|
14
|
+
* Add routes for managing On-Call user notification channels [#2828](https://github.com/DataDog/datadog-api-client-ruby/pull/2828)
|
|
15
|
+
* Add host field to Post an event V2 API [#2826](https://github.com/DataDog/datadog-api-client-ruby/pull/2826)
|
|
16
|
+
* Add `GET /api/v2/apm/services` endpoint to public documentation [#2823](https://github.com/DataDog/datadog-api-client-ruby/pull/2823)
|
|
17
|
+
* Dashboards - Add semantic_mode support to FormulaAndFunctionMetricQueryDefinition [#2817](https://github.com/DataDog/datadog-api-client-ruby/pull/2817)
|
|
18
|
+
* Cloud SIEM - Add instantaneousBaseline feature parameter. [#2814](https://github.com/DataDog/datadog-api-client-ruby/pull/2814)
|
|
19
|
+
* Add new fields to usage metering api spec [#2812](https://github.com/DataDog/datadog-api-client-ruby/pull/2812)
|
|
20
|
+
* update geomap widget definition about `conditional_format` and `text_formats` and view focus [#2806](https://github.com/DataDog/datadog-api-client-ruby/pull/2806)
|
|
21
|
+
* Add new endpoint for listing rules for a gate [#2792](https://github.com/DataDog/datadog-api-client-ruby/pull/2792)
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
* Tag security findings Jira endpoints as unstable [#2821](https://github.com/DataDog/datadog-api-client-ruby/pull/2821)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
* Add field attribute to the Workload Protection hash action [#2798](https://github.com/DataDog/datadog-api-client-ruby/pull/2798)
|
|
28
|
+
|
|
3
29
|
## 2.46.0/2025-12-08
|
|
4
30
|
|
|
5
31
|
### Added
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Create a new dashboard with a timeseries widget using formulas and functions metrics query with native semantic_mode
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
|
7
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
|
8
|
+
title: "Example-Dashboard with native semantic_mode",
|
|
9
|
+
widgets: [
|
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
|
11
|
+
definition: DatadogAPIClient::V1::TimeseriesWidgetDefinition.new({
|
|
12
|
+
type: DatadogAPIClient::V1::TimeseriesWidgetDefinitionType::TIMESERIES,
|
|
13
|
+
requests: [
|
|
14
|
+
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
|
|
15
|
+
queries: [
|
|
16
|
+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
|
|
17
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
|
|
18
|
+
name: "query1",
|
|
19
|
+
query: "avg:system.cpu.user{*}",
|
|
20
|
+
semantic_mode: DatadogAPIClient::V1::FormulaAndFunctionMetricSemanticMode::NATIVE,
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
|
|
24
|
+
formulas: [
|
|
25
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
|
26
|
+
formula: "query1",
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE,
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
}),
|
|
33
|
+
}),
|
|
34
|
+
],
|
|
35
|
+
})
|
|
36
|
+
p api_instance.create_dashboard(body)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Create a new dashboard with a timeseries widget using formulas and functions metrics query with combined semantic_mode
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
|
7
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
|
8
|
+
title: "Example-Dashboard with combined semantic_mode",
|
|
9
|
+
widgets: [
|
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
|
11
|
+
definition: DatadogAPIClient::V1::TimeseriesWidgetDefinition.new({
|
|
12
|
+
type: DatadogAPIClient::V1::TimeseriesWidgetDefinitionType::TIMESERIES,
|
|
13
|
+
requests: [
|
|
14
|
+
DatadogAPIClient::V1::TimeseriesWidgetRequest.new({
|
|
15
|
+
queries: [
|
|
16
|
+
DatadogAPIClient::V1::FormulaAndFunctionMetricQueryDefinition.new({
|
|
17
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionMetricDataSource::METRICS,
|
|
18
|
+
name: "query1",
|
|
19
|
+
query: "avg:system.cpu.user{*}",
|
|
20
|
+
semantic_mode: DatadogAPIClient::V1::FormulaAndFunctionMetricSemanticMode::COMBINED,
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::TIMESERIES,
|
|
24
|
+
formulas: [
|
|
25
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
|
26
|
+
formula: "query1",
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
29
|
+
display_type: DatadogAPIClient::V1::WidgetDisplayType::LINE,
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
}),
|
|
33
|
+
}),
|
|
34
|
+
],
|
|
35
|
+
})
|
|
36
|
+
p api_instance.create_dashboard(body)
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Create a geomap widget with conditional formats and text formats
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
|
|
5
|
+
|
|
6
|
+
body = DatadogAPIClient::V1::Dashboard.new({
|
|
7
|
+
title: "Example-Dashboard",
|
|
8
|
+
description: "Example-Dashboard",
|
|
9
|
+
widgets: [
|
|
10
|
+
DatadogAPIClient::V1::Widget.new({
|
|
11
|
+
definition: DatadogAPIClient::V1::GeomapWidgetDefinition.new({
|
|
12
|
+
title: "Log Count by Service and Source",
|
|
13
|
+
type: DatadogAPIClient::V1::GeomapWidgetDefinitionType::GEOMAP,
|
|
14
|
+
requests: [
|
|
15
|
+
DatadogAPIClient::V1::GeomapWidgetRequest.new({
|
|
16
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::SCALAR,
|
|
17
|
+
queries: [
|
|
18
|
+
DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinition.new({
|
|
19
|
+
data_source: DatadogAPIClient::V1::FormulaAndFunctionEventsDataSource::RUM,
|
|
20
|
+
name: "query1",
|
|
21
|
+
search: DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionSearch.new({
|
|
22
|
+
query: "@type:session",
|
|
23
|
+
}),
|
|
24
|
+
indexes: [
|
|
25
|
+
"*",
|
|
26
|
+
],
|
|
27
|
+
compute: DatadogAPIClient::V1::FormulaAndFunctionEventQueryDefinitionCompute.new({
|
|
28
|
+
aggregation: DatadogAPIClient::V1::FormulaAndFunctionEventAggregation::COUNT,
|
|
29
|
+
}),
|
|
30
|
+
group_by: [],
|
|
31
|
+
}),
|
|
32
|
+
],
|
|
33
|
+
conditional_formats: [
|
|
34
|
+
DatadogAPIClient::V1::WidgetConditionalFormat.new({
|
|
35
|
+
comparator: DatadogAPIClient::V1::WidgetComparator::GREATER_THAN,
|
|
36
|
+
value: 1000,
|
|
37
|
+
palette: DatadogAPIClient::V1::WidgetPalette::WHITE_ON_GREEN,
|
|
38
|
+
}),
|
|
39
|
+
],
|
|
40
|
+
formulas: [
|
|
41
|
+
DatadogAPIClient::V1::WidgetFormula.new({
|
|
42
|
+
formula: "query1",
|
|
43
|
+
}),
|
|
44
|
+
],
|
|
45
|
+
sort: DatadogAPIClient::V1::WidgetSortBy.new({
|
|
46
|
+
count: 250,
|
|
47
|
+
order_by: [
|
|
48
|
+
DatadogAPIClient::V1::WidgetFormulaSort.new({
|
|
49
|
+
type: DatadogAPIClient::V1::FormulaType::FORMULA,
|
|
50
|
+
index: 0,
|
|
51
|
+
order: DatadogAPIClient::V1::WidgetSort::DESCENDING,
|
|
52
|
+
}),
|
|
53
|
+
],
|
|
54
|
+
}),
|
|
55
|
+
}),
|
|
56
|
+
DatadogAPIClient::V1::GeomapWidgetRequest.new({
|
|
57
|
+
response_format: DatadogAPIClient::V1::FormulaAndFunctionResponseFormat::EVENT_LIST,
|
|
58
|
+
query: DatadogAPIClient::V1::ListStreamQuery.new({
|
|
59
|
+
data_source: DatadogAPIClient::V1::ListStreamSource::LOGS_STREAM,
|
|
60
|
+
query_string: "",
|
|
61
|
+
indexes: [],
|
|
62
|
+
storage: "hot",
|
|
63
|
+
}),
|
|
64
|
+
columns: [
|
|
65
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
|
66
|
+
field: "@network.client.geoip.location.latitude",
|
|
67
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
|
68
|
+
}),
|
|
69
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
|
70
|
+
field: "@network.client.geoip.location.longitude",
|
|
71
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
|
72
|
+
}),
|
|
73
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
|
74
|
+
field: "@network.client.geoip.country.iso_code",
|
|
75
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
|
76
|
+
}),
|
|
77
|
+
DatadogAPIClient::V1::ListStreamColumn.new({
|
|
78
|
+
field: "@network.client.geoip.subdivision.name",
|
|
79
|
+
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
|
|
80
|
+
}),
|
|
81
|
+
],
|
|
82
|
+
style: DatadogAPIClient::V1::GeomapWidgetRequestStyle.new({
|
|
83
|
+
color_by: "status",
|
|
84
|
+
}),
|
|
85
|
+
text_formats: [
|
|
86
|
+
DatadogAPIClient::V1::TableWidgetTextFormatRule.new({
|
|
87
|
+
match: DatadogAPIClient::V1::TableWidgetTextFormatMatch.new({
|
|
88
|
+
type: DatadogAPIClient::V1::TableWidgetTextFormatMatchType::IS,
|
|
89
|
+
value: "error",
|
|
90
|
+
}),
|
|
91
|
+
palette: DatadogAPIClient::V1::TableWidgetTextFormatPalette::WHITE_ON_RED,
|
|
92
|
+
}),
|
|
93
|
+
],
|
|
94
|
+
}),
|
|
95
|
+
],
|
|
96
|
+
style: DatadogAPIClient::V1::GeomapWidgetDefinitionStyle.new({
|
|
97
|
+
palette: "hostmap_blues",
|
|
98
|
+
palette_flip: false,
|
|
99
|
+
}),
|
|
100
|
+
view: DatadogAPIClient::V1::GeomapWidgetDefinitionView.new({
|
|
101
|
+
focus: "NORTH_AMERICA",
|
|
102
|
+
}),
|
|
103
|
+
}),
|
|
104
|
+
layout: DatadogAPIClient::V1::WidgetLayout.new({
|
|
105
|
+
x: 0,
|
|
106
|
+
y: 0,
|
|
107
|
+
width: 12,
|
|
108
|
+
height: 6,
|
|
109
|
+
}),
|
|
110
|
+
}),
|
|
111
|
+
],
|
|
112
|
+
template_variables: [],
|
|
113
|
+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
|
|
114
|
+
notify_list: [],
|
|
115
|
+
reflow_type: DatadogAPIClient::V1::DashboardReflowType::FIXED,
|
|
116
|
+
tags: [],
|
|
117
|
+
})
|
|
118
|
+
p api_instance.create_dashboard(body)
|
|
@@ -15,6 +15,17 @@ body = DatadogAPIClient::V2::AWSAccountCreateRequest.new({
|
|
|
15
15
|
}),
|
|
16
16
|
aws_account_id: "123456789012",
|
|
17
17
|
aws_partition: DatadogAPIClient::V2::AWSAccountPartition::AWS,
|
|
18
|
+
ccm_config: DatadogAPIClient::V2::AWSCCMConfig.new({
|
|
19
|
+
data_export_configs: [
|
|
20
|
+
DatadogAPIClient::V2::DataExportConfig.new({
|
|
21
|
+
bucket_name: "my-bucket",
|
|
22
|
+
bucket_region: "us-east-1",
|
|
23
|
+
report_name: "my-report",
|
|
24
|
+
report_prefix: "reports",
|
|
25
|
+
report_type: "CUR2.0",
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
28
|
+
}),
|
|
18
29
|
logs_config: DatadogAPIClient::V2::AWSLogsConfig.new({
|
|
19
30
|
lambda_forwarder: DatadogAPIClient::V2::AWSLambdaForwarderConfig.new({
|
|
20
31
|
lambdas: [
|
|
@@ -14,6 +14,17 @@ body = DatadogAPIClient::V2::AWSAccountCreateRequest.new({
|
|
|
14
14
|
}),
|
|
15
15
|
aws_account_id: "123456789012",
|
|
16
16
|
aws_partition: DatadogAPIClient::V2::AWSAccountPartition::AWS,
|
|
17
|
+
ccm_config: DatadogAPIClient::V2::AWSCCMConfig.new({
|
|
18
|
+
data_export_configs: [
|
|
19
|
+
DatadogAPIClient::V2::DataExportConfig.new({
|
|
20
|
+
bucket_name: "my-bucket",
|
|
21
|
+
bucket_region: "us-east-1",
|
|
22
|
+
report_name: "my-report",
|
|
23
|
+
report_prefix: "reports",
|
|
24
|
+
report_type: "CUR2.0",
|
|
25
|
+
}),
|
|
26
|
+
],
|
|
27
|
+
}),
|
|
17
28
|
logs_config: DatadogAPIClient::V2::AWSLogsConfig.new({
|
|
18
29
|
lambda_forwarder: DatadogAPIClient::V2::AWSLambdaForwarderConfig.new({
|
|
19
30
|
lambdas: [
|
|
@@ -17,6 +17,17 @@ body = DatadogAPIClient::V2::AWSAccountUpdateRequest.new({
|
|
|
17
17
|
}),
|
|
18
18
|
aws_account_id: "123456789012",
|
|
19
19
|
aws_partition: DatadogAPIClient::V2::AWSAccountPartition::AWS,
|
|
20
|
+
ccm_config: DatadogAPIClient::V2::AWSCCMConfig.new({
|
|
21
|
+
data_export_configs: [
|
|
22
|
+
DatadogAPIClient::V2::DataExportConfig.new({
|
|
23
|
+
bucket_name: "updated-bucket",
|
|
24
|
+
bucket_region: "us-west-2",
|
|
25
|
+
report_name: "updated-report",
|
|
26
|
+
report_prefix: "cost-reports",
|
|
27
|
+
report_type: "CUR2.0",
|
|
28
|
+
}),
|
|
29
|
+
],
|
|
30
|
+
}),
|
|
20
31
|
logs_config: DatadogAPIClient::V2::AWSLogsConfig.new({
|
|
21
32
|
lambda_forwarder: DatadogAPIClient::V2::AWSLambdaForwarderConfig.new({
|
|
22
33
|
lambdas: [
|
|
@@ -26,7 +26,9 @@ body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
|
|
|
26
26
|
}),
|
|
27
27
|
}),
|
|
28
28
|
DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAction.new({
|
|
29
|
-
_hash: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionHash.new({
|
|
29
|
+
_hash: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionHash.new({
|
|
30
|
+
field: "exec.file",
|
|
31
|
+
}),
|
|
30
32
|
}),
|
|
31
33
|
],
|
|
32
34
|
}),
|
|
@@ -20,7 +20,7 @@ body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({
|
|
|
20
20
|
DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAction.new({
|
|
21
21
|
set: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleActionSet.new({
|
|
22
22
|
name: "test_set",
|
|
23
|
-
expression: "
|
|
23
|
+
expression: "exec.file.path",
|
|
24
24
|
default_value: "/dev/null",
|
|
25
25
|
scope: "process",
|
|
26
26
|
}),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Get rules for a deployment gate returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
DatadogAPIClient.configure do |config|
|
|
5
|
+
config.unstable_operations["v2.get_deployment_gate_rules".to_sym] = true
|
|
6
|
+
end
|
|
7
|
+
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
|
|
8
|
+
|
|
9
|
+
# there is a valid "deployment_gate" in the system
|
|
10
|
+
DEPLOYMENT_GATE_DATA_ID = ENV["DEPLOYMENT_GATE_DATA_ID"]
|
|
11
|
+
p api_instance.get_deployment_gate_rules(DEPLOYMENT_GATE_DATA_ID)
|
|
@@ -34,6 +34,7 @@ body = DatadogAPIClient::V2::EventCreateRequestPayload.new({
|
|
|
34
34
|
}),
|
|
35
35
|
category: DatadogAPIClient::V2::EventCategory::CHANGE,
|
|
36
36
|
integration_id: DatadogAPIClient::V2::EventPayloadIntegrationId::CUSTOM_EVENTS,
|
|
37
|
+
host: "test-host",
|
|
37
38
|
message: "payment_processed feature flag has been enabled",
|
|
38
39
|
tags: [
|
|
39
40
|
"env:api_client_test",
|
|
@@ -14,19 +14,27 @@ body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({
|
|
|
14
14
|
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
|
|
15
15
|
id: "datadog-logs-destination",
|
|
16
16
|
inputs: [
|
|
17
|
-
"
|
|
17
|
+
"my-processor-group",
|
|
18
18
|
],
|
|
19
19
|
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
|
|
20
20
|
}),
|
|
21
21
|
],
|
|
22
22
|
processors: [
|
|
23
|
-
DatadogAPIClient::V2::
|
|
24
|
-
|
|
23
|
+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
|
|
24
|
+
enabled: true,
|
|
25
|
+
id: "my-processor-group",
|
|
25
26
|
include: "service:my-service",
|
|
26
27
|
inputs: [
|
|
27
28
|
"datadog-agent-source",
|
|
28
29
|
],
|
|
29
|
-
|
|
30
|
+
processors: [
|
|
31
|
+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
|
|
32
|
+
enabled: true,
|
|
33
|
+
id: "filter-processor",
|
|
34
|
+
include: "status:error",
|
|
35
|
+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
30
38
|
}),
|
|
31
39
|
],
|
|
32
40
|
sources: [
|
|
@@ -17,19 +17,27 @@ body = DatadogAPIClient::V2::ObservabilityPipeline.new({
|
|
|
17
17
|
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
|
|
18
18
|
id: "updated-datadog-logs-destination-id",
|
|
19
19
|
inputs: [
|
|
20
|
-
"
|
|
20
|
+
"my-processor-group",
|
|
21
21
|
],
|
|
22
22
|
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
|
|
23
23
|
}),
|
|
24
24
|
],
|
|
25
25
|
processors: [
|
|
26
|
-
DatadogAPIClient::V2::
|
|
27
|
-
|
|
26
|
+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
|
|
27
|
+
enabled: true,
|
|
28
|
+
id: "my-processor-group",
|
|
28
29
|
include: "service:my-service",
|
|
29
30
|
inputs: [
|
|
30
31
|
"datadog-agent-source",
|
|
31
32
|
],
|
|
32
|
-
|
|
33
|
+
processors: [
|
|
34
|
+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
|
|
35
|
+
enabled: true,
|
|
36
|
+
id: "filter-processor",
|
|
37
|
+
include: "status:error",
|
|
38
|
+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
|
|
39
|
+
}),
|
|
40
|
+
],
|
|
33
41
|
}),
|
|
34
42
|
],
|
|
35
43
|
sources: [
|
|
@@ -14,19 +14,27 @@ body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({
|
|
|
14
14
|
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
|
|
15
15
|
id: "datadog-logs-destination",
|
|
16
16
|
inputs: [
|
|
17
|
-
"
|
|
17
|
+
"my-processor-group",
|
|
18
18
|
],
|
|
19
19
|
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
|
|
20
20
|
}),
|
|
21
21
|
],
|
|
22
22
|
processors: [
|
|
23
|
-
DatadogAPIClient::V2::
|
|
24
|
-
|
|
23
|
+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
|
|
24
|
+
enabled: true,
|
|
25
|
+
id: "my-processor-group",
|
|
25
26
|
include: "service:my-service",
|
|
26
27
|
inputs: [
|
|
27
28
|
"datadog-agent-source",
|
|
28
29
|
],
|
|
29
|
-
|
|
30
|
+
processors: [
|
|
31
|
+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
|
|
32
|
+
enabled: true,
|
|
33
|
+
id: "filter-processor",
|
|
34
|
+
include: "status:error",
|
|
35
|
+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
30
38
|
}),
|
|
31
39
|
],
|
|
32
40
|
sources: [
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Create an On-Call notification channel for a user returns "Created" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::OnCallAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "user" in the system
|
|
7
|
+
USER_DATA_ID = ENV["USER_DATA_ID"]
|
|
8
|
+
|
|
9
|
+
body = DatadogAPIClient::V2::CreateUserNotificationChannelRequest.new({
|
|
10
|
+
data: DatadogAPIClient::V2::CreateNotificationChannelData.new({
|
|
11
|
+
attributes: DatadogAPIClient::V2::CreateNotificationChannelAttributes.new({
|
|
12
|
+
config: DatadogAPIClient::V2::CreateEmailNotificationChannelConfig.new({
|
|
13
|
+
address: "foo@bar.com",
|
|
14
|
+
formats: [
|
|
15
|
+
DatadogAPIClient::V2::NotificationChannelEmailFormatType::HTML,
|
|
16
|
+
],
|
|
17
|
+
type: DatadogAPIClient::V2::NotificationChannelEmailConfigType::EMAIL,
|
|
18
|
+
}),
|
|
19
|
+
}),
|
|
20
|
+
type: DatadogAPIClient::V2::NotificationChannelType::NOTIFICATION_CHANNELS,
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
p api_instance.create_user_notification_channel(USER_DATA_ID, body)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Delete an On-Call notification channel for a user returns "No Content" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::OnCallAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "user" in the system
|
|
7
|
+
USER_DATA_ID = ENV["USER_DATA_ID"]
|
|
8
|
+
|
|
9
|
+
# there is a valid "oncall_email_notification_channel" in the system
|
|
10
|
+
ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID = ENV["ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID"]
|
|
11
|
+
api_instance.delete_user_notification_channel(USER_DATA_ID, ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Get an On-Call notification channel for a user returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::OnCallAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "user" in the system
|
|
7
|
+
USER_DATA_ID = ENV["USER_DATA_ID"]
|
|
8
|
+
|
|
9
|
+
# there is a valid "oncall_email_notification_channel" in the system
|
|
10
|
+
ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID = ENV["ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID"]
|
|
11
|
+
p api_instance.get_user_notification_channel(USER_DATA_ID, ONCALL_EMAIL_NOTIFICATION_CHANNEL_DATA_ID)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# List On-Call notification channels for a user returns "OK" response
|
|
2
|
+
|
|
3
|
+
require "datadog_api_client"
|
|
4
|
+
api_instance = DatadogAPIClient::V2::OnCallAPI.new
|
|
5
|
+
|
|
6
|
+
# there is a valid "user" in the system
|
|
7
|
+
USER_DATA_ID = ENV["USER_DATA_ID"]
|
|
8
|
+
p api_instance.list_user_notification_channels(USER_DATA_ID)
|
|
@@ -14,7 +14,7 @@ body = DatadogAPIClient::V2::CreateCaseRequestArray.new({
|
|
|
14
14
|
findings: DatadogAPIClient::V2::Findings.new({
|
|
15
15
|
data: [
|
|
16
16
|
DatadogAPIClient::V2::FindingData.new({
|
|
17
|
-
id: "
|
|
17
|
+
id: "YjdhNDM3N2QyNTFjYmUwYTY3NDdhMTg0YTk2Yjg5MDl-ZjNmMzAwOTFkZDNhNGQzYzI0MzgxNTk4MjRjZmE2NzE=",
|
|
18
18
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
19
19
|
}),
|
|
20
20
|
],
|
|
@@ -37,7 +37,7 @@ body = DatadogAPIClient::V2::CreateCaseRequestArray.new({
|
|
|
37
37
|
findings: DatadogAPIClient::V2::Findings.new({
|
|
38
38
|
data: [
|
|
39
39
|
DatadogAPIClient::V2::FindingData.new({
|
|
40
|
-
id: "
|
|
40
|
+
id: "OGRlMDIwYzk4MjFmZTZiNTQwMzk2ZjUxNzg0MDc0NjR-MTk3Yjk4MDI4ZDQ4YzI2ZGZiMWJmMTNhNDEwZGZkYWI=",
|
|
41
41
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
42
42
|
}),
|
|
43
43
|
],
|
|
@@ -14,7 +14,7 @@ body = DatadogAPIClient::V2::CreateCaseRequestArray.new({
|
|
|
14
14
|
findings: DatadogAPIClient::V2::Findings.new({
|
|
15
15
|
data: [
|
|
16
16
|
DatadogAPIClient::V2::FindingData.new({
|
|
17
|
-
id: "
|
|
17
|
+
id: "YjdhNDM3N2QyNTFjYmUwYTY3NDdhMTg0YTk2Yjg5MDl-ZjNmMzAwOTFkZDNhNGQzYzI0MzgxNTk4MjRjZmE2NzE=",
|
|
18
18
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
19
19
|
}),
|
|
20
20
|
],
|
|
@@ -14,11 +14,11 @@ body = DatadogAPIClient::V2::CreateCaseRequestArray.new({
|
|
|
14
14
|
findings: DatadogAPIClient::V2::Findings.new({
|
|
15
15
|
data: [
|
|
16
16
|
DatadogAPIClient::V2::FindingData.new({
|
|
17
|
-
id: "
|
|
17
|
+
id: "ZTd5LWNuYi1seWV-aS0wMjI2NGZjZjRmZWQ5ODMyMg==",
|
|
18
18
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
19
19
|
}),
|
|
20
20
|
DatadogAPIClient::V2::FindingData.new({
|
|
21
|
-
id: "
|
|
21
|
+
id: "c2FuLXhyaS1kZnN-aS0wODM3MjVhMTM2MDExNzNkOQ==",
|
|
22
22
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
23
23
|
}),
|
|
24
24
|
],
|
|
@@ -1,95 +1,40 @@
|
|
|
1
1
|
# Create Jira issues for security findings returns "Created" response
|
|
2
2
|
|
|
3
3
|
require "datadog_api_client"
|
|
4
|
+
DatadogAPIClient.configure do |config|
|
|
5
|
+
config.unstable_operations["v2.create_jira_issues".to_sym] = true
|
|
6
|
+
end
|
|
4
7
|
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
|
5
8
|
|
|
6
9
|
body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({
|
|
7
10
|
data: [
|
|
8
11
|
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}),
|
|
12
|
+
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({
|
|
13
|
+
assignee_id: "f315bdaf-9ee7-4808-a9c1-99c15bf0f4d0",
|
|
14
|
+
description: "A description of the Jira issue.",
|
|
15
|
+
fields: {
|
|
16
|
+
"key1": "value", "key2": "['value']", "key3": "{'key4': 'value'}",
|
|
17
|
+
},
|
|
18
|
+
priority: DatadogAPIClient::V2::CasePriority::NOT_DEFINED,
|
|
19
|
+
title: "A title for the Jira issue.",
|
|
18
20
|
}),
|
|
19
|
-
}),
|
|
20
|
-
DatadogAPIClient::V2::CreateJiraIssueRequestData.new({
|
|
21
|
-
type: DatadogAPIClient::V2::JiraIssuesDataType::JIRA_ISSUES,
|
|
22
|
-
attributes: DatadogAPIClient::V2::CreateJiraIssueRequestDataAttributes.new({}),
|
|
23
21
|
relationships: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationships.new({
|
|
24
|
-
_case: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationshipsCase.new({
|
|
25
|
-
data: DatadogAPIClient::V2::CreateJiraIssueRequestDataRelationshipsCaseData.new({
|
|
26
|
-
type: DatadogAPIClient::V2::CaseDataType::CASES,
|
|
27
|
-
id: "195772b2-1f53-41d2-b81e-48c8e6c21d33",
|
|
28
|
-
}),
|
|
29
|
-
}),
|
|
30
|
-
}),
|
|
31
|
-
}),
|
|
32
|
-
],
|
|
33
|
-
included: [
|
|
34
|
-
DatadogAPIClient::V2::CreateCaseRequestData.new({
|
|
35
|
-
type: DatadogAPIClient::V2::CaseDataType::CASES,
|
|
36
|
-
attributes: DatadogAPIClient::V2::CreateCaseRequestDataAttributes.new({
|
|
37
|
-
title: "A title",
|
|
38
|
-
description: "A description",
|
|
39
|
-
}),
|
|
40
|
-
relationships: DatadogAPIClient::V2::CreateCaseRequestDataRelationships.new({
|
|
41
|
-
project: DatadogAPIClient::V2::CaseManagementProject.new({
|
|
42
|
-
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
|
|
43
|
-
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
|
|
44
|
-
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
|
|
45
|
-
}),
|
|
46
|
-
}),
|
|
47
22
|
findings: DatadogAPIClient::V2::Findings.new({
|
|
48
23
|
data: [
|
|
49
24
|
DatadogAPIClient::V2::FindingData.new({
|
|
25
|
+
id: "ZGVmLTAwcC1pZXJ-aS0wZjhjNjMyZDNmMzRlZTgzNw==",
|
|
50
26
|
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
51
|
-
id: "OTQ3NjJkMmYwMTIzMzMxNTc1Y2Q4MTA5NWU0NTBmMDl-ZjE3NjMxZWVkYzBjZGI1NDY2NWY2OGQxZDk4MDY4MmI=",
|
|
52
27
|
}),
|
|
53
28
|
],
|
|
54
29
|
}),
|
|
55
|
-
}),
|
|
56
|
-
id: "53e242c6-a7d6-46ad-9680-b8d14753f716",
|
|
57
|
-
}),
|
|
58
|
-
DatadogAPIClient::V2::CreateCaseRequestData.new({
|
|
59
|
-
type: DatadogAPIClient::V2::CaseDataType::CASES,
|
|
60
|
-
attributes: DatadogAPIClient::V2::CreateCaseRequestDataAttributes.new({
|
|
61
|
-
title: "A title",
|
|
62
|
-
description: "A description",
|
|
63
|
-
}),
|
|
64
|
-
relationships: DatadogAPIClient::V2::CreateCaseRequestDataRelationships.new({
|
|
65
30
|
project: DatadogAPIClient::V2::CaseManagementProject.new({
|
|
66
31
|
data: DatadogAPIClient::V2::CaseManagementProjectData.new({
|
|
32
|
+
id: "aeadc05e-98a8-11ec-ac2c-da7ad0900001",
|
|
67
33
|
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
|
|
68
|
-
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
|
|
69
34
|
}),
|
|
70
35
|
}),
|
|
71
|
-
findings: DatadogAPIClient::V2::Findings.new({
|
|
72
|
-
data: [
|
|
73
|
-
DatadogAPIClient::V2::FindingData.new({
|
|
74
|
-
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
75
|
-
id: "MTNjN2ZmYWMzMDIxYmU1ZDFiZDRjNWUwN2I1NzVmY2F-YTA3MzllMTUzNWM3NmEyZjdiNzEzOWM5YmViZTMzOGM=",
|
|
76
|
-
}),
|
|
77
|
-
],
|
|
78
|
-
}),
|
|
79
36
|
}),
|
|
80
|
-
|
|
81
|
-
}),
|
|
82
|
-
DatadogAPIClient::V2::CaseManagementProjectData.new({
|
|
83
|
-
type: DatadogAPIClient::V2::CaseManagementProjectDataType::PROJECTS,
|
|
84
|
-
id: "959a6f71-bac8-4027-b1d3-2264f569296f",
|
|
85
|
-
}),
|
|
86
|
-
DatadogAPIClient::V2::FindingData.new({
|
|
87
|
-
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
88
|
-
id: "OTQ3NjJkMmYwMTIzMzMxNTc1Y2Q4MTA5NWU0NTBmMDl-ZjE3NjMxZWVkYzBjZGI1NDY2NWY2OGQxZDk4MDY4MmI=",
|
|
89
|
-
}),
|
|
90
|
-
DatadogAPIClient::V2::FindingData.new({
|
|
91
|
-
type: DatadogAPIClient::V2::FindingDataType::FINDINGS,
|
|
92
|
-
id: "MTNjN2ZmYWMzMDIxYmU1ZDFiZDRjNWUwN2I1NzVmY2F-YTA3MzllMTUzNWM3NmEyZjdiNzEzOWM5YmViZTMzOGM=",
|
|
37
|
+
type: DatadogAPIClient::V2::JiraIssuesDataType::JIRA_ISSUES,
|
|
93
38
|
}),
|
|
94
39
|
],
|
|
95
40
|
})
|