datadog_api_client 2.48.0 → 2.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +424 -44
- data/.generator/schemas/v2/openapi.yaml +2290 -500
- data/CHANGELOG.md +25 -0
- data/examples/v1/dashboards/CreateDashboard_1093147852.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1617893815.rb +61 -0
- data/examples/v1/dashboards/CreateDashboard_1712853070.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2345541687.rb +65 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2617251399.rb +66 -0
- data/examples/v1/dashboards/CreateDashboard_2823363212.rb +55 -0
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_3626832481.rb +33 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +49 -0
- data/examples/v1/tags/GetHostTags.rb +1 -1
- data/examples/v1/tags/ListHostTags.rb +1 -1
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -11
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -11
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -11
- data/examples/v2/observability-pipelines/CreatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +1 -1
- data/examples/v2/observability-pipelines/ValidatePipeline.rb +1 -1
- data/examples/v2/reference-tables/UpdateReferenceTable.rb +0 -1
- data/examples/v2/reference-tables/UpsertRows.rb +1 -3
- data/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +20 -0
- data/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +8 -0
- data/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityFindings.rb +5 -0
- data/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +8 -0
- data/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +5 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings.rb +13 -0
- data/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +16 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +24 -0
- data/examples/v2/spa/GetSPARecommendations.rb +1 -1
- data/examples/v2/spa/GetSPARecommendationsWithShard.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +7 -6
- data/lib/datadog_api_client/inflector.rb +79 -6
- data/lib/datadog_api_client/v1/api/tags_api.rb +17 -17
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition.rb +216 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_display.rb +63 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat.rb +123 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_flat_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_legend.rb +28 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_request.rb +261 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_scaling.rb +27 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked.rb +133 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_stacked_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/bar_chart_widget_style.rb +125 -0
- data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +36 -2
- data/lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb +29 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_definition.rb +23 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_x_axis.rb +107 -0
- data/lib/datadog_api_client/v1/models/host_tags.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_model_type_override.rb +28 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_monitor_options.rb +147 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_data_quality_query_definition.rb +232 -0
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_step.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step.rb +236 -0
- data/lib/datadog_api_client/v1/models/synthetics_api_subtest_step_subtype.rb +26 -0
- data/lib/datadog_api_client/v1/models/tag_to_hosts.rb +2 -2
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v1/models/{distribution_widget_histogram_request_type.rb → widget_histogram_request_type.rb} +1 -1
- data/lib/datadog_api_client/v1/models/widget_marker.rb +3 -1
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/fleet_automation_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +597 -0
- data/lib/datadog_api_client/v2/api/spa_api.rb +86 -11
- data/lib/datadog_api_client/v2/models/aws_account_create_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_response_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/aws_account_update_request_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/azure_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes.rb +2 -2
- data/lib/datadog_api_client/v2/models/batch_upsert_rows_request_data_attributes_value.rb +63 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +23 -1
- data/lib/datadog_api_client/v2/models/list_security_findings_response.rb +127 -0
- data/lib/datadog_api_client/v2/models/microsoft_sentinel_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor.rb +198 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_hostname_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_data_firehose_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_amazon_security_lake_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_cloud_prem_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +25 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +17 -13
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_pipeline_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +14 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +11 -10
- data/lib/datadog_api_client/v2/models/observability_pipeline_crowd_strike_next_gen_siem_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination.rb +169 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_metrics_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb +13 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination_data_stream.rb +125 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +15 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_reference_table.rb +156 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +6 -4
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluent_bit_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_fluentd_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_chronicle_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_cloud_storage_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_auth_strategy.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_compression_algorithm.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_client_source_auth_strategy.rb +1 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_http_server_source.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination.rb +361 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_compression.rb +30 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_librdkafka_option.rb → observability_pipeline_kafka_librdkafka_option.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_kafka_source_sasl.rb → observability_pipeline_kafka_sasl.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb → observability_pipeline_kafka_sasl_mechanism.rb} +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +5 -3
- data/lib/datadog_api_client/v2/models/observability_pipeline_logstash_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_rule_mode.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_metric_tags_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_new_relic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_open_search_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source.rb +176 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_opentelemetry_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor.rb +300 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_xml_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +21 -6
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb +1 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rsyslog_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +35 -20
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +4 -2
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_custom_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor_library_pattern_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sentinel_one_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_socket_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor.rb +229 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_array_config.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_split_array_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_destination.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_hec_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_splunk_tcp_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_sumo_logic_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_destination.rb +2 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_syslog_ng_source.rb +3 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +3 -1
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/recommendation_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_findings_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/security_findings_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_findings_links.rb +105 -0
- data/lib/datadog_api_client/v2/models/{data_export_config.rb → security_findings_meta.rb} +32 -42
- data/lib/datadog_api_client/v2/models/security_findings_page.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_findings_search_request_page.rb +137 -0
- data/lib/datadog_api_client/v2/models/security_findings_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_findings_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset.rb +125 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_severity.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_attributes.rb +175 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_critical_asset_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/{awsccm_config.rb → security_monitoring_critical_assets_response.rb} +12 -12
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +99 -7
|
@@ -0,0 +1,176 @@
|
|
|
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 `opentelemetry` source receives telemetry data using the OpenTelemetry Protocol (OTLP) over gRPC and HTTP.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
23
|
+
class ObservabilityPipelineOpentelemetrySource
|
|
24
|
+
include BaseGenericModel
|
|
25
|
+
|
|
26
|
+
# Environment variable name containing the gRPC server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
|
|
27
|
+
attr_accessor :grpc_address_key
|
|
28
|
+
|
|
29
|
+
# Environment variable name containing the HTTP server address for receiving OTLP data. Must be a valid environment variable name (alphanumeric characters and underscores only).
|
|
30
|
+
attr_accessor :http_address_key
|
|
31
|
+
|
|
32
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
33
|
+
attr_reader :id
|
|
34
|
+
|
|
35
|
+
# Configuration for enabling TLS encryption between the pipeline component and external services.
|
|
36
|
+
attr_accessor :tls
|
|
37
|
+
|
|
38
|
+
# The source type. The value should always be `opentelemetry`.
|
|
39
|
+
attr_reader :type
|
|
40
|
+
|
|
41
|
+
attr_accessor :additional_properties
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'grpc_address_key' => :'grpc_address_key',
|
|
48
|
+
:'http_address_key' => :'http_address_key',
|
|
49
|
+
:'id' => :'id',
|
|
50
|
+
:'tls' => :'tls',
|
|
51
|
+
:'type' => :'type'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
# @!visibility private
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'grpc_address_key' => :'String',
|
|
60
|
+
:'http_address_key' => :'String',
|
|
61
|
+
:'id' => :'String',
|
|
62
|
+
:'tls' => :'ObservabilityPipelineTls',
|
|
63
|
+
:'type' => :'ObservabilityPipelineOpentelemetrySourceType'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
69
|
+
# @!visibility private
|
|
70
|
+
def initialize(attributes = {})
|
|
71
|
+
if (!attributes.is_a?(Hash))
|
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineOpentelemetrySource` initialize method"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
self.additional_properties = {}
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
79
|
+
self.additional_properties[k.to_sym] = v
|
|
80
|
+
else
|
|
81
|
+
h[k.to_sym] = v
|
|
82
|
+
end
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'grpc_address_key')
|
|
86
|
+
self.grpc_address_key = attributes[:'grpc_address_key']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'http_address_key')
|
|
90
|
+
self.http_address_key = attributes[:'http_address_key']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'id')
|
|
94
|
+
self.id = attributes[:'id']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'tls')
|
|
98
|
+
self.tls = attributes[:'tls']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'type')
|
|
102
|
+
self.type = attributes[:'type']
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Check to see if the all the properties in the model are valid
|
|
107
|
+
# @return true if the model is valid
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def valid?
|
|
110
|
+
return false if @id.nil?
|
|
111
|
+
return false if @type.nil?
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Custom attribute writer method with validation
|
|
116
|
+
# @param id [Object] Object to be assigned
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def id=(id)
|
|
119
|
+
if id.nil?
|
|
120
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
121
|
+
end
|
|
122
|
+
@id = id
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param type [Object] Object to be assigned
|
|
127
|
+
# @!visibility private
|
|
128
|
+
def type=(type)
|
|
129
|
+
if type.nil?
|
|
130
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
131
|
+
end
|
|
132
|
+
@type = type
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
136
|
+
# @return [Hash] Returns the object in the form of hash
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def to_hash
|
|
139
|
+
hash = {}
|
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
141
|
+
value = self.send(attr)
|
|
142
|
+
if value.nil?
|
|
143
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
144
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
hash[param] = _to_hash(value)
|
|
148
|
+
end
|
|
149
|
+
self.additional_properties.each_pair do |attr, value|
|
|
150
|
+
hash[attr] = value
|
|
151
|
+
end
|
|
152
|
+
hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Checks equality by comparing each attribute.
|
|
156
|
+
# @param o [Object] Object to be compared
|
|
157
|
+
# @!visibility private
|
|
158
|
+
def ==(o)
|
|
159
|
+
return true if self.equal?(o)
|
|
160
|
+
self.class == o.class &&
|
|
161
|
+
grpc_address_key == o.grpc_address_key &&
|
|
162
|
+
http_address_key == o.http_address_key &&
|
|
163
|
+
id == o.id &&
|
|
164
|
+
tls == o.tls &&
|
|
165
|
+
type == o.type &&
|
|
166
|
+
additional_properties == o.additional_properties
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
# @!visibility private
|
|
172
|
+
def hash
|
|
173
|
+
[grpc_address_key, http_address_key, id, tls, type, additional_properties].hash
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
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 `opentelemetry`.
|
|
21
|
+
class ObservabilityPipelineOpentelemetrySourceType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
OPENTELEMETRY = "opentelemetry".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -18,6 +18,8 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `parse_grok` processor extracts structured fields from unstructured log messages using Grok patterns.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineParseGrokProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
@@ -27,7 +29,7 @@ module DatadogAPIClient::V2
|
|
|
27
29
|
# The display name for a component.
|
|
28
30
|
attr_accessor :display_name
|
|
29
31
|
|
|
30
|
-
#
|
|
32
|
+
# Indicates whether the processor is enabled.
|
|
31
33
|
attr_reader :enabled
|
|
32
34
|
|
|
33
35
|
# A unique identifier for this processor.
|
|
@@ -18,13 +18,15 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `parse_json` processor extracts JSON from a specified field and flattens it into the event. This is useful when logs contain embedded JSON as a string.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineParseJSONProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# The name of the log field that contains a JSON string.
|
|
@@ -0,0 +1,300 @@
|
|
|
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 `parse_xml` processor parses XML from a specified field and extracts it into the event.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
23
|
+
class ObservabilityPipelineParseXMLProcessor
|
|
24
|
+
include BaseGenericModel
|
|
25
|
+
|
|
26
|
+
# Whether to always use a text key for element content.
|
|
27
|
+
attr_accessor :always_use_text_key
|
|
28
|
+
|
|
29
|
+
# The prefix to use for XML attributes in the parsed output.
|
|
30
|
+
attr_accessor :attr_prefix
|
|
31
|
+
|
|
32
|
+
# The display name for a component.
|
|
33
|
+
attr_accessor :display_name
|
|
34
|
+
|
|
35
|
+
# Indicates whether the processor is enabled.
|
|
36
|
+
attr_reader :enabled
|
|
37
|
+
|
|
38
|
+
# The name of the log field that contains an XML string.
|
|
39
|
+
attr_reader :field
|
|
40
|
+
|
|
41
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
42
|
+
attr_reader :id
|
|
43
|
+
|
|
44
|
+
# A Datadog search query used to determine which logs this processor targets.
|
|
45
|
+
attr_reader :include
|
|
46
|
+
|
|
47
|
+
# Whether to include XML attributes in the parsed output.
|
|
48
|
+
attr_accessor :include_attr
|
|
49
|
+
|
|
50
|
+
# Whether to parse boolean values from strings.
|
|
51
|
+
attr_accessor :parse_bool
|
|
52
|
+
|
|
53
|
+
# Whether to parse null values.
|
|
54
|
+
attr_accessor :parse_null
|
|
55
|
+
|
|
56
|
+
# Whether to parse numeric values from strings.
|
|
57
|
+
attr_accessor :parse_number
|
|
58
|
+
|
|
59
|
+
# The key name to use for text content within XML elements. Must be at least 1 character if specified.
|
|
60
|
+
attr_reader :text_key
|
|
61
|
+
|
|
62
|
+
# The processor type. The value should always be `parse_xml`.
|
|
63
|
+
attr_reader :type
|
|
64
|
+
|
|
65
|
+
attr_accessor :additional_properties
|
|
66
|
+
|
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def self.attribute_map
|
|
70
|
+
{
|
|
71
|
+
:'always_use_text_key' => :'always_use_text_key',
|
|
72
|
+
:'attr_prefix' => :'attr_prefix',
|
|
73
|
+
:'display_name' => :'display_name',
|
|
74
|
+
:'enabled' => :'enabled',
|
|
75
|
+
:'field' => :'field',
|
|
76
|
+
:'id' => :'id',
|
|
77
|
+
:'include' => :'include',
|
|
78
|
+
:'include_attr' => :'include_attr',
|
|
79
|
+
:'parse_bool' => :'parse_bool',
|
|
80
|
+
:'parse_null' => :'parse_null',
|
|
81
|
+
:'parse_number' => :'parse_number',
|
|
82
|
+
:'text_key' => :'text_key',
|
|
83
|
+
:'type' => :'type'
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Attribute type mapping.
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def self.openapi_types
|
|
90
|
+
{
|
|
91
|
+
:'always_use_text_key' => :'Boolean',
|
|
92
|
+
:'attr_prefix' => :'String',
|
|
93
|
+
:'display_name' => :'String',
|
|
94
|
+
:'enabled' => :'Boolean',
|
|
95
|
+
:'field' => :'String',
|
|
96
|
+
:'id' => :'String',
|
|
97
|
+
:'include' => :'String',
|
|
98
|
+
:'include_attr' => :'Boolean',
|
|
99
|
+
:'parse_bool' => :'Boolean',
|
|
100
|
+
:'parse_null' => :'Boolean',
|
|
101
|
+
:'parse_number' => :'Boolean',
|
|
102
|
+
:'text_key' => :'String',
|
|
103
|
+
:'type' => :'ObservabilityPipelineParseXMLProcessorType'
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Initializes the object
|
|
108
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
109
|
+
# @!visibility private
|
|
110
|
+
def initialize(attributes = {})
|
|
111
|
+
if (!attributes.is_a?(Hash))
|
|
112
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ObservabilityPipelineParseXMLProcessor` initialize method"
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
self.additional_properties = {}
|
|
116
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
117
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
118
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
119
|
+
self.additional_properties[k.to_sym] = v
|
|
120
|
+
else
|
|
121
|
+
h[k.to_sym] = v
|
|
122
|
+
end
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'always_use_text_key')
|
|
126
|
+
self.always_use_text_key = attributes[:'always_use_text_key']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'attr_prefix')
|
|
130
|
+
self.attr_prefix = attributes[:'attr_prefix']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'display_name')
|
|
134
|
+
self.display_name = attributes[:'display_name']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'enabled')
|
|
138
|
+
self.enabled = attributes[:'enabled']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'field')
|
|
142
|
+
self.field = attributes[:'field']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'id')
|
|
146
|
+
self.id = attributes[:'id']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'include')
|
|
150
|
+
self.include = attributes[:'include']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'include_attr')
|
|
154
|
+
self.include_attr = attributes[:'include_attr']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'parse_bool')
|
|
158
|
+
self.parse_bool = attributes[:'parse_bool']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'parse_null')
|
|
162
|
+
self.parse_null = attributes[:'parse_null']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'parse_number')
|
|
166
|
+
self.parse_number = attributes[:'parse_number']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.key?(:'text_key')
|
|
170
|
+
self.text_key = attributes[:'text_key']
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if attributes.key?(:'type')
|
|
174
|
+
self.type = attributes[:'type']
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Check to see if the all the properties in the model are valid
|
|
179
|
+
# @return true if the model is valid
|
|
180
|
+
# @!visibility private
|
|
181
|
+
def valid?
|
|
182
|
+
return false if @enabled.nil?
|
|
183
|
+
return false if @field.nil?
|
|
184
|
+
return false if @id.nil?
|
|
185
|
+
return false if @include.nil?
|
|
186
|
+
return false if !@text_key.nil? && @text_key.to_s.length < 1
|
|
187
|
+
return false if @type.nil?
|
|
188
|
+
true
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Custom attribute writer method with validation
|
|
192
|
+
# @param enabled [Object] Object to be assigned
|
|
193
|
+
# @!visibility private
|
|
194
|
+
def enabled=(enabled)
|
|
195
|
+
if enabled.nil?
|
|
196
|
+
fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
|
|
197
|
+
end
|
|
198
|
+
@enabled = enabled
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Custom attribute writer method with validation
|
|
202
|
+
# @param field [Object] Object to be assigned
|
|
203
|
+
# @!visibility private
|
|
204
|
+
def field=(field)
|
|
205
|
+
if field.nil?
|
|
206
|
+
fail ArgumentError, 'invalid value for "field", field cannot be nil.'
|
|
207
|
+
end
|
|
208
|
+
@field = field
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Custom attribute writer method with validation
|
|
212
|
+
# @param id [Object] Object to be assigned
|
|
213
|
+
# @!visibility private
|
|
214
|
+
def id=(id)
|
|
215
|
+
if id.nil?
|
|
216
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
217
|
+
end
|
|
218
|
+
@id = id
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Custom attribute writer method with validation
|
|
222
|
+
# @param include [Object] Object to be assigned
|
|
223
|
+
# @!visibility private
|
|
224
|
+
def include=(include)
|
|
225
|
+
if include.nil?
|
|
226
|
+
fail ArgumentError, 'invalid value for "include", include cannot be nil.'
|
|
227
|
+
end
|
|
228
|
+
@include = include
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Custom attribute writer method with validation
|
|
232
|
+
# @param text_key [Object] Object to be assigned
|
|
233
|
+
# @!visibility private
|
|
234
|
+
def text_key=(text_key)
|
|
235
|
+
if !text_key.nil? && text_key.to_s.length < 1
|
|
236
|
+
fail ArgumentError, 'invalid value for "text_key", the character length must be great than or equal to 1.'
|
|
237
|
+
end
|
|
238
|
+
@text_key = text_key
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Custom attribute writer method with validation
|
|
242
|
+
# @param type [Object] Object to be assigned
|
|
243
|
+
# @!visibility private
|
|
244
|
+
def type=(type)
|
|
245
|
+
if type.nil?
|
|
246
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
247
|
+
end
|
|
248
|
+
@type = type
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
|
253
|
+
# @!visibility private
|
|
254
|
+
def to_hash
|
|
255
|
+
hash = {}
|
|
256
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
257
|
+
value = self.send(attr)
|
|
258
|
+
if value.nil?
|
|
259
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
260
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
hash[param] = _to_hash(value)
|
|
264
|
+
end
|
|
265
|
+
self.additional_properties.each_pair do |attr, value|
|
|
266
|
+
hash[attr] = value
|
|
267
|
+
end
|
|
268
|
+
hash
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Checks equality by comparing each attribute.
|
|
272
|
+
# @param o [Object] Object to be compared
|
|
273
|
+
# @!visibility private
|
|
274
|
+
def ==(o)
|
|
275
|
+
return true if self.equal?(o)
|
|
276
|
+
self.class == o.class &&
|
|
277
|
+
always_use_text_key == o.always_use_text_key &&
|
|
278
|
+
attr_prefix == o.attr_prefix &&
|
|
279
|
+
display_name == o.display_name &&
|
|
280
|
+
enabled == o.enabled &&
|
|
281
|
+
field == o.field &&
|
|
282
|
+
id == o.id &&
|
|
283
|
+
include == o.include &&
|
|
284
|
+
include_attr == o.include_attr &&
|
|
285
|
+
parse_bool == o.parse_bool &&
|
|
286
|
+
parse_null == o.parse_null &&
|
|
287
|
+
parse_number == o.parse_number &&
|
|
288
|
+
text_key == o.text_key &&
|
|
289
|
+
type == o.type &&
|
|
290
|
+
additional_properties == o.additional_properties
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Calculates hash code according to all attributes.
|
|
294
|
+
# @return [Integer] Hash code
|
|
295
|
+
# @!visibility private
|
|
296
|
+
def hash
|
|
297
|
+
[always_use_text_key, attr_prefix, display_name, enabled, field, id, include, include_attr, parse_bool, parse_null, parse_number, text_key, type, additional_properties].hash
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
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 `parse_xml`.
|
|
21
|
+
class ObservabilityPipelineParseXMLProcessorType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
PARSE_XML = "parse_xml".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -17,20 +17,22 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# The
|
|
20
|
+
# The `quota` processor measures logging traffic for logs that match a specified filter. When the configured daily quota is met, the processor can drop or alert.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineQuotaProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
# If set to `true`, logs that
|
|
29
|
+
# If set to `true`, logs that match the quota filter and are sent after the quota is exceeded are dropped. Logs that do not match the filter continue through the pipeline. **Note**: You can set either `drop_events` or `overflow_action`, but not both.
|
|
28
30
|
attr_accessor :drop_events
|
|
29
31
|
|
|
30
|
-
#
|
|
32
|
+
# Indicates whether the processor is enabled.
|
|
31
33
|
attr_reader :enabled
|
|
32
34
|
|
|
33
|
-
# The unique identifier for this component. Used
|
|
35
|
+
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
|
|
34
36
|
attr_reader :id
|
|
35
37
|
|
|
36
38
|
# If `true`, the processor skips quota checks when partition fields are missing from the logs.
|
|
@@ -45,7 +47,7 @@ module DatadogAPIClient::V2
|
|
|
45
47
|
# Name of the quota.
|
|
46
48
|
attr_reader :name
|
|
47
49
|
|
|
48
|
-
# The action to take when the quota is exceeded. Options:
|
|
50
|
+
# The action to take when the quota or bucket limit is exceeded. Options:
|
|
49
51
|
# - `drop`: Drop the event.
|
|
50
52
|
# - `no_action`: Let the event pass through.
|
|
51
53
|
# - `overflow_routing`: Route to an overflow destination.
|
|
@@ -57,6 +59,12 @@ module DatadogAPIClient::V2
|
|
|
57
59
|
# A list of fields used to segment log traffic for quota enforcement. Quotas are tracked independently by unique combinations of these field values.
|
|
58
60
|
attr_accessor :partition_fields
|
|
59
61
|
|
|
62
|
+
# The action to take when the quota or bucket limit is exceeded. Options:
|
|
63
|
+
# - `drop`: Drop the event.
|
|
64
|
+
# - `no_action`: Let the event pass through.
|
|
65
|
+
# - `overflow_routing`: Route to an overflow destination.
|
|
66
|
+
attr_accessor :too_many_buckets_action
|
|
67
|
+
|
|
60
68
|
# The processor type. The value should always be `quota`.
|
|
61
69
|
attr_reader :type
|
|
62
70
|
|
|
@@ -77,6 +85,7 @@ module DatadogAPIClient::V2
|
|
|
77
85
|
:'overflow_action' => :'overflow_action',
|
|
78
86
|
:'overrides' => :'overrides',
|
|
79
87
|
:'partition_fields' => :'partition_fields',
|
|
88
|
+
:'too_many_buckets_action' => :'too_many_buckets_action',
|
|
80
89
|
:'type' => :'type'
|
|
81
90
|
}
|
|
82
91
|
end
|
|
@@ -96,6 +105,7 @@ module DatadogAPIClient::V2
|
|
|
96
105
|
:'overflow_action' => :'ObservabilityPipelineQuotaProcessorOverflowAction',
|
|
97
106
|
:'overrides' => :'Array<ObservabilityPipelineQuotaProcessorOverride>',
|
|
98
107
|
:'partition_fields' => :'Array<String>',
|
|
108
|
+
:'too_many_buckets_action' => :'ObservabilityPipelineQuotaProcessorOverflowAction',
|
|
99
109
|
:'type' => :'ObservabilityPipelineQuotaProcessorType'
|
|
100
110
|
}
|
|
101
111
|
end
|
|
@@ -166,6 +176,10 @@ module DatadogAPIClient::V2
|
|
|
166
176
|
end
|
|
167
177
|
end
|
|
168
178
|
|
|
179
|
+
if attributes.key?(:'too_many_buckets_action')
|
|
180
|
+
self.too_many_buckets_action = attributes[:'too_many_buckets_action']
|
|
181
|
+
end
|
|
182
|
+
|
|
169
183
|
if attributes.key?(:'type')
|
|
170
184
|
self.type = attributes[:'type']
|
|
171
185
|
end
|
|
@@ -281,6 +295,7 @@ module DatadogAPIClient::V2
|
|
|
281
295
|
overflow_action == o.overflow_action &&
|
|
282
296
|
overrides == o.overrides &&
|
|
283
297
|
partition_fields == o.partition_fields &&
|
|
298
|
+
too_many_buckets_action == o.too_many_buckets_action &&
|
|
284
299
|
type == o.type &&
|
|
285
300
|
additional_properties == o.additional_properties
|
|
286
301
|
end
|
|
@@ -289,7 +304,7 @@ module DatadogAPIClient::V2
|
|
|
289
304
|
# @return [Integer] Hash code
|
|
290
305
|
# @!visibility private
|
|
291
306
|
def hash
|
|
292
|
-
[display_name, drop_events, enabled, id, ignore_when_missing_partitions, include, limit, name, overflow_action, overrides, partition_fields, type, additional_properties].hash
|
|
307
|
+
[display_name, drop_events, enabled, id, ignore_when_missing_partitions, include, limit, name, overflow_action, overrides, partition_fields, too_many_buckets_action, type, additional_properties].hash
|
|
293
308
|
end
|
|
294
309
|
end
|
|
295
310
|
end
|
data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_overflow_action.rb
CHANGED
|
@@ -17,7 +17,7 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# The action to take when the quota is exceeded. Options:
|
|
20
|
+
# The action to take when the quota or bucket limit is exceeded. Options:
|
|
21
21
|
# - `drop`: Drop the event.
|
|
22
22
|
# - `no_action`: Let the event pass through.
|
|
23
23
|
# - `overflow_routing`: Route to an overflow destination.
|
|
@@ -18,13 +18,15 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
20
|
# The `reduce` processor aggregates and merges logs based on matching keys and merge strategies.
|
|
21
|
+
#
|
|
22
|
+
# **Supported pipeline types:** logs
|
|
21
23
|
class ObservabilityPipelineReduceProcessor
|
|
22
24
|
include BaseGenericModel
|
|
23
25
|
|
|
24
26
|
# The display name for a component.
|
|
25
27
|
attr_accessor :display_name
|
|
26
28
|
|
|
27
|
-
#
|
|
29
|
+
# Indicates whether the processor is enabled.
|
|
28
30
|
attr_reader :enabled
|
|
29
31
|
|
|
30
32
|
# A list of fields used to group log events for merging.
|