datadog_api_client 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +715 -44
  4. data/.generator/schemas/v2/openapi.yaml +458 -44
  5. data/.generator/src/generator/formatter.py +14 -0
  6. data/.github/workflows/test_integration.yml +0 -7
  7. data/CHANGELOG.md +34 -0
  8. data/examples/v1/dashboards/CreateDashboard_1442588603.rb +61 -0
  9. data/examples/v1/dashboards/CreateDashboard_252716965.rb +52 -0
  10. data/examples/v1/dashboards/CreateDashboard_3882428227.rb +60 -0
  11. data/examples/v1/metrics/SubmitDistributionPoints.rb +22 -0
  12. data/examples/v1/metrics/SubmitDistributionPoints_3109558960.rb +25 -0
  13. data/examples/v1/organizations/DowngradeOrg.rb +5 -0
  14. data/examples/v1/organizations/UpdateOrg.rb +1 -0
  15. data/examples/v1/service-level-objectives/SearchSLO.rb +16 -0
  16. data/examples/v1/snapshots/GetGraphSnapshot.rb +2 -0
  17. data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +3 -0
  18. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +3 -0
  19. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  20. data/examples/v2/metrics/CreateTagConfiguration.rb +0 -3
  21. data/examples/v2/metrics/DeleteTagConfiguration.rb +0 -3
  22. data/examples/v2/metrics/ListTagConfigurationByName.rb +0 -3
  23. data/examples/v2/metrics/ListTagConfigurations.rb +0 -3
  24. data/examples/v2/metrics/ListTagConfigurations_103226315.rb +0 -3
  25. data/examples/v2/metrics/ListTagConfigurations_1799362914.rb +0 -3
  26. data/examples/v2/metrics/UpdateTagConfiguration.rb +0 -3
  27. data/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +16 -0
  28. data/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb +8 -0
  29. data/examples/v2/opsgenie-integration/GetOpsgenieService.rb +8 -0
  30. data/examples/v2/opsgenie-integration/ListOpsgenieServices.rb +5 -0
  31. data/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb +21 -0
  32. data/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb +0 -3
  33. data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb +0 -3
  34. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +3 -0
  35. data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +5 -0
  36. data/examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb +9 -0
  37. data/examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb +9 -0
  38. data/lib/datadog_api_client/v1/api/metrics_api.rb +81 -0
  39. data/lib/datadog_api_client/v1/api/organizations_api.rb +74 -1
  40. data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +2 -2
  41. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +78 -4
  42. data/lib/datadog_api_client/v1/api/snapshots_api.rb +4 -0
  43. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +9 -5
  44. data/lib/datadog_api_client/v1/configuration.rb +51 -0
  45. data/lib/datadog_api_client/v1/models/distribution_point_item.rb +63 -0
  46. data/lib/datadog_api_client/v1/models/distribution_points_content_encoding.rb +26 -0
  47. data/lib/datadog_api_client/v1/models/distribution_points_payload.rb +124 -0
  48. data/lib/datadog_api_client/v1/models/distribution_points_series.rb +179 -0
  49. data/lib/datadog_api_client/v1/models/distribution_points_type.rb +26 -0
  50. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +64 -0
  51. data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_type.rb +26 -0
  52. data/lib/datadog_api_client/v1/models/distribution_widget_request.rb +21 -1
  53. data/lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stat_name.rb +1 -0
  54. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
  55. data/lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb +125 -0
  56. data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
  57. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  58. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
  59. data/lib/datadog_api_client/v1/models/org_downgraded_response.rb +111 -0
  60. data/lib/datadog_api_client/v1/models/organization.rb +14 -4
  61. data/lib/datadog_api_client/v1/models/search_slo_response.rb +131 -0
  62. data/lib/datadog_api_client/v1/models/search_slo_response_data.rb +121 -0
  63. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb +123 -0
  64. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb +197 -0
  65. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb +121 -0
  66. data/lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb +121 -0
  67. data/lib/datadog_api_client/v1/models/search_slo_response_links.rb +151 -0
  68. data/lib/datadog_api_client/v1/models/search_slo_response_meta.rb +111 -0
  69. data/lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb +181 -0
  70. data/lib/datadog_api_client/v1/models/service_level_objective.rb +3 -3
  71. data/lib/datadog_api_client/v1/models/service_level_objective_query.rb +1 -1
  72. data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +3 -3
  73. data/lib/datadog_api_client/v1/models/slo_history_metrics.rb +1 -1
  74. data/lib/datadog_api_client/v1/models/slo_response_data.rb +1 -1
  75. data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +11 -0
  76. data/lib/datadog_api_client/v1/models/synthetics_browser_test.rb +11 -0
  77. data/lib/datadog_api_client/v1/models/synthetics_core_web_vitals.rb +2 -2
  78. data/lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb +111 -0
  79. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +11 -1
  80. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +4 -0
  81. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +4 -0
  82. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +41 -1
  83. data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +474 -4
  84. data/lib/datadog_api_client/v1.rb +19 -0
  85. data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +1 -1
  86. data/lib/datadog_api_client/v2/api/metrics_api.rb +0 -2
  87. data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +395 -0
  88. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +76 -0
  89. data/lib/datadog_api_client/v2/configuration.rb +0 -7
  90. data/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +10 -8
  91. data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +0 -2
  92. data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +0 -2
  93. data/lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb +174 -0
  94. data/lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb +145 -0
  95. data/lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb +122 -0
  96. data/lib/datadog_api_client/v2/models/opsgenie_service_region_type.rb +28 -0
  97. data/lib/datadog_api_client/v2/models/opsgenie_service_response.rb +122 -0
  98. data/lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb +132 -0
  99. data/lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb +166 -0
  100. data/lib/datadog_api_client/v2/models/opsgenie_service_type.rb +26 -0
  101. data/lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb +142 -0
  102. data/lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb +166 -0
  103. data/lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb +122 -0
  104. data/lib/datadog_api_client/v2/models/opsgenie_services_response.rb +124 -0
  105. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb +30 -4
  106. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_method.rb +27 -0
  107. data/lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_threshold.rb +27 -0
  108. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +13 -1
  109. data/lib/datadog_api_client/v2.rb +15 -0
  110. data/lib/datadog_api_client/version.rb +1 -1
  111. metadata +51 -2
