datadog_api_client 2.16.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +654 -11
- data/.generator/schemas/v2/openapi.yaml +1268 -206
- data/.generator/src/generator/formatter.py +4 -0
- data/.generator/src/generator/openapi.py +2 -0
- data/.generator/src/generator/templates/api_client.j2 +3 -0
- data/.generator/src/generator/templates/inflector.j2 +1 -1
- data/.generator/src/generator/templates/model_base.j2 +4 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +1 -0
- data/LICENSE-3rdparty.csv +1 -0
- data/datadog_api_client.gemspec +2 -0
- data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb +12 -0
- data/examples/v1/aws-integration/CreateAWSTagFilter.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -1
- data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb +11 -0
- data/examples/v1/aws-integration/ListAWSEventBridgeSources.rb +5 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +1 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +1 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +1 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +1 -0
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +7 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +0 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/confluent-cloud/DeleteConfluentAccount.rb +4 -1
- data/examples/v2/confluent-cloud/DeleteConfluentResource.rb +5 -0
- data/examples/v2/containers/ListContainers.rb +8 -0
- data/examples/v2/containers/ListContainers_2175733917.rb +11 -0
- data/examples/v2/containers/ListContainers_931009654.rb +11 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +1 -1
- data/examples/v2/key-management/CreateCurrentUserApplicationKey.rb +2 -7
- data/examples/v2/key-management/DeleteApplicationKey.rb +4 -1
- data/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb +4 -1
- data/examples/v2/powerpack/CreatePowerpack.rb +1 -0
- data/examples/v2/powerpack/UpdatePowerpack.rb +1 -0
- data/examples/v2/security-monitoring/MuteFindings.rb +29 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb +27 -0
- data/examples/v2/service-scorecards/CreateScorecardRule.rb +19 -0
- data/examples/v2/service-scorecards/DeleteScorecardRule.rb +11 -0
- data/examples/v2/service-scorecards/ListScorecardOutcomes.rb +8 -0
- data/examples/v2/service-scorecards/ListScorecardOutcomes_2663454275.rb +13 -0
- data/examples/v2/service-scorecards/ListScorecardRules.rb +8 -0
- data/examples/v2/service-scorecards/ListScorecardRules_4057666343.rb +13 -0
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +3 -1
- data/examples/v2/teams/ListTeams_3429963470.rb +12 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +4 -1
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +4 -1
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +4 -1
- data/examples/v2/users/GetUser.rb +5 -2
- data/lib/datadog_api_client/api_client.rb +3 -0
- data/lib/datadog_api_client/configuration.rb +8 -1
- data/lib/datadog_api_client/inflector.rb +76 -9
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +194 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +5 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/model_base.rb +4 -0
- data/lib/datadog_api_client/v1/models/aws_account.rb +2 -1
- data/lib/datadog_api_client/v1/models/aws_event_bridge_account_configuration.rb +105 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_request.rb +112 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_response.rb +110 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_create_status.rb +26 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_request.rb +100 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_response.rb +80 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_delete_status.rb +26 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_list_response.rb +92 -0
- data/lib/datadog_api_client/v1/models/aws_event_bridge_source.rb +90 -0
- data/lib/datadog_api_client/v1/models/azure_account.rb +12 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +21 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +42 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +421 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_flat.rb +98 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked.rb +119 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/toplist_widget_style.rb +90 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/containers_api.rb +129 -0
- data/lib/datadog_api_client/v2/api/key_management_api.rb +8 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +6 -3
- data/lib/datadog_api_client/v2/api/roles_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +66 -72
- data/lib/datadog_api_client/v2/api/service_scorecards_api.rb +457 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +2 -0
- data/lib/datadog_api_client/v2/model_base.rb +4 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request.rb → bulk_mute_findings_request.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{mute_finding_request_attributes.rb → bulk_mute_findings_request_attributes.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{mute_finding_request_data.rb → bulk_mute_findings_request_data.rb} +28 -7
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta.rb +82 -0
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_request_meta_findings.rb +80 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_request_properties.rb → bulk_mute_findings_request_properties.rb} +6 -6
- data/lib/datadog_api_client/v2/models/{mute_finding_response.rb → bulk_mute_findings_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/bulk_mute_findings_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/{mute_finding_response_data.rb → container.rb} +9 -9
- data/lib/datadog_api_client/v2/models/container_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/container_group.rb +110 -0
- data/lib/datadog_api_client/v2/models/container_group_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships_link.rb +92 -0
- data/lib/datadog_api_client/v2/models/container_group_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/container_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_meta_page.rb +160 -0
- data/lib/datadog_api_client/v2/models/container_meta_page_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/containers_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/containers_response_links.rb +130 -0
- data/lib/datadog_api_client/v2/models/create_rule_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_rule_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/create_rule_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/create_rule_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/list_rules_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/list_rules_response_data_item.rb +110 -0
- data/lib/datadog_api_client/v2/models/list_rules_response_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/outcome_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_attributes.rb +82 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_request_item.rb +150 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response.rb +121 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_batch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/outcomes_response.rb +104 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_data_item.rb +110 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_included_rule_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/outcomes_response_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +14 -4
- data/lib/datadog_api_client/v2/models/relationship_to_outcome.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_outcome_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule_data.rb +80 -0
- data/lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb +90 -0
- data/lib/datadog_api_client/v2/models/rule_attributes.rb +160 -0
- data/lib/datadog_api_client/v2/models/rule_outcome_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/scorecard_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +8 -8
- data/lib/datadog_api_client/v2/models/state.rb +28 -0
- data/lib/datadog_api_client/v2/models/teams_field.rb +40 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/widget_live_span.rb +40 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +113 -25
- data/examples/v2/confluent-cloud/DeleteConfluentAccount_2919241291.rb +0 -8
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -5
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +0 -14
- data/examples/v2/key-management/DeleteApplicationKey_771691550.rb +0 -8
- data/examples/v2/key-management/DeleteCurrentUserApplicationKey_1266687064.rb +0 -8
- data/examples/v2/key-management/GetCurrentUserApplicationKey_1060640890.rb +0 -8
- data/examples/v2/key-management/ListApplicationKeys_2237010090.rb +0 -5
- data/examples/v2/key-management/ListCurrentUserApplicationKeys_1503860964.rb +0 -5
- data/examples/v2/security-monitoring/UpdateFinding.rb +0 -23
- data/examples/v2/synthetics/GetOnDemandConcurrencyCap_2633566918.rb +0 -5
- data/examples/v2/synthetics/SetOnDemandConcurrencyCap_2850884405.rb +0 -9
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +0 -8
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +0 -8
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +0 -8
- data/examples/v2/users/GetUser_3047557953.rb +0 -8
- data/lib/datadog_api_client/v2/models/mute_finding_response_attributes.rb +0 -191
- data/lib/datadog_api_client/v2/models/mute_finding_response_properties.rb +0 -114
|
@@ -96,6 +96,9 @@ module DatadogAPIClient::V1
|
|
|
96
96
|
# Sum of the host count average for Cloud Cost Management for all cloud providers.
|
|
97
97
|
attr_accessor :cloud_cost_management_host_count_avg_sum
|
|
98
98
|
|
|
99
|
+
# Shows the sum of all Cloud Security Information and Event Management events over all hours in the current months for all organizations.
|
|
100
|
+
attr_accessor :cloud_siem_events_agg_sum
|
|
101
|
+
|
|
99
102
|
# Shows the average of all distinct containers over all hours in the current months for all organizations.
|
|
100
103
|
attr_accessor :container_avg_sum
|
|
101
104
|
|
|
@@ -380,6 +383,7 @@ module DatadogAPIClient::V1
|
|
|
380
383
|
:'cloud_cost_management_aws_host_count_avg_sum' => :'cloud_cost_management_aws_host_count_avg_sum',
|
|
381
384
|
:'cloud_cost_management_azure_host_count_avg_sum' => :'cloud_cost_management_azure_host_count_avg_sum',
|
|
382
385
|
:'cloud_cost_management_host_count_avg_sum' => :'cloud_cost_management_host_count_avg_sum',
|
|
386
|
+
:'cloud_siem_events_agg_sum' => :'cloud_siem_events_agg_sum',
|
|
383
387
|
:'container_avg_sum' => :'container_avg_sum',
|
|
384
388
|
:'container_excl_agent_avg_sum' => :'container_excl_agent_avg_sum',
|
|
385
389
|
:'container_hwm_sum' => :'container_hwm_sum',
|
|
@@ -497,6 +501,7 @@ module DatadogAPIClient::V1
|
|
|
497
501
|
:'cloud_cost_management_aws_host_count_avg_sum' => :'Integer',
|
|
498
502
|
:'cloud_cost_management_azure_host_count_avg_sum' => :'Integer',
|
|
499
503
|
:'cloud_cost_management_host_count_avg_sum' => :'Integer',
|
|
504
|
+
:'cloud_siem_events_agg_sum' => :'Integer',
|
|
500
505
|
:'container_avg_sum' => :'Integer',
|
|
501
506
|
:'container_excl_agent_avg_sum' => :'Integer',
|
|
502
507
|
:'container_hwm_sum' => :'Integer',
|
|
@@ -701,6 +706,10 @@ module DatadogAPIClient::V1
|
|
|
701
706
|
self.cloud_cost_management_host_count_avg_sum = attributes[:'cloud_cost_management_host_count_avg_sum']
|
|
702
707
|
end
|
|
703
708
|
|
|
709
|
+
if attributes.key?(:'cloud_siem_events_agg_sum')
|
|
710
|
+
self.cloud_siem_events_agg_sum = attributes[:'cloud_siem_events_agg_sum']
|
|
711
|
+
end
|
|
712
|
+
|
|
704
713
|
if attributes.key?(:'container_avg_sum')
|
|
705
714
|
self.container_avg_sum = attributes[:'container_avg_sum']
|
|
706
715
|
end
|
|
@@ -1075,6 +1084,7 @@ module DatadogAPIClient::V1
|
|
|
1075
1084
|
cloud_cost_management_aws_host_count_avg_sum == o.cloud_cost_management_aws_host_count_avg_sum &&
|
|
1076
1085
|
cloud_cost_management_azure_host_count_avg_sum == o.cloud_cost_management_azure_host_count_avg_sum &&
|
|
1077
1086
|
cloud_cost_management_host_count_avg_sum == o.cloud_cost_management_host_count_avg_sum &&
|
|
1087
|
+
cloud_siem_events_agg_sum == o.cloud_siem_events_agg_sum &&
|
|
1078
1088
|
container_avg_sum == o.container_avg_sum &&
|
|
1079
1089
|
container_excl_agent_avg_sum == o.container_excl_agent_avg_sum &&
|
|
1080
1090
|
container_hwm_sum == o.container_hwm_sum &&
|
|
@@ -1166,7 +1176,7 @@ module DatadogAPIClient::V1
|
|
|
1166
1176
|
# @return [Integer] Hash code
|
|
1167
1177
|
# @!visibility private
|
|
1168
1178
|
def hash
|
|
1169
|
-
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_azure_count_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
|
|
1179
|
+
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, cloud_siem_events_agg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, csm_container_enterprise_compliance_count_agg_sum, csm_container_enterprise_cws_count_agg_sum, csm_container_enterprise_total_count_agg_sum, csm_host_enterprise_aas_host_count_top99p_sum, csm_host_enterprise_aws_host_count_top99p_sum, csm_host_enterprise_azure_host_count_top99p_sum, csm_host_enterprise_compliance_host_count_top99p_sum, csm_host_enterprise_cws_host_count_top99p_sum, csm_host_enterprise_gcp_host_count_top99p_sum, csm_host_enterprise_total_host_count_top99p_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, ndm_netflow_events_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_aas_count_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, serverless_apps_azure_count_avg_sum, serverless_apps_google_count_avg_sum, serverless_apps_total_count_avg_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_mobile_test_runs_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
|
|
1170
1180
|
end
|
|
1171
1181
|
end
|
|
1172
1182
|
end
|
|
@@ -108,6 +108,12 @@ module DatadogAPIClient::V2
|
|
|
108
108
|
# @param opts [Hash] the optional parameters
|
|
109
109
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
110
110
|
def create_ci_app_pipeline_event_with_http_info(body, opts = {})
|
|
111
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_ci_app_pipeline_event".to_sym]
|
|
112
|
+
if unstable_enabled
|
|
113
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_ci_app_pipeline_event")
|
|
114
|
+
else
|
|
115
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_ci_app_pipeline_event"))
|
|
116
|
+
end
|
|
111
117
|
|
|
112
118
|
if @api_client.config.debugging
|
|
113
119
|
@api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.create_ci_app_pipeline_event ...'
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 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 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class ContainersAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Get All Containers.
|
|
27
|
+
#
|
|
28
|
+
# @see #list_containers_with_http_info
|
|
29
|
+
def list_containers(opts = {})
|
|
30
|
+
data, _status_code, _headers = list_containers_with_http_info(opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get All Containers.
|
|
35
|
+
#
|
|
36
|
+
# Get all containers for your organization.
|
|
37
|
+
#
|
|
38
|
+
# @param opts [Hash] the optional parameters
|
|
39
|
+
# @option opts [String] :filter_tags Comma-separated list of tags to filter containers by.
|
|
40
|
+
# @option opts [String] :group_by Comma-separated list of tags to group containers by.
|
|
41
|
+
# @option opts [String] :sort Attribute to sort containers by.
|
|
42
|
+
# @option opts [Integer] :page_size Maximum number of results returned.
|
|
43
|
+
# @option opts [String] :page_cursor String to query the next page of results. This key is provided with each valid response from the API in `meta.pagination.next_cursor`.
|
|
44
|
+
# @return [Array<(ContainersResponse, Integer, Hash)>] ContainersResponse data, response status code and response headers
|
|
45
|
+
def list_containers_with_http_info(opts = {})
|
|
46
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_containers".to_sym]
|
|
47
|
+
if unstable_enabled
|
|
48
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_containers")
|
|
49
|
+
else
|
|
50
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_containers"))
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
if @api_client.config.debugging
|
|
54
|
+
@api_client.config.logger.debug 'Calling API: ContainersAPI.list_containers ...'
|
|
55
|
+
end
|
|
56
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
|
|
57
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ContainersAPI.list_containers, must be smaller than or equal to 10000.'
|
|
58
|
+
end
|
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ContainersAPI.list_containers, must be greater than or equal to 1.'
|
|
61
|
+
end
|
|
62
|
+
# resource path
|
|
63
|
+
local_var_path = '/api/v2/containers'
|
|
64
|
+
|
|
65
|
+
# query parameters
|
|
66
|
+
query_params = opts[:query_params] || {}
|
|
67
|
+
query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil?
|
|
68
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
69
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
70
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
71
|
+
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
72
|
+
|
|
73
|
+
# header parameters
|
|
74
|
+
header_params = opts[:header_params] || {}
|
|
75
|
+
# HTTP header 'Accept' (if needed)
|
|
76
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
77
|
+
|
|
78
|
+
# form parameters
|
|
79
|
+
form_params = opts[:form_params] || {}
|
|
80
|
+
|
|
81
|
+
# http body (model)
|
|
82
|
+
post_body = opts[:debug_body]
|
|
83
|
+
|
|
84
|
+
# return_type
|
|
85
|
+
return_type = opts[:debug_return_type] || 'ContainersResponse'
|
|
86
|
+
|
|
87
|
+
# auth_names
|
|
88
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
89
|
+
|
|
90
|
+
new_options = opts.merge(
|
|
91
|
+
:operation => :list_containers,
|
|
92
|
+
:header_params => header_params,
|
|
93
|
+
:query_params => query_params,
|
|
94
|
+
:form_params => form_params,
|
|
95
|
+
:body => post_body,
|
|
96
|
+
:auth_names => auth_names,
|
|
97
|
+
:return_type => return_type,
|
|
98
|
+
:api_version => "V2"
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug "API called: ContainersAPI#list_containers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
104
|
+
end
|
|
105
|
+
return data, status_code, headers
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Get All Containers.
|
|
109
|
+
#
|
|
110
|
+
# Provide a paginated version of {#list_containers}, returning all items.
|
|
111
|
+
#
|
|
112
|
+
# To use it you need to use a block: list_containers_with_pagination { |item| p item }
|
|
113
|
+
#
|
|
114
|
+
# @yield [ContainerItem] Paginated items
|
|
115
|
+
def list_containers_with_pagination(opts = {})
|
|
116
|
+
api_version = "V2"
|
|
117
|
+
page_size = @api_client.get_attribute_from_path(opts, "page_size", 1000)
|
|
118
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_size", Integer, page_size)
|
|
119
|
+
while true do
|
|
120
|
+
response = list_containers(opts)
|
|
121
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
122
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
123
|
+
break
|
|
124
|
+
end
|
|
125
|
+
@api_client.set_attribute_from_path(api_version, opts, "page_cursor", String, @api_client.get_attribute_from_path(response, "meta.pagination.next_cursor"))
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -573,6 +573,8 @@ module DatadogAPIClient::V2
|
|
|
573
573
|
# @option opts [String] :filter_modified_at_start Only include API keys modified on or after the specified date.
|
|
574
574
|
# @option opts [String] :filter_modified_at_end Only include API keys modified on or before the specified date.
|
|
575
575
|
# @option opts [String] :include Comma separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `modified_by`.
|
|
576
|
+
# @option opts [Boolean] :filter_remote_config_read_enabled Filter API keys by remote config read enabled status.
|
|
577
|
+
# @option opts [String] :filter_category Filter API keys by category.
|
|
576
578
|
# @return [Array<(APIKeysResponse, Integer, Hash)>] APIKeysResponse data, response status code and response headers
|
|
577
579
|
def list_api_keys_with_http_info(opts = {})
|
|
578
580
|
|
|
@@ -597,6 +599,8 @@ module DatadogAPIClient::V2
|
|
|
597
599
|
query_params[:'filter[modified_at][start]'] = opts[:'filter_modified_at_start'] if !opts[:'filter_modified_at_start'].nil?
|
|
598
600
|
query_params[:'filter[modified_at][end]'] = opts[:'filter_modified_at_end'] if !opts[:'filter_modified_at_end'].nil?
|
|
599
601
|
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
602
|
+
query_params[:'filter[remote_config_read_enabled]'] = opts[:'filter_remote_config_read_enabled'] if !opts[:'filter_remote_config_read_enabled'].nil?
|
|
603
|
+
query_params[:'filter[category]'] = opts[:'filter_category'] if !opts[:'filter_category'].nil?
|
|
600
604
|
|
|
601
605
|
# header parameters
|
|
602
606
|
header_params = opts[:header_params] || {}
|
|
@@ -652,6 +656,7 @@ module DatadogAPIClient::V2
|
|
|
652
656
|
# @option opts [String] :filter Filter application keys by the specified string.
|
|
653
657
|
# @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date.
|
|
654
658
|
# @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date.
|
|
659
|
+
# @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported.
|
|
655
660
|
# @return [Array<(ListApplicationKeysResponse, Integer, Hash)>] ListApplicationKeysResponse data, response status code and response headers
|
|
656
661
|
def list_application_keys_with_http_info(opts = {})
|
|
657
662
|
|
|
@@ -673,6 +678,7 @@ module DatadogAPIClient::V2
|
|
|
673
678
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
674
679
|
query_params[:'filter[created_at][start]'] = opts[:'filter_created_at_start'] if !opts[:'filter_created_at_start'].nil?
|
|
675
680
|
query_params[:'filter[created_at][end]'] = opts[:'filter_created_at_end'] if !opts[:'filter_created_at_end'].nil?
|
|
681
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
676
682
|
|
|
677
683
|
# header parameters
|
|
678
684
|
header_params = opts[:header_params] || {}
|
|
@@ -728,6 +734,7 @@ module DatadogAPIClient::V2
|
|
|
728
734
|
# @option opts [String] :filter Filter application keys by the specified string.
|
|
729
735
|
# @option opts [String] :filter_created_at_start Only include application keys created on or after the specified date.
|
|
730
736
|
# @option opts [String] :filter_created_at_end Only include application keys created on or before the specified date.
|
|
737
|
+
# @option opts [String] :include Resource path for related resources to include in the response. Only `owned_by` is supported.
|
|
731
738
|
# @return [Array<(ListApplicationKeysResponse, Integer, Hash)>] ListApplicationKeysResponse data, response status code and response headers
|
|
732
739
|
def list_current_user_application_keys_with_http_info(opts = {})
|
|
733
740
|
|
|
@@ -749,6 +756,7 @@ module DatadogAPIClient::V2
|
|
|
749
756
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
750
757
|
query_params[:'filter[created_at][start]'] = opts[:'filter_created_at_start'] if !opts[:'filter_created_at_start'].nil?
|
|
751
758
|
query_params[:'filter[created_at][end]'] = opts[:'filter_created_at_end'] if !opts[:'filter_created_at_end'].nil?
|
|
759
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
752
760
|
|
|
753
761
|
# header parameters
|
|
754
762
|
header_params = opts[:header_params] || {}
|
|
@@ -37,7 +37,8 @@ module DatadogAPIClient::V2
|
|
|
37
37
|
# Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations.
|
|
38
38
|
# Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
|
|
39
39
|
# If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not
|
|
40
|
-
# expect deterministic ordering of concurrent calls.
|
|
40
|
+
# expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to
|
|
41
|
+
# the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric.
|
|
41
42
|
# Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
|
|
42
43
|
#
|
|
43
44
|
# @param body [MetricBulkTagConfigCreateRequest]
|
|
@@ -107,7 +108,8 @@ module DatadogAPIClient::V2
|
|
|
107
108
|
#
|
|
108
109
|
# Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
|
|
109
110
|
# Optionally, include percentile aggregations on any distribution metric or configure custom aggregations
|
|
110
|
-
# on any count, rate, or gauge metric.
|
|
111
|
+
# on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
|
|
112
|
+
# from an allow-list to a deny-list, and tags in the defined list will not be queryable.
|
|
111
113
|
# Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
|
|
112
114
|
#
|
|
113
115
|
# @param metric_name [String] The name of the metric.
|
|
@@ -976,7 +978,8 @@ module DatadogAPIClient::V2
|
|
|
976
978
|
# Update a tag configuration.
|
|
977
979
|
#
|
|
978
980
|
# Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations
|
|
979
|
-
# of a count, rate, or gauge metric.
|
|
981
|
+
# of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
|
|
982
|
+
# from an allow-list to a deny-list, and tags in the defined list will not be queryable.
|
|
980
983
|
# Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
|
|
981
984
|
#
|
|
982
985
|
# @param metric_name [String] The name of the metric.
|
|
@@ -578,6 +578,7 @@ module DatadogAPIClient::V2
|
|
|
578
578
|
# @option opts [Integer] :page_number Specific page number to return.
|
|
579
579
|
# @option opts [RolesSort] :sort Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`.
|
|
580
580
|
# @option opts [String] :filter Filter all roles by the given string.
|
|
581
|
+
# @option opts [String] :filter_id Filter all roles by the given list of role IDs.
|
|
581
582
|
# @return [Array<(RolesResponse, Integer, Hash)>] RolesResponse data, response status code and response headers
|
|
582
583
|
def list_roles_with_http_info(opts = {})
|
|
583
584
|
|
|
@@ -597,6 +598,7 @@ module DatadogAPIClient::V2
|
|
|
597
598
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
598
599
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
599
600
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
601
|
+
query_params[:'filter[id]'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
|
600
602
|
|
|
601
603
|
# header parameters
|
|
602
604
|
header_params = opts[:header_params] || {}
|
|
@@ -1164,30 +1164,38 @@ module DatadogAPIClient::V2
|
|
|
1164
1164
|
end
|
|
1165
1165
|
end
|
|
1166
1166
|
|
|
1167
|
-
#
|
|
1167
|
+
# Mute or unmute a batch of findings.
|
|
1168
1168
|
#
|
|
1169
|
-
# @see #
|
|
1170
|
-
def
|
|
1171
|
-
data, _status_code, _headers =
|
|
1169
|
+
# @see #mute_findings_with_http_info
|
|
1170
|
+
def mute_findings(body, opts = {})
|
|
1171
|
+
data, _status_code, _headers = mute_findings_with_http_info(body, opts)
|
|
1172
1172
|
data
|
|
1173
1173
|
end
|
|
1174
1174
|
|
|
1175
|
-
#
|
|
1175
|
+
# Mute or unmute a batch of findings.
|
|
1176
1176
|
#
|
|
1177
|
-
#
|
|
1178
|
-
# Both this endpoint and the GET endpoint can be used interchangeably for listing
|
|
1179
|
-
# security signals.
|
|
1177
|
+
# Mute or unmute findings.
|
|
1180
1178
|
#
|
|
1179
|
+
# @param body [BulkMuteFindingsRequest] ### Attributes All findings are updated with the same attributes. The request body must include at least two attributes: `muted` and `reason`. The allowed reasons depend on whether the finding is being muted or unmuted: - To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`. - To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`. ### Meta The request body must include a list of the finding IDs to be updated.
|
|
1181
1180
|
# @param opts [Hash] the optional parameters
|
|
1182
|
-
# @
|
|
1183
|
-
|
|
1184
|
-
|
|
1181
|
+
# @return [Array<(BulkMuteFindingsResponse, Integer, Hash)>] BulkMuteFindingsResponse data, response status code and response headers
|
|
1182
|
+
def mute_findings_with_http_info(body, opts = {})
|
|
1183
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.mute_findings".to_sym]
|
|
1184
|
+
if unstable_enabled
|
|
1185
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.mute_findings")
|
|
1186
|
+
else
|
|
1187
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.mute_findings"))
|
|
1188
|
+
end
|
|
1185
1189
|
|
|
1186
1190
|
if @api_client.config.debugging
|
|
1187
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
1191
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.mute_findings ...'
|
|
1192
|
+
end
|
|
1193
|
+
# verify the required parameter 'body' is set
|
|
1194
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
1195
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.mute_findings"
|
|
1188
1196
|
end
|
|
1189
1197
|
# resource path
|
|
1190
|
-
local_var_path = '/api/v2/
|
|
1198
|
+
local_var_path = '/api/v2/posture_management/findings'
|
|
1191
1199
|
|
|
1192
1200
|
# query parameters
|
|
1193
1201
|
query_params = opts[:query_params] || {}
|
|
@@ -1203,16 +1211,16 @@ module DatadogAPIClient::V2
|
|
|
1203
1211
|
form_params = opts[:form_params] || {}
|
|
1204
1212
|
|
|
1205
1213
|
# http body (model)
|
|
1206
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
1214
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1207
1215
|
|
|
1208
1216
|
# return_type
|
|
1209
|
-
return_type = opts[:debug_return_type] || '
|
|
1217
|
+
return_type = opts[:debug_return_type] || 'BulkMuteFindingsResponse'
|
|
1210
1218
|
|
|
1211
1219
|
# auth_names
|
|
1212
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
1220
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1213
1221
|
|
|
1214
1222
|
new_options = opts.merge(
|
|
1215
|
-
:operation => :
|
|
1223
|
+
:operation => :mute_findings,
|
|
1216
1224
|
:header_params => header_params,
|
|
1217
1225
|
:query_params => query_params,
|
|
1218
1226
|
:form_params => form_params,
|
|
@@ -1222,72 +1230,37 @@ module DatadogAPIClient::V2
|
|
|
1222
1230
|
:api_version => "V2"
|
|
1223
1231
|
)
|
|
1224
1232
|
|
|
1225
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1233
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
1226
1234
|
if @api_client.config.debugging
|
|
1227
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
1235
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#mute_findings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1228
1236
|
end
|
|
1229
1237
|
return data, status_code, headers
|
|
1230
1238
|
end
|
|
1231
1239
|
|
|
1232
1240
|
# Get a list of security signals.
|
|
1233
1241
|
#
|
|
1234
|
-
#
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
#
|
|
1238
|
-
# @yield [SecurityMonitoringSignal] Paginated items
|
|
1239
|
-
def search_security_monitoring_signals_with_pagination(opts = {})
|
|
1240
|
-
api_version = "V2"
|
|
1241
|
-
page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
|
|
1242
|
-
@api_client.set_attribute_from_path(api_version, opts, "body.page.limit", SecurityMonitoringSignalListRequest, page_size)
|
|
1243
|
-
while true do
|
|
1244
|
-
response = search_security_monitoring_signals(opts)
|
|
1245
|
-
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
1246
|
-
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
1247
|
-
break
|
|
1248
|
-
end
|
|
1249
|
-
@api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", SecurityMonitoringSignalListRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
1250
|
-
end
|
|
1251
|
-
end
|
|
1252
|
-
|
|
1253
|
-
# Mute or unmute a finding.
|
|
1254
|
-
#
|
|
1255
|
-
# @see #update_finding_with_http_info
|
|
1256
|
-
def update_finding(finding_id, body, opts = {})
|
|
1257
|
-
data, _status_code, _headers = update_finding_with_http_info(finding_id, body, opts)
|
|
1242
|
+
# @see #search_security_monitoring_signals_with_http_info
|
|
1243
|
+
def search_security_monitoring_signals(opts = {})
|
|
1244
|
+
data, _status_code, _headers = search_security_monitoring_signals_with_http_info(opts)
|
|
1258
1245
|
data
|
|
1259
1246
|
end
|
|
1260
1247
|
|
|
1261
|
-
#
|
|
1248
|
+
# Get a list of security signals.
|
|
1262
1249
|
#
|
|
1263
|
-
#
|
|
1264
|
-
#
|
|
1250
|
+
# Returns security signals that match a search query.
|
|
1251
|
+
# Both this endpoint and the GET endpoint can be used interchangeably for listing
|
|
1252
|
+
# security signals.
|
|
1265
1253
|
#
|
|
1266
|
-
# @param finding_id [String] The ID of the finding.
|
|
1267
|
-
# @param body [MuteFindingRequest] To mute or unmute a finding, the request body should include at least two attributes: `muted` and `reason`. The allowed reasons depend on whether the finding is being muted or unmuted: - To mute a finding: `PENDING_FIX`, `FALSE_POSITIVE`, `ACCEPTED_RISK`, `OTHER`. - To unmute a finding : `NO_PENDING_FIX`, `HUMAN_ERROR`, `NO_LONGER_ACCEPTED_RISK`, `OTHER`.
|
|
1268
1254
|
# @param opts [Hash] the optional parameters
|
|
1269
|
-
# @
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
if unstable_enabled
|
|
1273
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_finding")
|
|
1274
|
-
else
|
|
1275
|
-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_finding"))
|
|
1276
|
-
end
|
|
1255
|
+
# @option opts [SecurityMonitoringSignalListRequest] :body
|
|
1256
|
+
# @return [Array<(SecurityMonitoringSignalsListResponse, Integer, Hash)>] SecurityMonitoringSignalsListResponse data, response status code and response headers
|
|
1257
|
+
def search_security_monitoring_signals_with_http_info(opts = {})
|
|
1277
1258
|
|
|
1278
1259
|
if @api_client.config.debugging
|
|
1279
|
-
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.
|
|
1280
|
-
end
|
|
1281
|
-
# verify the required parameter 'finding_id' is set
|
|
1282
|
-
if @api_client.config.client_side_validation && finding_id.nil?
|
|
1283
|
-
fail ArgumentError, "Missing the required parameter 'finding_id' when calling SecurityMonitoringAPI.update_finding"
|
|
1284
|
-
end
|
|
1285
|
-
# verify the required parameter 'body' is set
|
|
1286
|
-
if @api_client.config.client_side_validation && body.nil?
|
|
1287
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling SecurityMonitoringAPI.update_finding"
|
|
1260
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.search_security_monitoring_signals ...'
|
|
1288
1261
|
end
|
|
1289
1262
|
# resource path
|
|
1290
|
-
local_var_path = '/api/v2/
|
|
1263
|
+
local_var_path = '/api/v2/security_monitoring/signals/search'
|
|
1291
1264
|
|
|
1292
1265
|
# query parameters
|
|
1293
1266
|
query_params = opts[:query_params] || {}
|
|
@@ -1303,16 +1276,16 @@ module DatadogAPIClient::V2
|
|
|
1303
1276
|
form_params = opts[:form_params] || {}
|
|
1304
1277
|
|
|
1305
1278
|
# http body (model)
|
|
1306
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
1279
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
1307
1280
|
|
|
1308
1281
|
# return_type
|
|
1309
|
-
return_type = opts[:debug_return_type] || '
|
|
1282
|
+
return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalsListResponse'
|
|
1310
1283
|
|
|
1311
1284
|
# auth_names
|
|
1312
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
1285
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
1313
1286
|
|
|
1314
1287
|
new_options = opts.merge(
|
|
1315
|
-
:operation => :
|
|
1288
|
+
:operation => :search_security_monitoring_signals,
|
|
1316
1289
|
:header_params => header_params,
|
|
1317
1290
|
:query_params => query_params,
|
|
1318
1291
|
:form_params => form_params,
|
|
@@ -1322,13 +1295,34 @@ module DatadogAPIClient::V2
|
|
|
1322
1295
|
:api_version => "V2"
|
|
1323
1296
|
)
|
|
1324
1297
|
|
|
1325
|
-
data, status_code, headers = @api_client.call_api(Net::HTTP::
|
|
1298
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
1326
1299
|
if @api_client.config.debugging
|
|
1327
|
-
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#
|
|
1300
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#search_security_monitoring_signals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1328
1301
|
end
|
|
1329
1302
|
return data, status_code, headers
|
|
1330
1303
|
end
|
|
1331
1304
|
|
|
1305
|
+
# Get a list of security signals.
|
|
1306
|
+
#
|
|
1307
|
+
# Provide a paginated version of {#search_security_monitoring_signals}, returning all items.
|
|
1308
|
+
#
|
|
1309
|
+
# To use it you need to use a block: search_security_monitoring_signals_with_pagination { |item| p item }
|
|
1310
|
+
#
|
|
1311
|
+
# @yield [SecurityMonitoringSignal] Paginated items
|
|
1312
|
+
def search_security_monitoring_signals_with_pagination(opts = {})
|
|
1313
|
+
api_version = "V2"
|
|
1314
|
+
page_size = @api_client.get_attribute_from_path(opts, "body.page.limit", 10)
|
|
1315
|
+
@api_client.set_attribute_from_path(api_version, opts, "body.page.limit", SecurityMonitoringSignalListRequest, page_size)
|
|
1316
|
+
while true do
|
|
1317
|
+
response = search_security_monitoring_signals(opts)
|
|
1318
|
+
@api_client.get_attribute_from_path(response, "data").each { |item| yield(item) }
|
|
1319
|
+
if @api_client.get_attribute_from_path(response, "data").length < page_size
|
|
1320
|
+
break
|
|
1321
|
+
end
|
|
1322
|
+
@api_client.set_attribute_from_path(api_version, opts, "body.page.cursor", SecurityMonitoringSignalListRequest, @api_client.get_attribute_from_path(response, "meta.page.after"))
|
|
1323
|
+
end
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1332
1326
|
# Update a security filter.
|
|
1333
1327
|
#
|
|
1334
1328
|
# @see #update_security_filter_with_http_info
|