datadog_api_client 2.21.0 → 2.23.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 +308 -695
- data/.generator/schemas/v2/openapi.yaml +664 -185
- data/.github/workflows/prepare_release.yml +2 -2
- data/.github/workflows/publish.yml +2 -2
- data/.github/workflows/release.yml +2 -2
- data/.github/workflows/test.yml +1 -1
- data/CHANGELOG.md +41 -0
- data/Gemfile +1 -1
- data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +9 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +8 -0
- data/examples/v1/synthetics/UpdateAPITest.rb +8 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
- data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCSMThreatsAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/CreateCloudWorkloadSecurityAgentRule.rb +2 -2
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DeleteCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCSMThreatsPolicy.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/DownloadCloudWorkloadPolicyFile.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/GetCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCSMThreatsAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/ListCloudWorkloadSecurityAgentRules.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCSMThreatsAgentRule.rb +1 -1
- data/examples/v2/{cloud-workload-security → csm-threats}/UpdateCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
- data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
- data/examples/v2/roles/CreateRole.rb +14 -2
- data/examples/v2/roles/CreateRole_3862893229.rb +27 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
- data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
- data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
- data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +26 -8
- data/lib/datadog_api_client/v1/api/authentication_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +112 -135
- data/lib/datadog_api_client/v1/api/users_api.rb +1 -1
- data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/series.rb +1 -1
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +2 -1
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +7 -1
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +8 -1
- data/lib/datadog_api_client/v1/models/slo_overall_statuses.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_threshold.rb +2 -1
- data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
- data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_timeframe.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_api_test_config.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_meta_schema.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_operator.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_assertion_json_schema_target.rb +129 -0
- data/lib/datadog_api_client/v1/models/{usage_attribution_metadata.rb → synthetics_assertion_json_schema_target_target.rb} +19 -21
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +11 -1
- data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +8 -2
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/case_management_api.rb +17 -16
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +10 -10
- data/lib/datadog_api_client/v2/api/{cloud_workload_security_api.rb → csm_threats_api.rb} +35 -35
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/logs_archives_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +69 -1
- data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
- data/lib/datadog_api_client/v2/api/spans_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +22 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
- data/lib/datadog_api_client/v2/models/authn_mapping_team.rb +100 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
- data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
- data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_storage_tier.rb +2 -1
- data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
- data/lib/datadog_api_client/v2/models/retention_filter_create_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/retention_filter_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +14 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
- data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
- data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
- data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
- data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
- data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
- data/lib/datadog_api_client/v2/models/user_team_included.rb +2 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +70 -46
- data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Assertion operator to apply.
|
|
21
|
+
class SyntheticsAssertionJSONSchemaOperator
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
VALIDATES_JSON_SCHEMA = "validatesJSONSchema".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# An assertion for the `validatesJSONSchema` operator.
|
|
21
|
+
class SyntheticsAssertionJSONSchemaTarget
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Assertion operator to apply.
|
|
25
|
+
attr_reader :operator
|
|
26
|
+
|
|
27
|
+
# Composed target for `validatesJSONSchema` operator.
|
|
28
|
+
attr_accessor :target
|
|
29
|
+
|
|
30
|
+
# Type of the assertion.
|
|
31
|
+
attr_reader :type
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'operator' => :'operator',
|
|
38
|
+
:'target' => :'target',
|
|
39
|
+
:'type' => :'type'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'operator' => :'SyntheticsAssertionJSONSchemaOperator',
|
|
48
|
+
:'target' => :'SyntheticsAssertionJSONSchemaTargetTarget',
|
|
49
|
+
:'type' => :'SyntheticsAssertionType'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Initializes the object
|
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
55
|
+
# @!visibility private
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'operator')
|
|
70
|
+
self.operator = attributes[:'operator']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'target')
|
|
74
|
+
self.target = attributes[:'target']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'type')
|
|
78
|
+
self.type = attributes[:'type']
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
# @!visibility private
|
|
85
|
+
def valid?
|
|
86
|
+
return false if @operator.nil?
|
|
87
|
+
return false if @type.nil?
|
|
88
|
+
true
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Custom attribute writer method with validation
|
|
92
|
+
# @param operator [Object] Object to be assigned
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def operator=(operator)
|
|
95
|
+
if operator.nil?
|
|
96
|
+
fail ArgumentError, 'invalid value for "operator", operator cannot be nil.'
|
|
97
|
+
end
|
|
98
|
+
@operator = operator
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param type [Object] Object to be assigned
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def type=(type)
|
|
105
|
+
if type.nil?
|
|
106
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
107
|
+
end
|
|
108
|
+
@type = type
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param o [Object] Object to be compared
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def ==(o)
|
|
115
|
+
return true if self.equal?(o)
|
|
116
|
+
self.class == o.class &&
|
|
117
|
+
operator == o.operator &&
|
|
118
|
+
target == o.target &&
|
|
119
|
+
type == o.type
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def hash
|
|
126
|
+
[operator, target, type].hash
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -17,22 +17,22 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# Composed target for `validatesJSONSchema` operator.
|
|
21
|
+
class SyntheticsAssertionJSONSchemaTargetTarget
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# The JSON Schema to assert.
|
|
25
|
+
attr_accessor :json_schema
|
|
26
26
|
|
|
27
|
-
# The
|
|
28
|
-
attr_accessor :
|
|
27
|
+
# The JSON Schema meta-schema version used in the assertion.
|
|
28
|
+
attr_accessor :meta_schema
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
31
|
# @!visibility private
|
|
32
32
|
def self.attribute_map
|
|
33
33
|
{
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
34
|
+
:'json_schema' => :'jsonSchema',
|
|
35
|
+
:'meta_schema' => :'metaSchema'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -40,8 +40,8 @@ module DatadogAPIClient::V1
|
|
|
40
40
|
# @!visibility private
|
|
41
41
|
def self.openapi_types
|
|
42
42
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
43
|
+
:'json_schema' => :'String',
|
|
44
|
+
:'meta_schema' => :'SyntheticsAssertionJSONSchemaMetaSchema'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -50,25 +50,23 @@ module DatadogAPIClient::V1
|
|
|
50
50
|
# @!visibility private
|
|
51
51
|
def initialize(attributes = {})
|
|
52
52
|
if (!attributes.is_a?(Hash))
|
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget` initialize method"
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsAssertionJSONSchemaTargetTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
60
|
end
|
|
61
61
|
h[k.to_sym] = v
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
if attributes.key?(:'
|
|
65
|
-
|
|
66
|
-
self.aggregates = value
|
|
67
|
-
end
|
|
64
|
+
if attributes.key?(:'json_schema')
|
|
65
|
+
self.json_schema = attributes[:'json_schema']
|
|
68
66
|
end
|
|
69
67
|
|
|
70
|
-
if attributes.key?(:'
|
|
71
|
-
self.
|
|
68
|
+
if attributes.key?(:'meta_schema')
|
|
69
|
+
self.meta_schema = attributes[:'meta_schema']
|
|
72
70
|
end
|
|
73
71
|
end
|
|
74
72
|
|
|
@@ -78,15 +76,15 @@ module DatadogAPIClient::V1
|
|
|
78
76
|
def ==(o)
|
|
79
77
|
return true if self.equal?(o)
|
|
80
78
|
self.class == o.class &&
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
json_schema == o.json_schema &&
|
|
80
|
+
meta_schema == o.meta_schema
|
|
83
81
|
end
|
|
84
82
|
|
|
85
83
|
# Calculates hash code according to all attributes.
|
|
86
84
|
# @return [Integer] Hash code
|
|
87
85
|
# @!visibility private
|
|
88
86
|
def hash
|
|
89
|
-
[
|
|
87
|
+
[json_schema, meta_schema].hash
|
|
90
88
|
end
|
|
91
89
|
end
|
|
92
90
|
end
|
|
@@ -54,6 +54,9 @@ module DatadogAPIClient::V1
|
|
|
54
54
|
# DNS server port to use for DNS tests.
|
|
55
55
|
attr_reader :dns_server_port
|
|
56
56
|
|
|
57
|
+
# Files to be used as part of the request in the test.
|
|
58
|
+
attr_accessor :files
|
|
59
|
+
|
|
57
60
|
# Specifies whether or not the request follows redirects.
|
|
58
61
|
attr_accessor :follow_redirects
|
|
59
62
|
|
|
@@ -125,6 +128,7 @@ module DatadogAPIClient::V1
|
|
|
125
128
|
:'compressed_proto_file' => :'compressedProtoFile',
|
|
126
129
|
:'dns_server' => :'dnsServer',
|
|
127
130
|
:'dns_server_port' => :'dnsServerPort',
|
|
131
|
+
:'files' => :'files',
|
|
128
132
|
:'follow_redirects' => :'follow_redirects',
|
|
129
133
|
:'headers' => :'headers',
|
|
130
134
|
:'host' => :'host',
|
|
@@ -161,6 +165,7 @@ module DatadogAPIClient::V1
|
|
|
161
165
|
:'compressed_proto_file' => :'String',
|
|
162
166
|
:'dns_server' => :'String',
|
|
163
167
|
:'dns_server_port' => :'Integer',
|
|
168
|
+
:'files' => :'Array<SyntheticsTestRequestBodyFile>',
|
|
164
169
|
:'follow_redirects' => :'Boolean',
|
|
165
170
|
:'headers' => :'Hash<String, String>',
|
|
166
171
|
:'host' => :'String',
|
|
@@ -244,6 +249,12 @@ module DatadogAPIClient::V1
|
|
|
244
249
|
self.dns_server_port = attributes[:'dns_server_port']
|
|
245
250
|
end
|
|
246
251
|
|
|
252
|
+
if attributes.key?(:'files')
|
|
253
|
+
if (value = attributes[:'files']).is_a?(Array)
|
|
254
|
+
self.files = value
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
247
258
|
if attributes.key?(:'follow_redirects')
|
|
248
259
|
self.follow_redirects = attributes[:'follow_redirects']
|
|
249
260
|
end
|
|
@@ -371,6 +382,7 @@ module DatadogAPIClient::V1
|
|
|
371
382
|
compressed_proto_file == o.compressed_proto_file &&
|
|
372
383
|
dns_server == o.dns_server &&
|
|
373
384
|
dns_server_port == o.dns_server_port &&
|
|
385
|
+
files == o.files &&
|
|
374
386
|
follow_redirects == o.follow_redirects &&
|
|
375
387
|
headers == o.headers &&
|
|
376
388
|
host == o.host &&
|
|
@@ -395,7 +407,7 @@ module DatadogAPIClient::V1
|
|
|
395
407
|
# @return [Integer] Hash code
|
|
396
408
|
# @!visibility private
|
|
397
409
|
def hash
|
|
398
|
-
[allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
|
|
410
|
+
[allow_insecure, basic_auth, body, body_type, call_type, certificate, certificate_domains, compressed_json_descriptor, compressed_proto_file, dns_server, dns_server_port, files, follow_redirects, headers, host, http_version, message, metadata, method, no_saving_response_body, number_of_packets, persist_cookies, port, proxy, query, servername, service, should_track_hops, timeout, url].hash
|
|
399
411
|
end
|
|
400
412
|
end
|
|
401
413
|
end
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 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::V1
|
|
20
|
+
# Object describing a file to be used as part of the request in the test.
|
|
21
|
+
class SyntheticsTestRequestBodyFile
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Bucket key of the file.
|
|
25
|
+
attr_accessor :bucket_key
|
|
26
|
+
|
|
27
|
+
# Content of the file.
|
|
28
|
+
attr_reader :content
|
|
29
|
+
|
|
30
|
+
# Name of the file.
|
|
31
|
+
attr_reader :name
|
|
32
|
+
|
|
33
|
+
# Size of the file.
|
|
34
|
+
attr_reader :size
|
|
35
|
+
|
|
36
|
+
# Type of the file.
|
|
37
|
+
attr_reader :type
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'bucket_key' => :'bucketKey',
|
|
44
|
+
:'content' => :'content',
|
|
45
|
+
:'name' => :'name',
|
|
46
|
+
:'size' => :'size',
|
|
47
|
+
:'type' => :'type'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
# @!visibility private
|
|
53
|
+
def self.openapi_types
|
|
54
|
+
{
|
|
55
|
+
:'bucket_key' => :'String',
|
|
56
|
+
:'content' => :'String',
|
|
57
|
+
:'name' => :'String',
|
|
58
|
+
:'size' => :'Integer',
|
|
59
|
+
:'type' => :'String'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
65
|
+
# @!visibility private
|
|
66
|
+
def initialize(attributes = {})
|
|
67
|
+
if (!attributes.is_a?(Hash))
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile` initialize method"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SyntheticsTestRequestBodyFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
75
|
+
end
|
|
76
|
+
h[k.to_sym] = v
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'bucket_key')
|
|
80
|
+
self.bucket_key = attributes[:'bucket_key']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'content')
|
|
84
|
+
self.content = attributes[:'content']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'name')
|
|
88
|
+
self.name = attributes[:'name']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'size')
|
|
92
|
+
self.size = attributes[:'size']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'type')
|
|
96
|
+
self.type = attributes[:'type']
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def valid?
|
|
104
|
+
return false if !@content.nil? && @content.to_s.length > 3145728
|
|
105
|
+
return false if !@name.nil? && @name.to_s.length > 1500
|
|
106
|
+
return false if !@size.nil? && @size > 3145728
|
|
107
|
+
return false if !@size.nil? && @size < 1
|
|
108
|
+
return false if !@type.nil? && @type.to_s.length > 1500
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Custom attribute writer method with validation
|
|
113
|
+
# @param content [Object] Object to be assigned
|
|
114
|
+
# @!visibility private
|
|
115
|
+
def content=(content)
|
|
116
|
+
if !content.nil? && content.to_s.length > 3145728
|
|
117
|
+
fail ArgumentError, 'invalid value for "content", the character length must be smaller than or equal to 3145728.'
|
|
118
|
+
end
|
|
119
|
+
@content = content
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Custom attribute writer method with validation
|
|
123
|
+
# @param name [Object] Object to be assigned
|
|
124
|
+
# @!visibility private
|
|
125
|
+
def name=(name)
|
|
126
|
+
if !name.nil? && name.to_s.length > 1500
|
|
127
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 1500.'
|
|
128
|
+
end
|
|
129
|
+
@name = name
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Custom attribute writer method with validation
|
|
133
|
+
# @param size [Object] Object to be assigned
|
|
134
|
+
# @!visibility private
|
|
135
|
+
def size=(size)
|
|
136
|
+
if !size.nil? && size > 3145728
|
|
137
|
+
fail ArgumentError, 'invalid value for "size", must be smaller than or equal to 3145728.'
|
|
138
|
+
end
|
|
139
|
+
if !size.nil? && size < 1
|
|
140
|
+
fail ArgumentError, 'invalid value for "size", must be greater than or equal to 1.'
|
|
141
|
+
end
|
|
142
|
+
@size = size
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Custom attribute writer method with validation
|
|
146
|
+
# @param type [Object] Object to be assigned
|
|
147
|
+
# @!visibility private
|
|
148
|
+
def type=(type)
|
|
149
|
+
if !type.nil? && type.to_s.length > 1500
|
|
150
|
+
fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1500.'
|
|
151
|
+
end
|
|
152
|
+
@type = type
|
|
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
|
+
bucket_key == o.bucket_key &&
|
|
162
|
+
content == o.content &&
|
|
163
|
+
name == o.name &&
|
|
164
|
+
size == o.size &&
|
|
165
|
+
type == o.type
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Calculates hash code according to all attributes.
|
|
169
|
+
# @return [Integer] Hash code
|
|
170
|
+
# @!visibility private
|
|
171
|
+
def hash
|
|
172
|
+
[bucket_key, content, name, size, type].hash
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -27,5 +27,7 @@ module DatadogAPIClient::V1
|
|
|
27
27
|
TEXT_HTML = "text/html".freeze
|
|
28
28
|
APPLICATION_X_WWW_FORM_URLENCODED = "application/x-www-form-urlencoded".freeze
|
|
29
29
|
GRAPHQL = "graphql".freeze
|
|
30
|
+
APPLICATION_OCTET_STREAM = "application/octet-stream".freeze
|
|
31
|
+
MULTIPART_FORM_DATA = "multipart/form-data".freeze
|
|
30
32
|
end
|
|
31
33
|
end
|
|
@@ -177,6 +177,9 @@ module DatadogAPIClient::V1
|
|
|
177
177
|
# Response with properties for each aggregated usage type.
|
|
178
178
|
attr_accessor :logs_indexed_180day_sum
|
|
179
179
|
|
|
180
|
+
# Response with properties for each aggregated usage type.
|
|
181
|
+
attr_accessor :logs_indexed_1day_sum
|
|
182
|
+
|
|
180
183
|
# Response with properties for each aggregated usage type.
|
|
181
184
|
attr_accessor :logs_indexed_30day_sum
|
|
182
185
|
|
|
@@ -341,6 +344,7 @@ module DatadogAPIClient::V1
|
|
|
341
344
|
:'logs_forwarding_sum' => :'logs_forwarding_sum',
|
|
342
345
|
:'logs_indexed_15day_sum' => :'logs_indexed_15day_sum',
|
|
343
346
|
:'logs_indexed_180day_sum' => :'logs_indexed_180day_sum',
|
|
347
|
+
:'logs_indexed_1day_sum' => :'logs_indexed_1day_sum',
|
|
344
348
|
:'logs_indexed_30day_sum' => :'logs_indexed_30day_sum',
|
|
345
349
|
:'logs_indexed_360day_sum' => :'logs_indexed_360day_sum',
|
|
346
350
|
:'logs_indexed_3day_sum' => :'logs_indexed_3day_sum',
|
|
@@ -436,6 +440,7 @@ module DatadogAPIClient::V1
|
|
|
436
440
|
:'logs_forwarding_sum' => :'UsageBillableSummaryBody',
|
|
437
441
|
:'logs_indexed_15day_sum' => :'UsageBillableSummaryBody',
|
|
438
442
|
:'logs_indexed_180day_sum' => :'UsageBillableSummaryBody',
|
|
443
|
+
:'logs_indexed_1day_sum' => :'UsageBillableSummaryBody',
|
|
439
444
|
:'logs_indexed_30day_sum' => :'UsageBillableSummaryBody',
|
|
440
445
|
:'logs_indexed_360day_sum' => :'UsageBillableSummaryBody',
|
|
441
446
|
:'logs_indexed_3day_sum' => :'UsageBillableSummaryBody',
|
|
@@ -699,6 +704,10 @@ module DatadogAPIClient::V1
|
|
|
699
704
|
self.logs_indexed_180day_sum = attributes[:'logs_indexed_180day_sum']
|
|
700
705
|
end
|
|
701
706
|
|
|
707
|
+
if attributes.key?(:'logs_indexed_1day_sum')
|
|
708
|
+
self.logs_indexed_1day_sum = attributes[:'logs_indexed_1day_sum']
|
|
709
|
+
end
|
|
710
|
+
|
|
702
711
|
if attributes.key?(:'logs_indexed_30day_sum')
|
|
703
712
|
self.logs_indexed_30day_sum = attributes[:'logs_indexed_30day_sum']
|
|
704
713
|
end
|
|
@@ -902,6 +911,7 @@ module DatadogAPIClient::V1
|
|
|
902
911
|
logs_forwarding_sum == o.logs_forwarding_sum &&
|
|
903
912
|
logs_indexed_15day_sum == o.logs_indexed_15day_sum &&
|
|
904
913
|
logs_indexed_180day_sum == o.logs_indexed_180day_sum &&
|
|
914
|
+
logs_indexed_1day_sum == o.logs_indexed_1day_sum &&
|
|
905
915
|
logs_indexed_30day_sum == o.logs_indexed_30day_sum &&
|
|
906
916
|
logs_indexed_360day_sum == o.logs_indexed_360day_sum &&
|
|
907
917
|
logs_indexed_3day_sum == o.logs_indexed_3day_sum &&
|
|
@@ -944,7 +954,7 @@ module DatadogAPIClient::V1
|
|
|
944
954
|
# @return [Integer] Hash code
|
|
945
955
|
# @!visibility private
|
|
946
956
|
def hash
|
|
947
|
-
[apm_fargate_average, apm_fargate_sum, apm_host_sum, apm_host_top99p, apm_profiler_host_sum, apm_profiler_host_top99p, apm_trace_search_sum, application_security_fargate_average, application_security_host_sum, application_security_host_top99p, ci_pipeline_indexed_spans_sum, ci_pipeline_maximum, ci_pipeline_sum, ci_test_indexed_spans_sum, ci_testing_maximum, ci_testing_sum, cloud_cost_management_average, cloud_cost_management_sum, cspm_container_sum, cspm_host_sum, cspm_host_top99p, custom_event_sum, cws_container_sum, cws_host_sum, cws_host_top99p, dbm_host_sum, dbm_host_top99p, dbm_normalized_queries_average, dbm_normalized_queries_sum, fargate_container_apm_and_profiler_average, fargate_container_apm_and_profiler_sum, fargate_container_average, fargate_container_profiler_average, fargate_container_profiler_sum, fargate_container_sum, incident_management_maximum, incident_management_sum, infra_and_apm_host_sum, infra_and_apm_host_top99p, infra_container_sum, infra_host_sum, infra_host_top99p, ingested_spans_sum, ingested_timeseries_average, ingested_timeseries_sum, iot_sum, iot_top99p, lambda_function_average, lambda_function_sum, logs_forwarding_sum, logs_indexed_15day_sum, logs_indexed_180day_sum, logs_indexed_30day_sum, logs_indexed_360day_sum, logs_indexed_3day_sum, logs_indexed_45day_sum, logs_indexed_60day_sum, logs_indexed_7day_sum, logs_indexed_90day_sum, logs_indexed_custom_retention_sum, logs_indexed_sum, logs_ingested_sum, network_device_sum, network_device_top99p, npm_flow_sum, npm_host_sum, npm_host_top99p, observability_pipeline_sum, online_archive_sum, prof_container_sum, prof_host_sum, prof_host_top99p, rum_lite_sum, rum_replay_sum, rum_sum, rum_units_sum, sensitive_data_scanner_sum, serverless_apm_sum, serverless_infra_average, serverless_infra_sum, serverless_invocation_sum, siem_sum, standard_timeseries_average, synthetics_api_tests_sum, synthetics_app_testing_maximum, synthetics_browser_checks_sum, timeseries_average, timeseries_sum].hash
|
|
957
|
+
[apm_fargate_average, apm_fargate_sum, apm_host_sum, apm_host_top99p, apm_profiler_host_sum, apm_profiler_host_top99p, apm_trace_search_sum, application_security_fargate_average, application_security_host_sum, application_security_host_top99p, ci_pipeline_indexed_spans_sum, ci_pipeline_maximum, ci_pipeline_sum, ci_test_indexed_spans_sum, ci_testing_maximum, ci_testing_sum, cloud_cost_management_average, cloud_cost_management_sum, cspm_container_sum, cspm_host_sum, cspm_host_top99p, custom_event_sum, cws_container_sum, cws_host_sum, cws_host_top99p, dbm_host_sum, dbm_host_top99p, dbm_normalized_queries_average, dbm_normalized_queries_sum, fargate_container_apm_and_profiler_average, fargate_container_apm_and_profiler_sum, fargate_container_average, fargate_container_profiler_average, fargate_container_profiler_sum, fargate_container_sum, incident_management_maximum, incident_management_sum, infra_and_apm_host_sum, infra_and_apm_host_top99p, infra_container_sum, infra_host_sum, infra_host_top99p, ingested_spans_sum, ingested_timeseries_average, ingested_timeseries_sum, iot_sum, iot_top99p, lambda_function_average, lambda_function_sum, logs_forwarding_sum, logs_indexed_15day_sum, logs_indexed_180day_sum, logs_indexed_1day_sum, logs_indexed_30day_sum, logs_indexed_360day_sum, logs_indexed_3day_sum, logs_indexed_45day_sum, logs_indexed_60day_sum, logs_indexed_7day_sum, logs_indexed_90day_sum, logs_indexed_custom_retention_sum, logs_indexed_sum, logs_ingested_sum, network_device_sum, network_device_top99p, npm_flow_sum, npm_host_sum, npm_host_top99p, observability_pipeline_sum, online_archive_sum, prof_container_sum, prof_host_sum, prof_host_top99p, rum_lite_sum, rum_replay_sum, rum_sum, rum_units_sum, sensitive_data_scanner_sum, serverless_apm_sum, serverless_infra_average, serverless_infra_sum, serverless_invocation_sum, siem_sum, standard_timeseries_average, synthetics_api_tests_sum, synthetics_app_testing_maximum, synthetics_browser_checks_sum, timeseries_average, timeseries_sum].hash
|
|
948
958
|
end
|
|
949
959
|
end
|
|
950
960
|
end
|
|
@@ -36,9 +36,11 @@ module DatadogAPIClient::V2
|
|
|
36
36
|
# Create a retention filter to index spans in your organization.
|
|
37
37
|
# Returns the retention filter definition when the request is successful.
|
|
38
38
|
#
|
|
39
|
+
# Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created.
|
|
40
|
+
#
|
|
39
41
|
# @param body [RetentionFilterCreateRequest] The definition of the new retention filter.
|
|
40
42
|
# @param opts [Hash] the optional parameters
|
|
41
|
-
# @return [Array<(
|
|
43
|
+
# @return [Array<(RetentionFilterCreateResponse, Integer, Hash)>] RetentionFilterCreateResponse data, response status code and response headers
|
|
42
44
|
def create_apm_retention_filter_with_http_info(body, opts = {})
|
|
43
45
|
|
|
44
46
|
if @api_client.config.debugging
|
|
@@ -68,7 +70,7 @@ module DatadogAPIClient::V2
|
|
|
68
70
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
69
71
|
|
|
70
72
|
# return_type
|
|
71
|
-
return_type = opts[:debug_return_type] || '
|
|
73
|
+
return_type = opts[:debug_return_type] || 'RetentionFilterCreateResponse'
|
|
72
74
|
|
|
73
75
|
# auth_names
|
|
74
76
|
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
@@ -103,6 +105,8 @@ module DatadogAPIClient::V2
|
|
|
103
105
|
#
|
|
104
106
|
# Delete a specific retention filter from your organization.
|
|
105
107
|
#
|
|
108
|
+
# Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted.
|
|
109
|
+
#
|
|
106
110
|
# @param filter_id [String] The ID of the retention filter.
|
|
107
111
|
# @param opts [Hash] the optional parameters
|
|
108
112
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
@@ -360,6 +364,8 @@ module DatadogAPIClient::V2
|
|
|
360
364
|
#
|
|
361
365
|
# Update a retention filter from your organization.
|
|
362
366
|
#
|
|
367
|
+
# Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed.
|
|
368
|
+
#
|
|
363
369
|
# @param filter_id [String] The ID of the retention filter.
|
|
364
370
|
# @param body [RetentionFilterUpdateRequest] The updated definition of the retention filter.
|
|
365
371
|
# @param opts [Hash] the optional parameters
|
|
@@ -70,7 +70,7 @@ module DatadogAPIClient::V2
|
|
|
70
70
|
return_type = opts[:debug_return_type] || 'AuthNMappingResponse'
|
|
71
71
|
|
|
72
72
|
# auth_names
|
|
73
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
73
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
74
74
|
|
|
75
75
|
new_options = opts.merge(
|
|
76
76
|
:operation => :create_authn_mapping,
|
|
@@ -272,7 +272,7 @@ module DatadogAPIClient::V2
|
|
|
272
272
|
return_type = opts[:debug_return_type] || 'AuthNMappingsResponse'
|
|
273
273
|
|
|
274
274
|
# auth_names
|
|
275
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
275
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
276
276
|
|
|
277
277
|
new_options = opts.merge(
|
|
278
278
|
:operation => :list_authn_mappings,
|