@@ -0,0 +1,122 @@
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
+ # Update request for an Opsgenie service.
21
+ class OpsgenieServiceUpdateRequest
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # Opsgenie service for an update request.
29
+ attr_accessor :data
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ # @!visibility private
33
+ def self.attribute_map
34
+ {
35
+ :'data' => :'data'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ # @!visibility private
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'data' => :'OpsgenieServiceUpdateData'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ # @!visibility private
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param attributes [Hash] Model attributes in the form of hash
62
+ # @!visibility private
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServiceUpdateRequest` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServiceUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'data')
77
+ self.data = attributes[:'data']
78
+ end
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ # @!visibility private
84
+ def valid?
85
+ return false if @data.nil?
86
+ true
87
+ end
88
+
89
+ # Custom attribute writer method with validation
90
+ # @param data [Object] Object to be assigned
91
+ # @!visibility private
92
+ def data=(data)
93
+ if data.nil?
94
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
95
+ end
96
+ @data = data
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param o [Object] Object to be compared
101
+ # @!visibility private
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ data == o.data
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param o [Object] Object to be compared
110
+ # @!visibility private
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Integer] Hash code
117
+ # @!visibility private
118
+ def hash
119
+ [data].hash
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,124 @@
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
+ # Response with a list of Opsgenie services.
21
+ class OpsgenieServicesResponse
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # An array of Opsgenie services.
29
+ attr_accessor :data
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ # @!visibility private
33
+ def self.attribute_map
34
+ {
35
+ :'data' => :'data'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ # @!visibility private
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'data' => :'Array<OpsgenieServiceResponseData>'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ # @!visibility private
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param attributes [Hash] Model attributes in the form of hash
62
+ # @!visibility private
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::OpsgenieServicesResponse` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::OpsgenieServicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'data')
77
+ if (value = attributes[:'data']).is_a?(Array)
78
+ self.data = value
79
+ end
80
+ end
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ # @!visibility private
86
+ def valid?
87
+ return false if @data.nil?
88
+ true
89
+ end
90
+
91
+ # Custom attribute writer method with validation
92
+ # @param data [Object] Object to be assigned
93
+ # @!visibility private
94
+ def data=(data)
95
+ if data.nil?
96
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
97
+ end
98
+ @data = data
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param o [Object] Object to be compared
103
+ # @!visibility private
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ data == o.data
108
+ end
109
+
110
+ # @see the `==` method
111
+ # @param o [Object] Object to be compared
112
+ # @!visibility private
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ # @!visibility private
120
+ def hash
121
+ [data].hash
122
+ end
123
+ end
124
+ end
@@ -32,12 +32,20 @@ module DatadogAPIClient::V2
32
32
  # weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
