datadog_api_client 2.30.0 → 2.31.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 +338 -22
- data/.generator/schemas/v2/openapi.yaml +3672 -98
- data/CHANGELOG.md +37 -0
- data/examples/v1/dashboards/CreateDashboard_1490099434.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_3520534424.rb +61 -0
- data/examples/v1/logs-indexes/DeleteLogsIndex.rb +5 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.rb +23 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -0
- data/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +14 -0
- data/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +18 -0
- data/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +5 -0
- data/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +5 -0
- data/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +5 -0
- data/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +17 -0
- data/examples/v2/app-builder/CreateApp.rb +121 -13
- data/examples/v2/app-builder/DeleteApp.rb +0 -3
- data/examples/v2/app-builder/DeleteApps.rb +0 -3
- data/examples/v2/app-builder/GetApp.rb +0 -3
- data/examples/v2/app-builder/ListApps.rb +0 -3
- data/examples/v2/app-builder/PublishApp.rb +0 -3
- data/examples/v2/app-builder/UnpublishApp.rb +0 -3
- data/examples/v2/app-builder/UpdateApp.rb +0 -3
- data/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.rb +55 -0
- data/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.rb +33 -0
- data/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.rb +5 -0
- data/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.rb +8 -0
- data/examples/v2/application-security/GetApplicationSecurityWafCustomRule.rb +5 -0
- data/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.rb +8 -0
- data/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.rb +5 -0
- data/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.rb +5 -0
- data/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.rb +46 -0
- data/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.rb +22 -0
- data/examples/v2/rum-retention-filters/CreateRetentionFilter.rb +21 -0
- data/examples/v2/rum-retention-filters/DeleteRetentionFilter.rb +5 -0
- data/examples/v2/rum-retention-filters/GetRetentionFilter.rb +5 -0
- data/examples/v2/rum-retention-filters/ListRetentionFilters.rb +5 -0
- data/examples/v2/rum-retention-filters/OrderRetentionFilters.rb +22 -0
- data/examples/v2/rum-retention-filters/UpdateRetentionFilter.rb +19 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +50 -0
- data/examples/v2/security-monitoring/CreateSignalNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/GetRuleVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb +11 -0
- data/examples/v2/security-monitoring/GetSBOM.rb +3 -0
- data/examples/v2/security-monitoring/GetSignalNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/GetSignalNotificationRules.rb +1 -1
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb +1 -1
- data/examples/v2/security-monitoring/ListVulnerabilities.rb +3 -0
- data/examples/v2/security-monitoring/ListVulnerableAssets.rb +3 -0
- data/examples/v2/security-monitoring/PatchSignalNotificationRule.rb +1 -1
- data/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb +1 -1
- data/examples/v2/software-catalog/UpsertCatalogEntity.rb +5 -1
- data/examples/v2/workflow-automation/CreateWorkflow.rb +95 -0
- data/examples/v2/workflow-automation/DeleteWorkflow.rb +8 -0
- data/examples/v2/workflow-automation/GetWorkflow.rb +8 -0
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +99 -0
- data/lib/datadog_api_client/configuration.rb +4 -8
- data/lib/datadog_api_client/inflector.rb +188 -1
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +66 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/check_can_delete_slo_response_data.rb +1 -1
- data/lib/datadog_api_client/v1/models/dashboard_share_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v1/models/logs_span_remapper.rb +160 -0
- data/lib/datadog_api_client/v1/models/logs_span_remapper_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options_evaluation_window.rb +14 -4
- data/lib/datadog_api_client/v1/models/monitor_search_result.rb +13 -1
- data/lib/datadog_api_client/v1/models/number_format_unit.rb +63 -0
- data/lib/datadog_api_client/v1/models/number_format_unit_canonical.rb +125 -0
- data/lib/datadog_api_client/v1/models/number_format_unit_custom.rb +137 -0
- data/lib/datadog_api_client/v1/models/number_format_unit_custom_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/number_format_unit_scale.rb +115 -0
- data/lib/datadog_api_client/v1/models/number_format_unit_scale_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard.rb +85 -9
- data/lib/datadog_api_client/v1/models/shared_dashboard_invitees_items.rb +151 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_status.rb +27 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +68 -3
- data/lib/datadog_api_client/v1/models/slo_correction_list_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_step.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_browser_variable_type.rb +0 -1
- data/lib/datadog_api_client/v1/models/synthetics_ci_test_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_params_element_user_locator.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_trigger_body.rb +1 -1
- data/lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +3 -3
- data/lib/datadog_api_client/v1/models/viewing_preferences.rb +115 -0
- data/lib/datadog_api_client/v1/models/viewing_preferences_theme.rb +28 -0
- data/lib/datadog_api_client/v1/models/widget_formula.rb +21 -1
- data/lib/datadog_api_client/v1/models/widget_formula_cell_display_mode_options.rb +115 -0
- data/lib/datadog_api_client/v1/models/widget_formula_cell_display_mode_options_trend_type.rb +28 -0
- data/lib/datadog_api_client/v1/models/widget_formula_cell_display_mode_options_y_scale.rb +27 -0
- data/lib/datadog_api_client/v1/models/widget_number_format.rb +123 -0
- data/lib/datadog_api_client/v2/api/agentless_scanning_api.rb +398 -2
- data/lib/datadog_api_client/v2/api/api_management_api.rb +15 -0
- data/lib/datadog_api_client/v2/api/app_builder_api.rb +0 -48
- data/lib/datadog_api_client/v2/api/application_security_api.rb +689 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/confluent_cloud_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/metrics_api.rb +3 -1
- data/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb +455 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +116 -23
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +1 -2
- data/lib/datadog_api_client/v2/api/workflow_automation_api.rb +269 -0
- data/lib/datadog_api_client/v2/models/account_filtering_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/action_query.rb +198 -0
- data/lib/datadog_api_client/v2/models/action_query_condition.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_debounce_in_ms.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_mocked_outputs.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_mocked_outputs_enabled.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_mocked_outputs_object.rb +133 -0
- data/lib/datadog_api_client/v2/models/action_query_only_trigger_manually.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_polling_interval_in_ms.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_properties.rb +203 -0
- data/lib/datadog_api_client/v2/models/action_query_requires_confirmation.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_show_toast_on_error.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_spec.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_connection_group.rb +117 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_inputs.rb +63 -0
- data/lib/datadog_api_client/v2/models/action_query_spec_object.rb +153 -0
- data/lib/datadog_api_client/v2/models/action_query_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/annotation.rb +165 -0
- data/lib/datadog_api_client/v2/models/annotation_display.rb +105 -0
- data/lib/datadog_api_client/v2/models/annotation_display_bounds.rb +135 -0
- data/lib/datadog_api_client/v2/models/annotation_markdown_text_annotation.rb +105 -0
- data/lib/datadog_api_client/v2/models/api_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_action.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_action_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_action_parameters.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_attributes.rb +253 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_input.rb +135 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_input_address.rb +46 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_operator.rb +36 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_options.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_condition_parameters.rb +178 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_create_attributes.rb +243 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_metadata.rb +155 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_scope.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_tags.rb +145 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_tags_category.rb +28 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_update_attributes.rb +243 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_attributes.rb +213 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_create_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_metadata.rb +155 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_on_match.rb +26 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_resource.rb +125 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_rules_target.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_rules_target_tags.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_scope.rb +115 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_update_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filter_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/application_security_waf_exclusion_filters_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +12 -20
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_on_demand_attributes.rb +138 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_create_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/aws_on_demand_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_create_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_create_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_response.rb +4 -6
- data/lib/datadog_api_client/v2/models/aws_scan_options_update_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/aws_scan_options_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/case_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/completion_condition.rb +154 -0
- data/lib/datadog_api_client/v2/models/completion_condition_operator.rb +37 -0
- data/lib/datadog_api_client/v2/models/completion_gate.rb +144 -0
- data/lib/datadog_api_client/v2/models/connection.rb +144 -0
- data/lib/datadog_api_client/v2/models/connection_env.rb +147 -0
- data/lib/datadog_api_client/v2/models/connection_env_env.rb +26 -0
- data/lib/datadog_api_client/v2/models/connection_group.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_workflow_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_workflow_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/data_transform.rb +186 -0
- data/lib/datadog_api_client/v2/models/data_transform_properties.rb +105 -0
- data/lib/datadog_api_client/v2/models/{query_type.rb → data_transform_type.rb} +2 -4
- data/lib/datadog_api_client/v2/models/error_handler.rb +144 -0
- data/lib/datadog_api_client/v2/models/fastly_service.rb +1 -1
- data/lib/datadog_api_client/v2/models/get_rule_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/get_rule_version_history_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/get_rule_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/get_workflow_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/github_webhook_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/input_schema.rb +107 -0
- data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +174 -0
- data/lib/datadog_api_client/v2/models/input_schema_parameters_type.rb +33 -0
- data/lib/datadog_api_client/v2/models/job_definition.rb +13 -1
- data/lib/datadog_api_client/v2/models/logs_archive_destination_s3.rb +11 -1
- data/lib/datadog_api_client/v2/models/logs_archive_storage_class_s3_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/metric_bulk_tag_config_create_attributes.rb +50 -1
- data/lib/datadog_api_client/v2/models/monitor_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/outbound_edge.rb +144 -0
- data/lib/datadog_api_client/v2/models/output_schema.rb +107 -0
- data/lib/datadog_api_client/v2/models/output_schema_parameters.rb +184 -0
- data/lib/datadog_api_client/v2/models/output_schema_parameters_type.rb +33 -0
- data/lib/datadog_api_client/v2/models/parameter.rb +144 -0
- data/lib/datadog_api_client/v2/models/query.rb +37 -160
- data/lib/datadog_api_client/v2/models/readiness_gate.rb +123 -0
- data/lib/datadog_api_client/v2/models/readiness_gate_threshold_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/retry_strategy.rb +133 -0
- data/lib/datadog_api_client/v2/models/retry_strategy_kind.rb +26 -0
- data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +144 -0
- data/lib/datadog_api_client/v2/models/rule_types_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/rule_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/rule_version_update.rb +125 -0
- data/lib/datadog_api_client/v2/models/rule_version_update_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/rule_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_create_attributes.rb +193 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_data.rb +135 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_event_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_source.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_update_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_update_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filter_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filters_order_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filters_order_request.rb +108 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filters_order_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/rum_retention_filters_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_trigger.rb +123 -0
- data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action.rb +115 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_create.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_evaluation_window.rb +4 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_keep_alive.rb +2 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/selectors.rb +1 -1
- data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/spec.rb +173 -0
- data/lib/datadog_api_client/v2/models/state_variable.rb +186 -0
- data/lib/datadog_api_client/v2/models/state_variable_properties.rb +105 -0
- data/lib/datadog_api_client/v2/models/state_variable_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/step.rb +220 -0
- data/lib/datadog_api_client/v2/models/step_display.rb +105 -0
- data/lib/datadog_api_client/v2/models/step_display_bounds.rb +115 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +73 -0
- data/lib/datadog_api_client/v2/models/trigger_rate_limit.rb +115 -0
- data/lib/datadog_api_client/v2/models/update_workflow_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_workflow_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/workflow_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +206 -0
- data/lib/datadog_api_client/v2/models/workflow_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/workflow_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/workflow_data_update.rb +164 -0
- data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +177 -0
- data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/workflow_user_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/workflow_user_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/workflow_user_relationship_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +223 -3
@@ -607,7 +607,7 @@ module DatadogAPIClient::V2
|
|
607
607
|
|
608
608
|
# Update Cloud Cost Management AWS CUR config.
|
609
609
|
#
|
610
|
-
# Update the status of an AWS CUR config
|
610
|
+
# Update the status (active/archived) and/or account filtering configuration of an AWS CUR config.
|
611
611
|
#
|
612
612
|
# @param cloud_account_id [String] Cloud Account id.
|
613
613
|
# @param body [AwsCURConfigPatchRequest]
|
@@ -102,7 +102,7 @@ module DatadogAPIClient::V2
|
|
102
102
|
#
|
103
103
|
# Create a Confluent resource for the account associated with the provided ID.
|
104
104
|
#
|
105
|
-
# @param account_id [String] Confluent Account
|
105
|
+
# @param account_id [String] Confluent Account ID.
|
106
106
|
# @param body [ConfluentResourceRequest] Confluent payload
|
107
107
|
# @param opts [Hash] the optional parameters
|
108
108
|
# @return [Array<(ConfluentResourceResponse, Integer, Hash)>] ConfluentResourceResponse data, response status code and response headers
|
@@ -174,7 +174,7 @@ module DatadogAPIClient::V2
|
|
174
174
|
#
|
175
175
|
# Delete a Confluent account with the provided account ID.
|
176
176
|
#
|
177
|
-
# @param account_id [String] Confluent Account
|
177
|
+
# @param account_id [String] Confluent Account ID.
|
178
178
|
# @param opts [Hash] the optional parameters
|
179
179
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
180
180
|
def delete_confluent_account_with_http_info(account_id, opts = {})
|
@@ -239,7 +239,7 @@ module DatadogAPIClient::V2
|
|
239
239
|
#
|
240
240
|
# Delete a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
241
241
|
#
|
242
|
-
# @param account_id [String] Confluent Account
|
242
|
+
# @param account_id [String] Confluent Account ID.
|
243
243
|
# @param resource_id [String] Confluent Account Resource ID.
|
244
244
|
# @param opts [Hash] the optional parameters
|
245
245
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -309,7 +309,7 @@ module DatadogAPIClient::V2
|
|
309
309
|
#
|
310
310
|
# Get the Confluent account with the provided account ID.
|
311
311
|
#
|
312
|
-
# @param account_id [String] Confluent Account
|
312
|
+
# @param account_id [String] Confluent Account ID.
|
313
313
|
# @param opts [Hash] the optional parameters
|
314
314
|
# @return [Array<(ConfluentAccountResponse, Integer, Hash)>] ConfluentAccountResponse data, response status code and response headers
|
315
315
|
def get_confluent_account_with_http_info(account_id, opts = {})
|
@@ -374,7 +374,7 @@ module DatadogAPIClient::V2
|
|
374
374
|
#
|
375
375
|
# Get a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
376
376
|
#
|
377
|
-
# @param account_id [String] Confluent Account
|
377
|
+
# @param account_id [String] Confluent Account ID.
|
378
378
|
# @param resource_id [String] Confluent Account Resource ID.
|
379
379
|
# @param opts [Hash] the optional parameters
|
380
380
|
# @return [Array<(ConfluentResourceResponse, Integer, Hash)>] ConfluentResourceResponse data, response status code and response headers
|
@@ -504,7 +504,7 @@ module DatadogAPIClient::V2
|
|
504
504
|
#
|
505
505
|
# Get a Confluent resource for the account associated with the provided ID.
|
506
506
|
#
|
507
|
-
# @param account_id [String] Confluent Account
|
507
|
+
# @param account_id [String] Confluent Account ID.
|
508
508
|
# @param opts [Hash] the optional parameters
|
509
509
|
# @return [Array<(ConfluentResourcesResponse, Integer, Hash)>] ConfluentResourcesResponse data, response status code and response headers
|
510
510
|
def list_confluent_resource_with_http_info(account_id, opts = {})
|
@@ -569,7 +569,7 @@ module DatadogAPIClient::V2
|
|
569
569
|
#
|
570
570
|
# Update the Confluent account with the provided account ID.
|
571
571
|
#
|
572
|
-
# @param account_id [String] Confluent Account
|
572
|
+
# @param account_id [String] Confluent Account ID.
|
573
573
|
# @param body [ConfluentAccountUpdateRequest] Confluent payload
|
574
574
|
# @param opts [Hash] the optional parameters
|
575
575
|
# @return [Array<(ConfluentAccountResponse, Integer, Hash)>] ConfluentAccountResponse data, response status code and response headers
|
@@ -641,7 +641,7 @@ module DatadogAPIClient::V2
|
|
641
641
|
#
|
642
642
|
# Update a Confluent resource with the provided resource id for the account associated with the provided account ID.
|
643
643
|
#
|
644
|
-
# @param account_id [String] Confluent Account
|
644
|
+
# @param account_id [String] Confluent Account ID.
|
645
645
|
# @param resource_id [String] Confluent Account Resource ID.
|
646
646
|
# @param body [ConfluentResourceRequest] Confluent payload
|
647
647
|
# @param opts [Hash] the optional parameters
|
@@ -612,8 +612,9 @@ module DatadogAPIClient::V2
|
|
612
612
|
# @option opts [String] :filter_tags_configured Filter tag configurations by configured tags.
|
613
613
|
# @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Filter metrics by metric type.
|
614
614
|
# @option opts [Boolean] :filter_include_percentiles Filter distributions with additional percentile aggregations enabled or disabled.
|
615
|
-
# @option opts [Boolean] :filter_queried (
|
615
|
+
# @option opts [Boolean] :filter_queried (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
|
616
616
|
# @option opts [String] :filter_tags Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
|
617
|
+
# @option opts [Boolean] :filter_related_assets (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
|
617
618
|
# @option opts [Integer] :window_seconds The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
|
618
619
|
# @option opts [Integer] :page_size Maximum number of results returned.
|
619
620
|
# @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`. Once the `meta.pagination.next_cursor` key is null, all pages have been retrieved.
|
@@ -644,6 +645,7 @@ module DatadogAPIClient::V2
|
|
644
645
|
query_params[:'filter[include_percentiles]'] = opts[:'filter_include_percentiles'] if !opts[:'filter_include_percentiles'].nil?
|
645
646
|
query_params[:'filter[queried]'] = opts[:'filter_queried'] if !opts[:'filter_queried'].nil?
|
646
647
|
query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil?
|
648
|
+
query_params[:'filter[related_assets]'] = opts[:'filter_related_assets'] if !opts[:'filter_related_assets'].nil?
|
647
649
|
query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil?
|
648
650
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
649
651
|
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
@@ -0,0 +1,455 @@
|
|
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 RumRetentionFiltersAPI
|
20
|
+
attr_accessor :api_client
|
21
|
+
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
|
+
@api_client = api_client
|
24
|
+
end
|
25
|
+
|
26
|
+
# Create a RUM retention filter.
|
27
|
+
#
|
28
|
+
# @see #create_retention_filter_with_http_info
|
29
|
+
def create_retention_filter(app_id, body, opts = {})
|
30
|
+
data, _status_code, _headers = create_retention_filter_with_http_info(app_id, body, opts)
|
31
|
+
data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Create a RUM retention filter.
|
35
|
+
#
|
36
|
+
# Create a RUM retention filter for an application.
|
37
|
+
# Returns RUM retention filter objects from the request body when the request is successful.
|
38
|
+
#
|
39
|
+
# @param app_id [String] Application ID.
|
40
|
+
# @param body [RumRetentionFilterCreateRequest] The definition of the new RUM retention filter.
|
41
|
+
# @param opts [Hash] the optional parameters
|
42
|
+
# @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
|
43
|
+
def create_retention_filter_with_http_info(app_id, body, opts = {})
|
44
|
+
|
45
|
+
if @api_client.config.debugging
|
46
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.create_retention_filter ...'
|
47
|
+
end
|
48
|
+
# verify the required parameter 'app_id' is set
|
49
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.create_retention_filter"
|
51
|
+
end
|
52
|
+
# verify the required parameter 'body' is set
|
53
|
+
if @api_client.config.client_side_validation && body.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling RumRetentionFiltersAPI.create_retention_filter"
|
55
|
+
end
|
56
|
+
# resource path
|
57
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/retention_filters'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/'))
|
58
|
+
|
59
|
+
# query parameters
|
60
|
+
query_params = opts[:query_params] || {}
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = opts[:header_params] || {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = opts[:form_params] || {}
|
71
|
+
|
72
|
+
# http body (model)
|
73
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
74
|
+
|
75
|
+
# return_type
|
76
|
+
return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse'
|
77
|
+
|
78
|
+
# auth_names
|
79
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
80
|
+
|
81
|
+
new_options = opts.merge(
|
82
|
+
:operation => :create_retention_filter,
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names,
|
88
|
+
:return_type => return_type,
|
89
|
+
:api_version => "V2"
|
90
|
+
)
|
91
|
+
|
92
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#create_retention_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
|
+
end
|
96
|
+
return data, status_code, headers
|
97
|
+
end
|
98
|
+
|
99
|
+
# Delete a RUM retention filter.
|
100
|
+
#
|
101
|
+
# @see #delete_retention_filter_with_http_info
|
102
|
+
def delete_retention_filter(app_id, rf_id, opts = {})
|
103
|
+
delete_retention_filter_with_http_info(app_id, rf_id, opts)
|
104
|
+
nil
|
105
|
+
end
|
106
|
+
|
107
|
+
# Delete a RUM retention filter.
|
108
|
+
#
|
109
|
+
# Delete a RUM retention filter for an application.
|
110
|
+
#
|
111
|
+
# @param app_id [String] Application ID.
|
112
|
+
# @param rf_id [String] Retention filter ID.
|
113
|
+
# @param opts [Hash] the optional parameters
|
114
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
115
|
+
def delete_retention_filter_with_http_info(app_id, rf_id, opts = {})
|
116
|
+
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.delete_retention_filter ...'
|
119
|
+
end
|
120
|
+
# verify the required parameter 'app_id' is set
|
121
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.delete_retention_filter"
|
123
|
+
end
|
124
|
+
# verify the required parameter 'rf_id' is set
|
125
|
+
if @api_client.config.client_side_validation && rf_id.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'rf_id' when calling RumRetentionFiltersAPI.delete_retention_filter"
|
127
|
+
end
|
128
|
+
# resource path
|
129
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/')).sub('{rf_id}', CGI.escape(rf_id.to_s).gsub('%2F', '/'))
|
130
|
+
|
131
|
+
# query parameters
|
132
|
+
query_params = opts[:query_params] || {}
|
133
|
+
|
134
|
+
# header parameters
|
135
|
+
header_params = opts[:header_params] || {}
|
136
|
+
# HTTP header 'Accept' (if needed)
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
138
|
+
|
139
|
+
# form parameters
|
140
|
+
form_params = opts[:form_params] || {}
|
141
|
+
|
142
|
+
# http body (model)
|
143
|
+
post_body = opts[:debug_body]
|
144
|
+
|
145
|
+
# return_type
|
146
|
+
return_type = opts[:debug_return_type]
|
147
|
+
|
148
|
+
# auth_names
|
149
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
150
|
+
|
151
|
+
new_options = opts.merge(
|
152
|
+
:operation => :delete_retention_filter,
|
153
|
+
:header_params => header_params,
|
154
|
+
:query_params => query_params,
|
155
|
+
:form_params => form_params,
|
156
|
+
:body => post_body,
|
157
|
+
:auth_names => auth_names,
|
158
|
+
:return_type => return_type,
|
159
|
+
:api_version => "V2"
|
160
|
+
)
|
161
|
+
|
162
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#delete_retention_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
|
+
end
|
166
|
+
return data, status_code, headers
|
167
|
+
end
|
168
|
+
|
169
|
+
# Get a RUM retention filter.
|
170
|
+
#
|
171
|
+
# @see #get_retention_filter_with_http_info
|
172
|
+
def get_retention_filter(app_id, rf_id, opts = {})
|
173
|
+
data, _status_code, _headers = get_retention_filter_with_http_info(app_id, rf_id, opts)
|
174
|
+
data
|
175
|
+
end
|
176
|
+
|
177
|
+
# Get a RUM retention filter.
|
178
|
+
#
|
179
|
+
# Get a RUM retention filter for an application.
|
180
|
+
#
|
181
|
+
# @param app_id [String] Application ID.
|
182
|
+
# @param rf_id [String] Retention filter ID.
|
183
|
+
# @param opts [Hash] the optional parameters
|
184
|
+
# @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
|
185
|
+
def get_retention_filter_with_http_info(app_id, rf_id, opts = {})
|
186
|
+
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.get_retention_filter ...'
|
189
|
+
end
|
190
|
+
# verify the required parameter 'app_id' is set
|
191
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
192
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.get_retention_filter"
|
193
|
+
end
|
194
|
+
# verify the required parameter 'rf_id' is set
|
195
|
+
if @api_client.config.client_side_validation && rf_id.nil?
|
196
|
+
fail ArgumentError, "Missing the required parameter 'rf_id' when calling RumRetentionFiltersAPI.get_retention_filter"
|
197
|
+
end
|
198
|
+
# resource path
|
199
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/')).sub('{rf_id}', CGI.escape(rf_id.to_s).gsub('%2F', '/'))
|
200
|
+
|
201
|
+
# query parameters
|
202
|
+
query_params = opts[:query_params] || {}
|
203
|
+
|
204
|
+
# header parameters
|
205
|
+
header_params = opts[:header_params] || {}
|
206
|
+
# HTTP header 'Accept' (if needed)
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
208
|
+
|
209
|
+
# form parameters
|
210
|
+
form_params = opts[:form_params] || {}
|
211
|
+
|
212
|
+
# http body (model)
|
213
|
+
post_body = opts[:debug_body]
|
214
|
+
|
215
|
+
# return_type
|
216
|
+
return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse'
|
217
|
+
|
218
|
+
# auth_names
|
219
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
220
|
+
|
221
|
+
new_options = opts.merge(
|
222
|
+
:operation => :get_retention_filter,
|
223
|
+
:header_params => header_params,
|
224
|
+
:query_params => query_params,
|
225
|
+
:form_params => form_params,
|
226
|
+
:body => post_body,
|
227
|
+
:auth_names => auth_names,
|
228
|
+
:return_type => return_type,
|
229
|
+
:api_version => "V2"
|
230
|
+
)
|
231
|
+
|
232
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
233
|
+
if @api_client.config.debugging
|
234
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#get_retention_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
235
|
+
end
|
236
|
+
return data, status_code, headers
|
237
|
+
end
|
238
|
+
|
239
|
+
# Get all RUM retention filters.
|
240
|
+
#
|
241
|
+
# @see #list_retention_filters_with_http_info
|
242
|
+
def list_retention_filters(app_id, opts = {})
|
243
|
+
data, _status_code, _headers = list_retention_filters_with_http_info(app_id, opts)
|
244
|
+
data
|
245
|
+
end
|
246
|
+
|
247
|
+
# Get all RUM retention filters.
|
248
|
+
#
|
249
|
+
# Get the list of RUM retention filters for an application.
|
250
|
+
#
|
251
|
+
# @param app_id [String] Application ID.
|
252
|
+
# @param opts [Hash] the optional parameters
|
253
|
+
# @return [Array<(RumRetentionFiltersResponse, Integer, Hash)>] RumRetentionFiltersResponse data, response status code and response headers
|
254
|
+
def list_retention_filters_with_http_info(app_id, opts = {})
|
255
|
+
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.list_retention_filters ...'
|
258
|
+
end
|
259
|
+
# verify the required parameter 'app_id' is set
|
260
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.list_retention_filters"
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/retention_filters'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/'))
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = opts[:query_params] || {}
|
268
|
+
|
269
|
+
# header parameters
|
270
|
+
header_params = opts[:header_params] || {}
|
271
|
+
# HTTP header 'Accept' (if needed)
|
272
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
273
|
+
|
274
|
+
# form parameters
|
275
|
+
form_params = opts[:form_params] || {}
|
276
|
+
|
277
|
+
# http body (model)
|
278
|
+
post_body = opts[:debug_body]
|
279
|
+
|
280
|
+
# return_type
|
281
|
+
return_type = opts[:debug_return_type] || 'RumRetentionFiltersResponse'
|
282
|
+
|
283
|
+
# auth_names
|
284
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
285
|
+
|
286
|
+
new_options = opts.merge(
|
287
|
+
:operation => :list_retention_filters,
|
288
|
+
:header_params => header_params,
|
289
|
+
:query_params => query_params,
|
290
|
+
:form_params => form_params,
|
291
|
+
:body => post_body,
|
292
|
+
:auth_names => auth_names,
|
293
|
+
:return_type => return_type,
|
294
|
+
:api_version => "V2"
|
295
|
+
)
|
296
|
+
|
297
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#list_retention_filters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
300
|
+
end
|
301
|
+
return data, status_code, headers
|
302
|
+
end
|
303
|
+
|
304
|
+
# Order RUM retention filters.
|
305
|
+
#
|
306
|
+
# @see #order_retention_filters_with_http_info
|
307
|
+
def order_retention_filters(app_id, body, opts = {})
|
308
|
+
data, _status_code, _headers = order_retention_filters_with_http_info(app_id, body, opts)
|
309
|
+
data
|
310
|
+
end
|
311
|
+
|
312
|
+
# Order RUM retention filters.
|
313
|
+
#
|
314
|
+
# Order RUM retention filters for an application.
|
315
|
+
# Returns RUM retention filter objects without attributes and meta from the request body when the request is successful.
|
316
|
+
#
|
317
|
+
# @param app_id [String] Application ID.
|
318
|
+
# @param body [RumRetentionFiltersOrderRequest] New definition of the RUM retention filter.
|
319
|
+
# @param opts [Hash] the optional parameters
|
320
|
+
# @return [Array<(RumRetentionFiltersOrderResponse, Integer, Hash)>] RumRetentionFiltersOrderResponse data, response status code and response headers
|
321
|
+
def order_retention_filters_with_http_info(app_id, body, opts = {})
|
322
|
+
|
323
|
+
if @api_client.config.debugging
|
324
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.order_retention_filters ...'
|
325
|
+
end
|
326
|
+
# verify the required parameter 'app_id' is set
|
327
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
328
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.order_retention_filters"
|
329
|
+
end
|
330
|
+
# verify the required parameter 'body' is set
|
331
|
+
if @api_client.config.client_side_validation && body.nil?
|
332
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling RumRetentionFiltersAPI.order_retention_filters"
|
333
|
+
end
|
334
|
+
# resource path
|
335
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/relationships/retention_filters'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/'))
|
336
|
+
|
337
|
+
# query parameters
|
338
|
+
query_params = opts[:query_params] || {}
|
339
|
+
|
340
|
+
# header parameters
|
341
|
+
header_params = opts[:header_params] || {}
|
342
|
+
# HTTP header 'Accept' (if needed)
|
343
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
344
|
+
# HTTP header 'Content-Type'
|
345
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
346
|
+
|
347
|
+
# form parameters
|
348
|
+
form_params = opts[:form_params] || {}
|
349
|
+
|
350
|
+
# http body (model)
|
351
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
352
|
+
|
353
|
+
# return_type
|
354
|
+
return_type = opts[:debug_return_type] || 'RumRetentionFiltersOrderResponse'
|
355
|
+
|
356
|
+
# auth_names
|
357
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
358
|
+
|
359
|
+
new_options = opts.merge(
|
360
|
+
:operation => :order_retention_filters,
|
361
|
+
:header_params => header_params,
|
362
|
+
:query_params => query_params,
|
363
|
+
:form_params => form_params,
|
364
|
+
:body => post_body,
|
365
|
+
:auth_names => auth_names,
|
366
|
+
:return_type => return_type,
|
367
|
+
:api_version => "V2"
|
368
|
+
)
|
369
|
+
|
370
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
371
|
+
if @api_client.config.debugging
|
372
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#order_retention_filters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
373
|
+
end
|
374
|
+
return data, status_code, headers
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update a RUM retention filter.
|
378
|
+
#
|
379
|
+
# @see #update_retention_filter_with_http_info
|
380
|
+
def update_retention_filter(app_id, rf_id, body, opts = {})
|
381
|
+
data, _status_code, _headers = update_retention_filter_with_http_info(app_id, rf_id, body, opts)
|
382
|
+
data
|
383
|
+
end
|
384
|
+
|
385
|
+
# Update a RUM retention filter.
|
386
|
+
#
|
387
|
+
# Update a RUM retention filter for an application.
|
388
|
+
# Returns RUM retention filter objects from the request body when the request is successful.
|
389
|
+
#
|
390
|
+
# @param app_id [String] Application ID.
|
391
|
+
# @param rf_id [String] Retention filter ID.
|
392
|
+
# @param body [RumRetentionFilterUpdateRequest] New definition of the RUM retention filter.
|
393
|
+
# @param opts [Hash] the optional parameters
|
394
|
+
# @return [Array<(RumRetentionFilterResponse, Integer, Hash)>] RumRetentionFilterResponse data, response status code and response headers
|
395
|
+
def update_retention_filter_with_http_info(app_id, rf_id, body, opts = {})
|
396
|
+
|
397
|
+
if @api_client.config.debugging
|
398
|
+
@api_client.config.logger.debug 'Calling API: RumRetentionFiltersAPI.update_retention_filter ...'
|
399
|
+
end
|
400
|
+
# verify the required parameter 'app_id' is set
|
401
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
402
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling RumRetentionFiltersAPI.update_retention_filter"
|
403
|
+
end
|
404
|
+
# verify the required parameter 'rf_id' is set
|
405
|
+
if @api_client.config.client_side_validation && rf_id.nil?
|
406
|
+
fail ArgumentError, "Missing the required parameter 'rf_id' when calling RumRetentionFiltersAPI.update_retention_filter"
|
407
|
+
end
|
408
|
+
# verify the required parameter 'body' is set
|
409
|
+
if @api_client.config.client_side_validation && body.nil?
|
410
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling RumRetentionFiltersAPI.update_retention_filter"
|
411
|
+
end
|
412
|
+
# resource path
|
413
|
+
local_var_path = '/api/v2/rum/applications/{app_id}/retention_filters/{rf_id}'.sub('{app_id}', CGI.escape(app_id.to_s).gsub('%2F', '/')).sub('{rf_id}', CGI.escape(rf_id.to_s).gsub('%2F', '/'))
|
414
|
+
|
415
|
+
# query parameters
|
416
|
+
query_params = opts[:query_params] || {}
|
417
|
+
|
418
|
+
# header parameters
|
419
|
+
header_params = opts[:header_params] || {}
|
420
|
+
# HTTP header 'Accept' (if needed)
|
421
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
422
|
+
# HTTP header 'Content-Type'
|
423
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
424
|
+
|
425
|
+
# form parameters
|
426
|
+
form_params = opts[:form_params] || {}
|
427
|
+
|
428
|
+
# http body (model)
|
429
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
430
|
+
|
431
|
+
# return_type
|
432
|
+
return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse'
|
433
|
+
|
434
|
+
# auth_names
|
435
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
436
|
+
|
437
|
+
new_options = opts.merge(
|
438
|
+
:operation => :update_retention_filter,
|
439
|
+
:header_params => header_params,
|
440
|
+
:query_params => query_params,
|
441
|
+
:form_params => form_params,
|
442
|
+
:body => post_body,
|
443
|
+
:auth_names => auth_names,
|
444
|
+
:return_type => return_type,
|
445
|
+
:api_version => "V2"
|
446
|
+
)
|
447
|
+
|
448
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
449
|
+
if @api_client.config.debugging
|
450
|
+
@api_client.config.logger.debug "API called: RumRetentionFiltersAPI#update_retention_filter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
451
|
+
end
|
452
|
+
return data, status_code, headers
|
453
|
+
end
|
454
|
+
end
|
455
|
+
end
|