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
|
@@ -21,15 +21,18 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSampleProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The display name for a component.
|
|
25
|
+
attr_accessor :display_name
|
|
26
|
+
|
|
27
|
+
# Whether this processor is enabled.
|
|
28
|
+
attr_reader :enabled
|
|
29
|
+
|
|
24
30
|
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (for example, as the `input` to downstream components).
|
|
25
31
|
attr_reader :id
|
|
26
32
|
|
|
27
33
|
# A Datadog search query used to determine which logs this processor targets.
|
|
28
34
|
attr_reader :include
|
|
29
35
|
|
|
30
|
-
# A list of component IDs whose output is used as the `input` for this component.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
36
|
# The percentage of logs to sample.
|
|
34
37
|
attr_accessor :percentage
|
|
35
38
|
|
|
@@ -45,9 +48,10 @@ module DatadogAPIClient::V2
|
|
|
45
48
|
# @!visibility private
|
|
46
49
|
def self.attribute_map
|
|
47
50
|
{
|
|
51
|
+
:'display_name' => :'display_name',
|
|
52
|
+
:'enabled' => :'enabled',
|
|
48
53
|
:'id' => :'id',
|
|
49
54
|
:'include' => :'include',
|
|
50
|
-
:'inputs' => :'inputs',
|
|
51
55
|
:'percentage' => :'percentage',
|
|
52
56
|
:'rate' => :'rate',
|
|
53
57
|
:'type' => :'type'
|
|
@@ -58,9 +62,10 @@ module DatadogAPIClient::V2
|
|
|
58
62
|
# @!visibility private
|
|
59
63
|
def self.openapi_types
|
|
60
64
|
{
|
|
65
|
+
:'display_name' => :'String',
|
|
66
|
+
:'enabled' => :'Boolean',
|
|
61
67
|
:'id' => :'String',
|
|
62
68
|
:'include' => :'String',
|
|
63
|
-
:'inputs' => :'Array<String>',
|
|
64
69
|
:'percentage' => :'Float',
|
|
65
70
|
:'rate' => :'Integer',
|
|
66
71
|
:'type' => :'ObservabilityPipelineSampleProcessorType'
|
|
@@ -85,6 +90,14 @@ module DatadogAPIClient::V2
|
|
|
85
90
|
end
|
|
86
91
|
}
|
|
87
92
|
|
|
93
|
+
if attributes.key?(:'display_name')
|
|
94
|
+
self.display_name = attributes[:'display_name']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'enabled')
|
|
98
|
+
self.enabled = attributes[:'enabled']
|
|
99
|
+
end
|
|
100
|
+
|
|
88
101
|
if attributes.key?(:'id')
|
|
89
102
|
self.id = attributes[:'id']
|
|
90
103
|
end
|
|
@@ -93,12 +106,6 @@ module DatadogAPIClient::V2
|
|
|
93
106
|
self.include = attributes[:'include']
|
|
94
107
|
end
|
|
95
108
|
|
|
96
|
-
if attributes.key?(:'inputs')
|
|
97
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
98
|
-
self.inputs = value
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
|
|
102
109
|
if attributes.key?(:'percentage')
|
|
103
110
|
self.percentage = attributes[:'percentage']
|
|
104
111
|
end
|
|
@@ -116,14 +123,24 @@ module DatadogAPIClient::V2
|
|
|
116
123
|
# @return true if the model is valid
|
|
117
124
|
# @!visibility private
|
|
118
125
|
def valid?
|
|
126
|
+
return false if @enabled.nil?
|
|
119
127
|
return false if @id.nil?
|
|
120
128
|
return false if @include.nil?
|
|
121
|
-
return false if @inputs.nil?
|
|
122
129
|
return false if !@rate.nil? && @rate < 1
|
|
123
130
|
return false if @type.nil?
|
|
124
131
|
true
|
|
125
132
|
end
|
|
126
133
|
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param enabled [Object] Object to be assigned
|
|
136
|
+
# @!visibility private
|
|
137
|
+
def enabled=(enabled)
|
|
138
|
+
if enabled.nil?
|
|
139
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
140
|
+
end
|
|
141
|
+
@enabled = enabled
|
|
142
|
+
end
|
|
143
|
+
|
|
127
144
|
# Custom attribute writer method with validation
|
|
128
145
|
# @param id [Object] Object to be assigned
|
|
129
146
|
# @!visibility private
|
|
@@ -144,16 +161,6 @@ module DatadogAPIClient::V2
|
|
|
144
161
|
@include = include
|
|
145
162
|
end
|
|
146
163
|
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param inputs [Object] Object to be assigned
|
|
149
|
-
# @!visibility private
|
|
150
|
-
def inputs=(inputs)
|
|
151
|
-
if inputs.nil?
|
|
152
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
153
|
-
end
|
|
154
|
-
@inputs = inputs
|
|
155
|
-
end
|
|
156
|
-
|
|
157
164
|
# Custom attribute writer method with validation
|
|
158
165
|
# @param rate [Object] Object to be assigned
|
|
159
166
|
# @!visibility private
|
|
@@ -200,9 +207,10 @@ module DatadogAPIClient::V2
|
|
|
200
207
|
def ==(o)
|
|
201
208
|
return true if self.equal?(o)
|
|
202
209
|
self.class == o.class &&
|
|
210
|
+
display_name == o.display_name &&
|
|
211
|
+
enabled == o.enabled &&
|
|
203
212
|
id == o.id &&
|
|
204
213
|
include == o.include &&
|
|
205
|
-
inputs == o.inputs &&
|
|
206
214
|
percentage == o.percentage &&
|
|
207
215
|
rate == o.rate &&
|
|
208
216
|
type == o.type &&
|
|
@@ -213,7 +221,7 @@ module DatadogAPIClient::V2
|
|
|
213
221
|
# @return [Integer] Hash code
|
|
214
222
|
# @!visibility private
|
|
215
223
|
def hash
|
|
216
|
-
[id, include,
|
|
224
|
+
[display_name, enabled, id, include, percentage, rate, type, additional_properties].hash
|
|
217
225
|
end
|
|
218
226
|
end
|
|
219
227
|
end
|
data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb
CHANGED
|
@@ -21,15 +21,18 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineSensitiveDataScannerProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The display name for a component.
|
|
25
|
+
attr_accessor :display_name
|
|
26
|
+
|
|
27
|
+
# Whether this processor is enabled.
|
|
28
|
+
attr_reader :enabled
|
|
29
|
+
|
|
24
30
|
# The unique identifier for this component. Used to reference this component in other parts of the pipeline (e.g., as input to downstream components).
|
|
25
31
|
attr_reader :id
|
|
26
32
|
|
|
27
33
|
# A Datadog search query used to determine which logs this processor targets.
|
|
28
34
|
attr_reader :include
|
|
29
35
|
|
|
30
|
-
# A list of component IDs whose output is used as the `input` for this component.
|
|
31
|
-
attr_reader :inputs
|
|
32
|
-
|
|
33
36
|
# A list of rules for identifying and acting on sensitive data patterns.
|
|
34
37
|
attr_reader :rules
|
|
35
38
|
|
|
@@ -42,9 +45,10 @@ module DatadogAPIClient::V2
|
|
|
42
45
|
# @!visibility private
|
|
43
46
|
def self.attribute_map
|
|
44
47
|
{
|
|
48
|
+
:'display_name' => :'display_name',
|
|
49
|
+
:'enabled' => :'enabled',
|
|
45
50
|
:'id' => :'id',
|
|
46
51
|
:'include' => :'include',
|
|
47
|
-
:'inputs' => :'inputs',
|
|
48
52
|
:'rules' => :'rules',
|
|
49
53
|
:'type' => :'type'
|
|
50
54
|
}
|
|
@@ -54,9 +58,10 @@ module DatadogAPIClient::V2
|
|
|
54
58
|
# @!visibility private
|
|
55
59
|
def self.openapi_types
|
|
56
60
|
{
|
|
61
|
+
:'display_name' => :'String',
|
|
62
|
+
:'enabled' => :'Boolean',
|
|
57
63
|
:'id' => :'String',
|
|
58
64
|
:'include' => :'String',
|
|
59
|
-
:'inputs' => :'Array<String>',
|
|
60
65
|
:'rules' => :'Array<ObservabilityPipelineSensitiveDataScannerProcessorRule>',
|
|
61
66
|
:'type' => :'ObservabilityPipelineSensitiveDataScannerProcessorType'
|
|
62
67
|
}
|
|
@@ -80,6 +85,14 @@ module DatadogAPIClient::V2
|
|
|
80
85
|
end
|
|
81
86
|
}
|
|
82
87
|
|
|
88
|
+
if attributes.key?(:'display_name')
|
|
89
|
+
self.display_name = attributes[:'display_name']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'enabled')
|
|
93
|
+
self.enabled = attributes[:'enabled']
|
|
94
|
+
end
|
|
95
|
+
|
|
83
96
|
if attributes.key?(:'id')
|
|
84
97
|
self.id = attributes[:'id']
|
|
85
98
|
end
|
|
@@ -88,12 +101,6 @@ module DatadogAPIClient::V2
|
|
|
88
101
|
self.include = attributes[:'include']
|
|
89
102
|
end
|
|
90
103
|
|
|
91
|
-
if attributes.key?(:'inputs')
|
|
92
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
93
|
-
self.inputs = value
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
104
|
if attributes.key?(:'rules')
|
|
98
105
|
if (value = attributes[:'rules']).is_a?(Array)
|
|
99
106
|
self.rules = value
|
|
@@ -109,14 +116,24 @@ module DatadogAPIClient::V2
|
|
|
109
116
|
# @return true if the model is valid
|
|
110
117
|
# @!visibility private
|
|
111
118
|
def valid?
|
|
119
|
+
return false if @enabled.nil?
|
|
112
120
|
return false if @id.nil?
|
|
113
121
|
return false if @include.nil?
|
|
114
|
-
return false if @inputs.nil?
|
|
115
122
|
return false if @rules.nil?
|
|
116
123
|
return false if @type.nil?
|
|
117
124
|
true
|
|
118
125
|
end
|
|
119
126
|
|
|
127
|
+
# Custom attribute writer method with validation
|
|
128
|
+
# @param enabled [Object] Object to be assigned
|
|
129
|
+
# @!visibility private
|
|
130
|
+
def enabled=(enabled)
|
|
131
|
+
if enabled.nil?
|
|
132
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
133
|
+
end
|
|
134
|
+
@enabled = enabled
|
|
135
|
+
end
|
|
136
|
+
|
|
120
137
|
# Custom attribute writer method with validation
|
|
121
138
|
# @param id [Object] Object to be assigned
|
|
122
139
|
# @!visibility private
|
|
@@ -137,16 +154,6 @@ module DatadogAPIClient::V2
|
|
|
137
154
|
@include = include
|
|
138
155
|
end
|
|
139
156
|
|
|
140
|
-
# Custom attribute writer method with validation
|
|
141
|
-
# @param inputs [Object] Object to be assigned
|
|
142
|
-
# @!visibility private
|
|
143
|
-
def inputs=(inputs)
|
|
144
|
-
if inputs.nil?
|
|
145
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
146
|
-
end
|
|
147
|
-
@inputs = inputs
|
|
148
|
-
end
|
|
149
|
-
|
|
150
157
|
# Custom attribute writer method with validation
|
|
151
158
|
# @param rules [Object] Object to be assigned
|
|
152
159
|
# @!visibility private
|
|
@@ -193,9 +200,10 @@ module DatadogAPIClient::V2
|
|
|
193
200
|
def ==(o)
|
|
194
201
|
return true if self.equal?(o)
|
|
195
202
|
self.class == o.class &&
|
|
203
|
+
display_name == o.display_name &&
|
|
204
|
+
enabled == o.enabled &&
|
|
196
205
|
id == o.id &&
|
|
197
206
|
include == o.include &&
|
|
198
|
-
inputs == o.inputs &&
|
|
199
207
|
rules == o.rules &&
|
|
200
208
|
type == o.type &&
|
|
201
209
|
additional_properties == o.additional_properties
|
|
@@ -205,7 +213,7 @@ module DatadogAPIClient::V2
|
|
|
205
213
|
# @return [Integer] Hash code
|
|
206
214
|
# @!visibility private
|
|
207
215
|
def hash
|
|
208
|
-
[id, include,
|
|
216
|
+
[display_name, enabled, id, include, rules, type, additional_properties].hash
|
|
209
217
|
end
|
|
210
218
|
end
|
|
211
219
|
end
|
|
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class ObservabilityPipelineThrottleProcessor
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The display name for a component.
|
|
25
|
+
attr_accessor :display_name
|
|
26
|
+
|
|
27
|
+
# Whether this processor is enabled.
|
|
28
|
+
attr_reader :enabled
|
|
29
|
+
|
|
24
30
|
# Optional list of fields used to group events before the threshold has been reached.
|
|
25
31
|
attr_accessor :group_by
|
|
26
32
|
|
|
@@ -30,9 +36,6 @@ module DatadogAPIClient::V2
|
|
|
30
36
|
# A Datadog search query used to determine which logs this processor targets.
|
|
31
37
|
attr_reader :include
|
|
32
38
|
|
|
33
|
-
# A list of component IDs whose output is used as the input for this processor.
|
|
34
|
-
attr_reader :inputs
|
|
35
|
-
|
|
36
39
|
# the number of events allowed in a given time window. Events sent after the threshold has been reached, are dropped.
|
|
37
40
|
attr_reader :threshold
|
|
38
41
|
|
|
@@ -48,10 +51,11 @@ module DatadogAPIClient::V2
|
|
|
48
51
|
# @!visibility private
|
|
49
52
|
def self.attribute_map
|
|
50
53
|
{
|
|
54
|
+
:'display_name' => :'display_name',
|
|
55
|
+
:'enabled' => :'enabled',
|
|
51
56
|
:'group_by' => :'group_by',
|
|
52
57
|
:'id' => :'id',
|
|
53
58
|
:'include' => :'include',
|
|
54
|
-
:'inputs' => :'inputs',
|
|
55
59
|
:'threshold' => :'threshold',
|
|
56
60
|
:'type' => :'type',
|
|
57
61
|
:'window' => :'window'
|
|
@@ -62,10 +66,11 @@ module DatadogAPIClient::V2
|
|
|
62
66
|
# @!visibility private
|
|
63
67
|
def self.openapi_types
|
|
64
68
|
{
|
|
69
|
+
:'display_name' => :'String',
|
|
70
|
+
:'enabled' => :'Boolean',
|
|
65
71
|
:'group_by' => :'Array<String>',
|
|
66
72
|
:'id' => :'String',
|
|
67
73
|
:'include' => :'String',
|
|
68
|
-
:'inputs' => :'Array<String>',
|
|
69
74
|
:'threshold' => :'Integer',
|
|
70
75
|
:'type' => :'ObservabilityPipelineThrottleProcessorType',
|
|
71
76
|
:'window' => :'Float'
|
|
@@ -90,6 +95,14 @@ module DatadogAPIClient::V2
|
|
|
90
95
|
end
|
|
91
96
|
}
|
|
92
97
|
|
|
98
|
+
if attributes.key?(:'display_name')
|
|
99
|
+
self.display_name = attributes[:'display_name']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'enabled')
|
|
103
|
+
self.enabled = attributes[:'enabled']
|
|
104
|
+
end
|
|
105
|
+
|
|
93
106
|
if attributes.key?(:'group_by')
|
|
94
107
|
if (value = attributes[:'group_by']).is_a?(Array)
|
|
95
108
|
self.group_by = value
|
|
@@ -104,12 +117,6 @@ module DatadogAPIClient::V2
|
|
|
104
117
|
self.include = attributes[:'include']
|
|
105
118
|
end
|
|
106
119
|
|
|
107
|
-
if attributes.key?(:'inputs')
|
|
108
|
-
if (value = attributes[:'inputs']).is_a?(Array)
|
|
109
|
-
self.inputs = value
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
120
|
if attributes.key?(:'threshold')
|
|
114
121
|
self.threshold = attributes[:'threshold']
|
|
115
122
|
end
|
|
@@ -127,15 +134,25 @@ module DatadogAPIClient::V2
|
|
|
127
134
|
# @return true if the model is valid
|
|
128
135
|
# @!visibility private
|
|
129
136
|
def valid?
|
|
137
|
+
return false if @enabled.nil?
|
|
130
138
|
return false if @id.nil?
|
|
131
139
|
return false if @include.nil?
|
|
132
|
-
return false if @inputs.nil?
|
|
133
140
|
return false if @threshold.nil?
|
|
134
141
|
return false if @type.nil?
|
|
135
142
|
return false if @window.nil?
|
|
136
143
|
true
|
|
137
144
|
end
|
|
138
145
|
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param enabled [Object] Object to be assigned
|
|
148
|
+
# @!visibility private
|
|
149
|
+
def enabled=(enabled)
|
|
150
|
+
if enabled.nil?
|
|
151
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
152
|
+
end
|
|
153
|
+
@enabled = enabled
|
|
154
|
+
end
|
|
155
|
+
|
|
139
156
|
# Custom attribute writer method with validation
|
|
140
157
|
# @param id [Object] Object to be assigned
|
|
141
158
|
# @!visibility private
|
|
@@ -156,16 +173,6 @@ module DatadogAPIClient::V2
|
|
|
156
173
|
@include = include
|
|
157
174
|
end
|
|
158
175
|
|
|
159
|
-
# Custom attribute writer method with validation
|
|
160
|
-
# @param inputs [Object] Object to be assigned
|
|
161
|
-
# @!visibility private
|
|
162
|
-
def inputs=(inputs)
|
|
163
|
-
if inputs.nil?
|
|
164
|
-
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
|
165
|
-
end
|
|
166
|
-
@inputs = inputs
|
|
167
|
-
end
|
|
168
|
-
|
|
169
176
|
# Custom attribute writer method with validation
|
|
170
177
|
# @param threshold [Object] Object to be assigned
|
|
171
178
|
# @!visibility private
|
|
@@ -222,10 +229,11 @@ module DatadogAPIClient::V2
|
|
|
222
229
|
def ==(o)
|
|
223
230
|
return true if self.equal?(o)
|
|
224
231
|
self.class == o.class &&
|
|
232
|
+
display_name == o.display_name &&
|
|
233
|
+
enabled == o.enabled &&
|
|
225
234
|
group_by == o.group_by &&
|
|
226
235
|
id == o.id &&
|
|
227
236
|
include == o.include &&
|
|
228
|
-
inputs == o.inputs &&
|
|
229
237
|
threshold == o.threshold &&
|
|
230
238
|
type == o.type &&
|
|
231
239
|
window == o.window &&
|
|
@@ -236,7 +244,7 @@ module DatadogAPIClient::V2
|
|
|
236
244
|
# @return [Integer] Hash code
|
|
237
245
|
# @!visibility private
|
|
238
246
|
def hash
|
|
239
|
-
[group_by, id, include,
|
|
247
|
+
[display_name, enabled, group_by, id, include, threshold, type, window, additional_properties].hash
|
|
240
248
|
end
|
|
241
249
|
end
|
|
242
250
|
end
|
|
@@ -17,15 +17,14 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# A top-level wrapper for a notification rule
|
|
21
|
+
class OnCallNotificationRule
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
# returned.
|
|
24
|
+
# Data for an on-call notification rule
|
|
26
25
|
attr_reader :data
|
|
27
26
|
|
|
28
|
-
#
|
|
27
|
+
#
|
|
29
28
|
attr_accessor :included
|
|
30
29
|
|
|
31
30
|
attr_accessor :additional_properties
|
|
@@ -43,8 +42,8 @@ module DatadogAPIClient::V2
|
|
|
43
42
|
# @!visibility private
|
|
44
43
|
def self.openapi_types
|
|
45
44
|
{
|
|
46
|
-
:'data' => :'
|
|
47
|
-
:'included' => :'Array<
|
|
45
|
+
:'data' => :'OnCallNotificationRuleData',
|
|
46
|
+
:'included' => :'Array<OnCallNotificationRulesIncluded>'
|
|
48
47
|
}
|
|
49
48
|
end
|
|
50
49
|
|
|
@@ -53,7 +52,7 @@ module DatadogAPIClient::V2
|
|
|
53
52
|
# @!visibility private
|
|
54
53
|
def initialize(attributes = {})
|
|
55
54
|
if (!attributes.is_a?(Hash))
|
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OnCallNotificationRule` initialize method"
|
|
57
56
|
end
|
|
58
57
|
|
|
59
58
|
self.additional_properties = {}
|
|
@@ -67,9 +66,7 @@ module DatadogAPIClient::V2
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
if attributes.key?(:'data')
|
|
70
|
-
|
|
71
|
-
self.data = value
|
|
72
|
-
end
|
|
69
|
+
self.data = attributes[:'data']
|
|
73
70
|
end
|
|
74
71
|
|
|
75
72
|
if attributes.key?(:'included')
|
|
@@ -0,0 +1,125 @@
|
|
|
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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Attributes for an on-call notification rule.
|
|
21
|
+
class OnCallNotificationRuleAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Specifies the category a notification rule will apply to
|
|
25
|
+
attr_accessor :category
|
|
26
|
+
|
|
27
|
+
# Defines the configuration for a channel associated with a notification rule
|
|
28
|
+
attr_accessor :channel_settings
|
|
29
|
+
|
|
30
|
+
# The number of minutes that will elapse before this rule is evaluated. 0 indicates immediate evaluation
|
|
31
|
+
attr_accessor :delay_minutes
|
|
32
|
+
|
|
33
|
+
attr_accessor :additional_properties
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
# @!visibility private
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'category' => :'category',
|
|
40
|
+
:'channel_settings' => :'channel_settings',
|
|
41
|
+
:'delay_minutes' => :'delay_minutes'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
# @!visibility private
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'category' => :'OnCallNotificationRuleCategory',
|
|
50
|
+
:'channel_settings' => :'OnCallNotificationRuleChannelSettings',
|
|
51
|
+
:'delay_minutes' => :'Integer'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OnCallNotificationRuleAttributes` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
self.additional_properties = {}
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
+
self.additional_properties[k.to_sym] = v
|
|
68
|
+
else
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
end
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'category')
|
|
74
|
+
self.category = attributes[:'category']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'channel_settings')
|
|
78
|
+
self.channel_settings = attributes[:'channel_settings']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'delay_minutes')
|
|
82
|
+
self.delay_minutes = attributes[:'delay_minutes']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def to_hash
|
|
90
|
+
hash = {}
|
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
+
value = self.send(attr)
|
|
93
|
+
if value.nil?
|
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
hash[param] = _to_hash(value)
|
|
99
|
+
end
|
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
|
101
|
+
hash[attr] = value
|
|
102
|
+
end
|
|
103
|
+
hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param o [Object] Object to be compared
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
category == o.category &&
|
|
113
|
+
channel_settings == o.channel_settings &&
|
|
114
|
+
delay_minutes == o.delay_minutes &&
|
|
115
|
+
additional_properties == o.additional_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
# @!visibility private
|
|
121
|
+
def hash
|
|
122
|
+
[category, channel_settings, delay_minutes, additional_properties].hash
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Specifies the category a notification rule will apply to
|
|
21
|
+
class OnCallNotificationRuleCategory
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
HIGH_URGENCY = "high_urgency".freeze
|
|
25
|
+
LOW_URGENCY = "low_urgency".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|