datadog_api_client 2.55.0 → 2.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +186 -0
- data/.generator/schemas/v2/openapi.yaml +6914 -290
- data/CHANGELOG.md +35 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb +32 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb +42 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb +29 -0
- data/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb +38 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +1 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_4007074677.rb +23 -0
- data/examples/v2/cloud-cost-management/DeleteCustomForecast.rb +8 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +14 -0
- data/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +30 -0
- data/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +1 -0
- data/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +1 -0
- data/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb +11 -0
- data/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb +5 -0
- data/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb +10 -0
- data/examples/v2/governance-controls/GetGovernanceControl.rb +8 -0
- data/examples/v2/governance-controls/ListGovernanceControls.rb +8 -0
- data/examples/v2/governance-controls/UpdateGovernanceControl.rb +22 -0
- data/examples/v2/governance-insights/ListGovernanceInsights.rb +8 -0
- data/examples/v2/metrics/CreateTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRule.rb +3 -0
- data/examples/v2/metrics/GetTagIndexingRuleExemption.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +3 -0
- data/examples/v2/metrics/ReorderTagIndexingRules.rb +3 -0
- data/examples/v2/metrics/UpdateTagIndexingRule.rb +3 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb +61 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb +83 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb +56 -0
- data/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb +66 -0
- data/examples/v2/report-schedules/CreateReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/DeleteReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedule.rb +5 -0
- data/examples/v2/report-schedules/GetReportSchedulesForResource.rb +5 -0
- data/examples/v2/report-schedules/ListReportSchedules.rb +5 -0
- data/examples/v2/report-schedules/PatchReportSchedule.rb +1 -1
- data/examples/v2/report-schedules/ToggleReportSchedule.rb +14 -0
- data/examples/v2/rum-remote-config/GetRumSdkConfig.rb +8 -0
- data/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb +94 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb +33 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb +29 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb +11 -0
- data/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb +11 -0
- data/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb +77 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb +8 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb +20 -0
- data/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb +36 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb +30 -0
- data/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb +32 -0
- data/examples/v2/status-pages/EditDegradationUpdate.rb +16 -0
- data/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb +5 -0
- data/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +7 -2
- data/examples/v2/workflow-automation/CreateWorkflow.rb +1 -1
- data/examples/v2/workflow-automation/UpdateWorkflow.rb +1 -1
- data/lib/datadog_api_client/configuration.rb +39 -1
- data/lib/datadog_api_client/inflector.rb +190 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_arithmetic_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_attribute_remapper.rb +211 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_category_sub_processor.rb +178 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor.rb +228 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_processor_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_string_builder_sub_processor.rb +186 -0
- data/lib/datadog_api_client/v1/models/logs_array_map_sub_processor.rb +67 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +2 -1
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +154 -1
- data/lib/datadog_api_client/v2/api/compliance_api.rb +5 -0
- data/lib/datadog_api_client/v2/api/feature_flags_api.rb +229 -0
- data/lib/datadog_api_client/v2/api/governance_controls_api.rb +246 -0
- data/lib/datadog_api_client/v2/api/governance_insights_api.rb +101 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +67 -1
- data/lib/datadog_api_client/v2/api/report_schedules_api.rb +362 -0
- data/lib/datadog_api_client/v2/api/rum_remote_config_api.rb +176 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +1544 -119
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +159 -0
- data/lib/datadog_api_client/v2/api/test_optimization_api.rb +3 -1
- data/lib/datadog_api_client/v2/models/automation_rule_actor_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/automation_rule_created_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_modified_by.rb +165 -0
- data/lib/datadog_api_client/v2/models/automation_rule_scope.rb +150 -0
- data/lib/datadog_api_client/v2/models/branch_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/budget_attributes_costs.rb +146 -0
- data/lib/datadog_api_client/v2/models/budget_attributes_costs_unit.rb +155 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items.rb +11 -1
- data/lib/datadog_api_client/v2/models/budget_with_entries_data_attributes_entries_items_costs.rb +157 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_finished_job.rb +427 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_in_progress_job.rb +406 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job.rb +36 -399
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_job_in_progress_status.rb +26 -0
- data/lib/datadog_api_client/v2/models/commit_coverage_summary_request_attributes.rb +27 -10
- data/lib/datadog_api_client/v2/models/create_backfilled_maintenance_request_data_attributes_updates_items.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_maintenance_request_data_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +31 -1
- data/lib/datadog_api_client/v2/models/custom_forecast_entry.rb +167 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_entry_tag_filter.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_response_data_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/custom_forecast_upsert_request_data_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_bom.rb +221 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component.rb +196 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_component_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata.rb +144 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_component.rb +143 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_metadata_tools.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_tool_component.rb +133 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability.rb +237 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_advisory.rb +105 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_affects.rb +123 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_analysis.rb +107 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_rating.rb +125 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference.rb +115 -0
- data/lib/datadog_api_client/v2/models/cyclone_dx_vulnerability_reference_source.rb +105 -0
- data/lib/datadog_api_client/v2/models/degradation_data_attributes_updates_items.rb +21 -1
- data/lib/datadog_api_client/v2/models/degradation_update.rb +117 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_attributes_components_affected_items.rb +154 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships.rb +145 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_degradation_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_status_page_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user.rb +123 -0
- data/lib/datadog_api_client/v2/models/degradation_update_data_relationships_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/degradation_update_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/due_date_from.rb +27 -0
- data/lib/datadog_api_client/v2/models/due_date_per_severity_item.rb +152 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_action.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/due_date_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/due_date_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/due_date_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/governance_best_practice_definition.rb +379 -0
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +739 -0
- data/lib/datadog_api_client/v2/models/governance_control_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_control_mitigation_definition.rb +309 -0
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +272 -0
- data/lib/datadog_api_client/v2/models/governance_control_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_control_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_control_supported_value.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/governance_control_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/governance_controls_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/governance_insight_attributes.rb +448 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_compute.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_audit_query.rb +188 -0
- data/lib/datadog_api_client/v2/models/governance_insight_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_compute.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_event_query.rb +156 -0
- data/lib/datadog_api_client/v2/models/governance_insight_metric_query.rb +165 -0
- data/lib/datadog_api_client/v2/models/governance_insight_percentage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insight_query_config.rb +175 -0
- data/lib/datadog_api_client/v2/models/governance_insight_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/governance_insight_usage_query.rb +144 -0
- data/lib/datadog_api_client/v2/models/governance_insights_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/metric.rb +12 -2
- data/lib/datadog_api_client/v2/models/metric_ingested_indexed_volume_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration.rb +11 -1
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship.rb +105 -0
- data/lib/datadog_api_client/v2/models/metric_volumes_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/mute_reason.rb +31 -0
- data/lib/datadog_api_client/v2/models/mute_rule_action.rb +154 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/mute_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/mute_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/mute_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/mute_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/mute_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/mute_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination.rb +318 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_auth_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch.rb +148 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_batch_encoding_codec.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression.rb +65 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_algorithm.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_compression_object.rb +149 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_format.rb +33 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_clickhouse_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source.rb +248 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_auth_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_enabled_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert.rb +174 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_tls_with_client_cert_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_websocket_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_attributes_status.rb +28 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource.rb +2 -1
- data/lib/datadog_api_client/v2/models/report_schedule_included_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_index_template_variable.rb +150 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_resource_relationship_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_attributes.rb +335 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_data.rb +186 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_links.rb +157 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination.rb +183 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_pagination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/report_schedule_list_response_relationships.rb +133 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource.rb +165 -0
- data/lib/datadog_api_client/v2/models/report_schedule_resource_attributes.rb +154 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/report_schedule_toggle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/rum_sdk_config_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option.rb +204 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_pair.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_serialized_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_dynamic_option_strategy.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_match_option_serialized_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_meta.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_attributes.rb +336 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_rum_update_attributes.rb +315 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex.rb +144 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_serialized_regex_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_config.rb +146 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_tracing_url_propagator_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/rum_sdk_config_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_links.rb +164 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_meta.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_automation_rules_page_info.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_finding_type.rb +36 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_terraform_resource_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/status_page_as_included_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/status_page_data_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/test_optimization_service_settings_attributes.rb +54 -4
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_attributes.rb +60 -9
- data/lib/datadog_api_client/v2/models/test_optimization_update_service_settings_request_data.rb +1 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action.rb +193 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_action_response.rb +203 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_create.rb +183 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_attributes_response.rb +278 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_create.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_data_response.rb +165 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_reorder_request.rb +125 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_rules_response.rb +167 -0
- data/lib/datadog_api_client/v2/models/ticket_creation_target.rb +27 -0
- data/lib/datadog_api_client/v2/models/update_variant_request.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +237 -1
|
@@ -195,6 +195,12 @@ module DatadogAPIClient::V2
|
|
|
195
195
|
# @param opts [Hash] the optional parameters
|
|
196
196
|
# @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers
|
|
197
197
|
def create_tag_indexing_rule_with_http_info(body, opts = {})
|
|
198
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule".to_sym]
|
|
199
|
+
if unstable_enabled
|
|
200
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule")
|
|
201
|
+
else
|
|
202
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule"))
|
|
203
|
+
end
|
|
198
204
|
|
|
199
205
|
if @api_client.config.debugging
|
|
200
206
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule ...'
|
|
@@ -264,6 +270,12 @@ module DatadogAPIClient::V2
|
|
|
264
270
|
# @param opts [Hash] the optional parameters
|
|
265
271
|
# @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers
|
|
266
272
|
def create_tag_indexing_rule_exemption_with_http_info(metric_name, body, opts = {})
|
|
273
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym]
|
|
274
|
+
if unstable_enabled
|
|
275
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_tag_indexing_rule_exemption")
|
|
276
|
+
else
|
|
277
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_tag_indexing_rule_exemption"))
|
|
278
|
+
end
|
|
267
279
|
|
|
268
280
|
if @api_client.config.debugging
|
|
269
281
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.create_tag_indexing_rule_exemption ...'
|
|
@@ -479,6 +491,12 @@ module DatadogAPIClient::V2
|
|
|
479
491
|
# @param opts [Hash] the optional parameters
|
|
480
492
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
481
493
|
def delete_tag_indexing_rule_with_http_info(id, opts = {})
|
|
494
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule".to_sym]
|
|
495
|
+
if unstable_enabled
|
|
496
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule")
|
|
497
|
+
else
|
|
498
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule"))
|
|
499
|
+
end
|
|
482
500
|
|
|
483
501
|
if @api_client.config.debugging
|
|
484
502
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule ...'
|
|
@@ -546,6 +564,12 @@ module DatadogAPIClient::V2
|
|
|
546
564
|
# @param opts [Hash] the optional parameters
|
|
547
565
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
548
566
|
def delete_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {})
|
|
567
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym]
|
|
568
|
+
if unstable_enabled
|
|
569
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_tag_indexing_rule_exemption")
|
|
570
|
+
else
|
|
571
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_tag_indexing_rule_exemption"))
|
|
572
|
+
end
|
|
549
573
|
|
|
550
574
|
if @api_client.config.debugging
|
|
551
575
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.delete_tag_indexing_rule_exemption ...'
|
|
@@ -763,6 +787,12 @@ module DatadogAPIClient::V2
|
|
|
763
787
|
# @param opts [Hash] the optional parameters
|
|
764
788
|
# @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers
|
|
765
789
|
def get_tag_indexing_rule_with_http_info(id, opts = {})
|
|
790
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule".to_sym]
|
|
791
|
+
if unstable_enabled
|
|
792
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule")
|
|
793
|
+
else
|
|
794
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule"))
|
|
795
|
+
end
|
|
766
796
|
|
|
767
797
|
if @api_client.config.debugging
|
|
768
798
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule ...'
|
|
@@ -831,6 +861,12 @@ module DatadogAPIClient::V2
|
|
|
831
861
|
# @param opts [Hash] the optional parameters
|
|
832
862
|
# @return [Array<(TagIndexingRuleExemptionResponse, Integer, Hash)>] TagIndexingRuleExemptionResponse data, response status code and response headers
|
|
833
863
|
def get_tag_indexing_rule_exemption_with_http_info(metric_name, opts = {})
|
|
864
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym]
|
|
865
|
+
if unstable_enabled
|
|
866
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_tag_indexing_rule_exemption")
|
|
867
|
+
else
|
|
868
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_tag_indexing_rule_exemption"))
|
|
869
|
+
end
|
|
834
870
|
|
|
835
871
|
if @api_client.config.debugging
|
|
836
872
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.get_tag_indexing_rule_exemption ...'
|
|
@@ -1092,7 +1128,8 @@ module DatadogAPIClient::V2
|
|
|
1092
1128
|
# Query parameters use bracket notation (for example, `filter[tags]`, `filter[queried][window][seconds]`). Pass them as standard URL query strings, URL-encoding the brackets if your client does not handle them. For example: `GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500`.
|
|
1093
1129
|
#
|
|
1094
1130
|
# @param opts [Hash] the optional parameters
|
|
1095
|
-
# @option opts [Boolean] :filter_configured Only return custom metrics that have been configured with Metrics Without Limits.
|
|
1131
|
+
# @option opts [Boolean] :filter_configured Only return custom metrics that have been configured (`true`) or not configured (`false`) with Metrics Without Limits.
|
|
1132
|
+
# @option opts [Boolean] :filter_is_configurable Only return metrics that are eligible (`true`) or ineligible (`false`) for configuration with Metrics Without Limits.
|
|
1096
1133
|
# @option opts [String] :filter_tags_configured Only return metrics that have the given tag key(s) in their Metrics Without Limits configuration (included or excluded).
|
|
1097
1134
|
# @option opts [MetricTagConfigurationMetricTypeCategory] :filter_metric_type Only return metrics of the given metric type.
|
|
1098
1135
|
# @option opts [Boolean] :filter_include_percentiles Only return distribution metrics that have percentile aggregations enabled (true) or disabled (false).
|
|
@@ -1100,6 +1137,8 @@ module DatadogAPIClient::V2
|
|
|
1100
1137
|
# @option opts [Integer] :filter_queried_window_seconds This parameter has no effect unless `filter[queried]` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
|
|
1101
1138
|
# @option opts [String] :filter_tags Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: `filter[tags]=env IN (staging,test) AND service:web*`.
|
|
1102
1139
|
# @option opts [Boolean] :filter_related_assets Only return metrics that are used in at least one dashboard, monitor, notebook, or SLO.
|
|
1140
|
+
# @option opts [String] :include Include related resources in the response. Set to `metric_volumes` to include indexed and ingested volume counts for each metric.
|
|
1141
|
+
# @option opts [String] :sort Sort results by metric volume. Prefix a key with `-` for descending order. Supported keys: `metric_volumes.indexed_volume`, `metric_volumes.ingested_volume`, `metric_volumes.indexed_volume_delta`, `metric_volumes.ingested_volume_delta`. Requires a paginated request (`page[size]` or `page[cursor]`).
|
|
1103
1142
|
# @option opts [Integer] :window_seconds Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
|
|
1104
1143
|
# @option opts [Integer] :page_size Maximum number of results per page. Send `page[size]` on the first request to opt in to pagination. On each subsequent request, send `page[cursor]` set to the value of `meta.pagination.next_cursor` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.
|
|
1105
1144
|
# @option opts [String] :page_cursor Cursor for pagination. Use `page[size]` to opt-in to pagination and get the first page; for subsequent pages, use the value from `meta.pagination.next_cursor` in the response. Pagination is complete when `next_cursor` is null.
|
|
@@ -1137,6 +1176,7 @@ module DatadogAPIClient::V2
|
|
|
1137
1176
|
# query parameters
|
|
1138
1177
|
query_params = opts[:query_params] || {}
|
|
1139
1178
|
query_params[:'filter[configured]'] = opts[:'filter_configured'] if !opts[:'filter_configured'].nil?
|
|
1179
|
+
query_params[:'filter[is_configurable]'] = opts[:'filter_is_configurable'] if !opts[:'filter_is_configurable'].nil?
|
|
1140
1180
|
query_params[:'filter[tags_configured]'] = opts[:'filter_tags_configured'] if !opts[:'filter_tags_configured'].nil?
|
|
1141
1181
|
query_params[:'filter[metric_type]'] = opts[:'filter_metric_type'] if !opts[:'filter_metric_type'].nil?
|
|
1142
1182
|
query_params[:'filter[include_percentiles]'] = opts[:'filter_include_percentiles'] if !opts[:'filter_include_percentiles'].nil?
|
|
@@ -1144,6 +1184,8 @@ module DatadogAPIClient::V2
|
|
|
1144
1184
|
query_params[:'filter[queried][window][seconds]'] = opts[:'filter_queried_window_seconds'] if !opts[:'filter_queried_window_seconds'].nil?
|
|
1145
1185
|
query_params[:'filter[tags]'] = opts[:'filter_tags'] if !opts[:'filter_tags'].nil?
|
|
1146
1186
|
query_params[:'filter[related_assets]'] = opts[:'filter_related_assets'] if !opts[:'filter_related_assets'].nil?
|
|
1187
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
1188
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1147
1189
|
query_params[:'window[seconds]'] = opts[:'window_seconds'] if !opts[:'window_seconds'].nil?
|
|
1148
1190
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
1149
1191
|
query_params[:'page[cursor]'] = opts[:'page_cursor'] if !opts[:'page_cursor'].nil?
|
|
@@ -1222,6 +1264,12 @@ module DatadogAPIClient::V2
|
|
|
1222
1264
|
# @option opts [String] :search Substring filter on rule name.
|
|
1223
1265
|
# @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers
|
|
1224
1266
|
def list_tag_indexing_rules_with_http_info(opts = {})
|
|
1267
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules".to_sym]
|
|
1268
|
+
if unstable_enabled
|
|
1269
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules")
|
|
1270
|
+
else
|
|
1271
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules"))
|
|
1272
|
+
end
|
|
1225
1273
|
|
|
1226
1274
|
if @api_client.config.debugging
|
|
1227
1275
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules ...'
|
|
@@ -1287,6 +1335,12 @@ module DatadogAPIClient::V2
|
|
|
1287
1335
|
# @param opts [Hash] the optional parameters
|
|
1288
1336
|
# @return [Array<(TagIndexingRulesResponse, Integer, Hash)>] TagIndexingRulesResponse data, response status code and response headers
|
|
1289
1337
|
def list_tag_indexing_rules_for_metric_with_http_info(metric_name, opts = {})
|
|
1338
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym]
|
|
1339
|
+
if unstable_enabled
|
|
1340
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_tag_indexing_rules_for_metric")
|
|
1341
|
+
else
|
|
1342
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_tag_indexing_rules_for_metric"))
|
|
1343
|
+
end
|
|
1290
1344
|
|
|
1291
1345
|
if @api_client.config.debugging
|
|
1292
1346
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_tag_indexing_rules_for_metric ...'
|
|
@@ -1644,6 +1698,12 @@ module DatadogAPIClient::V2
|
|
|
1644
1698
|
# @param opts [Hash] the optional parameters
|
|
1645
1699
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1646
1700
|
def reorder_tag_indexing_rules_with_http_info(body, opts = {})
|
|
1701
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym]
|
|
1702
|
+
if unstable_enabled
|
|
1703
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.reorder_tag_indexing_rules")
|
|
1704
|
+
else
|
|
1705
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.reorder_tag_indexing_rules"))
|
|
1706
|
+
end
|
|
1647
1707
|
|
|
1648
1708
|
if @api_client.config.debugging
|
|
1649
1709
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.reorder_tag_indexing_rules ...'
|
|
@@ -1874,6 +1934,12 @@ module DatadogAPIClient::V2
|
|
|
1874
1934
|
# @param opts [Hash] the optional parameters
|
|
1875
1935
|
# @return [Array<(TagIndexingRuleResponse, Integer, Hash)>] TagIndexingRuleResponse data, response status code and response headers
|
|
1876
1936
|
def update_tag_indexing_rule_with_http_info(id, body, opts = {})
|
|
1937
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_tag_indexing_rule".to_sym]
|
|
1938
|
+
if unstable_enabled
|
|
1939
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_tag_indexing_rule")
|
|
1940
|
+
else
|
|
1941
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_tag_indexing_rule"))
|
|
1942
|
+
end
|
|
1877
1943
|
|
|
1878
1944
|
if @api_client.config.debugging
|
|
1879
1945
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.update_tag_indexing_rule ...'
|
|
@@ -99,6 +99,295 @@ module DatadogAPIClient::V2
|
|
|
99
99
|
return data, status_code, headers
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
+
# Delete a report schedule.
|
|
103
|
+
#
|
|
104
|
+
# @see #delete_report_schedule_with_http_info
|
|
105
|
+
def delete_report_schedule(schedule_uuid, opts = {})
|
|
106
|
+
data, _status_code, _headers = delete_report_schedule_with_http_info(schedule_uuid, opts)
|
|
107
|
+
data
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Delete a report schedule.
|
|
111
|
+
#
|
|
112
|
+
# Delete a report schedule by its unique identifier. The response returns the deleted schedule.
|
|
113
|
+
# Requires a reporting write permission appropriate to the targeted resource type and schedule ownership.
|
|
114
|
+
#
|
|
115
|
+
# @param schedule_uuid [UUID] The unique identifier of the report schedule to delete.
|
|
116
|
+
# @param opts [Hash] the optional parameters
|
|
117
|
+
# @return [Array<(ReportScheduleResponse, Integer, Hash)>] ReportScheduleResponse data, response status code and response headers
|
|
118
|
+
def delete_report_schedule_with_http_info(schedule_uuid, opts = {})
|
|
119
|
+
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: ReportSchedulesAPI.delete_report_schedule ...'
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'schedule_uuid' is set
|
|
124
|
+
if @api_client.config.client_side_validation && schedule_uuid.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'schedule_uuid' when calling ReportSchedulesAPI.delete_report_schedule"
|
|
126
|
+
end
|
|
127
|
+
# resource path
|
|
128
|
+
local_var_path = '/api/v2/reporting/schedule/{schedule_uuid}'.sub('{schedule_uuid}', CGI.escape(schedule_uuid.to_s).gsub('%2F', '/'))
|
|
129
|
+
|
|
130
|
+
# query parameters
|
|
131
|
+
query_params = opts[:query_params] || {}
|
|
132
|
+
|
|
133
|
+
# header parameters
|
|
134
|
+
header_params = opts[:header_params] || {}
|
|
135
|
+
# HTTP header 'Accept' (if needed)
|
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
137
|
+
|
|
138
|
+
# form parameters
|
|
139
|
+
form_params = opts[:form_params] || {}
|
|
140
|
+
|
|
141
|
+
# http body (model)
|
|
142
|
+
post_body = opts[:debug_body]
|
|
143
|
+
|
|
144
|
+
# return_type
|
|
145
|
+
return_type = opts[:debug_return_type] || 'ReportScheduleResponse'
|
|
146
|
+
|
|
147
|
+
# auth_names
|
|
148
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
149
|
+
|
|
150
|
+
new_options = opts.merge(
|
|
151
|
+
:operation => :delete_report_schedule,
|
|
152
|
+
:header_params => header_params,
|
|
153
|
+
:query_params => query_params,
|
|
154
|
+
:form_params => form_params,
|
|
155
|
+
:body => post_body,
|
|
156
|
+
:auth_names => auth_names,
|
|
157
|
+
:return_type => return_type,
|
|
158
|
+
:api_version => "V2"
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug "API called: ReportSchedulesAPI#delete_report_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
|
+
end
|
|
165
|
+
return data, status_code, headers
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Get a report schedule.
|
|
169
|
+
#
|
|
170
|
+
# @see #get_report_schedule_with_http_info
|
|
171
|
+
def get_report_schedule(schedule_uuid, opts = {})
|
|
172
|
+
data, _status_code, _headers = get_report_schedule_with_http_info(schedule_uuid, opts)
|
|
173
|
+
data
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Get a report schedule.
|
|
177
|
+
#
|
|
178
|
+
# Get a report schedule by its unique identifier.
|
|
179
|
+
# Requires a reporting read permission appropriate to the targeted resource type.
|
|
180
|
+
#
|
|
181
|
+
# @param schedule_uuid [UUID] The unique identifier of the report schedule to fetch.
|
|
182
|
+
# @param opts [Hash] the optional parameters
|
|
183
|
+
# @return [Array<(ReportScheduleResponse, Integer, Hash)>] ReportScheduleResponse data, response status code and response headers
|
|
184
|
+
def get_report_schedule_with_http_info(schedule_uuid, opts = {})
|
|
185
|
+
|
|
186
|
+
if @api_client.config.debugging
|
|
187
|
+
@api_client.config.logger.debug 'Calling API: ReportSchedulesAPI.get_report_schedule ...'
|
|
188
|
+
end
|
|
189
|
+
# verify the required parameter 'schedule_uuid' is set
|
|
190
|
+
if @api_client.config.client_side_validation && schedule_uuid.nil?
|
|
191
|
+
fail ArgumentError, "Missing the required parameter 'schedule_uuid' when calling ReportSchedulesAPI.get_report_schedule"
|
|
192
|
+
end
|
|
193
|
+
# resource path
|
|
194
|
+
local_var_path = '/api/v2/reporting/schedule/{schedule_uuid}'.sub('{schedule_uuid}', CGI.escape(schedule_uuid.to_s).gsub('%2F', '/'))
|
|
195
|
+
|
|
196
|
+
# query parameters
|
|
197
|
+
query_params = opts[:query_params] || {}
|
|
198
|
+
|
|
199
|
+
# header parameters
|
|
200
|
+
header_params = opts[:header_params] || {}
|
|
201
|
+
# HTTP header 'Accept' (if needed)
|
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
203
|
+
|
|
204
|
+
# form parameters
|
|
205
|
+
form_params = opts[:form_params] || {}
|
|
206
|
+
|
|
207
|
+
# http body (model)
|
|
208
|
+
post_body = opts[:debug_body]
|
|
209
|
+
|
|
210
|
+
# return_type
|
|
211
|
+
return_type = opts[:debug_return_type] || 'ReportScheduleResponse'
|
|
212
|
+
|
|
213
|
+
# auth_names
|
|
214
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
215
|
+
|
|
216
|
+
new_options = opts.merge(
|
|
217
|
+
:operation => :get_report_schedule,
|
|
218
|
+
:header_params => header_params,
|
|
219
|
+
:query_params => query_params,
|
|
220
|
+
:form_params => form_params,
|
|
221
|
+
:body => post_body,
|
|
222
|
+
:auth_names => auth_names,
|
|
223
|
+
:return_type => return_type,
|
|
224
|
+
:api_version => "V2"
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
228
|
+
if @api_client.config.debugging
|
|
229
|
+
@api_client.config.logger.debug "API called: ReportSchedulesAPI#get_report_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
230
|
+
end
|
|
231
|
+
return data, status_code, headers
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Get report schedules for a resource.
|
|
235
|
+
#
|
|
236
|
+
# @see #get_report_schedules_for_resource_with_http_info
|
|
237
|
+
def get_report_schedules_for_resource(resource_type, resource_id, opts = {})
|
|
238
|
+
data, _status_code, _headers = get_report_schedules_for_resource_with_http_info(resource_type, resource_id, opts)
|
|
239
|
+
data
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Get report schedules for a resource.
|
|
243
|
+
#
|
|
244
|
+
# Get all report schedules that target a dashboard or integration dashboard resource.
|
|
245
|
+
# Requires a reporting read permission appropriate to the targeted resource type.
|
|
246
|
+
#
|
|
247
|
+
# @param resource_type [ReportScheduleResourceType] The type of resource to fetch report schedules for.
|
|
248
|
+
# @param resource_id [String] The identifier of the resource to fetch report schedules for.
|
|
249
|
+
# @param opts [Hash] the optional parameters
|
|
250
|
+
# @return [Array<(ReportScheduleListResponse, Integer, Hash)>] ReportScheduleListResponse data, response status code and response headers
|
|
251
|
+
def get_report_schedules_for_resource_with_http_info(resource_type, resource_id, opts = {})
|
|
252
|
+
|
|
253
|
+
if @api_client.config.debugging
|
|
254
|
+
@api_client.config.logger.debug 'Calling API: ReportSchedulesAPI.get_report_schedules_for_resource ...'
|
|
255
|
+
end
|
|
256
|
+
# verify the required parameter 'resource_type' is set
|
|
257
|
+
if @api_client.config.client_side_validation && resource_type.nil?
|
|
258
|
+
fail ArgumentError, "Missing the required parameter 'resource_type' when calling ReportSchedulesAPI.get_report_schedules_for_resource"
|
|
259
|
+
end
|
|
260
|
+
# verify enum value
|
|
261
|
+
allowable_values = ['dashboard', 'integration_dashboard']
|
|
262
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(resource_type)
|
|
263
|
+
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{allowable_values}"
|
|
264
|
+
end
|
|
265
|
+
# verify the required parameter 'resource_id' is set
|
|
266
|
+
if @api_client.config.client_side_validation && resource_id.nil?
|
|
267
|
+
fail ArgumentError, "Missing the required parameter 'resource_id' when calling ReportSchedulesAPI.get_report_schedules_for_resource"
|
|
268
|
+
end
|
|
269
|
+
# resource path
|
|
270
|
+
local_var_path = '/api/v2/reporting/schedule/{resource_type}/{resource_id}'.sub('{resource_type}', CGI.escape(resource_type.to_s).gsub('%2F', '/')).sub('{resource_id}', CGI.escape(resource_id.to_s).gsub('%2F', '/'))
|
|
271
|
+
|
|
272
|
+
# query parameters
|
|
273
|
+
query_params = opts[:query_params] || {}
|
|
274
|
+
|
|
275
|
+
# header parameters
|
|
276
|
+
header_params = opts[:header_params] || {}
|
|
277
|
+
# HTTP header 'Accept' (if needed)
|
|
278
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
279
|
+
|
|
280
|
+
# form parameters
|
|
281
|
+
form_params = opts[:form_params] || {}
|
|
282
|
+
|
|
283
|
+
# http body (model)
|
|
284
|
+
post_body = opts[:debug_body]
|
|
285
|
+
|
|
286
|
+
# return_type
|
|
287
|
+
return_type = opts[:debug_return_type] || 'ReportScheduleListResponse'
|
|
288
|
+
|
|
289
|
+
# auth_names
|
|
290
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
291
|
+
|
|
292
|
+
new_options = opts.merge(
|
|
293
|
+
:operation => :get_report_schedules_for_resource,
|
|
294
|
+
:header_params => header_params,
|
|
295
|
+
:query_params => query_params,
|
|
296
|
+
:form_params => form_params,
|
|
297
|
+
:body => post_body,
|
|
298
|
+
:auth_names => auth_names,
|
|
299
|
+
:return_type => return_type,
|
|
300
|
+
:api_version => "V2"
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
304
|
+
if @api_client.config.debugging
|
|
305
|
+
@api_client.config.logger.debug "API called: ReportSchedulesAPI#get_report_schedules_for_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
306
|
+
end
|
|
307
|
+
return data, status_code, headers
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# List report schedules.
|
|
311
|
+
#
|
|
312
|
+
# @see #list_report_schedules_with_http_info
|
|
313
|
+
def list_report_schedules(opts = {})
|
|
314
|
+
data, _status_code, _headers = list_report_schedules_with_http_info(opts)
|
|
315
|
+
data
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# List report schedules.
|
|
319
|
+
#
|
|
320
|
+
# List dashboard and integration dashboard report schedules for the organization.
|
|
321
|
+
# The response is paginated and can be filtered by title, author UUID, or recipients.
|
|
322
|
+
# Requires the `generate_dashboard_reports` permission.
|
|
323
|
+
#
|
|
324
|
+
# @param opts [Hash] the optional parameters
|
|
325
|
+
# @option opts [Integer] :page_limit The maximum number of schedules to return. The maximum value is 50.
|
|
326
|
+
# @option opts [Integer] :page_offset The offset from which to start returning schedules.
|
|
327
|
+
# @option opts [String] :filter_title Filter schedules by report title.
|
|
328
|
+
# @option opts [UUID] :filter_author_uuid Filter schedules by author UUID.
|
|
329
|
+
# @option opts [String] :filter_recipients Filter schedules by a comma-separated list of recipients.
|
|
330
|
+
# @return [Array<(ReportScheduleListResponse, Integer, Hash)>] ReportScheduleListResponse data, response status code and response headers
|
|
331
|
+
def list_report_schedules_with_http_info(opts = {})
|
|
332
|
+
|
|
333
|
+
if @api_client.config.debugging
|
|
334
|
+
@api_client.config.logger.debug 'Calling API: ReportSchedulesAPI.list_report_schedules ...'
|
|
335
|
+
end
|
|
336
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 50
|
|
337
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ReportSchedulesAPI.list_report_schedules, must be smaller than or equal to 50.'
|
|
338
|
+
end
|
|
339
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1
|
|
340
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ReportSchedulesAPI.list_report_schedules, must be greater than or equal to 1.'
|
|
341
|
+
end
|
|
342
|
+
if @api_client.config.client_side_validation && !opts[:'page_offset'].nil? && opts[:'page_offset'] < 0
|
|
343
|
+
fail ArgumentError, 'invalid value for "opts[:"page_offset"]" when calling ReportSchedulesAPI.list_report_schedules, must be greater than or equal to 0.'
|
|
344
|
+
end
|
|
345
|
+
# resource path
|
|
346
|
+
local_var_path = '/api/v2/reporting/schedule/list'
|
|
347
|
+
|
|
348
|
+
# query parameters
|
|
349
|
+
query_params = opts[:query_params] || {}
|
|
350
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
351
|
+
query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil?
|
|
352
|
+
query_params[:'filter[title]'] = opts[:'filter_title'] if !opts[:'filter_title'].nil?
|
|
353
|
+
query_params[:'filter[author_uuid]'] = opts[:'filter_author_uuid'] if !opts[:'filter_author_uuid'].nil?
|
|
354
|
+
query_params[:'filter[recipients]'] = opts[:'filter_recipients'] if !opts[:'filter_recipients'].nil?
|
|
355
|
+
|
|
356
|
+
# header parameters
|
|
357
|
+
header_params = opts[:header_params] || {}
|
|
358
|
+
# HTTP header 'Accept' (if needed)
|
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
360
|
+
|
|
361
|
+
# form parameters
|
|
362
|
+
form_params = opts[:form_params] || {}
|
|
363
|
+
|
|
364
|
+
# http body (model)
|
|
365
|
+
post_body = opts[:debug_body]
|
|
366
|
+
|
|
367
|
+
# return_type
|
|
368
|
+
return_type = opts[:debug_return_type] || 'ReportScheduleListResponse'
|
|
369
|
+
|
|
370
|
+
# auth_names
|
|
371
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
372
|
+
|
|
373
|
+
new_options = opts.merge(
|
|
374
|
+
:operation => :list_report_schedules,
|
|
375
|
+
:header_params => header_params,
|
|
376
|
+
:query_params => query_params,
|
|
377
|
+
:form_params => form_params,
|
|
378
|
+
:body => post_body,
|
|
379
|
+
:auth_names => auth_names,
|
|
380
|
+
:return_type => return_type,
|
|
381
|
+
:api_version => "V2"
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
385
|
+
if @api_client.config.debugging
|
|
386
|
+
@api_client.config.logger.debug "API called: ReportSchedulesAPI#list_report_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
387
|
+
end
|
|
388
|
+
return data, status_code, headers
|
|
389
|
+
end
|
|
390
|
+
|
|
102
391
|
# Update a report schedule.
|
|
103
392
|
#
|
|
104
393
|
# @see #patch_report_schedule_with_http_info
|
|
@@ -179,5 +468,78 @@ module DatadogAPIClient::V2
|
|
|
179
468
|
end
|
|
180
469
|
return data, status_code, headers
|
|
181
470
|
end
|
|
471
|
+
|
|
472
|
+
# Toggle a report schedule.
|
|
473
|
+
#
|
|
474
|
+
# @see #toggle_report_schedule_with_http_info
|
|
475
|
+
def toggle_report_schedule(schedule_uuid, body, opts = {})
|
|
476
|
+
data, _status_code, _headers = toggle_report_schedule_with_http_info(schedule_uuid, body, opts)
|
|
477
|
+
data
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# Toggle a report schedule.
|
|
481
|
+
#
|
|
482
|
+
# Activate or pause a report schedule by setting its status to `active` or `inactive`.
|
|
483
|
+
# Requires a reporting write permission appropriate to the targeted resource type and schedule ownership.
|
|
484
|
+
#
|
|
485
|
+
# @param schedule_uuid [UUID] The unique identifier of the report schedule to toggle.
|
|
486
|
+
# @param body [ReportScheduleToggleRequest]
|
|
487
|
+
# @param opts [Hash] the optional parameters
|
|
488
|
+
# @return [Array<(ReportScheduleResponse, Integer, Hash)>] ReportScheduleResponse data, response status code and response headers
|
|
489
|
+
def toggle_report_schedule_with_http_info(schedule_uuid, body, opts = {})
|
|
490
|
+
|
|
491
|
+
if @api_client.config.debugging
|
|
492
|
+
@api_client.config.logger.debug 'Calling API: ReportSchedulesAPI.toggle_report_schedule ...'
|
|
493
|
+
end
|
|
494
|
+
# verify the required parameter 'schedule_uuid' is set
|
|
495
|
+
if @api_client.config.client_side_validation && schedule_uuid.nil?
|
|
496
|
+
fail ArgumentError, "Missing the required parameter 'schedule_uuid' when calling ReportSchedulesAPI.toggle_report_schedule"
|
|
497
|
+
end
|
|
498
|
+
# verify the required parameter 'body' is set
|
|
499
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
500
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ReportSchedulesAPI.toggle_report_schedule"
|
|
501
|
+
end
|
|
502
|
+
# resource path
|
|
503
|
+
local_var_path = '/api/v2/reporting/schedule/{schedule_uuid}/toggle'.sub('{schedule_uuid}', CGI.escape(schedule_uuid.to_s).gsub('%2F', '/'))
|
|
504
|
+
|
|
505
|
+
# query parameters
|
|
506
|
+
query_params = opts[:query_params] || {}
|
|
507
|
+
|
|
508
|
+
# header parameters
|
|
509
|
+
header_params = opts[:header_params] || {}
|
|
510
|
+
# HTTP header 'Accept' (if needed)
|
|
511
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
512
|
+
# HTTP header 'Content-Type'
|
|
513
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
514
|
+
|
|
515
|
+
# form parameters
|
|
516
|
+
form_params = opts[:form_params] || {}
|
|
517
|
+
|
|
518
|
+
# http body (model)
|
|
519
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
520
|
+
|
|
521
|
+
# return_type
|
|
522
|
+
return_type = opts[:debug_return_type] || 'ReportScheduleResponse'
|
|
523
|
+
|
|
524
|
+
# auth_names
|
|
525
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
526
|
+
|
|
527
|
+
new_options = opts.merge(
|
|
528
|
+
:operation => :toggle_report_schedule,
|
|
529
|
+
:header_params => header_params,
|
|
530
|
+
:query_params => query_params,
|
|
531
|
+
:form_params => form_params,
|
|
532
|
+
:body => post_body,
|
|
533
|
+
:auth_names => auth_names,
|
|
534
|
+
:return_type => return_type,
|
|
535
|
+
:api_version => "V2"
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
539
|
+
if @api_client.config.debugging
|
|
540
|
+
@api_client.config.logger.debug "API called: ReportSchedulesAPI#toggle_report_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
541
|
+
end
|
|
542
|
+
return data, status_code, headers
|
|
543
|
+
end
|
|
182
544
|
end
|
|
183
545
|
end
|