datadog_api_client 2.31.1 → 2.32.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 +80 -4
- data/.generator/schemas/v2/openapi.yaml +2404 -55
- data/.generator/src/generator/cli.py +1 -1
- data/.generator/src/generator/formatter.py +3 -0
- data/.generator/src/generator/templates/api.j2 +1 -1
- data/.generator/src/generator/templates/inflector.j2 +1 -1
- data/CHANGELOG.md +27 -0
- data/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb +1 -0
- data/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb +1 -0
- data/examples/v2/action-connection/CreateActionConnection.rb +1 -1
- data/examples/v2/action-connection/DeleteActionConnection.rb +4 -1
- data/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb +21 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb +25 -0
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +8 -0
- data/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb +8 -0
- data/examples/v2/observability-pipelines/CreatePipeline.rb +44 -0
- data/examples/v2/observability-pipelines/DeletePipeline.rb +11 -0
- data/examples/v2/observability-pipelines/GetPipeline.rb +11 -0
- data/examples/v2/observability-pipelines/UpdatePipeline.rb +48 -0
- data/examples/v2/on-call/CreateOnCallSchedule.rb +61 -0
- data/examples/v2/on-call/DeleteOnCallSchedule.rb +8 -0
- data/examples/v2/on-call/GetOnCallSchedule.rb +8 -0
- data/examples/v2/on-call/UpdateOnCallSchedule.rb +68 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +6 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +1 -1
- data/examples/v2/software-catalog/UpsertCatalogEntity.rb +1 -0
- data/lib/datadog_api_client/configuration.rb +5 -0
- data/lib/datadog_api_client/inflector.rb +122 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/slack_integration_channel_display.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_step_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +41 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +41 -1
- data/lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb +108 -0
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +319 -0
- data/lib/datadog_api_client/v2/api/on_call_api.rb +301 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +7 -3
- data/lib/datadog_api_client/v2/models/api_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_security_waf_custom_rule_tags_category.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_incident.rb +1 -1
- data/lib/datadog_api_client/v2/models/{service_definition_v2_dot2_type.rb → entity_response_included_incident_type.rb} +3 -9
- data/lib/datadog_api_client/v2/models/entity_response_included_oncall.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_oncall_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_raw_schema_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_related_entity.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_related_entity_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_response_included_schema.rb +1 -1
- data/lib/datadog_api_client/v2/models/entity_response_included_schema_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/entity_v3_datastore_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/entity_v3_queue_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/entity_v3_service_spec.rb +13 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/historical_job_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/interface_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/layer.rb +135 -0
- data/lib/datadog_api_client/v2/models/layer_attributes.rb +157 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/layer_attributes_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/layer_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members.rb +107 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items.rb +116 -0
- data/lib/datadog_api_client/v2/models/layer_relationships_members_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/layer_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +4 -1
- data/lib/datadog_api_client/v2/models/monitor_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config.rb +171 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb +67 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_create_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_data.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_data_attributes.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb +154 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination.rb +167 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_logs_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_field_value.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +188 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source.rb +220 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_librdkafka_option.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_sasl.rb +105 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_kafka_source_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +209 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_pipeline_kafka_source_sasl_mechanism.rb +28 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +285 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit.rb +144 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_limit_enforce_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_override.rb +146 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +211 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_field.rb +165 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_tls.rb +143 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +16 -5
- data/lib/datadog_api_client/v2/models/schedule.rb +117 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +231 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_members_items.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_members_items_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items.rb +116 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_create_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data.rb +135 -0
- data/lib/datadog_api_client/v2/models/schedule_data_attributes.rb +127 -0
- data/lib/datadog_api_client/v2/models/schedule_data_included_item.rb +65 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_layers_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_member.rb +125 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_member_relationships_user_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_member_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/schedule_update_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +180 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_interval.rb +144 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items.rb +106 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_members_items_user.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items.rb +136 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_end_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items_restrictions_items_start_day.rb +32 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams.rb +107 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_relationships_teams_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_update_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/schedule_user.rb +125 -0
- data/lib/datadog_api_client/v2/models/schedule_user_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/schedule_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_options.rb +13 -3
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_case_action_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_data_source.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_trigger.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +1 -1
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb +107 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb +215 -0
- data/lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users.rb +107 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_reference_relationships_oncall_users_data_items_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_reference_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +4 -0
- data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +136 -4
- data/examples/v2/action-connection/DeleteActionConnection_2142905164.rb +0 -8
@@ -0,0 +1,165 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Defines how to rename a field in log events.
|
21
|
+
class ObservabilityPipelineRenameFieldsProcessorField
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The field name to assign the renamed value to.
|
25
|
+
attr_reader :destination
|
26
|
+
|
27
|
+
# Indicates whether the original field, that is received from the source, should be kept (`true`) or removed (`false`) after renaming.
|
28
|
+
attr_reader :preserve_source
|
29
|
+
|
30
|
+
# The original field name in the log event that should be renamed.
|
31
|
+
attr_reader :source
|
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
|
+
:'destination' => :'destination',
|
40
|
+
:'preserve_source' => :'preserve_source',
|
41
|
+
:'source' => :'source'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'destination' => :'String',
|
50
|
+
:'preserve_source' => :'Boolean',
|
51
|
+
:'source' => :'String'
|
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::ObservabilityPipelineRenameFieldsProcessorField` 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?(:'destination')
|
74
|
+
self.destination = attributes[:'destination']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'preserve_source')
|
78
|
+
self.preserve_source = attributes[:'preserve_source']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'source')
|
82
|
+
self.source = attributes[:'source']
|
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 @destination.nil?
|
91
|
+
return false if @preserve_source.nil?
|
92
|
+
return false if @source.nil?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param destination [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def destination=(destination)
|
100
|
+
if destination.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "destination", destination cannot be nil.'
|
102
|
+
end
|
103
|
+
@destination = destination
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method with validation
|
107
|
+
# @param preserve_source [Object] Object to be assigned
|
108
|
+
# @!visibility private
|
109
|
+
def preserve_source=(preserve_source)
|
110
|
+
if preserve_source.nil?
|
111
|
+
fail ArgumentError, 'invalid value for "preserve_source", preserve_source cannot be nil.'
|
112
|
+
end
|
113
|
+
@preserve_source = preserve_source
|
114
|
+
end
|
115
|
+
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param source [Object] Object to be assigned
|
118
|
+
# @!visibility private
|
119
|
+
def source=(source)
|
120
|
+
if source.nil?
|
121
|
+
fail ArgumentError, 'invalid value for "source", source cannot be nil.'
|
122
|
+
end
|
123
|
+
@source = source
|
124
|
+
end
|
125
|
+
|
126
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
127
|
+
# @return [Hash] Returns the object in the form of hash
|
128
|
+
# @!visibility private
|
129
|
+
def to_hash
|
130
|
+
hash = {}
|
131
|
+
self.class.attribute_map.each_pair do |attr, param|
|
132
|
+
value = self.send(attr)
|
133
|
+
if value.nil?
|
134
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
135
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
136
|
+
end
|
137
|
+
|
138
|
+
hash[param] = _to_hash(value)
|
139
|
+
end
|
140
|
+
self.additional_properties.each_pair do |attr, value|
|
141
|
+
hash[attr] = value
|
142
|
+
end
|
143
|
+
hash
|
144
|
+
end
|
145
|
+
|
146
|
+
# Checks equality by comparing each attribute.
|
147
|
+
# @param o [Object] Object to be compared
|
148
|
+
# @!visibility private
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
destination == o.destination &&
|
153
|
+
preserve_source == o.preserve_source &&
|
154
|
+
source == o.source &&
|
155
|
+
additional_properties == o.additional_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Calculates hash code according to all attributes.
|
159
|
+
# @return [Integer] Hash code
|
160
|
+
# @!visibility private
|
161
|
+
def hash
|
162
|
+
[destination, preserve_source, source, additional_properties].hash
|
163
|
+
end
|
164
|
+
end
|
165
|
+
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 `rename_fields`.
|
21
|
+
class ObservabilityPipelineRenameFieldsProcessorType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
RENAME_FIELDS = "rename_fields".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,143 @@
|
|
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
|
+
# Configuration for enabling TLS encryption.
|
21
|
+
class ObservabilityPipelineTls
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Path to the Certificate Authority (CA) file used to validate the server’s TLS certificate.
|
25
|
+
attr_accessor :ca_file
|
26
|
+
|
27
|
+
# Path to the TLS client certificate file used to authenticate the pipeline component with upstream or downstream services.
|
28
|
+
attr_reader :crt_file
|
29
|
+
|
30
|
+
# Path to the private key file associated with the TLS client certificate. Used for mutual TLS authentication.
|
31
|
+
attr_accessor :key_file
|
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
|
+
:'ca_file' => :'ca_file',
|
40
|
+
:'crt_file' => :'crt_file',
|
41
|
+
:'key_file' => :'key_file'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
# @!visibility private
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'ca_file' => :'String',
|
50
|
+
:'crt_file' => :'String',
|
51
|
+
:'key_file' => :'String'
|
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::ObservabilityPipelineTls` 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?(:'ca_file')
|
74
|
+
self.ca_file = attributes[:'ca_file']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'crt_file')
|
78
|
+
self.crt_file = attributes[:'crt_file']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'key_file')
|
82
|
+
self.key_file = attributes[:'key_file']
|
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 @crt_file.nil?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param crt_file [Object] Object to be assigned
|
96
|
+
# @!visibility private
|
97
|
+
def crt_file=(crt_file)
|
98
|
+
if crt_file.nil?
|
99
|
+
fail ArgumentError, 'invalid value for "crt_file", crt_file cannot be nil.'
|
100
|
+
end
|
101
|
+
@crt_file = crt_file
|
102
|
+
end
|
103
|
+
|
104
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
105
|
+
# @return [Hash] Returns the object in the form of hash
|
106
|
+
# @!visibility private
|
107
|
+
def to_hash
|
108
|
+
hash = {}
|
109
|
+
self.class.attribute_map.each_pair do |attr, param|
|
110
|
+
value = self.send(attr)
|
111
|
+
if value.nil?
|
112
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
113
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
114
|
+
end
|
115
|
+
|
116
|
+
hash[param] = _to_hash(value)
|
117
|
+
end
|
118
|
+
self.additional_properties.each_pair do |attr, value|
|
119
|
+
hash[attr] = value
|
120
|
+
end
|
121
|
+
hash
|
122
|
+
end
|
123
|
+
|
124
|
+
# Checks equality by comparing each attribute.
|
125
|
+
# @param o [Object] Object to be compared
|
126
|
+
# @!visibility private
|
127
|
+
def ==(o)
|
128
|
+
return true if self.equal?(o)
|
129
|
+
self.class == o.class &&
|
130
|
+
ca_file == o.ca_file &&
|
131
|
+
crt_file == o.crt_file &&
|
132
|
+
key_file == o.key_file &&
|
133
|
+
additional_properties == o.additional_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Calculates hash code according to all attributes.
|
137
|
+
# @return [Integer] Hash code
|
138
|
+
# @!visibility private
|
139
|
+
def hash
|
140
|
+
[ca_file, crt_file, key_file, additional_properties].hash
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -51,10 +51,14 @@ module DatadogAPIClient::V2
|
|
51
51
|
# The name of the retention filter.
|
52
52
|
attr_accessor :name
|
53
53
|
|
54
|
-
# Sample rate to apply to spans going through this retention filter
|
55
|
-
#
|
54
|
+
# Sample rate to apply to spans going through this retention filter.
|
55
|
+
# A value of 1.0 keeps all spans matching the query.
|
56
56
|
attr_accessor :rate
|
57
57
|
|
58
|
+
# Sample rate to apply to traces containing spans going through this retention filter.
|
59
|
+
# A value of 1.0 keeps all traces with spans matching the query.
|
60
|
+
attr_accessor :trace_rate
|
61
|
+
|
58
62
|
attr_accessor :additional_properties
|
59
63
|
|
60
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -71,7 +75,8 @@ module DatadogAPIClient::V2
|
|
71
75
|
:'modified_at' => :'modified_at',
|
72
76
|
:'modified_by' => :'modified_by',
|
73
77
|
:'name' => :'name',
|
74
|
-
:'rate' => :'rate'
|
78
|
+
:'rate' => :'rate',
|
79
|
+
:'trace_rate' => :'trace_rate'
|
75
80
|
}
|
76
81
|
end
|
77
82
|
|
@@ -89,7 +94,8 @@ module DatadogAPIClient::V2
|
|
89
94
|
:'modified_at' => :'Integer',
|
90
95
|
:'modified_by' => :'String',
|
91
96
|
:'name' => :'String',
|
92
|
-
:'rate' => :'Float'
|
97
|
+
:'rate' => :'Float',
|
98
|
+
:'trace_rate' => :'Float'
|
93
99
|
}
|
94
100
|
end
|
95
101
|
|
@@ -154,6 +160,10 @@ module DatadogAPIClient::V2
|
|
154
160
|
if attributes.key?(:'rate')
|
155
161
|
self.rate = attributes[:'rate']
|
156
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'trace_rate')
|
165
|
+
self.trace_rate = attributes[:'trace_rate']
|
166
|
+
end
|
157
167
|
end
|
158
168
|
|
159
169
|
# Returns the object in the form of hash, with additionalProperties support.
|
@@ -193,6 +203,7 @@ module DatadogAPIClient::V2
|
|
193
203
|
modified_by == o.modified_by &&
|
194
204
|
name == o.name &&
|
195
205
|
rate == o.rate &&
|
206
|
+
trace_rate == o.trace_rate &&
|
196
207
|
additional_properties == o.additional_properties
|
197
208
|
end
|
198
209
|
|
@@ -200,7 +211,7 @@ module DatadogAPIClient::V2
|
|
200
211
|
# @return [Integer] Hash code
|
201
212
|
# @!visibility private
|
202
213
|
def hash
|
203
|
-
[created_at, created_by, editable, enabled, execution_order, filter, filter_type, modified_at, modified_by, name, rate, additional_properties].hash
|
214
|
+
[created_at, created_by, editable, enabled, execution_order, filter, filter_type, modified_at, modified_by, name, rate, trace_rate, additional_properties].hash
|
204
215
|
end
|
205
216
|
end
|
206
217
|
end
|
@@ -51,10 +51,14 @@ module DatadogAPIClient::V2
|
|
51
51
|
# The name of the retention filter.
|
52
52
|
attr_accessor :name
|
53
53
|
|
54
|
-
# Sample rate to apply to spans going through this retention filter
|
55
|
-
#
|
54
|
+
# Sample rate to apply to spans going through this retention filter.
|
55
|
+
# A value of 1.0 keeps all spans matching the query.
|
56
56
|
attr_accessor :rate
|
57
57
|
|
58
|
+
# Sample rate to apply to traces containing spans going through this retention filter.
|
59
|
+
# A value of 1.0 keeps all traces with spans matching the query.
|
60
|
+
attr_accessor :trace_rate
|
61
|
+
|
58
62
|
attr_accessor :additional_properties
|
59
63
|
|
60
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -71,7 +75,8 @@ module DatadogAPIClient::V2
|
|
71
75
|
:'modified_at' => :'modified_at',
|
72
76
|
:'modified_by' => :'modified_by',
|
73
77
|
:'name' => :'name',
|
74
|
-
:'rate' => :'rate'
|
78
|
+
:'rate' => :'rate',
|
79
|
+
:'trace_rate' => :'trace_rate'
|
75
80
|
}
|
76
81
|
end
|
77
82
|
|
@@ -89,7 +94,8 @@ module DatadogAPIClient::V2
|
|
89
94
|
:'modified_at' => :'Integer',
|
90
95
|
:'modified_by' => :'String',
|
91
96
|
:'name' => :'String',
|
92
|
-
:'rate' => :'Float'
|
97
|
+
:'rate' => :'Float',
|
98
|
+
:'trace_rate' => :'Float'
|
93
99
|
}
|
94
100
|
end
|
95
101
|
|
@@ -154,6 +160,10 @@ module DatadogAPIClient::V2
|
|
154
160
|
if attributes.key?(:'rate')
|
155
161
|
self.rate = attributes[:'rate']
|
156
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'trace_rate')
|
165
|
+
self.trace_rate = attributes[:'trace_rate']
|
166
|
+
end
|
157
167
|
end
|
158
168
|
|
159
169
|
# Returns the object in the form of hash, with additionalProperties support.
|
@@ -193,6 +203,7 @@ module DatadogAPIClient::V2
|
|
193
203
|
modified_by == o.modified_by &&
|
194
204
|
name == o.name &&
|
195
205
|
rate == o.rate &&
|
206
|
+
trace_rate == o.trace_rate &&
|
196
207
|
additional_properties == o.additional_properties
|
197
208
|
end
|
198
209
|
|
@@ -200,7 +211,7 @@ module DatadogAPIClient::V2
|
|
200
211
|
# @return [Integer] Hash code
|
201
212
|
# @!visibility private
|
202
213
|
def hash
|
203
|
-
[created_at, created_by, editable, enabled, execution_order, filter, filter_type, modified_at, modified_by, name, rate, additional_properties].hash
|
214
|
+
[created_at, created_by, editable, enabled, execution_order, filter, filter_type, modified_at, modified_by, name, rate, trace_rate, additional_properties].hash
|
204
215
|
end
|
205
216
|
end
|
206
217
|
end
|
@@ -33,10 +33,14 @@ module DatadogAPIClient::V2
|
|
33
33
|
# The name of the retention filter.
|
34
34
|
attr_reader :name
|
35
35
|
|
36
|
-
# Sample rate to apply to spans going through this retention filter
|
37
|
-
#
|
36
|
+
# Sample rate to apply to spans going through this retention filter.
|
37
|
+
# A value of 1.0 keeps all spans matching the query.
|
38
38
|
attr_reader :rate
|
39
39
|
|
40
|
+
# Sample rate to apply to traces containing spans going through this retention filter.
|
41
|
+
# A value of 1.0 keeps all traces with spans matching the query.
|
42
|
+
attr_accessor :trace_rate
|
43
|
+
|
40
44
|
attr_accessor :additional_properties
|
41
45
|
|
42
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +51,8 @@ module DatadogAPIClient::V2
|
|
47
51
|
:'filter' => :'filter',
|
48
52
|
:'filter_type' => :'filter_type',
|
49
53
|
:'name' => :'name',
|
50
|
-
:'rate' => :'rate'
|
54
|
+
:'rate' => :'rate',
|
55
|
+
:'trace_rate' => :'trace_rate'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -59,7 +64,8 @@ module DatadogAPIClient::V2
|
|
59
64
|
:'filter' => :'SpansFilterCreate',
|
60
65
|
:'filter_type' => :'RetentionFilterType',
|
61
66
|
:'name' => :'String',
|
62
|
-
:'rate' => :'Float'
|
67
|
+
:'rate' => :'Float',
|
68
|
+
:'trace_rate' => :'Float'
|
63
69
|
}
|
64
70
|
end
|
65
71
|
|
@@ -100,6 +106,10 @@ module DatadogAPIClient::V2
|
|
100
106
|
if attributes.key?(:'rate')
|
101
107
|
self.rate = attributes[:'rate']
|
102
108
|
end
|
109
|
+
|
110
|
+
if attributes.key?(:'trace_rate')
|
111
|
+
self.trace_rate = attributes[:'trace_rate']
|
112
|
+
end
|
103
113
|
end
|
104
114
|
|
105
115
|
# Check to see if the all the properties in the model are valid
|
@@ -195,6 +205,7 @@ module DatadogAPIClient::V2
|
|
195
205
|
filter_type == o.filter_type &&
|
196
206
|
name == o.name &&
|
197
207
|
rate == o.rate &&
|
208
|
+
trace_rate == o.trace_rate &&
|
198
209
|
additional_properties == o.additional_properties
|
199
210
|
end
|
200
211
|
|
@@ -202,7 +213,7 @@ module DatadogAPIClient::V2
|
|
202
213
|
# @return [Integer] Hash code
|
203
214
|
# @!visibility private
|
204
215
|
def hash
|
205
|
-
[enabled, filter, filter_type, name, rate, additional_properties].hash
|
216
|
+
[enabled, filter, filter_type, name, rate, trace_rate, additional_properties].hash
|
206
217
|
end
|
207
218
|
end
|
208
219
|
end
|
@@ -33,10 +33,14 @@ module DatadogAPIClient::V2
|
|
33
33
|
# The name of the retention filter.
|
34
34
|
attr_reader :name
|
35
35
|
|
36
|
-
# Sample rate to apply to spans going through this retention filter
|
37
|
-
#
|
36
|
+
# Sample rate to apply to spans going through this retention filter.
|
37
|
+
# A value of 1.0 keeps all spans matching the query.
|
38
38
|
attr_reader :rate
|
39
39
|
|
40
|
+
# Sample rate to apply to traces containing spans going through this retention filter.
|
41
|
+
# A value of 1.0 keeps all traces with spans matching the query.
|
42
|
+
attr_accessor :trace_rate
|
43
|
+
|
40
44
|
attr_accessor :additional_properties
|
41
45
|
|
42
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +51,8 @@ module DatadogAPIClient::V2
|
|
47
51
|
:'filter' => :'filter',
|
48
52
|
:'filter_type' => :'filter_type',
|
49
53
|
:'name' => :'name',
|
50
|
-
:'rate' => :'rate'
|
54
|
+
:'rate' => :'rate',
|
55
|
+
:'trace_rate' => :'trace_rate'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -59,7 +64,8 @@ module DatadogAPIClient::V2
|
|
59
64
|
:'filter' => :'SpansFilterCreate',
|
60
65
|
:'filter_type' => :'RetentionFilterAllType',
|
61
66
|
:'name' => :'String',
|
62
|
-
:'rate' => :'Float'
|
67
|
+
:'rate' => :'Float',
|
68
|
+
:'trace_rate' => :'Float'
|
63
69
|
}
|
64
70
|
end
|
65
71
|
|
@@ -100,6 +106,10 @@ module DatadogAPIClient::V2
|
|
100
106
|
if attributes.key?(:'rate')
|
101
107
|
self.rate = attributes[:'rate']
|
102
108
|
end
|
109
|
+
|
110
|
+
if attributes.key?(:'trace_rate')
|
111
|
+
self.trace_rate = attributes[:'trace_rate']
|
112
|
+
end
|
103
113
|
end
|
104
114
|
|
105
115
|
# Check to see if the all the properties in the model are valid
|
@@ -195,6 +205,7 @@ module DatadogAPIClient::V2
|
|
195
205
|
filter_type == o.filter_type &&
|
196
206
|
name == o.name &&
|
197
207
|
rate == o.rate &&
|
208
|
+
trace_rate == o.trace_rate &&
|
198
209
|
additional_properties == o.additional_properties
|
199
210
|
end
|
200
211
|
|
@@ -202,7 +213,7 @@ module DatadogAPIClient::V2
|
|
202
213
|
# @return [Integer] Hash code
|
203
214
|
# @!visibility private
|
204
215
|
def hash
|
205
|
-
[enabled, filter, filter_type, name, rate, additional_properties].hash
|
216
|
+
[enabled, filter, filter_type, name, rate, trace_rate, additional_properties].hash
|
206
217
|
end
|
207
218
|
end
|
208
219
|
end
|