33
33
  attr_accessor :learning_duration
34
34
 
35
+ # The learning method used to determine when signals should be generated for values that weren't learned.
36
+ attr_accessor :learning_method
37
+
38
+ # A number of occurrences after which signals will be generated for values that weren't learned.
39
+ attr_accessor :learning_threshold
40
+
35
41
  # Attribute mapping from ruby-style variable name to JSON key.
36
42
  # @!visibility private
37
43
  def self.attribute_map
38
44
  {
39
45
  :'forget_after' => :'forgetAfter',
40
- :'learning_duration' => :'learningDuration'
46
+ :'learning_duration' => :'learningDuration',
47
+ :'learning_method' => :'learningMethod',
48
+ :'learning_threshold' => :'learningThreshold'
41
49
  }
42
50
  end
43
51
 
@@ -52,7 +60,9 @@ module DatadogAPIClient::V2
52
60
  def self.openapi_types
53
61
  {
54
62
  :'forget_after' => :'SecurityMonitoringRuleNewValueOptionsForgetAfter',
55
- :'learning_duration' => :'SecurityMonitoringRuleNewValueOptionsLearningDuration'
63
+ :'learning_duration' => :'SecurityMonitoringRuleNewValueOptionsLearningDuration',
64
+ :'learning_method' => :'SecurityMonitoringRuleNewValueOptionsLearningMethod',
65
+ :'learning_threshold' => :'SecurityMonitoringRuleNewValueOptionsLearningThreshold'
56
66
  }
57
67
  end
58
68
 
@@ -85,6 +95,20 @@ module DatadogAPIClient::V2
85
95
 
86
96
  if attributes.key?(:'learning_duration')
87
97
  self.learning_duration = attributes[:'learning_duration']
98
+ else
99
+ self.learning_duration = 0
100
+ end
101
+
102
+ if attributes.key?(:'learning_method')
103
+ self.learning_method = attributes[:'learning_method']
104
+ else
105
+ self.learning_method = 'duration'
106
+ end
107
+
108
+ if attributes.key?(:'learning_threshold')
109
+ self.learning_threshold = attributes[:'learning_threshold']
110
+ else
111
+ self.learning_threshold = 0
88
112
  end
89
113
  end
90
114
 
@@ -102,7 +126,9 @@ module DatadogAPIClient::V2
102
126
  return true if self.equal?(o)
103
127
  self.class == o.class &&
104
128
  forget_after == o.forget_after &&
105
- learning_duration == o.learning_duration
129
+ learning_duration == o.learning_duration &&
130
+ learning_method == o.learning_method &&
131
+ learning_threshold == o.learning_threshold
106
132
  end
