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,154 @@
|
|
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 `fluent_bit` source ingests logs from Fluent Bit.
|
21
|
+
class ObservabilityPipelineFluentBitSource
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# 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
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# Configuration for enabling TLS encryption between the pipeline component and external services.
|
28
|
+
attr_accessor :tls
|
29
|
+
|
30
|
+
# The source type. The value should always be `fluent_bit`.
|
31
|
+
attr_reader :type
|
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
|
+
:'id' => :'id',
|
40
|
+
:'tls' => :'tls',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'id' => :'String',
|
50
|
+
:'tls' => :'ObservabilityPipelineTls',
|
51
|
+
:'type' => :'ObservabilityPipelineFluentBitSourceType'
|
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::ObservabilityPipelineFluentBitSource` 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?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'tls')
|
78
|
+
self.tls = attributes[:'tls']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @id.nil?
|
91
|
+
return false if @type.nil?
|
92
|
+
true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Custom attribute writer method with validation
|
96
|
+
# @param id [Object] Object to be assigned
|
97
|
+
# @!visibility private
|
98
|
+
def id=(id)
|
99
|
+
if id.nil?
|
100
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
101
|
+
end
|
102
|
+
@id = id
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param type [Object] Object to be assigned
|
107
|
+
# @!visibility private
|
108
|
+
def type=(type)
|
109
|
+
if type.nil?
|
110
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
111
|
+
end
|
112
|
+
@type = type
|
113
|
+
end
|
114
|
+
|
115
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
116
|
+
# @return [Hash] Returns the object in the form of hash
|
117
|
+
# @!visibility private
|
118
|
+
def to_hash
|
119
|
+
hash = {}
|
120
|
+
self.class.attribute_map.each_pair do |attr, param|
|
121
|
+
value = self.send(attr)
|
122
|
+
if value.nil?
|
123
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
124
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
125
|
+
end
|
126
|
+
|
127
|
+
hash[param] = _to_hash(value)
|
128
|
+
end
|
129
|
+
self.additional_properties.each_pair do |attr, value|
|
130
|
+
hash[attr] = value
|
131
|
+
end
|
132
|
+
hash
|
133
|
+
end
|
134
|
+
|
135
|
+
# Checks equality by comparing each attribute.
|
136
|
+
# @param o [Object] Object to be compared
|
137
|
+
# @!visibility private
|
138
|
+
def ==(o)
|
139
|
+
return true if self.equal?(o)
|
140
|
+
self.class == o.class &&
|
141
|
+
id == o.id &&
|
142
|
+
tls == o.tls &&
|
143
|
+
type == o.type &&
|
144
|
+
additional_properties == o.additional_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
# @!visibility private
|
150
|
+
def hash
|
151
|
+
[id, tls, type, additional_properties].hash
|
152
|
+
end
|
153
|
+
end
|
154
|
+
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 source type. The value should always be `fluent_bit`.
|
21
|
+
class ObservabilityPipelineFluentBitSourceType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
FLUENT_BIT = "fluent_bit".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,154 @@
|
|
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 `fluentd` source ingests logs from a Fluentd-compatible service.
|
21
|
+
class ObservabilityPipelineFluentdSource
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# 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
|
+
attr_reader :id
|
26
|
+
|
27
|
+
# Configuration for enabling TLS encryption between the pipeline component and external services.
|
28
|
+
attr_accessor :tls
|
29
|
+
|
30
|
+
# The source type. The value should always be `fluentd.
|
31
|
+
attr_reader :type
|
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
|
+
:'id' => :'id',
|
40
|
+
:'tls' => :'tls',
|
41
|
+
:'type' => :'type'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'id' => :'String',
|
50
|
+
:'tls' => :'ObservabilityPipelineTls',
|
51
|
+
:'type' => :'ObservabilityPipelineFluentdSourceType'
|
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::ObservabilityPipelineFluentdSource` 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?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'tls')
|
78
|
+
self.tls = attributes[:'tls']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'type')
|
82
|
+
self.type = attributes[:'type']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
# @!visibility private
|
89
|
+
def valid?
|
90
|
+
return false if @id.nil?
|
91
|
+
return false if @type.nil?
|
92
|
+
true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Custom attribute writer method with validation
|
96
|
+
# @param id [Object] Object to be assigned
|
97
|
+
# @!visibility private
|
98
|
+
def id=(id)
|
99
|
+
if id.nil?
|
100
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
101
|
+
end
|
102
|
+
@id = id
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param type [Object] Object to be assigned
|
107
|
+
# @!visibility private
|
108
|
+
def type=(type)
|
109
|
+
if type.nil?
|
110
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
111
|
+
end
|
112
|
+
@type = type
|
113
|
+
end
|
114
|
+
|
115
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
116
|
+
# @return [Hash] Returns the object in the form of hash
|
117
|
+
# @!visibility private
|
118
|
+
def to_hash
|
119
|
+
hash = {}
|
120
|
+
self.class.attribute_map.each_pair do |attr, param|
|
121
|
+
value = self.send(attr)
|
122
|
+
if value.nil?
|
123
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
124
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
125
|
+
end
|
126
|
+
|
127
|
+
hash[param] = _to_hash(value)
|
128
|
+
end
|
129
|
+
self.additional_properties.each_pair do |attr, value|
|
130
|
+
hash[attr] = value
|
131
|
+
end
|
132
|
+
hash
|
133
|
+
end
|
134
|
+
|
135
|
+
# Checks equality by comparing each attribute.
|
136
|
+
# @param o [Object] Object to be compared
|
137
|
+
# @!visibility private
|
138
|
+
def ==(o)
|
139
|
+
return true if self.equal?(o)
|
140
|
+
self.class == o.class &&
|
141
|
+
id == o.id &&
|
142
|
+
tls == o.tls &&
|
143
|
+
type == o.type &&
|
144
|
+
additional_properties == o.additional_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
# @!visibility private
|
150
|
+
def hash
|
151
|
+
[id, tls, type, additional_properties].hash
|
152
|
+
end
|
153
|
+
end
|
154
|
+
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 source type. The value should always be `fluentd.
|
21
|
+
class ObservabilityPipelineFluentdSourceType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
FLUENTD = "fluentd".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,123 @@
|
|
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
|
+
# GCP credentials used to authenticate with Google Cloud Storage.
|
21
|
+
class ObservabilityPipelineGcpAuth
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Path to the GCP service account key file.
|
25
|
+
attr_reader :credentials_file
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'credentials_file' => :'credentials_file'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'credentials_file' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineGcpAuth` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'credentials_file')
|
64
|
+
self.credentials_file = attributes[:'credentials_file']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
# @!visibility private
|
71
|
+
def valid?
|
72
|
+
return false if @credentials_file.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom attribute writer method with validation
|
77
|
+
# @param credentials_file [Object] Object to be assigned
|
78
|
+
# @!visibility private
|
79
|
+
def credentials_file=(credentials_file)
|
80
|
+
if credentials_file.nil?
|
81
|
+
fail ArgumentError, 'invalid value for "credentials_file", credentials_file cannot be nil.'
|
82
|
+
end
|
83
|
+
@credentials_file = credentials_file
|
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
|
+
credentials_file == o.credentials_file &&
|
113
|
+
additional_properties == o.additional_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
# @!visibility private
|
119
|
+
def hash
|
120
|
+
[credentials_file, additional_properties].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,212 @@
|
|
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 `generate_datadog_metrics` processor creates custom metrics from logs and sends them to Datadog.
|
21
|
+
# Metrics can be counters, gauges, or distributions and optionally grouped by log fields.
|
22
|
+
class ObservabilityPipelineGenerateMetricsProcessor
|
23
|
+
include BaseGenericModel
|
24
|
+
|
25
|
+
# The unique identifier for this component. Used to reference this component in other parts of the pipeline.
|
26
|
+
attr_reader :id
|
27
|
+
|
28
|
+
# A Datadog search query used to determine which logs this processor targets.
|
29
|
+
attr_reader :include
|
30
|
+
|
31
|
+
# A list of component IDs whose output is used as the `input` for this processor.
|
32
|
+
attr_reader :inputs
|
33
|
+
|
34
|
+
# Configuration for generating individual metrics.
|
35
|
+
attr_reader :metrics
|
36
|
+
|
37
|
+
# The processor type. Always `generate_datadog_metrics`.
|
38
|
+
attr_reader :type
|
39
|
+
|
40
|
+
attr_accessor :additional_properties
|
41
|
+
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
43
|
+
# @!visibility private
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
:'id' => :'id',
|
47
|
+
:'include' => :'include',
|
48
|
+
:'inputs' => :'inputs',
|
49
|
+
:'metrics' => :'metrics',
|
50
|
+
:'type' => :'type'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
# @!visibility private
|
56
|
+
def self.openapi_types
|
57
|
+
{
|
58
|
+
:'id' => :'String',
|
59
|
+
:'include' => :'String',
|
60
|
+
:'inputs' => :'Array<String>',
|
61
|
+
:'metrics' => :'Array<ObservabilityPipelineGeneratedMetric>',
|
62
|
+
:'type' => :'ObservabilityPipelineGenerateMetricsProcessorType'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
68
|
+
# @!visibility private
|
69
|
+
def initialize(attributes = {})
|
70
|
+
if (!attributes.is_a?(Hash))
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineGenerateMetricsProcessor` initialize method"
|
72
|
+
end
|
73
|
+
|
74
|
+
self.additional_properties = {}
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
+
self.additional_properties[k.to_sym] = v
|
79
|
+
else
|
80
|
+
h[k.to_sym] = v
|
81
|
+
end
|
82
|
+
}
|
83
|
+
|
84
|
+
if attributes.key?(:'id')
|
85
|
+
self.id = attributes[:'id']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'include')
|
89
|
+
self.include = attributes[:'include']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'inputs')
|
93
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
94
|
+
self.inputs = value
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'metrics')
|
99
|
+
if (value = attributes[:'metrics']).is_a?(Array)
|
100
|
+
self.metrics = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'type')
|
105
|
+
self.type = attributes[:'type']
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# Check to see if the all the properties in the model are valid
|
110
|
+
# @return true if the model is valid
|
111
|
+
# @!visibility private
|
112
|
+
def valid?
|
113
|
+
return false if @id.nil?
|
114
|
+
return false if @include.nil?
|
115
|
+
return false if @inputs.nil?
|
116
|
+
return false if @metrics.nil?
|
117
|
+
return false if @type.nil?
|
118
|
+
true
|
119
|
+
end
|
120
|
+
|
121
|
+
# Custom attribute writer method with validation
|
122
|
+
# @param id [Object] Object to be assigned
|
123
|
+
# @!visibility private
|
124
|
+
def id=(id)
|
125
|
+
if id.nil?
|
126
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
127
|
+
end
|
128
|
+
@id = id
|
129
|
+
end
|
130
|
+
|
131
|
+
# Custom attribute writer method with validation
|
132
|
+
# @param include [Object] Object to be assigned
|
133
|
+
# @!visibility private
|
134
|
+
def include=(include)
|
135
|
+
if include.nil?
|
136
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
137
|
+
end
|
138
|
+
@include = include
|
139
|
+
end
|
140
|
+
|
141
|
+
# Custom attribute writer method with validation
|
142
|
+
# @param inputs [Object] Object to be assigned
|
143
|
+
# @!visibility private
|
144
|
+
def inputs=(inputs)
|
145
|
+
if inputs.nil?
|
146
|
+
fail ArgumentError, 'invalid value for "inputs", inputs cannot be nil.'
|
147
|
+
end
|
148
|
+
@inputs = inputs
|
149
|
+
end
|
150
|
+
|
151
|
+
# Custom attribute writer method with validation
|
152
|
+
# @param metrics [Object] Object to be assigned
|
153
|
+
# @!visibility private
|
154
|
+
def metrics=(metrics)
|
155
|
+
if metrics.nil?
|
156
|
+
fail ArgumentError, 'invalid value for "metrics", metrics cannot be nil.'
|
157
|
+
end
|
158
|
+
@metrics = metrics
|
159
|
+
end
|
160
|
+
|
161
|
+
# Custom attribute writer method with validation
|
162
|
+
# @param type [Object] Object to be assigned
|
163
|
+
# @!visibility private
|
164
|
+
def type=(type)
|
165
|
+
if type.nil?
|
166
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
167
|
+
end
|
168
|
+
@type = type
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
# @!visibility private
|
174
|
+
def to_hash
|
175
|
+
hash = {}
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
177
|
+
value = self.send(attr)
|
178
|
+
if value.nil?
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
181
|
+
end
|
182
|
+
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
self.additional_properties.each_pair do |attr, value|
|
186
|
+
hash[attr] = value
|
187
|
+
end
|
188
|
+
hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Checks equality by comparing each attribute.
|
192
|
+
# @param o [Object] Object to be compared
|
193
|
+
# @!visibility private
|
194
|
+
def ==(o)
|
195
|
+
return true if self.equal?(o)
|
196
|
+
self.class == o.class &&
|
197
|
+
id == o.id &&
|
198
|
+
include == o.include &&
|
199
|
+
inputs == o.inputs &&
|
200
|
+
metrics == o.metrics &&
|
201
|
+
type == o.type &&
|
202
|
+
additional_properties == o.additional_properties
|
203
|
+
end
|
204
|
+
|
205
|
+
# Calculates hash code according to all attributes.
|
206
|
+
# @return [Integer] Hash code
|
207
|
+
# @!visibility private
|
208
|
+
def hash
|
209
|
+
[id, include, inputs, metrics, type, additional_properties].hash
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|