datadog_api_client 2.46.0 → 2.48.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 +201 -12
- data/.generator/schemas/v2/openapi.yaml +3391 -684
- data/CHANGELOG.md +46 -0
- data/examples/v1/dashboards/CreateDashboard_3685886950.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_865807520.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_9836563.rb +118 -0
- data/examples/v2/apm/GetServiceList.rb +5 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +11 -0
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +11 -0
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +11 -0
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +3 -1
- data/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +1 -1
- data/examples/v2/deployment-gates/GetDeploymentGateRules.rb +11 -0
- data/examples/v2/events/CreateEvent.rb +1 -0
- data/examples/v2/incidents/CreateIncidentAttachment.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentAttachment.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachment.rb +20 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +12 -4
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +12 -4
- data/examples/v2/on-call/CreateUserNotificationChannel.rb +23 -0
- data/examples/v2/on-call/CreateUserNotificationRule.rb +29 -0
- data/examples/v2/on-call/DeleteUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/DeleteUserNotificationRule.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationChannel.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationRule.rb +14 -0
- data/examples/v2/on-call/ListUserNotificationChannels.rb +8 -0
- data/examples/v2/on-call/ListUserNotificationRules.rb +11 -0
- data/examples/v2/on-call/UpdateUserNotificationRule.rb +36 -0
- data/examples/v2/product-analytics/SubmitProductAnalyticsEvent.rb +24 -0
- data/examples/v2/security-monitoring/CreateCases.rb +2 -2
- data/examples/v2/security-monitoring/CreateCases_2385516013.rb +1 -1
- data/examples/v2/security-monitoring/CreateCases_2798851680.rb +2 -2
- data/examples/v2/security-monitoring/CreateJiraIssues.rb +14 -69
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +48 -0
- data/examples/v2/security-monitoring/GetSecretsRules.rb +1 -1
- data/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +8 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +54 -0
- data/examples/v2/synthetics/PatchGlobalVariable.rb +19 -0
- data/examples/v2/teams/CreateTeamNotificationRule.rb +23 -0
- data/examples/v2/teams/DeleteTeamConnections.rb +0 -3
- data/examples/v2/teams/DeleteTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRules.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +0 -3
- data/examples/v2/teams/ListTeamConnections.rb +0 -3
- data/examples/v2/teams/ListTeamConnections_2418873869.rb +0 -3
- data/examples/v2/teams/SyncTeams.rb +0 -3
- data/examples/v2/teams/SyncTeams_3215592344.rb +0 -3
- data/examples/v2/teams/UpdateTeamNotificationRule.rb +27 -0
- data/lib/datadog_api_client/configuration.rb +59 -9
- data/lib/datadog_api_client/inflector.rb +135 -26
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -4
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_query_definition.rb +13 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_metric_semantic_mode.rb +27 -0
- data/lib/datadog_api_client/v1/models/geomap_widget_definition.rb +4 -5
- data/lib/datadog_api_client/v1/models/geomap_widget_definition_view.rb +1 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +37 -3
- data/lib/datadog_api_client/v1/models/geomap_widget_request_style.rb +105 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monitor_search_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +221 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/apm_api.rb +83 -0
- data/lib/datadog_api_client/v2/api/deployment_gates_api.rb +71 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/incidents_api.rb +188 -54
- data/lib/datadog_api_client/v2/api/on_call_api.rb +637 -0
- data/lib/datadog_api_client/v2/api/product_analytics_api.rb +121 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +99 -11
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +4 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +79 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +345 -30
- data/lib/datadog_api_client/v2/models/attach_case_request_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/attach_jira_issue_request_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_attributes_fields.rb → attachment.rb} +22 -10
- data/lib/datadog_api_client/v2/models/{incident_attachments_response.rb → attachment_array.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{incident_attachment_data.rb → attachment_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attachment_type.rb → attachment_data_attributes_attachment_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{incident_attachment_relationships.rb → attachment_data_relationships.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case.rb → attachment_data_relationships_last_modified_by_user.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_data_relationships_case_data.rb → attachment_data_relationships_last_modified_by_user_data.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachments_response_included_item.rb → attachment_included.rb} +3 -3
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/awsccm_config.rb +107 -0
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/case_insights_items.rb +3 -3
- data/lib/datadog_api_client/v2/models/case_management_project_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_policy_version.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_hash.rb +105 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_action_set.rb +1 -1
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_attributes.rb → cloud_workload_security_agent_rule_action_set_value.rb} +5 -4
- data/lib/datadog_api_client/v2/models/{dora_fetch_response.rb → create_attachment_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_data.rb → create_attachment_request_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_case_request_data_attributes.rb +3 -3
- data/lib/datadog_api_client/v2/models/create_email_notification_channel_config.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_array.rb +3 -15
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_attributes.rb +43 -3
- data/lib/datadog_api_client/v2/models/create_jira_issue_request_data_relationships.rb +35 -14
- data/lib/datadog_api_client/v2/models/create_notification_channel_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/{create_jira_issue_request_array_included.rb → create_notification_channel_config.rb} +4 -5
- data/lib/datadog_api_client/v2/models/create_notification_channel_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_request.rb → create_on_call_notification_rule_request.rb} +6 -11
- data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes_attachment_object.rb → create_phone_notification_channel_config.rb} +30 -30
- data/lib/datadog_api_client/v2/models/create_user_notification_channel_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/data_export_config.rb +145 -0
- data/lib/datadog_api_client/v2/models/deployment_gate_rules_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/detach_case_request_data.rb +1 -11
- data/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object.rb +125 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/{dora_list_response.rb → dora_failures_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{dora_event.rb → dora_incident_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/event_payload.rb +26 -1
- data/lib/datadog_api_client/v2/models/finding_case_response_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/finding_jira_issue.rb +2 -2
- data/lib/datadog_api_client/v2/models/finding_jira_issue_result.rb +4 -4
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attachment_type.rb → get_suppression_version_history_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/get_suppression_version_history_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/global_variable_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/global_variable_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attachment_type.rb → global_variable_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/json_patch_operation.rb +154 -0
- data/lib/datadog_api_client/v2/models/json_patch_operation_op.rb +31 -0
- data/lib/datadog_api_client/v2/models/library.rb +13 -1
- data/lib/datadog_api_client/v2/models/list_deployment_rule_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_deployment_rules_response_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_notification_channels_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/list_on_call_notification_rules_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/notification_channel.rb +105 -0
- data/lib/datadog_api_client/v2/models/notification_channel_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/notification_channel_config.rb +64 -0
- data/lib/datadog_api_client/v2/models/notification_channel_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes.rb → notification_channel_email_config.rb} +50 -37
- data/lib/datadog_api_client/v2/models/notification_channel_email_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_email_format_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config.rb +225 -0
- data/lib/datadog_api_client/v2/models/notification_channel_phone_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config.rb +165 -0
- data/lib/datadog_api_client/v2/models/notification_channel_push_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/notification_channel_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +2 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +221 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor_remap.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +34 -48
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +28 -31
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +32 -24
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_response.rb → on_call_notification_rule.rb} +8 -11
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attributes.rb → on_call_notification_rule_channel_settings.rb} +3 -4
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rules_included.rb +62 -0
- data/lib/datadog_api_client/v2/models/on_call_phone_notification_rule_method.rb +27 -0
- data/lib/datadog_api_client/v2/models/{incident_attachments_postmortem_attributes_attachment_object.rb → on_call_phone_notification_rule_settings.rb} +30 -30
- data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_error.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_errors.rb +107 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item.rb +195 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_account.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_application.rb +124 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_event.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_session.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_usr.rb +123 -0
- data/lib/datadog_api_client/v2/models/rule_versions.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +155 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_bucket_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_detection_tolerance.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_learning_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_list.rb +105 -0
- data/lib/datadog_api_client/v2/models/service_list_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/service_list_data_attributes_metadata_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/service_list_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/suppression_version_history.rb +133 -0
- data/lib/datadog_api_client/v2/models/suppression_versions.rb +117 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable.rb +248 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_options.rb +105 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options.rb +153 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parser_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attributes.rb → synthetics_global_variable_totp_parameters.rb} +38 -30
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_value.rb +126 -0
- data/lib/datadog_api_client/v2/models/synthetics_variable_parser.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_email.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_ms_teams.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_pagerduty.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_slack.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/user140420082644000.rb +143 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_related_object.rb → user_type.rb} +2 -2
- data/lib/datadog_api_client/v2/models/{rule_version_update.rb → version_history_update.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{rule_version_update_type.rb → version_history_update_type.rb} +1 -1
- data/lib/datadog_api_client/v2/models/vulnerability_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/vulnerability_ecosystem.rb +6 -1
- data/lib/datadog_api_client/v2/models/vulnerability_tool.rb +1 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +163 -32
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +0 -11
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +0 -38
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +0 -26
- data/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +0 -56
- data/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +0 -64
|
@@ -0,0 +1,121 @@
|
|
|
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 ProductAnalyticsAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Send server-side events.
|
|
27
|
+
#
|
|
28
|
+
# @see #submit_product_analytics_event_with_http_info
|
|
29
|
+
def submit_product_analytics_event(body, opts = {})
|
|
30
|
+
data, _status_code, _headers = submit_product_analytics_event_with_http_info(body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Send server-side events.
|
|
35
|
+
#
|
|
36
|
+
# Send server-side events to Product Analytics. Server-side events are retained for 15 months.
|
|
37
|
+
#
|
|
38
|
+
# Server-Side events in Product Analytics are helpful for tracking events that occur on the server,
|
|
39
|
+
# as opposed to client-side events, which are captured by Real User Monitoring (RUM) SDKs.
|
|
40
|
+
# This allows for a more comprehensive view of the user journey by including actions that happen on the server.
|
|
41
|
+
# Typical examples could be `checkout.completed` or `payment.processed`.
|
|
42
|
+
#
|
|
43
|
+
# Ingested server-side events are integrated into Product Analytics to allow users to select and filter
|
|
44
|
+
# these events in the event picker, similar to how views or actions are handled.
|
|
45
|
+
#
|
|
46
|
+
# **Requirements:**
|
|
47
|
+
# - At least one of `usr`, `account`, or `session` must be provided with a valid ID.
|
|
48
|
+
# - The `application.id` must reference a Product Analytics-enabled application.
|
|
49
|
+
#
|
|
50
|
+
# **Custom Attributes:**
|
|
51
|
+
# Any additional fields in the payload are flattened and searchable as facets.
|
|
52
|
+
# For example, a payload with `{"customer": {"tier": "premium"}}` is searchable with
|
|
53
|
+
# the syntax `@customer.tier:premium` in Datadog.
|
|
54
|
+
#
|
|
55
|
+
# The status codes answered by the HTTP API are:
|
|
56
|
+
# - 202: Accepted: The request has been accepted for processing
|
|
57
|
+
# - 400: Bad request (likely an issue in the payload formatting)
|
|
58
|
+
# - 401: Unauthorized (likely a missing API Key)
|
|
59
|
+
# - 403: Permission issue (likely using an invalid API Key)
|
|
60
|
+
# - 408: Request Timeout, request should be retried after some time
|
|
61
|
+
# - 413: Payload too large (batch is above 5MB uncompressed)
|
|
62
|
+
# - 429: Too Many Requests, request should be retried after some time
|
|
63
|
+
# - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time
|
|
64
|
+
# - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time
|
|
65
|
+
#
|
|
66
|
+
# @param body [ProductAnalyticsServerSideEventItem] Server-side event to send (JSON format).
|
|
67
|
+
# @param opts [Hash] the optional parameters
|
|
68
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
69
|
+
def submit_product_analytics_event_with_http_info(body, opts = {})
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug 'Calling API: ProductAnalyticsAPI.submit_product_analytics_event ...'
|
|
73
|
+
end
|
|
74
|
+
# verify the required parameter 'body' is set
|
|
75
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
76
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ProductAnalyticsAPI.submit_product_analytics_event"
|
|
77
|
+
end
|
|
78
|
+
# resource path
|
|
79
|
+
local_var_path = '/api/v2/prodlytics'
|
|
80
|
+
|
|
81
|
+
# query parameters
|
|
82
|
+
query_params = opts[:query_params] || {}
|
|
83
|
+
|
|
84
|
+
# header parameters
|
|
85
|
+
header_params = opts[:header_params] || {}
|
|
86
|
+
# HTTP header 'Accept' (if needed)
|
|
87
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
88
|
+
# HTTP header 'Content-Type'
|
|
89
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
90
|
+
|
|
91
|
+
# form parameters
|
|
92
|
+
form_params = opts[:form_params] || {}
|
|
93
|
+
|
|
94
|
+
# http body (model)
|
|
95
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
96
|
+
|
|
97
|
+
# return_type
|
|
98
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
99
|
+
|
|
100
|
+
# auth_names
|
|
101
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth]
|
|
102
|
+
|
|
103
|
+
new_options = opts.merge(
|
|
104
|
+
:operation => :submit_product_analytics_event,
|
|
105
|
+
:header_params => header_params,
|
|
106
|
+
:query_params => query_params,
|
|
107
|
+
:form_params => form_params,
|
|
108
|
+
:body => post_body,
|
|
109
|
+
:auth_names => auth_names,
|
|
110
|
+
:return_type => return_type,
|
|
111
|
+
:api_version => "V2"
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug "API called: ProductAnalyticsAPI#submit_product_analytics_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
117
|
+
end
|
|
118
|
+
return data, status_code, headers
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
@@ -33,9 +33,10 @@ module DatadogAPIClient::V2
|
|
|
33
33
|
|
|
34
34
|
# Attach security findings to a case.
|
|
35
35
|
#
|
|
36
|
-
# Attach security findings to a case.
|
|
36
|
+
# Attach security findings to a case.
|
|
37
|
+
# You can attach up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the specified case.
|
|
37
38
|
#
|
|
38
|
-
# @param case_id [String]
|
|
39
|
+
# @param case_id [String] Unique identifier of the case to attach security findings to
|
|
39
40
|
# @param body [AttachCaseRequest]
|
|
40
41
|
# @param opts [Hash] the optional parameters
|
|
41
42
|
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
@@ -105,12 +106,19 @@ module DatadogAPIClient::V2
|
|
|
105
106
|
|
|
106
107
|
# Attach security findings to a Jira issue.
|
|
107
108
|
#
|
|
108
|
-
# Attach security findings to a Jira issue by providing the Jira issue URL.
|
|
109
|
+
# Attach security findings to a Jira issue by providing the Jira issue URL.
|
|
110
|
+
# You can attach up to 50 security findings per Jira issue. If the Jira issue is not linked to any case, this operation will create a case for the security findings and link the Jira issue to the newly created case. To configure the Jira integration, see [Bidirectional ticket syncing with Jira](https://docs.datadoghq.com/security/ticketing_integrations/#bidirectional-ticket-syncing-with-jira). Security findings that are already attached to another Jira issue will be detached from their previous Jira issue and attached to the specified Jira issue.
|
|
109
111
|
#
|
|
110
112
|
# @param body [AttachJiraIssueRequest]
|
|
111
113
|
# @param opts [Hash] the optional parameters
|
|
112
114
|
# @return [Array<(FindingCaseResponse, Integer, Hash)>] FindingCaseResponse data, response status code and response headers
|
|
113
115
|
def attach_jira_issue_with_http_info(body, opts = {})
|
|
116
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.attach_jira_issue".to_sym]
|
|
117
|
+
if unstable_enabled
|
|
118
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.attach_jira_issue")
|
|
119
|
+
else
|
|
120
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.attach_jira_issue"))
|
|
121
|
+
end
|
|
114
122
|
|
|
115
123
|
if @api_client.config.debugging
|
|
116
124
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.attach_jira_issue ...'
|
|
@@ -460,7 +468,8 @@ module DatadogAPIClient::V2
|
|
|
460
468
|
|
|
461
469
|
# Create cases for security findings.
|
|
462
470
|
#
|
|
463
|
-
# Create cases for security findings.
|
|
471
|
+
# Create cases for security findings.
|
|
472
|
+
# You can create up to 50 cases per request and associate up to 50 security findings per case. Security findings that are already attached to another case will be detached from their previous case and attached to the newly created case.
|
|
464
473
|
#
|
|
465
474
|
# @param body [CreateCaseRequestArray]
|
|
466
475
|
# @param opts [Hash] the optional parameters
|
|
@@ -594,12 +603,19 @@ module DatadogAPIClient::V2
|
|
|
594
603
|
|
|
595
604
|
# Create Jira issues for security findings.
|
|
596
605
|
#
|
|
597
|
-
# Create Jira issues for security findings.
|
|
606
|
+
# Create Jira issues for security findings.
|
|
607
|
+
# This operation creates a case in Datadog and a Jira issue linked to that case for bidirectional sync between Datadog and Jira. To configure the Jira integration, see [Bidirectional ticket syncing with Jira](https://docs.datadoghq.com/security/ticketing_integrations/#bidirectional-ticket-syncing-with-jira). You can create up to 50 Jira issues per request and associate up to 50 security findings per Jira issue. Security findings that are already attached to another Jira issue will be detached from their previous Jira issue and attached to the newly created Jira issue.
|
|
598
608
|
#
|
|
599
609
|
# @param body [CreateJiraIssueRequestArray]
|
|
600
610
|
# @param opts [Hash] the optional parameters
|
|
601
611
|
# @return [Array<(FindingCaseResponseArray, Integer, Hash)>] FindingCaseResponseArray data, response status code and response headers
|
|
602
612
|
def create_jira_issues_with_http_info(body, opts = {})
|
|
613
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_jira_issues".to_sym]
|
|
614
|
+
if unstable_enabled
|
|
615
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_jira_issues")
|
|
616
|
+
else
|
|
617
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_jira_issues"))
|
|
618
|
+
end
|
|
603
619
|
|
|
604
620
|
if @api_client.config.debugging
|
|
605
621
|
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.create_jira_issues ...'
|
|
@@ -1465,7 +1481,8 @@ module DatadogAPIClient::V2
|
|
|
1465
1481
|
|
|
1466
1482
|
# Detach security findings from their case.
|
|
1467
1483
|
#
|
|
1468
|
-
# Detach security findings from their case.
|
|
1484
|
+
# Detach security findings from their case.
|
|
1485
|
+
# This operation dissociates security findings from their associated cases without deleting the cases themselves. You can detach security findings from multiple different cases in a single request, with a limit of 50 security findings per request. Security findings that are not currently attached to any case will be ignored.
|
|
1469
1486
|
#
|
|
1470
1487
|
# @param body [DetachCaseRequest]
|
|
1471
1488
|
# @param opts [Hash] the optional parameters
|
|
@@ -2115,7 +2132,7 @@ module DatadogAPIClient::V2
|
|
|
2115
2132
|
return data, status_code, headers
|
|
2116
2133
|
end
|
|
2117
2134
|
|
|
2118
|
-
# Returns list of Secrets rules.
|
|
2135
|
+
# Returns a list of Secrets rules.
|
|
2119
2136
|
#
|
|
2120
2137
|
# @see #get_secrets_rules_with_http_info
|
|
2121
2138
|
def get_secrets_rules(opts = {})
|
|
@@ -2123,9 +2140,9 @@ module DatadogAPIClient::V2
|
|
|
2123
2140
|
data
|
|
2124
2141
|
end
|
|
2125
2142
|
|
|
2126
|
-
# Returns list of Secrets rules.
|
|
2143
|
+
# Returns a list of Secrets rules.
|
|
2127
2144
|
#
|
|
2128
|
-
# Returns list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID
|
|
2145
|
+
# Returns a list of Secrets rules with ID, Pattern, Description, Priority, and SDS ID.
|
|
2129
2146
|
#
|
|
2130
2147
|
# @param opts [Hash] the optional parameters
|
|
2131
2148
|
# @return [Array<(SecretRuleArray, Integer, Hash)>] SecretRuleArray data, response status code and response headers
|
|
@@ -2862,6 +2879,75 @@ module DatadogAPIClient::V2
|
|
|
2862
2879
|
return data, status_code, headers
|
|
2863
2880
|
end
|
|
2864
2881
|
|
|
2882
|
+
# Get a suppression's version history.
|
|
2883
|
+
#
|
|
2884
|
+
# @see #get_suppression_version_history_with_http_info
|
|
2885
|
+
def get_suppression_version_history(suppression_id, opts = {})
|
|
2886
|
+
data, _status_code, _headers = get_suppression_version_history_with_http_info(suppression_id, opts)
|
|
2887
|
+
data
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2890
|
+
# Get a suppression's version history.
|
|
2891
|
+
#
|
|
2892
|
+
# Get a suppression's version history.
|
|
2893
|
+
#
|
|
2894
|
+
# @param suppression_id [String] The ID of the suppression rule
|
|
2895
|
+
# @param opts [Hash] the optional parameters
|
|
2896
|
+
# @option opts [Integer] :page_size Size for a given page. The maximum allowed value is 100.
|
|
2897
|
+
# @option opts [Integer] :page_number Specific page number to return.
|
|
2898
|
+
# @return [Array<(GetSuppressionVersionHistoryResponse, Integer, Hash)>] GetSuppressionVersionHistoryResponse data, response status code and response headers
|
|
2899
|
+
def get_suppression_version_history_with_http_info(suppression_id, opts = {})
|
|
2900
|
+
|
|
2901
|
+
if @api_client.config.debugging
|
|
2902
|
+
@api_client.config.logger.debug 'Calling API: SecurityMonitoringAPI.get_suppression_version_history ...'
|
|
2903
|
+
end
|
|
2904
|
+
# verify the required parameter 'suppression_id' is set
|
|
2905
|
+
if @api_client.config.client_side_validation && suppression_id.nil?
|
|
2906
|
+
fail ArgumentError, "Missing the required parameter 'suppression_id' when calling SecurityMonitoringAPI.get_suppression_version_history"
|
|
2907
|
+
end
|
|
2908
|
+
# resource path
|
|
2909
|
+
local_var_path = '/api/v2/security_monitoring/configuration/suppressions/{suppression_id}/version_history'.sub('{suppression_id}', CGI.escape(suppression_id.to_s).gsub('%2F', '/'))
|
|
2910
|
+
|
|
2911
|
+
# query parameters
|
|
2912
|
+
query_params = opts[:query_params] || {}
|
|
2913
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
2914
|
+
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
2915
|
+
|
|
2916
|
+
# header parameters
|
|
2917
|
+
header_params = opts[:header_params] || {}
|
|
2918
|
+
# HTTP header 'Accept' (if needed)
|
|
2919
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2920
|
+
|
|
2921
|
+
# form parameters
|
|
2922
|
+
form_params = opts[:form_params] || {}
|
|
2923
|
+
|
|
2924
|
+
# http body (model)
|
|
2925
|
+
post_body = opts[:debug_body]
|
|
2926
|
+
|
|
2927
|
+
# return_type
|
|
2928
|
+
return_type = opts[:debug_return_type] || 'GetSuppressionVersionHistoryResponse'
|
|
2929
|
+
|
|
2930
|
+
# auth_names
|
|
2931
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
2932
|
+
|
|
2933
|
+
new_options = opts.merge(
|
|
2934
|
+
:operation => :get_suppression_version_history,
|
|
2935
|
+
:header_params => header_params,
|
|
2936
|
+
:query_params => query_params,
|
|
2937
|
+
:form_params => form_params,
|
|
2938
|
+
:body => post_body,
|
|
2939
|
+
:auth_names => auth_names,
|
|
2940
|
+
:return_type => return_type,
|
|
2941
|
+
:api_version => "V2"
|
|
2942
|
+
)
|
|
2943
|
+
|
|
2944
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
2945
|
+
if @api_client.config.debugging
|
|
2946
|
+
@api_client.config.logger.debug "API called: SecurityMonitoringAPI#get_suppression_version_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2947
|
+
end
|
|
2948
|
+
return data, status_code, headers
|
|
2949
|
+
end
|
|
2950
|
+
|
|
2865
2951
|
# Get a job's details.
|
|
2866
2952
|
#
|
|
2867
2953
|
# @see #get_threat_hunting_job_with_http_info
|
|
@@ -4117,6 +4203,7 @@ module DatadogAPIClient::V2
|
|
|
4117
4203
|
# @option opts [Boolean] :filter_fix_available Filter by fix availability.
|
|
4118
4204
|
# @option opts [String] :filter_repo_digests Filter by vulnerability `repo_digest` (when the vulnerability is related to `Image` asset).
|
|
4119
4205
|
# @option opts [String] :filter_origin Filter by origin.
|
|
4206
|
+
# @option opts [Boolean] :filter_running_kernel Filter for whether the vulnerability affects a running kernel (for vulnerabilities related to a `Host` asset).
|
|
4120
4207
|
# @option opts [String] :filter_asset_name Filter by asset name. This field supports the usage of wildcards (*).
|
|
4121
4208
|
# @option opts [AssetType] :filter_asset_type Filter by asset type.
|
|
4122
4209
|
# @option opts [String] :filter_asset_version_first Filter by the first version of the asset this vulnerability has been detected on.
|
|
@@ -4175,7 +4262,7 @@ module DatadogAPIClient::V2
|
|
|
4175
4262
|
if @api_client.config.client_side_validation && opts[:'filter_status'] && !allowable_values.include?(opts[:'filter_status'])
|
|
4176
4263
|
fail ArgumentError, "invalid value for \"filter_status\", must be one of #{allowable_values}"
|
|
4177
4264
|
end
|
|
4178
|
-
allowable_values = ['IAST', 'SCA', 'Infra']
|
|
4265
|
+
allowable_values = ['IAST', 'SCA', 'Infra', 'SAST']
|
|
4179
4266
|
if @api_client.config.client_side_validation && opts[:'filter_tool'] && !allowable_values.include?(opts[:'filter_tool'])
|
|
4180
4267
|
fail ArgumentError, "invalid value for \"filter_tool\", must be one of #{allowable_values}"
|
|
4181
4268
|
end
|
|
@@ -4189,7 +4276,7 @@ module DatadogAPIClient::V2
|
|
|
4189
4276
|
if @api_client.config.client_side_validation && opts[:'filter_risks_epss_severity'] && !allowable_values.include?(opts[:'filter_risks_epss_severity'])
|
|
4190
4277
|
fail ArgumentError, "invalid value for \"filter_risks_epss_severity\", must be one of #{allowable_values}"
|
|
4191
4278
|
end
|
|
4192
|
-
allowable_values = ['PyPI', 'Maven', 'NuGet', 'Npm', 'RubyGems', 'Go', 'Packagist', '
|
|
4279
|
+
allowable_values = ['PyPI', 'Maven', 'NuGet', 'Npm', 'RubyGems', 'Go', 'Packagist', 'Deb', 'Rpm', 'Apk', 'Windows', 'Generic', 'MacOs', 'Oci', 'BottleRocket', 'None']
|
|
4193
4280
|
if @api_client.config.client_side_validation && opts[:'filter_ecosystem'] && !allowable_values.include?(opts[:'filter_ecosystem'])
|
|
4194
4281
|
fail ArgumentError, "invalid value for \"filter_ecosystem\", must be one of #{allowable_values}"
|
|
4195
4282
|
end
|
|
@@ -4229,6 +4316,7 @@ module DatadogAPIClient::V2
|
|
|
4229
4316
|
query_params[:'filter[fix_available]'] = opts[:'filter_fix_available'] if !opts[:'filter_fix_available'].nil?
|
|
4230
4317
|
query_params[:'filter[repo_digests]'] = opts[:'filter_repo_digests'] if !opts[:'filter_repo_digests'].nil?
|
|
4231
4318
|
query_params[:'filter[origin]'] = opts[:'filter_origin'] if !opts[:'filter_origin'].nil?
|
|
4319
|
+
query_params[:'filter[running_kernel]'] = opts[:'filter_running_kernel'] if !opts[:'filter_running_kernel'].nil?
|
|
4232
4320
|
query_params[:'filter[asset.name]'] = opts[:'filter_asset_name'] if !opts[:'filter_asset_name'].nil?
|
|
4233
4321
|
query_params[:'filter[asset.type]'] = opts[:'filter_asset_type'] if !opts[:'filter_asset_type'].nil?
|
|
4234
4322
|
query_params[:'filter[asset.version.first]'] = opts[:'filter_asset_version_first'] if !opts[:'filter_asset_version_first'].nil?
|
|
@@ -176,6 +176,7 @@ module DatadogAPIClient::V2
|
|
|
176
176
|
# @option opts [RelationType] :filter_relation_type Filter entities by relation type.
|
|
177
177
|
# @option opts [String] :filter_exclude_snapshot Filter entities by excluding snapshotted entities.
|
|
178
178
|
# @option opts [IncludeType] :include Include relationship data.
|
|
179
|
+
# @option opts [Boolean] :include_discovered If true, includes discovered services from APM and USM that do not have entity definitions.
|
|
179
180
|
# @return [Array<(ListEntityCatalogResponse, Integer, Hash)>] ListEntityCatalogResponse data, response status code and response headers
|
|
180
181
|
def list_catalog_entity_with_http_info(opts = {})
|
|
181
182
|
|
|
@@ -205,6 +206,7 @@ module DatadogAPIClient::V2
|
|
|
205
206
|
query_params[:'filter[relation][type]'] = opts[:'filter_relation_type'] if !opts[:'filter_relation_type'].nil?
|
|
206
207
|
query_params[:'filter[exclude_snapshot]'] = opts[:'filter_exclude_snapshot'] if !opts[:'filter_exclude_snapshot'].nil?
|
|
207
208
|
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
209
|
+
query_params[:'includeDiscovered'] = opts[:'include_discovered'] if !opts[:'include_discovered'].nil?
|
|
208
210
|
|
|
209
211
|
# header parameters
|
|
210
212
|
header_params = opts[:header_params] || {}
|
|
@@ -370,6 +372,7 @@ module DatadogAPIClient::V2
|
|
|
370
372
|
# @option opts [String] :filter_from_ref Filter relations by the reference of the first entity in the relation.
|
|
371
373
|
# @option opts [String] :filter_to_ref Filter relations by the reference of the second entity in the relation.
|
|
372
374
|
# @option opts [RelationIncludeType] :include Include relationship data.
|
|
375
|
+
# @option opts [Boolean] :include_discovered If true, includes relationships discovered by APM and USM.
|
|
373
376
|
# @return [Array<(ListRelationCatalogResponse, Integer, Hash)>] ListRelationCatalogResponse data, response status code and response headers
|
|
374
377
|
def list_catalog_relation_with_http_info(opts = {})
|
|
375
378
|
|
|
@@ -395,6 +398,7 @@ module DatadogAPIClient::V2
|
|
|
395
398
|
query_params[:'filter[from_ref]'] = opts[:'filter_from_ref'] if !opts[:'filter_from_ref'].nil?
|
|
396
399
|
query_params[:'filter[to_ref]'] = opts[:'filter_to_ref'] if !opts[:'filter_to_ref'].nil?
|
|
397
400
|
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
401
|
+
query_params[:'includeDiscovered'] = opts[:'include_discovered'] if !opts[:'include_discovered'].nil?
|
|
398
402
|
|
|
399
403
|
# header parameters
|
|
400
404
|
header_params = opts[:header_params] || {}
|
|
@@ -83,6 +83,85 @@ module DatadogAPIClient::V2
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# Patch a global variable.
|
|
87
|
+
#
|
|
88
|
+
# @see #patch_global_variable_with_http_info
|
|
89
|
+
def patch_global_variable(variable_id, body, opts = {})
|
|
90
|
+
data, _status_code, _headers = patch_global_variable_with_http_info(variable_id, body, opts)
|
|
91
|
+
data
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Patch a global variable.
|
|
95
|
+
#
|
|
96
|
+
# Patch a global variable using JSON Patch (RFC 6902).
|
|
97
|
+
# This endpoint allows partial updates to a global variable by specifying only the fields to modify.
|
|
98
|
+
#
|
|
99
|
+
# Common operations include:
|
|
100
|
+
# - Replace field values: `{"op": "replace", "path": "/name", "value": "new_name"}`
|
|
101
|
+
# - Update nested values: `{"op": "replace", "path": "/value/value", "value": "new_value"}`
|
|
102
|
+
# - Add/update tags: `{"op": "add", "path": "/tags/-", "value": "new_tag"}`
|
|
103
|
+
# - Remove fields: `{"op": "remove", "path": "/description"}`
|
|
104
|
+
#
|
|
105
|
+
# @param variable_id [String] The ID of the global variable.
|
|
106
|
+
# @param body [GlobalVariableJsonPatchRequest] JSON Patch document with operations to apply.
|
|
107
|
+
# @param opts [Hash] the optional parameters
|
|
108
|
+
# @return [Array<(GlobalVariableResponse, Integer, Hash)>] GlobalVariableResponse data, response status code and response headers
|
|
109
|
+
def patch_global_variable_with_http_info(variable_id, body, opts = {})
|
|
110
|
+
|
|
111
|
+
if @api_client.config.debugging
|
|
112
|
+
@api_client.config.logger.debug 'Calling API: SyntheticsAPI.patch_global_variable ...'
|
|
113
|
+
end
|
|
114
|
+
# verify the required parameter 'variable_id' is set
|
|
115
|
+
if @api_client.config.client_side_validation && variable_id.nil?
|
|
116
|
+
fail ArgumentError, "Missing the required parameter 'variable_id' when calling SyntheticsAPI.patch_global_variable"
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'body' is set
|
|
119
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SyntheticsAPI.patch_global_variable"
|
|
121
|
+
end
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/api/v2/synthetics/variables/{variable_id}/jsonpatch'.sub('{variable_id}', CGI.escape(variable_id.to_s).gsub('%2F', '/'))
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
132
|
+
# HTTP header 'Content-Type'
|
|
133
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = opts[:form_params] || {}
|
|
137
|
+
|
|
138
|
+
# http body (model)
|
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:debug_return_type] || 'GlobalVariableResponse'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:operation => :patch_global_variable,
|
|
149
|
+
:header_params => header_params,
|
|
150
|
+
:query_params => query_params,
|
|
151
|
+
:form_params => form_params,
|
|
152
|
+
:body => post_body,
|
|
153
|
+
:auth_names => auth_names,
|
|
154
|
+
:return_type => return_type,
|
|
155
|
+
:api_version => "V2"
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug "API called: SyntheticsAPI#patch_global_variable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
|
+
end
|
|
162
|
+
return data, status_code, headers
|
|
163
|
+
end
|
|
164
|
+
|
|
86
165
|
# Save new value for on-demand concurrency cap.
|
|
87
166
|
#
|
|
88
167
|
# @see #set_on_demand_concurrency_cap_with_http_info
|