107
133
 
108
134
  # @see the `==` method
@@ -116,7 +142,7 @@ module DatadogAPIClient::V2
116
142
  # @return [Integer] Hash code
117
143
  # @!visibility private
118
144
  def hash
119
- [forget_after, learning_duration].hash
145
+ [forget_after, learning_duration, learning_method, learning_threshold].hash
120
146
  end
121
147
  end
122
148
  end
@@ -0,0 +1,27 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # The learning method used to determine when signals should be generated for values that weren't learned.
21
+ class SecurityMonitoringRuleNewValueOptionsLearningMethod
22
+ include BaseEnumModel
23
+
24
+ DURATION = "duration".freeze
25
+ THRESHOLD = "threshold".freeze
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # A number of occurrences after which signals will be generated for values that weren't learned.
21
+ class SecurityMonitoringRuleNewValueOptionsLearningThreshold
22
+ include BaseEnumModel
23
+
24
+ ZERO_OCCURRENCES = 0.freeze
25
+ ONE_OCCURRENCE = 1.freeze
26
+ end
27
+ end
@@ -25,6 +25,11 @@ module DatadogAPIClient::V2
25
25
  # @!visibility private
26
26
  attr_accessor :_unparsed
27
27
 
28
+ # If true, signals in non-production environments have a lower severity than what is defined by the rule case, which can reduce signal noise.
29
+ # The severity is decreased by one level: `CRITICAL` in production becomes `HIGH` in non-production, `HIGH` becomes `MEDIUM` and so on. `INFO` remains `INFO`.
30
+ # The decrement is applied when the environment tag of the signal starts with `staging`, `test` or `dev`.
31
+ attr_accessor :decrease_criticality_based_on_env
32
+
28
33
  # The detection method.
29
34
  attr_accessor :detection_method
30
35
 
@@ -53,6 +58,7 @@ module DatadogAPIClient::V2
53
58
  # @!visibility private
54
59
  def self.attribute_map
