datadog_api_client 2.32.0 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +5 -4
- data/.generator/schemas/v2/openapi.yaml +5260 -517
- data/.github/workflows/publish.yml +6 -9
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +20 -0
- data/Gemfile +0 -1
- data/LICENSE-3rdparty.csv +0 -1
- data/Rakefile +3 -0
- data/datadog_api_client.gemspec +0 -2
- data/examples/v2/cloud-cost-management/DeleteBudget.rb +5 -0
- data/examples/v2/cloud-cost-management/GetBudget.rb +5 -0
- data/examples/v2/cloud-cost-management/ListBudgets.rb +5 -0
- data/examples/v2/cloud-cost-management/UpsertBudget.rb +35 -0
- data/examples/v2/monitors/CreateMonitorNotificationRule.rb +26 -0
- data/examples/v2/monitors/DeleteMonitorNotificationRule.rb +11 -0
- data/examples/v2/monitors/GetMonitorNotificationRule.rb +11 -0
- data/examples/v2/monitors/GetMonitorNotificationRules.rb +8 -0
- data/examples/v2/monitors/UpdateMonitorNotificationRule.rb +30 -0
- data/examples/v2/network-device-monitoring/GetInterfaces.rb +4 -1
- data/examples/v2/observability-pipelines/CreatePipeline.rb +2 -2
- data/examples/v2/observability-pipelines/ListPipelines.rb +8 -0
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +44 -0
- data/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +66 -0
- data/examples/v2/on-call/CreateOnCallSchedule.rb +3 -3
- data/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +8 -0
- data/examples/v2/on-call/GetOnCallEscalationPolicy.rb +8 -0
- data/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +51 -0
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +3 -3
- data/examples/v2/security-monitoring/CreateCustomFramework.rb +30 -0
- data/examples/v2/security-monitoring/DeleteCustomFramework.rb +5 -0
- data/examples/v2/security-monitoring/GetCustomFramework.rb +5 -0
- data/examples/v2/security-monitoring/UpdateCustomFramework.rb +30 -0
- data/lib/datadog_api_client/configuration.rb +20 -13
- data/lib/datadog_api_client/inflector.rb +241 -2
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +257 -0
- data/lib/datadog_api_client/v2/api/monitors_api.rb +363 -0
- data/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +146 -1
- data/lib/datadog_api_client/v2/api/on_call_api.rb +275 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +5 -3
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +285 -1
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/azure_storage_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/budget.rb +125 -0
- data/lib/datadog_api_client/v2/models/budget_array.rb +107 -0
- data/lib/datadog_api_client/v2/models/budget_attributes.rb +207 -0
- data/lib/datadog_api_client/v2/models/budget_entry.rb +127 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries.rb +105 -0
- data/lib/datadog_api_client/v2/models/budget_with_entries_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_create_request.rb → create_custom_framework_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/create_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/custom_framework_control.rb +146 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/custom_framework_data_handle_and_version.rb +115 -0
- data/lib/datadog_api_client/v2/models/custom_framework_metadata.rb +125 -0
- data/lib/datadog_api_client/v2/models/custom_framework_requirement.rb +146 -0
- data/lib/datadog_api_client/v2/models/custom_framework_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/custom_framework_without_requirements.rb +207 -0
- data/lib/datadog_api_client/v2/models/delete_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy.rb +117 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items.rb +145 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_attributes_steps_items_targets_items_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_create_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships.rb +133 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_steps_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_included.rb +66 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step.rb +153 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_attributes_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_step_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes.rb +176 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items.rb +155 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_assignment.rb +27 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_attributes_steps_items_targets_items_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams_data_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_policy_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/escalation_target.rb +64 -0
- data/lib/datadog_api_client/v2/models/framework_handle_and_version_response_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/full_custom_framework_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/full_custom_framework_data_attributes.rb +230 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/get_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/layer.rb +19 -1
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/list_pipelines_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/list_pipelines_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +251 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_create_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_data.rb +135 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_filter_tags.rb +108 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_list_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships_created_by.rb +113 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_relationships_created_by_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_attributes.rb +184 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_notification_rule_update_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor_variable.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +166 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +200 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_auth.rb +164 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +262 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_storage_class.rb +34 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_aws_auth.rb +126 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +1 -12
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +15 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +14 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_decoding.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +232 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +187 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_api_version.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file.rb +190 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_encoding.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_encoding_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_key_items.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_key_items_comparison.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_schema_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_file_schema_items_type.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_geo_ip.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_gcp_auth.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +212 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric.rb +199 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_field.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_field_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_one.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_increment_by_one_strategy.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_generated_metric_metric_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +230 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +286 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_acl.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_storage_class.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +239 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +205 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +196 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source_auth_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metadata_entry.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_mapping.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_mapping_mapping.rb +62 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapping_library.rb +36 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +177 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +221 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule.rb +173 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule_match_rule.rb +145 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_rule_support_rule.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +16 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +31 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +234 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_merge_strategy.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_merge_strategy_strategy.rb +37 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +175 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_hash_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_partial_redact_options_direction.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_action.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_action_redact_options.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_keyword_options.rb +146 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +133 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_pattern.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_rule.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope.rb +64 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_all.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_all_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_exclude.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_exclude_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_include.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_include_target.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_scope_options.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination_region.rb +29 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_spec.rb +123 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_create_request_data.rb → observability_pipeline_spec_data.rb} +3 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +209 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +155 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +219 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_encoding.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_header_custom_fields_item.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +175 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_source_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +242 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_data.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_member.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user.rb +19 -1
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +68 -6
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/schedule_user.rb +19 -1
- data/lib/datadog_api_client/v2/models/tag_filter.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +19 -1
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items.rb +31 -2
- data/lib/datadog_api_client/v2/models/team_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_custom_framework_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_custom_framework_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/user_target.rb +144 -0
- data/lib/datadog_api_client/v2/models/user_target_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/validation_error.rb +144 -0
- data/lib/datadog_api_client/v2/models/validation_error_meta.rb +143 -0
- data/lib/datadog_api_client/v2/models/validation_response.rb +107 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +262 -24
@@ -0,0 +1,188 @@
|
|
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
|
+
# The `new_relic` destination sends logs to the New Relic platform.
|
21
|
+
class ObservabilityPipelineNewRelicDestination
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The unique identifier for this component.
|
25
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# A list of component IDs whose output is used as the `input` for this component.
|
28
|
+
attr_reader :inputs
|
29
|
+
|
30
|
+
# The New Relic region.
|
31
|
+
attr_reader :region
|
32
|
+
|
33
|
+
# The destination type. The value should always be `new_relic`.
|
34
|
+
attr_reader :type
|
35
|
+
|
36
|
+
attr_accessor :additional_properties
|
37
|
+
|
38
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
39
|
+
# @!visibility private
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'id' => :'id',
|
43
|
+
:'inputs' => :'inputs',
|
44
|
+
:'region' => :'region',
|
45
|
+
:'type' => :'type'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
# @!visibility private
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'id' => :'String',
|
54
|
+
:'inputs' => :'Array<String>',
|
55
|
+
:'region' => :'ObservabilityPipelineNewRelicDestinationRegion',
|
56
|
+
:'type' => :'ObservabilityPipelineNewRelicDestinationType'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineNewRelicDestination` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
self.additional_properties = {}
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
self.additional_properties[k.to_sym] = v
|
73
|
+
else
|
74
|
+
h[k.to_sym] = v
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'id')
|
79
|
+
self.id = attributes[:'id']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'inputs')
|
83
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
84
|
+
self.inputs = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'region')
|
89
|
+
self.region = attributes[:'region']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'type')
|
93
|
+
self.type = attributes[:'type']
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
# Check to see if the all the properties in the model are valid
|
98
|
+
# @return true if the model is valid
|
99
|
+
# @!visibility private
|
100
|
+
def valid?
|
101
|
+
return false if @id.nil?
|
102
|
+
return false if @inputs.nil?
|
103
|
+
return false if @region.nil?
|
104
|
+
return false if @type.nil?
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param id [Object] Object to be assigned
|
110
|
+
# @!visibility private
|
111
|
+
def id=(id)
|
112
|
+
if id.nil?
|
113
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
114
|
+
end
|
115
|
+
@id = id
|
116
|
+
end
|
117
|
+
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param inputs [Object] Object to be assigned
|
120
|
+
# @!visibility private
|
121
|
+
def inputs=(inputs)
|
122
|
+
if inputs.nil?
|
123
|
+
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
124
|
+
end
|
125
|
+
@inputs = inputs
|
126
|
+
end
|
127
|
+
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param region [Object] Object to be assigned
|
130
|
+
# @!visibility private
|
131
|
+
def region=(region)
|
132
|
+
if region.nil?
|
133
|
+
fail ArgumentError, 'invalid value for "region", region cannot be nil.'
|
134
|
+
end
|
135
|
+
@region = region
|
136
|
+
end
|
137
|
+
|
138
|
+
# Custom attribute writer method with validation
|
139
|
+
# @param type [Object] Object to be assigned
|
140
|
+
# @!visibility private
|
141
|
+
def type=(type)
|
142
|
+
if type.nil?
|
143
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
144
|
+
end
|
145
|
+
@type = type
|
146
|
+
end
|
147
|
+
|
148
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
149
|
+
# @return [Hash] Returns the object in the form of hash
|
150
|
+
# @!visibility private
|
151
|
+
def to_hash
|
152
|
+
hash = {}
|
153
|
+
self.class.attribute_map.each_pair do |attr, param|
|
154
|
+
value = self.send(attr)
|
155
|
+
if value.nil?
|
156
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
157
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
158
|
+
end
|
159
|
+
|
160
|
+
hash[param] = _to_hash(value)
|
161
|
+
end
|
162
|
+
self.additional_properties.each_pair do |attr, value|
|
163
|
+
hash[attr] = value
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Checks equality by comparing each attribute.
|
169
|
+
# @param o [Object] Object to be compared
|
170
|
+
# @!visibility private
|
171
|
+
def ==(o)
|
172
|
+
return true if self.equal?(o)
|
173
|
+
self.class == o.class &&
|
174
|
+
id == o.id &&
|
175
|
+
inputs == o.inputs &&
|
176
|
+
region == o.region &&
|
177
|
+
type == o.type &&
|
178
|
+
additional_properties == o.additional_properties
|
179
|
+
end
|
180
|
+
|
181
|
+
# Calculates hash code according to all attributes.
|
182
|
+
# @return [Integer] Hash code
|
183
|
+
# @!visibility private
|
184
|
+
def hash
|
185
|
+
[id, inputs, region, type, additional_properties].hash
|
186
|
+
end
|
187
|
+
end
|
188
|
+
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
|
+
# The New Relic region.
|
21
|
+
class ObservabilityPipelineNewRelicDestinationRegion
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
US = "us".freeze
|
25
|
+
EU = "eu".freeze
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
# The destination type. The value should always be `new_relic`.
|
21
|
+
class ObservabilityPipelineNewRelicDestinationType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
NEW_RELIC = "new_relic".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,211 @@
|
|
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
|
+
# The `ocsf_mapper` processor transforms logs into the OCSF schema using a predefined mapping configuration.
|
21
|
+
class ObservabilityPipelineOcsfMapperProcessor
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline.
|
25
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# A Datadog search query used to determine which logs this processor targets.
|
28
|
+
attr_reader :include
|
29
|
+
|
30
|
+
# A list of component IDs whose output is used as the `input` for this processor.
|
31
|
+
attr_reader :inputs
|
32
|
+
|
33
|
+
# A list of mapping rules to convert events to the OCSF format.
|
34
|
+
attr_reader :mappings
|
35
|
+
|
36
|
+
# The processor type. The value should always be `ocsf_mapper`.
|
37
|
+
attr_reader :type
|
38
|
+
|
39
|
+
attr_accessor :additional_properties
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
# @!visibility private
|
43
|
+
def self.attribute_map
|
44
|
+
{
|
45
|
+
:'id' => :'id',
|
46
|
+
:'include' => :'include',
|
47
|
+
:'inputs' => :'inputs',
|
48
|
+
:'mappings' => :'mappings',
|
49
|
+
:'type' => :'type'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
# @!visibility private
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'id' => :'String',
|
58
|
+
:'include' => :'String',
|
59
|
+
:'inputs' => :'Array<String>',
|
60
|
+
:'mappings' => :'Array<ObservabilityPipelineOcsfMapperProcessorMapping>',
|
61
|
+
:'type' => :'ObservabilityPipelineOcsfMapperProcessorType'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
67
|
+
# @!visibility private
|
68
|
+
def initialize(attributes = {})
|
69
|
+
if (!attributes.is_a?(Hash))
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineOcsfMapperProcessor` initialize method"
|
71
|
+
end
|
72
|
+
|
73
|
+
self.additional_properties = {}
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
self.additional_properties[k.to_sym] = v
|
78
|
+
else
|
79
|
+
h[k.to_sym] = v
|
80
|
+
end
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'id')
|
84
|
+
self.id = attributes[:'id']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'include')
|
88
|
+
self.include = attributes[:'include']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'inputs')
|
92
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
93
|
+
self.inputs = value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'mappings')
|
98
|
+
if (value = attributes[:'mappings']).is_a?(Array)
|
99
|
+
self.mappings = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'type')
|
104
|
+
self.type = attributes[:'type']
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Check to see if the all the properties in the model are valid
|
109
|
+
# @return true if the model is valid
|
110
|
+
# @!visibility private
|
111
|
+
def valid?
|
112
|
+
return false if @id.nil?
|
113
|
+
return false if @include.nil?
|
114
|
+
return false if @inputs.nil?
|
115
|
+
return false if @mappings.nil?
|
116
|
+
return false if @type.nil?
|
117
|
+
true
|
118
|
+
end
|
119
|
+
|
120
|
+
# Custom attribute writer method with validation
|
121
|
+
# @param id [Object] Object to be assigned
|
122
|
+
# @!visibility private
|
123
|
+
def id=(id)
|
124
|
+
if id.nil?
|
125
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
126
|
+
end
|
127
|
+
@id = id
|
128
|
+
end
|
129
|
+
|
130
|
+
# Custom attribute writer method with validation
|
131
|
+
# @param include [Object] Object to be assigned
|
132
|
+
# @!visibility private
|
133
|
+
def include=(include)
|
134
|
+
if include.nil?
|
135
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
136
|
+
end
|
137
|
+
@include = include
|
138
|
+
end
|
139
|
+
|
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
|
+
# Custom attribute writer method with validation
|
151
|
+
# @param mappings [Object] Object to be assigned
|
152
|
+
# @!visibility private
|
153
|
+
def mappings=(mappings)
|
154
|
+
if mappings.nil?
|
155
|
+
fail ArgumentError, 'invalid value for "mappings", mappings cannot be nil.'
|
156
|
+
end
|
157
|
+
@mappings = mappings
|
158
|
+
end
|
159
|
+
|
160
|
+
# Custom attribute writer method with validation
|
161
|
+
# @param type [Object] Object to be assigned
|
162
|
+
# @!visibility private
|
163
|
+
def type=(type)
|
164
|
+
if type.nil?
|
165
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
166
|
+
end
|
167
|
+
@type = type
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
# @!visibility private
|
173
|
+
def to_hash
|
174
|
+
hash = {}
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
176
|
+
value = self.send(attr)
|
177
|
+
if value.nil?
|
178
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
179
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
180
|
+
end
|
181
|
+
|
182
|
+
hash[param] = _to_hash(value)
|
183
|
+
end
|
184
|
+
self.additional_properties.each_pair do |attr, value|
|
185
|
+
hash[attr] = value
|
186
|
+
end
|
187
|
+
hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Checks equality by comparing each attribute.
|
191
|
+
# @param o [Object] Object to be compared
|
192
|
+
# @!visibility private
|
193
|
+
def ==(o)
|
194
|
+
return true if self.equal?(o)
|
195
|
+
self.class == o.class &&
|
196
|
+
id == o.id &&
|
197
|
+
include == o.include &&
|
198
|
+
inputs == o.inputs &&
|
199
|
+
mappings == o.mappings &&
|
200
|
+
type == o.type &&
|
201
|
+
additional_properties == o.additional_properties
|
202
|
+
end
|
203
|
+
|
204
|
+
# Calculates hash code according to all attributes.
|
205
|
+
# @return [Integer] Hash code
|
206
|
+
# @!visibility private
|
207
|
+
def hash
|
208
|
+
[id, include, inputs, mappings, type, additional_properties].hash
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
@@ -0,0 +1,144 @@
|
|
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
|
+
# Defines how specific events are transformed to OCSF using a mapping configuration.
|
21
|
+
class ObservabilityPipelineOcsfMapperProcessorMapping
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# A Datadog search query used to select the logs that this mapping should apply to.
|
25
|
+
attr_reader :include
|
26
|
+
|
27
|
+
# Defines a single mapping rule for transforming logs into the OCSF schema.
|
28
|
+
attr_reader :mapping
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'include' => :'include',
|
37
|
+
:'mapping' => :'mapping'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'include' => :'String',
|
46
|
+
:'mapping' => :'ObservabilityPipelineOcsfMapperProcessorMappingMapping'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineOcsfMapperProcessorMapping` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'include')
|
69
|
+
self.include = attributes[:'include']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'mapping')
|
73
|
+
self.mapping = attributes[:'mapping']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @include.nil?
|
82
|
+
return false if @mapping.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param include [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def include=(include)
|
90
|
+
if include.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
92
|
+
end
|
93
|
+
@include = include
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param mapping [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def mapping=(mapping)
|
100
|
+
if mapping.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "mapping", mapping cannot be nil.'
|
102
|
+
end
|
103
|
+
@mapping = mapping
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
include == o.include &&
|
133
|
+
mapping == o.mapping &&
|
134
|
+
additional_properties == o.additional_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
# @!visibility private
|
140
|
+
def hash
|
141
|
+
[include, mapping, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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
|
+
# Defines a single mapping rule for transforming logs into the OCSF schema.
|
21
|
+
module ObservabilityPipelineOcsfMapperProcessorMappingMapping
|
22
|
+
class << self
|
23
|
+
include BaseOneOfModel
|
24
|
+
include BaseOneOfModelNoDiscriminator
|
25
|
+
|
26
|
+
# List of class defined in oneOf (OpenAPI v3)
|
27
|
+
def openapi_one_of
|
28
|
+
[
|
29
|
+
:'ObservabilityPipelineOcsfMappingLibrary'
|
30
|
+
]
|
31
|
+
end
|
32
|
+
# Builds the object
|
33
|
+
# @param data [Mixed] Data to be matched against the list of oneOf items
|
34
|
+
# @return [Object] Returns the model or the data itself
|
35
|
+
def build(data)
|
36
|
+
# Go through the list of oneOf items and attempt to identify the appropriate one.
|
37
|
+
# Note:
|
38
|
+
# - We do not attempt to check whether exactly one item matches.
|
39
|
+
# - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
|
40
|
+
# due to the way the deserialization is made in the base_object template (it just casts without verifying).
|
41
|
+
# - TODO: scalar values are de facto behaving as if they were nullable.
|
42
|
+
# - TODO: logging when debugging is set.
|
43
|
+
openapi_one_of.each do |klass|
|
44
|
+
begin
|
45
|
+
next if klass == :AnyType # "nullable: true"
|
46
|
+
typed_data = find_and_cast_into_type(klass, data)
|
47
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
48
|
+
return typed_data if typed_data
|
49
|
+
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
if openapi_one_of.include?(:AnyType)
|
54
|
+
data
|
55
|
+
else
|
56
|
+
self._unparsed = true
|
57
|
+
DatadogAPIClient::UnparsedObject.new(data)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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
|
+
# The processor type. The value should always be `ocsf_mapper`.
|
21
|
+
class ObservabilityPipelineOcsfMapperProcessorType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
OCSF_MAPPER = "ocsf_mapper".freeze
|
25
|
+
end
|
26
|
+
end
|