datadog_api_client 2.3.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +592 -33
- data/.generator/schemas/v2/openapi.yaml +8379 -6204
- data/.generator/src/generator/templates/configuration.j2 +14 -4
- data/.generator/src/generator/templates/model_generic.j2 +17 -0
- data/.generator/src/generator/templates/package.j2 +0 -1
- data/.github/workflows/docs.yml +2 -0
- data/.github/workflows/test.yml +20 -19
- data/CHANGELOG.md +46 -0
- data/examples/v1/dashboards/CreateDashboard_41622531.rb +56 -0
- data/examples/v1/logs-indexes/UpdateLogsIndex.rb +3 -0
- data/examples/v1/monitors/CreateMonitor_2012680290.rb +23 -0
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +5 -1
- data/examples/v1/service-level-objectives/GetSLOHistory.rb +0 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +20 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +109 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/ListTests.rb +1 -1
- data/examples/v1/synthetics/UpdateAPITest.rb +1 -1
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -1
- data/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb +33 -0
- data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb +11 -0
- data/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb +10 -0
- data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb +23 -0
- data/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb +22 -0
- data/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb +36 -0
- data/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb +11 -0
- data/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb +10 -0
- data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb +23 -0
- data/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb +20 -0
- data/examples/v2/logs-metrics/CreateLogsMetric.rb +3 -1
- data/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb +19 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +41 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb +4 -1
- data/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb +8 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +23 -33
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +36 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +36 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +34 -0
- data/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb +12 -0
- data/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb +12 -0
- data/examples/v2/sensitive-data-scanner/ListScanningGroups.rb +5 -0
- data/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb +5 -0
- data/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb +29 -0
- data/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +40 -0
- data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +38 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/service-definition/DeleteServiceDefinition.rb +1 -1
- data/examples/v2/service-definition/GetServiceDefinition.rb +1 -1
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +1 -1
- data/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +14 -5
- data/lib/datadog_api_client/inflector.rb +123 -1
- data/lib/datadog_api_client/models.rb +0 -1
- data/lib/datadog_api_client/v1/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +4 -0
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +0 -6
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +6 -2
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +5 -5
- data/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/alert_value_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/api_error_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/api_key.rb +1 -1
- data/lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb +1 -1
- data/lib/datadog_api_client/v1/models/apm_stats_query_definition.rb +5 -5
- data/lib/datadog_api_client/v1/models/application_key.rb +1 -1
- data/lib/datadog_api_client/v1/models/aws_account_and_lambda_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/aws_logs_services_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/cancel_downtimes_by_scope_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/change_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/check_status_widget_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/dashboard.rb +3 -3
- data/lib/datadog_api_client/v1/models/dashboard_bulk_action_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/dashboard_bulk_delete_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard_list.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard_restore_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard_template_variable.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_points_payload.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_points_series.rb +2 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/downtime.rb +3 -3
- data/lib/datadog_api_client/v1/models/downtime_child.rb +3 -3
- data/lib/datadog_api_client/v1/models/downtime_recurrence.rb +2 -2
- data/lib/datadog_api_client/v1/models/event.rb +1 -1
- data/lib/datadog_api_client/v1/models/event_create_request.rb +3 -3
- data/lib/datadog_api_client/v1/models/event_query_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/event_stream_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/event_timeline_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb +7 -7
- data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb +5 -5
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_compute.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_definition_search.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_event_query_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_process_query_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/free_text_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/funnel_query.rb +3 -3
- data/lib/datadog_api_client/v1/models/funnel_step.rb +2 -2
- data/lib/datadog_api_client/v1/models/funnel_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/funnel_widget_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -4
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_style.rb +2 -2
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/group_widget_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/host_map_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/http_log_error.rb +2 -2
- data/lib/datadog_api_client/v1/models/http_log_item.rb +1 -1
- data/lib/datadog_api_client/v1/models/i_frame_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/idp_form_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/idp_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/image_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/list_stream_column.rb +2 -2
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +2 -2
- data/lib/datadog_api_client/v1/models/list_stream_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/list_stream_widget_request.rb +3 -3
- data/lib/datadog_api_client/v1/models/log_query_definition_group_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/log_query_definition_group_by_sort.rb +2 -2
- data/lib/datadog_api_client/v1/models/log_query_definition_search.rb +1 -1
- data/lib/datadog_api_client/v1/models/log_stream_widget_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_arithmetic_processor.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_attribute_remapper.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_category_processor.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_date_remapper.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_exclusion.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_exclusion_filter.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_geo_ip_parser.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_grok_parser.rb +4 -4
- data/lib/datadog_api_client/v1/models/logs_grok_parser_rules.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_index.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_index_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_indexes_order.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_list_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_list_request_time.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_lookup_processor.rb +4 -4
- data/lib/datadog_api_client/v1/models/logs_message_remapper.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_pipeline.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_pipeline_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_pipelines_order.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -0
- data/lib/datadog_api_client/v1/models/logs_query_compute.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_service_remapper.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_status_remapper.rb +2 -2
- data/lib/datadog_api_client/v1/models/logs_string_builder_processor.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_trace_remapper.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_url_parser.rb +3 -3
- data/lib/datadog_api_client/v1/models/logs_user_agent_parser.rb +3 -3
- data/lib/datadog_api_client/v1/models/metrics_payload.rb +1 -1
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor.rb +3 -3
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_compute.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_definition_search.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_event_query_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +4 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +22 -2
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +98 -0
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +148 -0
- data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +141 -1
- data/lib/datadog_api_client/v1/models/note_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_absolute_time.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_cell_response.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_create_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_create_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_create_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_distribution_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_heat_map_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_log_stream_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_markdown_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_markdown_cell_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_relative_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_response_data.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_response_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_split_by.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_timeseries_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_toplist_cell_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_update_data.rb +2 -2
- data/lib/datadog_api_client/v1/models/notebook_update_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebook_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebooks_response_data.rb +3 -3
- data/lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/organization.rb +1 -1
- data/lib/datadog_api_client/v1/models/organization_create_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/pager_duty_service.rb +2 -2
- data/lib/datadog_api_client/v1/models/pager_duty_service_key.rb +1 -1
- data/lib/datadog_api_client/v1/models/pager_duty_service_name.rb +1 -1
- data/lib/datadog_api_client/v1/models/process_query_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/query_value_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/reference_table_logs_lookup_processor.rb +198 -0
- data/lib/datadog_api_client/v1/models/scatter_plot_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb +2 -2
- data/lib/datadog_api_client/v1/models/search_slo_threshold.rb +2 -2
- data/lib/datadog_api_client/v1/models/series.rb +2 -2
- data/lib/datadog_api_client/v1/models/service_check.rb +4 -4
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +3 -3
- data/lib/datadog_api_client/v1/models/service_level_objective_query.rb +2 -2
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +3 -3
- data/lib/datadog_api_client/v1/models/service_map_widget_definition.rb +3 -3
- data/lib/datadog_api_client/v1/models/service_summary_widget_definition.rb +4 -4
- data/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/signal_state_update_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_bulk_delete_error.rb +3 -3
- data/lib/datadog_api_client/v1/models/slo_correction_create_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +3 -3
- data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +7 -7
- data/lib/datadog_api_client/v1/models/slo_history_metrics_series.rb +3 -3
- data/lib/datadog_api_client/v1/models/slo_history_response_error_with_type.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_list_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_list_widget_query.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_list_widget_request.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -2
- data/lib/datadog_api_client/v1/models/slo_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/sunburst_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/sunburst_widget_legend_inline_automatic.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_legend_table.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +6 -6
- data/lib/datadog_api_client/v1/models/synthetics_api_test_result_full_check.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_path_target.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +3 -3
- data/lib/datadog_api_client/v1/models/{http_method.rb → synthetics_assertion_x_path_operator.rb} +3 -9
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target.rb +150 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_x_path_target_target.rb +118 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +3 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client.rb +212 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_client_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop.rb +232 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_rop_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_oauth_token_api_authentication.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb +3 -3
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth_web.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_browser_error.rb +3 -3
- data/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +6 -6
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_config.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_result_full_check.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_browser_variable.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_ci_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_device.rb +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_global_variable.rb +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_private_location.rb +3 -3
- data/lib/datadog_api_client/v1/models/synthetics_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb +2 -2
- data/lib/datadog_api_client/v1/models/synthetics_test_call_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +4 -4
- data/lib/datadog_api_client/v1/models/synthetics_test_options_monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +26 -6
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request_proxy.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_trigger_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_variable_parser.rb +1 -1
- data/lib/datadog_api_client/v1/models/table_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/timeseries_background.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/timeseries_widget_expression_alias.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/topology_map_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/topology_query.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +2 -2
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +91 -1
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_host_hour.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_sds_hour.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +71 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +71 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +71 -1
- data/lib/datadog_api_client/v1/models/webhooks_integration.rb +2 -2
- data/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable.rb +3 -3
- data/lib/datadog_api_client/v1/models/webhooks_integration_custom_variable_response.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_conditional_format.rb +3 -3
- data/lib/datadog_api_client/v1/models/widget_event.rb +1 -1
- data/lib/datadog_api_client/v1/models/widget_field_sort.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget_formula.rb +15 -5
- data/lib/datadog_api_client/v1/models/widget_formula_style.rb +108 -0
- data/lib/datadog_api_client/v1/models/widget_layout.rb +4 -4
- data/lib/datadog_api_client/v1/models/widget_marker.rb +1 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +283 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +283 -0
- data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/key_management_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/logs_api.rb +6 -0
- data/lib/datadog_api_client/v2/api/roles_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb +649 -0
- data/lib/datadog_api_client/v2/api/service_accounts_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +4 -3
- data/lib/datadog_api_client/v2/api/users_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_error_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/api_key_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_update_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/api_key_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/application_key_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_update_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/application_key_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_query_page_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping.rb +2 -2
- data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/authn_mapping_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value_timeseries_point.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort.rb +128 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_aggregation_function.rb +41 -0
- data/lib/datadog_api_client/v2/models/ci_app_compute.rb +140 -0
- data/lib/datadog_api_client/v2/models/ci_app_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_histogram.rb +154 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_type_name.rb +26 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_request.rb +129 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_events_response.rb +120 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregate_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_aggregation_buckets_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_analytics_aggregate_response.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_bucket_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_group_by.rb +160 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_query_options.rb +109 -0
- data/lib/datadog_api_client/v2/models/ci_app_query_page_options.rb +119 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_links.rb +99 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_metadata.rb +141 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_page.rb +98 -0
- data/lib/datadog_api_client/v2/models/ci_app_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_event.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_event_type_name.rb +26 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_events_request.rb +129 -0
- data/lib/datadog_api_client/v2/models/ci_app_test_events_response.rb +120 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_aggregate_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_aggregation_buckets_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_bucket_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_group_by.rb +160 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +118 -0
- data/lib/datadog_api_client/v2/models/ci_app_warning.rb +118 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_compliance_rule_options.rb +143 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rego_rule.rb +132 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_case_create.rb +121 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +110 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_create_payload.rb +239 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_options.rb +109 -0
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_account_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_account_create_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/confluent_account_create_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/confluent_account_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_account_response_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/confluent_account_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_account_update_request_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/confluent_account_update_request_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/confluent_resource_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_response_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +3 -3
- data/lib/datadog_api_client/v2/models/dashboard_list_item_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/dashboard_list_item_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/dashboard_list_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/http_log_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachment_data.rb +4 -4
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes_attachment_object.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_attachment_postmortem_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_attachment_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachment_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachment_update_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachments_postmortem_attributes_attachment_object.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_attachments_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_create_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_service_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_response_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_service_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_teams_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/incident_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/incidents_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_definition.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_definition.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_destination_azure.rb +4 -4
- data/lib/datadog_api_client/v2/models/logs_archive_destination_gcs.rb +3 -3
- data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +3 -3
- data/lib/datadog_api_client/v2/models/logs_archive_integration_azure.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_archive_integration_gcs.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_archive_integration_s3.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_archive_order_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_order_definition.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_compute.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +3 -3
- data/lib/datadog_api_client/v2/models/logs_list_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_metric_compute.rb +13 -2
- data/lib/datadog_api_client/v2/models/logs_metric_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_metric_create_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/logs_metric_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_metric_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_metric_response_compute.rb +12 -1
- data/lib/datadog_api_client/v2/models/logs_metric_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_metric_update_compute.rb +99 -0
- data/lib/datadog_api_client/v2/models/logs_metric_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/logs_metric_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_filter.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_delete_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_status.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_custom_aggregation.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_origin.rb +3 -3
- data/lib/datadog_api_client/v2/models/metric_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_series.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/organization.rb +1 -1
- data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/permission.rb +1 -1
- data/lib/datadog_api_client/v2/models/process_summaries_meta_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident_attachment_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadata_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_incident_integration_metadatas.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident_postmortem_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_organization.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_organization_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_organizations.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_user.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_user_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/relationship_to_users.rb +1 -1
- data/lib/datadog_api_client/v2/models/role.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_clone.rb +2 -2
- data/lib/datadog_api_client/v2/models/role_clone_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_clone_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_create_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_update_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/role_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/role_update_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application.rb +3 -3
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +41 -10
- data/lib/datadog_api_client/v2/models/rum_application_create.rb +2 -2
- data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_application_list.rb +130 -0
- data/lib/datadog_api_client/v2/models/rum_application_list_attributes.rb +280 -0
- data/lib/datadog_api_client/v2/models/rum_application_list_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_update.rb +2 -2
- data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_applications_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_compute.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_histogram.rb +3 -3
- data/lib/datadog_api_client/v2/models/rum_query_filter.rb +2 -2
- data/lib/datadog_api_client/v2/models/rum_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_query_page_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_filter_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_filter_create_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/security_filter_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_filter_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_filter_exclusion_filter.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_filter_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_filter_update_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_filter_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +2 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +12 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_list_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +6 -6
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_query.rb +2 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +5 -5
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +6 -6
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +1 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_config_request.rb +130 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_relationships.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_configuration_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_group_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_create_rule_response.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_filter.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response.rb +120 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +118 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_attributes.rb +140 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create.rb +140 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_create_request.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_request.rb +109 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_delete_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_included_item.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_item.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_list.rb +100 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_relationships.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_response.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_request.rb +130 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_group_update_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +149 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta_version_only.rb +109 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_product.rb +29 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_config.rb +118 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_reorder_groups_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +162 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create.rb +151 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_create_request.rb +130 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_request.rb +109 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_delete_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_included_item.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_relationships.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_response.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update.rb +128 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_request.rb +130 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_update_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern.rb +108 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_patterns_response_item.rb +118 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement.rb +135 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_text_replacement_type.rb +35 -0
- data/lib/datadog_api_client/v2/models/service_account_create_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_account_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_account_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_definition_v1.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v1_info.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_definition_v1_resource.rb +3 -3
- data/lib/datadog_api_client/v2/models/service_definition_v2.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_doc.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_email.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_link.rb +3 -3
- data/lib/datadog_api_client/v2/models/service_definition_v2_opsgenie.rb +14 -14
- data/lib/datadog_api_client/v2/models/service_definition_v2_repo.rb +2 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_slack.rb +2 -2
- data/lib/datadog_api_client/v2/models/user_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_create_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/user_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_invitation_data.rb +2 -2
- data/lib/datadog_api_client/v2/models/user_invitation_relationships.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_invitations_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_update_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/user_update_request.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/fixtures/synthetics_unknown_nested_enum.json +3 -3
- data/spec/v1/deserialization_spec.rb +4 -5
- metadata +151 -5
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +0 -9
- data/lib/datadog_api_client/api_key_configuration.rb +0 -16
@@ -0,0 +1,23 @@
|
|
1
|
+
# Search pipelines events returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
|
7
|
+
filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
|
8
|
+
from: "now-15m",
|
9
|
+
query: "@ci.provider.name:github AND @ci.status:error",
|
10
|
+
to: "now",
|
11
|
+
}),
|
12
|
+
options: DatadogAPIClient::V2::CIAppQueryOptions.new({
|
13
|
+
timezone: "GMT",
|
14
|
+
}),
|
15
|
+
page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
|
16
|
+
limit: 5,
|
17
|
+
}),
|
18
|
+
sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
|
19
|
+
})
|
20
|
+
opts = {
|
21
|
+
body: body,
|
22
|
+
}
|
23
|
+
p api_instance.search_ci_app_pipeline_events(opts)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Search pipelines events returns "OK" response with pagination
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({
|
7
|
+
filter: DatadogAPIClient::V2::CIAppPipelinesQueryFilter.new({
|
8
|
+
from: "now-30s",
|
9
|
+
to: "now",
|
10
|
+
}),
|
11
|
+
options: DatadogAPIClient::V2::CIAppQueryOptions.new({
|
12
|
+
timezone: "GMT",
|
13
|
+
}),
|
14
|
+
page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
|
15
|
+
limit: 2,
|
16
|
+
}),
|
17
|
+
sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
|
18
|
+
})
|
19
|
+
opts = {
|
20
|
+
body: body,
|
21
|
+
}
|
22
|
+
api_instance.search_ci_app_pipeline_events_with_pagination(opts) { |item| puts item }
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Aggregate tests events returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CIAppTestsAggregateRequest.new({
|
7
|
+
compute: [
|
8
|
+
DatadogAPIClient::V2::CIAppCompute.new({
|
9
|
+
aggregation: DatadogAPIClient::V2::CIAppAggregationFunction::COUNT,
|
10
|
+
metric: "@test.is_flaky",
|
11
|
+
type: DatadogAPIClient::V2::CIAppComputeType::TOTAL,
|
12
|
+
}),
|
13
|
+
],
|
14
|
+
filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
|
15
|
+
from: "now-15m",
|
16
|
+
query: "@language:(python OR go)",
|
17
|
+
to: "now",
|
18
|
+
}),
|
19
|
+
group_by: [
|
20
|
+
DatadogAPIClient::V2::CIAppTestsGroupBy.new({
|
21
|
+
facet: "@git.branch",
|
22
|
+
limit: 10,
|
23
|
+
sort: DatadogAPIClient::V2::CIAppAggregateSort.new({
|
24
|
+
order: DatadogAPIClient::V2::CIAppSortOrder::ASCENDING,
|
25
|
+
}),
|
26
|
+
total: false,
|
27
|
+
}),
|
28
|
+
],
|
29
|
+
options: DatadogAPIClient::V2::CIAppQueryOptions.new({
|
30
|
+
timezone: "GMT",
|
31
|
+
}),
|
32
|
+
page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
|
33
|
+
limit: 25,
|
34
|
+
}),
|
35
|
+
})
|
36
|
+
p api_instance.aggregate_ci_app_test_events(body)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Get a list of tests events returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
|
5
|
+
opts = {
|
6
|
+
filter_query: "@test.service:web-ui-tests",
|
7
|
+
filter_from: (Time.now + -30),
|
8
|
+
filter_to: Time.now,
|
9
|
+
page_limit: 5,
|
10
|
+
}
|
11
|
+
p api_instance.list_ci_app_test_events(opts)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Get a list of tests events returns "OK" response with pagination
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
|
5
|
+
opts = {
|
6
|
+
filter_from: (Time.now + -30),
|
7
|
+
filter_to: Time.now,
|
8
|
+
page_limit: 2,
|
9
|
+
}
|
10
|
+
api_instance.list_ci_app_test_events_with_pagination(opts) { |item| puts item }
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Search tests events returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({
|
7
|
+
filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
|
8
|
+
from: "now-15m",
|
9
|
+
query: "@test.service:web-ui-tests AND @test.status:skip",
|
10
|
+
to: "now",
|
11
|
+
}),
|
12
|
+
options: DatadogAPIClient::V2::CIAppQueryOptions.new({
|
13
|
+
timezone: "GMT",
|
14
|
+
}),
|
15
|
+
page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
|
16
|
+
limit: 25,
|
17
|
+
}),
|
18
|
+
sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
|
19
|
+
})
|
20
|
+
opts = {
|
21
|
+
body: body,
|
22
|
+
}
|
23
|
+
p api_instance.search_ci_app_test_events(opts)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Search tests events returns "OK" response with pagination
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({
|
7
|
+
filter: DatadogAPIClient::V2::CIAppTestsQueryFilter.new({
|
8
|
+
from: "now-15m",
|
9
|
+
query: "@test.status:pass AND -@language:python",
|
10
|
+
to: "now",
|
11
|
+
}),
|
12
|
+
page: DatadogAPIClient::V2::CIAppQueryPageOptions.new({
|
13
|
+
limit: 2,
|
14
|
+
}),
|
15
|
+
sort: DatadogAPIClient::V2::CIAppSort::TIMESTAMP_ASCENDING,
|
16
|
+
})
|
17
|
+
opts = {
|
18
|
+
body: body,
|
19
|
+
}
|
20
|
+
api_instance.search_ci_app_test_events_with_pagination(opts) { |item| puts item }
|
@@ -9,7 +9,9 @@ body = DatadogAPIClient::V2::LogsMetricCreateRequest.new({
|
|
9
9
|
type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS,
|
10
10
|
attributes: DatadogAPIClient::V2::LogsMetricCreateAttributes.new({
|
11
11
|
compute: DatadogAPIClient::V2::LogsMetricCompute.new({
|
12
|
-
aggregation_type: DatadogAPIClient::V2::LogsMetricComputeAggregationType::
|
12
|
+
aggregation_type: DatadogAPIClient::V2::LogsMetricComputeAggregationType::DISTRIBUTION,
|
13
|
+
include_percentiles: true,
|
14
|
+
path: "@duration",
|
13
15
|
}),
|
14
16
|
}),
|
15
17
|
}),
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Update a log-based metric with include_percentiles field returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new
|
5
|
+
|
6
|
+
# there is a valid "logs_metric_percentile" in the system
|
7
|
+
LOGS_METRIC_PERCENTILE_DATA_ID = ENV["LOGS_METRIC_PERCENTILE_DATA_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::LogsMetricUpdateRequest.new({
|
10
|
+
data: DatadogAPIClient::V2::LogsMetricUpdateData.new({
|
11
|
+
type: DatadogAPIClient::V2::LogsMetricType::LOGS_METRICS,
|
12
|
+
attributes: DatadogAPIClient::V2::LogsMetricUpdateAttributes.new({
|
13
|
+
compute: DatadogAPIClient::V2::LogsMetricUpdateCompute.new({
|
14
|
+
include_percentiles: false,
|
15
|
+
}),
|
16
|
+
}),
|
17
|
+
}),
|
18
|
+
})
|
19
|
+
p api_instance.update_logs_metric(LOGS_METRIC_PERCENTILE_DATA_ID, body)
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Create a cloud_configuration rule returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
+
|
6
|
+
body = DatadogAPIClient::V2::CloudConfigurationRuleCreatePayload.new({
|
7
|
+
type: DatadogAPIClient::V2::CloudConfigurationRuleType::CLOUD_CONFIGURATION,
|
8
|
+
name: "Example-Create_a_cloud_configuration_rule_returns_OK_response_cloud",
|
9
|
+
is_enabled: false,
|
10
|
+
cases: [
|
11
|
+
DatadogAPIClient::V2::CloudConfigurationRuleCaseCreate.new({
|
12
|
+
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
|
13
|
+
notifications: [
|
14
|
+
"channel",
|
15
|
+
],
|
16
|
+
}),
|
17
|
+
],
|
18
|
+
options: DatadogAPIClient::V2::CloudConfigurationRuleOptions.new({
|
19
|
+
compliance_rule_options: DatadogAPIClient::V2::CloudConfigurationComplianceRuleOptions.new({
|
20
|
+
resource_type: "gcp_compute_disk",
|
21
|
+
complex_rule: false,
|
22
|
+
rego_rule: DatadogAPIClient::V2::CloudConfigurationRegoRule.new({
|
23
|
+
policy: 'package datadog\n',
|
24
|
+
resource_types: [
|
25
|
+
"gcp_compute_disk",
|
26
|
+
],
|
27
|
+
}),
|
28
|
+
}),
|
29
|
+
}),
|
30
|
+
message: "ddd",
|
31
|
+
tags: [
|
32
|
+
"my:tag",
|
33
|
+
],
|
34
|
+
compliance_signal_options: DatadogAPIClient::V2::CloudConfigurationRuleComplianceSignalOptions.new({
|
35
|
+
user_activation_status: true,
|
36
|
+
user_group_by_fields: [
|
37
|
+
"@account_id",
|
38
|
+
],
|
39
|
+
}),
|
40
|
+
})
|
41
|
+
p api_instance.create_security_monitoring_rule(body)
|
@@ -2,4 +2,7 @@
|
|
2
2
|
|
3
3
|
require "datadog_api_client"
|
4
4
|
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
-
|
5
|
+
|
6
|
+
# there is a valid "security_rule" in the system
|
7
|
+
SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
|
8
|
+
p api_instance.get_security_monitoring_rule(SECURITY_RULE_ID)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Get a cloud configuration rule's details returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
+
|
6
|
+
# there is a valid "cloud_configuration_rule" in the system
|
7
|
+
CLOUD_CONFIGURATION_RULE_ID = ENV["CLOUD_CONFIGURATION_RULE_ID"]
|
8
|
+
p api_instance.get_security_monitoring_rule(CLOUD_CONFIGURATION_RULE_ID)
|
@@ -3,46 +3,36 @@
|
|
3
3
|
require "datadog_api_client"
|
4
4
|
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
5
|
|
6
|
+
# there is a valid "security_rule" in the system
|
7
|
+
SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
|
8
|
+
|
6
9
|
body = DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload.new({
|
7
|
-
|
8
|
-
DatadogAPIClient::V2::SecurityMonitoringRuleCase.new({
|
9
|
-
notifications: [],
|
10
|
-
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::CRITICAL,
|
11
|
-
}),
|
12
|
-
],
|
13
|
-
filters: [
|
14
|
-
DatadogAPIClient::V2::SecurityMonitoringFilter.new({
|
15
|
-
action: DatadogAPIClient::V2::SecurityMonitoringFilterAction::REQUIRE,
|
16
|
-
}),
|
17
|
-
],
|
18
|
-
has_extended_title: true,
|
19
|
-
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
|
20
|
-
decrease_criticality_based_on_env: false,
|
21
|
-
detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::THRESHOLD,
|
22
|
-
evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::ZERO_MINUTES,
|
23
|
-
hardcoded_evaluator_type: DatadogAPIClient::V2::SecurityMonitoringRuleHardcodedEvaluatorType::LOG4SHELL,
|
24
|
-
impossible_travel_options: DatadogAPIClient::V2::SecurityMonitoringRuleImpossibleTravelOptions.new({
|
25
|
-
baseline_user_locations: true,
|
26
|
-
}),
|
27
|
-
keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ZERO_MINUTES,
|
28
|
-
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ZERO_MINUTES,
|
29
|
-
new_value_options: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions.new({
|
30
|
-
forget_after: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsForgetAfter::ONE_DAY,
|
31
|
-
learning_duration: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningDuration::ZERO_DAYS,
|
32
|
-
learning_method: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningMethod::DURATION,
|
33
|
-
learning_threshold: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningThreshold::ZERO_OCCURRENCES,
|
34
|
-
}),
|
35
|
-
}),
|
10
|
+
name: "Example-Update_an_existing_rule_returns_OK_response-Updated",
|
36
11
|
queries: [
|
37
12
|
DatadogAPIClient::V2::SecurityMonitoringStandardRuleQuery.new({
|
13
|
+
query: "@test:true",
|
38
14
|
aggregation: DatadogAPIClient::V2::SecurityMonitoringRuleQueryAggregation::COUNT,
|
39
|
-
distinct_fields: [],
|
40
15
|
group_by_fields: [],
|
16
|
+
distinct_fields: [],
|
41
17
|
metrics: [],
|
42
|
-
query: "a > 3",
|
43
18
|
}),
|
44
19
|
],
|
20
|
+
filters: [],
|
21
|
+
cases: [
|
22
|
+
DatadogAPIClient::V2::SecurityMonitoringRuleCase.new({
|
23
|
+
name: "",
|
24
|
+
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
|
25
|
+
condition: "a > 0",
|
26
|
+
notifications: [],
|
27
|
+
}),
|
28
|
+
],
|
29
|
+
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
|
30
|
+
evaluation_window: DatadogAPIClient::V2::SecurityMonitoringRuleEvaluationWindow::FIFTEEN_MINUTES,
|
31
|
+
keep_alive: DatadogAPIClient::V2::SecurityMonitoringRuleKeepAlive::ONE_HOUR,
|
32
|
+
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::ONE_DAY,
|
33
|
+
}),
|
34
|
+
message: "Test rule",
|
45
35
|
tags: [],
|
46
|
-
|
36
|
+
is_enabled: true,
|
47
37
|
})
|
48
|
-
p api_instance.update_security_monitoring_rule(
|
38
|
+
p api_instance.update_security_monitoring_rule(SECURITY_RULE_ID, body)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Update a cloud configuration rule's details returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
|
5
|
+
|
6
|
+
# there is a valid "cloud_configuration_rule" in the system
|
7
|
+
CLOUD_CONFIGURATION_RULE_ID = ENV["CLOUD_CONFIGURATION_RULE_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SecurityMonitoringRuleUpdatePayload.new({
|
10
|
+
name: "Example-Update_a_cloud_configuration_rule_s_details_returns_OK_response_cloud_updated",
|
11
|
+
is_enabled: false,
|
12
|
+
cases: [
|
13
|
+
DatadogAPIClient::V2::SecurityMonitoringRuleCase.new({
|
14
|
+
status: DatadogAPIClient::V2::SecurityMonitoringRuleSeverity::INFO,
|
15
|
+
notifications: [],
|
16
|
+
}),
|
17
|
+
],
|
18
|
+
options: DatadogAPIClient::V2::SecurityMonitoringRuleOptions.new({
|
19
|
+
compliance_rule_options: DatadogAPIClient::V2::CloudConfigurationComplianceRuleOptions.new({
|
20
|
+
resource_type: "gcp_compute_disk",
|
21
|
+
rego_rule: DatadogAPIClient::V2::CloudConfigurationRegoRule.new({
|
22
|
+
policy: 'package datadog\n',
|
23
|
+
resource_types: [
|
24
|
+
"gcp_compute_disk",
|
25
|
+
],
|
26
|
+
}),
|
27
|
+
}),
|
28
|
+
}),
|
29
|
+
message: "ddd",
|
30
|
+
tags: [],
|
31
|
+
compliance_signal_options: DatadogAPIClient::V2::CloudConfigurationRuleComplianceSignalOptions.new({
|
32
|
+
user_activation_status: false,
|
33
|
+
user_group_by_fields: [],
|
34
|
+
}),
|
35
|
+
})
|
36
|
+
p api_instance.update_security_monitoring_rule(CLOUD_CONFIGURATION_RULE_ID, body)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Create Scanning Group returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# a valid "configuration" in the system
|
7
|
+
CONFIGURATION_DATA_ID = ENV["CONFIGURATION_DATA_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerGroupCreateRequest.new({
|
10
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
11
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerGroupCreate.new({
|
12
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
|
13
|
+
attributes: DatadogAPIClient::V2::SensitiveDataScannerGroupAttributes.new({
|
14
|
+
name: "Example-Create_Scanning_Group_returns_OK_response",
|
15
|
+
is_enabled: false,
|
16
|
+
product_list: [
|
17
|
+
DatadogAPIClient::V2::SensitiveDataScannerProduct::LOGS,
|
18
|
+
],
|
19
|
+
filter: DatadogAPIClient::V2::SensitiveDataScannerFilter.new({
|
20
|
+
query: "*",
|
21
|
+
}),
|
22
|
+
}),
|
23
|
+
relationships: DatadogAPIClient::V2::SensitiveDataScannerGroupRelationships.new({
|
24
|
+
configuration: DatadogAPIClient::V2::SensitiveDataScannerConfigurationData.new({
|
25
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerConfiguration.new({
|
26
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS,
|
27
|
+
id: CONFIGURATION_DATA_ID,
|
28
|
+
}),
|
29
|
+
}),
|
30
|
+
rules: DatadogAPIClient::V2::SensitiveDataScannerRuleData.new({
|
31
|
+
data: [],
|
32
|
+
}),
|
33
|
+
}),
|
34
|
+
}),
|
35
|
+
})
|
36
|
+
p api_instance.create_scanning_group(body)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Create Scanning Rule returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# there is a valid "scanning_group" in the system
|
7
|
+
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerRuleCreateRequest.new({
|
10
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
11
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerRuleCreate.new({
|
12
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerRuleType::SENSITIVE_DATA_SCANNER_RULE,
|
13
|
+
attributes: DatadogAPIClient::V2::SensitiveDataScannerRuleAttributes.new({
|
14
|
+
name: "Example-Create_Scanning_Rule_returns_OK_response",
|
15
|
+
pattern: "pattern",
|
16
|
+
text_replacement: DatadogAPIClient::V2::SensitiveDataScannerTextReplacement.new({
|
17
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerTextReplacementType::NONE,
|
18
|
+
}),
|
19
|
+
tags: [
|
20
|
+
"sensitive_data:true",
|
21
|
+
],
|
22
|
+
is_enabled: true,
|
23
|
+
}),
|
24
|
+
relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
|
25
|
+
group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
|
26
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerGroup.new({
|
27
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
|
28
|
+
id: GROUP_DATA_ID,
|
29
|
+
}),
|
30
|
+
}),
|
31
|
+
}),
|
32
|
+
}),
|
33
|
+
})
|
34
|
+
p api_instance.create_scanning_rule(body)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Delete Scanning Group returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# there is a valid "scanning_group" in the system
|
7
|
+
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerGroupDeleteRequest.new({
|
10
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
11
|
+
})
|
12
|
+
p api_instance.delete_scanning_group(GROUP_DATA_ID, body)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Delete Scanning Rule returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# the "scanning_group" has a "scanning_rule"
|
7
|
+
RULE_DATA_ID = ENV["RULE_DATA_ID"]
|
8
|
+
|
9
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerRuleDeleteRequest.new({
|
10
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
11
|
+
})
|
12
|
+
p api_instance.delete_scanning_rule(RULE_DATA_ID, body)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Reorder Groups returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# there is a valid "scanning_group" in the system
|
7
|
+
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
|
8
|
+
|
9
|
+
# a valid "configuration" in the system
|
10
|
+
CONFIGURATION_DATA_ID = ENV["CONFIGURATION_DATA_ID"]
|
11
|
+
|
12
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerConfigRequest.new({
|
13
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerReorderConfig.new({
|
14
|
+
relationships: DatadogAPIClient::V2::SensitiveDataScannerConfigurationRelationships.new({
|
15
|
+
groups: DatadogAPIClient::V2::SensitiveDataScannerGroupList.new({
|
16
|
+
data: [
|
17
|
+
DatadogAPIClient::V2::SensitiveDataScannerGroupItem.new({
|
18
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
|
19
|
+
id: GROUP_DATA_ID,
|
20
|
+
}),
|
21
|
+
],
|
22
|
+
}),
|
23
|
+
}),
|
24
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS,
|
25
|
+
id: CONFIGURATION_DATA_ID,
|
26
|
+
}),
|
27
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
28
|
+
})
|
29
|
+
p api_instance.reorder_scanning_groups(body)
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Update Scanning Group returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# there is a valid "scanning_group" in the system
|
7
|
+
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
|
8
|
+
|
9
|
+
# a valid "configuration" in the system
|
10
|
+
CONFIGURATION_DATA_ID = ENV["CONFIGURATION_DATA_ID"]
|
11
|
+
|
12
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerGroupUpdateRequest.new({
|
13
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
14
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerGroupUpdate.new({
|
15
|
+
id: GROUP_DATA_ID,
|
16
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
|
17
|
+
attributes: DatadogAPIClient::V2::SensitiveDataScannerGroupAttributes.new({
|
18
|
+
name: "Example-Update_Scanning_Group_returns_OK_response",
|
19
|
+
is_enabled: false,
|
20
|
+
product_list: [
|
21
|
+
DatadogAPIClient::V2::SensitiveDataScannerProduct::LOGS,
|
22
|
+
],
|
23
|
+
filter: DatadogAPIClient::V2::SensitiveDataScannerFilter.new({
|
24
|
+
query: "*",
|
25
|
+
}),
|
26
|
+
}),
|
27
|
+
relationships: DatadogAPIClient::V2::SensitiveDataScannerGroupRelationships.new({
|
28
|
+
configuration: DatadogAPIClient::V2::SensitiveDataScannerConfigurationData.new({
|
29
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerConfiguration.new({
|
30
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerConfigurationType::SENSITIVE_DATA_SCANNER_CONFIGURATIONS,
|
31
|
+
id: CONFIGURATION_DATA_ID,
|
32
|
+
}),
|
33
|
+
}),
|
34
|
+
rules: DatadogAPIClient::V2::SensitiveDataScannerRuleData.new({
|
35
|
+
data: [],
|
36
|
+
}),
|
37
|
+
}),
|
38
|
+
}),
|
39
|
+
})
|
40
|
+
p api_instance.update_scanning_group(GROUP_DATA_ID, body)
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Update Scanning Rule returns "OK" response
|
2
|
+
|
3
|
+
require "datadog_api_client"
|
4
|
+
api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new
|
5
|
+
|
6
|
+
# the "scanning_group" has a "scanning_rule"
|
7
|
+
RULE_DATA_ID = ENV["RULE_DATA_ID"]
|
8
|
+
|
9
|
+
# there is a valid "scanning_group" in the system
|
10
|
+
GROUP_DATA_ID = ENV["GROUP_DATA_ID"]
|
11
|
+
|
12
|
+
body = DatadogAPIClient::V2::SensitiveDataScannerRuleUpdateRequest.new({
|
13
|
+
meta: DatadogAPIClient::V2::SensitiveDataScannerMetaVersionOnly.new({}),
|
14
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerRuleUpdate.new({
|
15
|
+
id: RULE_DATA_ID,
|
16
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerRuleType::SENSITIVE_DATA_SCANNER_RULE,
|
17
|
+
attributes: DatadogAPIClient::V2::SensitiveDataScannerRuleAttributes.new({
|
18
|
+
name: "Example-Update_Scanning_Rule_returns_OK_response",
|
19
|
+
pattern: "pattern",
|
20
|
+
text_replacement: DatadogAPIClient::V2::SensitiveDataScannerTextReplacement.new({
|
21
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerTextReplacementType::NONE,
|
22
|
+
}),
|
23
|
+
tags: [
|
24
|
+
"sensitive_data:true",
|
25
|
+
],
|
26
|
+
is_enabled: true,
|
27
|
+
}),
|
28
|
+
relationships: DatadogAPIClient::V2::SensitiveDataScannerRuleRelationships.new({
|
29
|
+
group: DatadogAPIClient::V2::SensitiveDataScannerGroupData.new({
|
30
|
+
data: DatadogAPIClient::V2::SensitiveDataScannerGroup.new({
|
31
|
+
type: DatadogAPIClient::V2::SensitiveDataScannerGroupType::SENSITIVE_DATA_SCANNER_GROUP,
|
32
|
+
id: GROUP_DATA_ID,
|
33
|
+
}),
|
34
|
+
}),
|
35
|
+
}),
|
36
|
+
}),
|
37
|
+
})
|
38
|
+
p api_instance.update_scanning_rule(RULE_DATA_ID, body)
|
@@ -26,7 +26,7 @@ body = DatadogAPIClient::V2::ServiceDefinitionV2.new({
|
|
26
26
|
integrations: DatadogAPIClient::V2::ServiceDefinitionV2Integrations.new({
|
27
27
|
opsgenie: DatadogAPIClient::V2::ServiceDefinitionV2Opsgenie.new({
|
28
28
|
region: DatadogAPIClient::V2::ServiceDefinitionV2OpsgenieRegion::US,
|
29
|
-
|
29
|
+
service_url: "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000",
|
30
30
|
}),
|
31
31
|
pagerduty: "https://my-org.pagerduty.com/service-directory/PMyService",
|
32
32
|
}),
|
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
require "datadog_api_client"
|
4
4
|
api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new
|
5
|
-
api_instance.delete_service_definition("service-
|
5
|
+
api_instance.delete_service_definition("service-definition-test")
|
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
require "datadog_api_client"
|
4
4
|
api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new
|
5
|
-
p api_instance.get_service_definition("service-
|
5
|
+
p api_instance.get_service_definition("service-definition-test")
|