55
60
  {
61
+ :'decrease_criticality_based_on_env' => :'decreaseCriticalityBasedOnEnv',
56
62
  :'detection_method' => :'detectionMethod',
57
63
  :'evaluation_window' => :'evaluationWindow',
58
64
  :'hardcoded_evaluator_type' => :'hardcodedEvaluatorType',
@@ -73,6 +79,7 @@ module DatadogAPIClient::V2
73
79
  # @!visibility private
74
80
  def self.openapi_types
75
81
  {
82
+ :'decrease_criticality_based_on_env' => :'Boolean',
76
83
  :'detection_method' => :'SecurityMonitoringRuleDetectionMethod',
77
84
  :'evaluation_window' => :'SecurityMonitoringRuleEvaluationWindow',
78
85
  :'hardcoded_evaluator_type' => :'SecurityMonitoringRuleHardcodedEvaluatorType',
@@ -106,6 +113,10 @@ module DatadogAPIClient::V2
106
113
  h[k.to_sym] = v
107
114
  }
108
115
 
116
+ if attributes.key?(:'decrease_criticality_based_on_env')
117
+ self.decrease_criticality_based_on_env = attributes[:'decrease_criticality_based_on_env']
118
+ end
119
+
109
120
  if attributes.key?(:'detection_method')
110
121
  self.detection_method = attributes[:'detection_method']
111
122
  end
@@ -148,6 +159,7 @@ module DatadogAPIClient::V2
148
159
  def ==(o)
149
160
  return true if self.equal?(o)
150
161
  self.class == o.class &&
162
+ decrease_criticality_based_on_env == o.decrease_criticality_based_on_env &&
151
163
  detection_method == o.detection_method &&
152
164
  evaluation_window == o.evaluation_window &&
153
165
  hardcoded_evaluator_type == o.hardcoded_evaluator_type &&
@@ -168,7 +180,7 @@ module DatadogAPIClient::V2
168
180
  # @return [Integer] Hash code
169
181
  # @!visibility private
170
182
  def hash
171
- [detection_method, evaluation_window, hardcoded_evaluator_type, impossible_travel_options, keep_alive, max_signal_duration, new_value_options].hash
183
+ [decrease_criticality_based_on_env, detection_method, evaluation_window, hardcoded_evaluator_type, impossible_travel_options, keep_alive, max_signal_duration, new_value_options].hash
172
184
  end
173
185
  end
174
186
  end
@@ -301,6 +301,18 @@ require 'datadog_api_client/v2/models/metric_volumes'
301
301
  require 'datadog_api_client/v2/models/metric_volumes_response'
302
302
  require 'datadog_api_client/v2/models/nullable_relationship_to_user'
303
303
  require 'datadog_api_client/v2/models/nullable_relationship_to_user_data'
304
+ require 'datadog_api_client/v2/models/opsgenie_service_create_attributes'
305
+ require 'datadog_api_client/v2/models/opsgenie_service_create_data'
306
+ require 'datadog_api_client/v2/models/opsgenie_service_create_request'
307
+ require 'datadog_api_client/v2/models/opsgenie_service_region_type'
308
+ require 'datadog_api_client/v2/models/opsgenie_service_response'
309
+ require 'datadog_api_client/v2/models/opsgenie_service_response_attributes'
310
+ require 'datadog_api_client/v2/models/opsgenie_service_response_data'
311
+ require 'datadog_api_client/v2/models/opsgenie_services_response'
312
+ require 'datadog_api_client/v2/models/opsgenie_service_type'
313
+ require 'datadog_api_client/v2/models/opsgenie_service_update_attributes'
314
+ require 'datadog_api_client/v2/models/opsgenie_service_update_data'
315
+ require 'datadog_api_client/v2/models/opsgenie_service_update_request'
304
316
  require 'datadog_api_client/v2/models/organization'
305
317
  require 'datadog_api_client/v2/models/organization_attributes'
306
318
  require 'datadog_api_client/v2/models/organizations_type'
@@ -424,6 +436,8 @@ require 'datadog_api_client/v2/models/security_monitoring_rule_max_signal_durati
424
436
  require 'datadog_api_client/v2/models/security_monitoring_rule_new_value_options'
425
437
  require 'datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after'
426
438
  require 'datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration'
439
+ require 'datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_method'
440
+ require 'datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_threshold'
427
441
  require 'datadog_api_client/v2/models/security_monitoring_rule_options'
428
442
  require 'datadog_api_client/v2/models/security_monitoring_rule_query'
429
443
  require 'datadog_api_client/v2/models/security_monitoring_rule_query_aggregation'
@@ -490,6 +504,7 @@ require 'datadog_api_client/v2/api/logs_api'
490
504
  require 'datadog_api_client/v2/api/logs_archives_api'
491
505
  require 'datadog_api_client/v2/api/logs_metrics_api'
492
506
  require 'datadog_api_client/v2/api/metrics_api'
507
+ require 'datadog_api_client/v2/api/opsgenie_integration_api'
493
508
  require 'datadog_api_client/v2/api/organizations_api'
494
509
  require 'datadog_api_client/v2/api/processes_api'
495
510
  require 'datadog_api_client/v2/api/roles_api'
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '1.10.0'
4
+ VERSION = '1.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-30 00:00:00.000000000 Z
11
+ date: 2022-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -149,6 +149,7 @@ files:
149
149
  - examples/v1/dashboards/CreateDashboard_1177423752.rb
150
150
  - examples/v1/dashboards/CreateDashboard_1200099236.rb
151
151
  - examples/v1/dashboards/CreateDashboard_1213075383.rb
152
+ - examples/v1/dashboards/CreateDashboard_1442588603.rb
152
153
  - examples/v1/dashboards/CreateDashboard_145494973.rb
153
154
  - examples/v1/dashboards/CreateDashboard_173805046.rb
154
155
  - examples/v1/dashboards/CreateDashboard_1738608750.rb
@@ -162,6 +163,7 @@ files:
162
163
  - examples/v1/dashboards/CreateDashboard_2342457693.rb
163
164
  - examples/v1/dashboards/CreateDashboard_2349863258.rb
164
165
  - examples/v1/dashboards/CreateDashboard_2490110261.rb
166
+ - examples/v1/dashboards/CreateDashboard_252716965.rb
165
167
  - examples/v1/dashboards/CreateDashboard_2607944105.rb
166
168
  - examples/v1/dashboards/CreateDashboard_2634813877.rb
167
169
  - examples/v1/dashboards/CreateDashboard_2644712913.rb
@@ -169,6 +171,7 @@ files:
169
171
  - examples/v1/dashboards/CreateDashboard_2917274132.rb
170
172
  - examples/v1/dashboards/CreateDashboard_2921337351.rb
171
173
  - examples/v1/dashboards/CreateDashboard_3250131584.rb
174
+ - examples/v1/dashboards/CreateDashboard_3882428227.rb
172
175
  - examples/v1/dashboards/CreateDashboard_3982498788.rb
173
176
  - examples/v1/dashboards/CreateDashboard_4026341408.rb
174
177
  - examples/v1/dashboards/CreateDashboard_4076476470.rb
@@ -247,6 +250,8 @@ files:
247
250
  - examples/v1/metrics/ListActiveMetrics.rb
248
251
  - examples/v1/metrics/ListMetrics.rb
249
252
  - examples/v1/metrics/QueryMetrics.rb
253
+ - examples/v1/metrics/SubmitDistributionPoints.rb
254
+ - examples/v1/metrics/SubmitDistributionPoints_3109558960.rb
250
255
  - examples/v1/metrics/SubmitMetrics.rb
251
256
  - examples/v1/metrics/SubmitMetrics_2203981258.rb
252
257
  - examples/v1/metrics/UpdateMetricMetadata.rb
@@ -274,6 +279,7 @@ files:
274
279
  - examples/v1/notebooks/ListNotebooks.rb
275
280
  - examples/v1/notebooks/UpdateNotebook.rb
276
281
  - examples/v1/organizations/CreateChildOrg.rb
282
+ - examples/v1/organizations/DowngradeOrg.rb
277
283
  - examples/v1/organizations/GetOrg.rb
278
284
  - examples/v1/organizations/ListOrgs.rb
279
285
  - examples/v1/organizations/UpdateOrg.rb
@@ -300,6 +306,7 @@ files:
300
306
  - examples/v1/service-level-objectives/GetSLOCorrections.rb
301
307
  - examples/v1/service-level-objectives/GetSLOHistory.rb
302
308
  - examples/v1/service-level-objectives/ListSLOs.rb
309
+ - examples/v1/service-level-objectives/SearchSLO.rb
303
310
  - examples/v1/service-level-objectives/UpdateSLO.rb
304
311
  - examples/v1/slack-integration/CreateSlackIntegrationChannel.rb
305
312
  - examples/v1/slack-integration/GetSlackIntegrationChannel.rb
@@ -496,6 +503,11 @@ files:
496
503
  - examples/v2/metrics/ListVolumesByMetricName.rb
497
504
  - examples/v2/metrics/SubmitMetrics.rb
498
505
  - examples/v2/metrics/UpdateTagConfiguration.rb
506
+ - examples/v2/opsgenie-integration/CreateOpsgenieService.rb
507
+ - examples/v2/opsgenie-integration/DeleteOpsgenieService.rb
508
+ - examples/v2/opsgenie-integration/GetOpsgenieService.rb
509
+ - examples/v2/opsgenie-integration/ListOpsgenieServices.rb
510
+ - examples/v2/opsgenie-integration/UpdateOpsgenieService.rb
499
511
  - examples/v2/organizations/UploadIdPMetadata.rb
500
512
  - examples/v2/processes/ListProcesses.rb
501
513
  - examples/v2/roles/AddPermissionToRole.rb
@@ -541,6 +553,9 @@ files:
541
553
  - examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb
542
554
  - examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb
543
555
  - examples/v2/usage-metering/GetCostByOrg.rb
556
+ - examples/v2/usage-metering/GetEstimatedCostByOrg.rb
557
+ - examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb
558
+ - examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb
544
559
  - examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb
545
560
  - examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb
546
561
  - examples/v2/usage-metering/GetUsageObservabilityPipelines.rb
@@ -658,8 +673,15 @@ files:
658
673
  - lib/datadog_api_client/v1/models/dashboard_template_variable_preset.rb
659
674
  - lib/datadog_api_client/v1/models/dashboard_template_variable_preset_value.rb
660
675
  - lib/datadog_api_client/v1/models/deleted_monitor.rb
676
+ - lib/datadog_api_client/v1/models/distribution_point_item.rb
677
+ - lib/datadog_api_client/v1/models/distribution_points_content_encoding.rb
678
+ - lib/datadog_api_client/v1/models/distribution_points_payload.rb
679
+ - lib/datadog_api_client/v1/models/distribution_points_series.rb
680
+ - lib/datadog_api_client/v1/models/distribution_points_type.rb
661
681
  - lib/datadog_api_client/v1/models/distribution_widget_definition.rb
662
682
  - lib/datadog_api_client/v1/models/distribution_widget_definition_type.rb
683
+ - lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb
684
+ - lib/datadog_api_client/v1/models/distribution_widget_histogram_request_type.rb
663
685
  - lib/datadog_api_client/v1/models/distribution_widget_request.rb
664
686
  - lib/datadog_api_client/v1/models/distribution_widget_x_axis.rb
665
687
  - lib/datadog_api_client/v1/models/distribution_widget_y_axis.rb
@@ -754,6 +776,7 @@ files:
754
776
  - lib/datadog_api_client/v1/models/ip_prefixes_logs.rb
755
777
  - lib/datadog_api_client/v1/models/ip_prefixes_process.rb
756
778
  - lib/datadog_api_client/v1/models/ip_prefixes_synthetics.rb
779
+ - lib/datadog_api_client/v1/models/ip_prefixes_synthetics_private_locations.rb
757
780
  - lib/datadog_api_client/v1/models/ip_prefixes_webhooks.rb
758
781
  - lib/datadog_api_client/v1/models/ip_ranges.rb
759
782
  - lib/datadog_api_client/v1/models/list_stream_column.rb
@@ -916,6 +939,7 @@ files:
916
939
  - lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb
917
940
  - lib/datadog_api_client/v1/models/notebooks_response_meta.rb
918
941
  - lib/datadog_api_client/v1/models/notebooks_response_page.rb
942
+ - lib/datadog_api_client/v1/models/org_downgraded_response.rb
919
943
  - lib/datadog_api_client/v1/models/organization.rb
920
944
  - lib/datadog_api_client/v1/models/organization_billing.rb
921
945
  - lib/datadog_api_client/v1/models/organization_create_body.rb
@@ -946,6 +970,15 @@ files:
946
970
  - lib/datadog_api_client/v1/models/scatterplot_table_request.rb
947
971
  - lib/datadog_api_client/v1/models/scatterplot_widget_aggregator.rb
948
972
  - lib/datadog_api_client/v1/models/scatterplot_widget_formula.rb
973
+ - lib/datadog_api_client/v1/models/search_slo_response.rb
974
+ - lib/datadog_api_client/v1/models/search_slo_response_data.rb
975
+ - lib/datadog_api_client/v1/models/search_slo_response_data_attributes.rb
976
+ - lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets.rb
977
+ - lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_int.rb
978
+ - lib/datadog_api_client/v1/models/search_slo_response_data_attributes_facets_object_string.rb
979
+ - lib/datadog_api_client/v1/models/search_slo_response_links.rb
980
+ - lib/datadog_api_client/v1/models/search_slo_response_meta.rb
981
+ - lib/datadog_api_client/v1/models/search_slo_response_meta_page.rb
949
982
  - lib/datadog_api_client/v1/models/series.rb
950
983
  - lib/datadog_api_client/v1/models/service_check.rb
951
984
  - lib/datadog_api_client/v1/models/service_check_status.rb
@@ -1099,6 +1132,7 @@ files:
1099
1132
  - lib/datadog_api_client/v1/models/synthetics_step_detail.rb
1100
1133
  - lib/datadog_api_client/v1/models/synthetics_step_detail_warning.rb
1101
1134
  - lib/datadog_api_client/v1/models/synthetics_step_type.rb
1135
+ - lib/datadog_api_client/v1/models/synthetics_test_ci_options.rb
1102
1136
  - lib/datadog_api_client/v1/models/synthetics_test_config.rb
1103
1137
  - lib/datadog_api_client/v1/models/synthetics_test_details.rb
1104
1138
  - lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb
@@ -1304,6 +1338,7 @@ files:
1304
1338
  - lib/datadog_api_client/v2/api/logs_archives_api.rb
1305
1339
  - lib/datadog_api_client/v2/api/logs_metrics_api.rb
1306
1340
  - lib/datadog_api_client/v2/api/metrics_api.rb
1341
+ - lib/datadog_api_client/v2/api/opsgenie_integration_api.rb
1307
1342
  - lib/datadog_api_client/v2/api/organizations_api.rb
1308
1343
  - lib/datadog_api_client/v2/api/processes_api.rb
1309
1344
  - lib/datadog_api_client/v2/api/roles_api.rb
@@ -1595,6 +1630,18 @@ files:
1595
1630
  - lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations_response.rb
1596
1631
  - lib/datadog_api_client/v2/models/nullable_relationship_to_user.rb
1597
1632
  - lib/datadog_api_client/v2/models/nullable_relationship_to_user_data.rb
1633
+ - lib/datadog_api_client/v2/models/opsgenie_service_create_attributes.rb
1634
+ - lib/datadog_api_client/v2/models/opsgenie_service_create_data.rb
1635
+ - lib/datadog_api_client/v2/models/opsgenie_service_create_request.rb
1636
+ - lib/datadog_api_client/v2/models/opsgenie_service_region_type.rb
1637
+ - lib/datadog_api_client/v2/models/opsgenie_service_response.rb
1638
+ - lib/datadog_api_client/v2/models/opsgenie_service_response_attributes.rb
1639
+ - lib/datadog_api_client/v2/models/opsgenie_service_response_data.rb
1640
+ - lib/datadog_api_client/v2/models/opsgenie_service_type.rb
1641
+ - lib/datadog_api_client/v2/models/opsgenie_service_update_attributes.rb
1642
+ - lib/datadog_api_client/v2/models/opsgenie_service_update_data.rb
1643
+ - lib/datadog_api_client/v2/models/opsgenie_service_update_request.rb
1644
+ - lib/datadog_api_client/v2/models/opsgenie_services_response.rb
1598
1645
  - lib/datadog_api_client/v2/models/organization.rb
1599
1646
  - lib/datadog_api_client/v2/models/organization_attributes.rb
1600
1647
  - lib/datadog_api_client/v2/models/organizations_type.rb
@@ -1718,6 +1765,8 @@ files:
1718
1765
  - lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options.rb
1719
1766
  - lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_forget_after.rb
1720
1767
  - lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_duration.rb
1768
+ - lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_method.rb
1769
+ - lib/datadog_api_client/v2/models/security_monitoring_rule_new_value_options_learning_threshold.rb
1721
1770
  - lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb
1722
1771
  - lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb
1723
1772
  - lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb