datadog_api_client 2.13.0 → 2.15.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.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +346 -36
  4. data/.generator/schemas/v2/openapi.yaml +436 -174
  5. data/.generator/src/generator/formatter.py +34 -29
  6. data/.generator/src/generator/openapi.py +3 -1
  7. data/.generator/src/generator/templates/api.j2 +8 -2
  8. data/.generator/src/generator/templates/api_client.j2 +81 -53
  9. data/.generator/src/generator/templates/configuration.j2 +21 -0
  10. data/.pre-commit-config.yaml +2 -2
  11. data/CHANGELOG.md +57 -0
  12. data/README.md +23 -0
  13. data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
  14. data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
  15. data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
  16. data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
  17. data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
  18. data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
  19. data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
  20. data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
  21. data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
  22. data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
  23. data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
  24. data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
  25. data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
  26. data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
  27. data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +2 -0
  28. data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
  29. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
  30. data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
  31. data/examples/v2/downtimes/CancelDowntime.rb +0 -3
  32. data/examples/v2/downtimes/CreateDowntime.rb +0 -3
  33. data/examples/v2/downtimes/GetDowntime.rb +0 -3
  34. data/examples/v2/downtimes/ListDowntimes.rb +0 -3
  35. data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
  36. data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
  37. data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
  38. data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
  39. data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
  40. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
  41. data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
  42. data/examples/v2/teams/CreateTeam.rb +2 -2
  43. data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
  44. data/examples/v2/teams/GetUserMemberships.rb +8 -0
  45. data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
  46. data/examples/v2/teams/UpdateTeam.rb +9 -0
  47. data/examples/v2/users/ListUsers_4075885358.rb +8 -0
  48. data/lib/datadog_api_client/api_client.rb +81 -53
  49. data/lib/datadog_api_client/configuration.rb +22 -6
  50. data/lib/datadog_api_client/inflector.rb +11 -1
  51. data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
  52. data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
  53. data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
  54. data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +23 -2
  55. data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -10
  56. data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
  57. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
  58. data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
  59. data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
  60. data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
  61. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +4 -0
  62. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  63. data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
  64. data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
  65. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
  66. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +81 -1
  67. data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
  68. data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
  69. data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
  70. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
  71. data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
  72. data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
  73. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +44 -4
  74. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +44 -4
  75. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +44 -4
  76. data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
  77. data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
  78. data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -7
  79. data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
  80. data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
  81. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  82. data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
  83. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  84. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  85. data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
  86. data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
  87. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +6 -6
  88. data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
  89. data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
  90. data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
  91. data/lib/datadog_api_client/v2/api/teams_api.rb +87 -0
  92. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
  93. data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
  94. data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
  95. data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
  96. data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
  97. data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
  98. data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
  99. data/lib/datadog_api_client/v2/models/{team_data.rb → ci_app_pipeline_event_attributes.rb} +24 -62
  100. data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
  101. data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
  102. data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
  103. data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
  104. data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
  105. data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
  106. data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +25 -1
  107. data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
  108. data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +19 -1
  109. data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
  110. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
  111. data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
  112. data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
  113. data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
  114. data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
  117. data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
  118. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
  119. data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
  120. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
  121. data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
  122. data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
  123. data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
  124. data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
  125. data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
  126. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
  127. data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
  128. data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
  129. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
  130. data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
  131. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
  132. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
  133. data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
  134. data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
  135. data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
  136. data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
  137. data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
  138. data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
  139. data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
  140. data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
  141. data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
  142. data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
  143. data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
  144. data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
  145. data/lib/datadog_api_client/version.rb +1 -1
  146. data/spec/configuration_spec.rb +17 -0
  147. data/spec/retry_spec.rb +44 -0
  148. metadata +28 -3
@@ -21,28 +21,22 @@ module DatadogAPIClient::V2
21
21
  class CIAppEventAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # JSON object of attributes from CI Visibility events.
24
+ # JSON object of attributes from CI Visibility test events.
25
25
  attr_accessor :attributes
26
26
 
27
- # The name of the application or service generating CI Visibility events.
28
- # It is used to switch from CI Visibility to APM, so make sure you define the same
29
- # value when you use both products.
30
- attr_accessor :service
31
-
32
27
  # Array of tags associated with your event.
33
28
  attr_accessor :tags
34
29
 
35
- # Timestamp of your event.
36
- attr_accessor :timestamp
30
+ # Test run level.
31
+ attr_accessor :test_level
37
32
 
38
33
  # Attribute mapping from ruby-style variable name to JSON key.
39
34
  # @!visibility private
40
35
  def self.attribute_map
41
36
  {
42
37
  :'attributes' => :'attributes',
43
- :'service' => :'service',
44
38
  :'tags' => :'tags',
45
- :'timestamp' => :'timestamp'
39
+ :'test_level' => :'test_level'
46
40
  }
47
41
  end
48
42
 
@@ -51,9 +45,8 @@ module DatadogAPIClient::V2
51
45
  def self.openapi_types
52
46
  {
53
47
  :'attributes' => :'Hash<String, Object>',
54
- :'service' => :'String',
55
48
  :'tags' => :'Array<String>',
56
- :'timestamp' => :'Time'
49
+ :'test_level' => :'CIAppTestLevel'
57
50
  }
58
51
  end
59
52
 
@@ -77,18 +70,14 @@ module DatadogAPIClient::V2
77
70
  self.attributes = attributes[:'attributes']
78
71
  end
79
72
 
80
- if attributes.key?(:'service')
81
- self.service = attributes[:'service']
82
- end
83
-
84
73
  if attributes.key?(:'tags')
85
74
  if (value = attributes[:'tags']).is_a?(Array)
86
75
  self.tags = value
87
76
  end
88
77
  end
89
78
 
90
- if attributes.key?(:'timestamp')
91
- self.timestamp = attributes[:'timestamp']
79
+ if attributes.key?(:'test_level')
80
+ self.test_level = attributes[:'test_level']
92
81
  end
93
82
  end
94
83
 
@@ -99,16 +88,15 @@ module DatadogAPIClient::V2
99
88
  return true if self.equal?(o)
100
89
  self.class == o.class &&
101
90
  attributes == o.attributes &&
102
- service == o.service &&
103
91
  tags == o.tags &&
104
- timestamp == o.timestamp
92
+ test_level == o.test_level
105
93
  end
106
94
 
107
95
  # Calculates hash code according to all attributes.
108
96
  # @return [Integer] Hash code
109
97
  # @!visibility private
110
98
  def hash
111
- [attributes, service, tags, timestamp].hash
99
+ [attributes, tags, test_level].hash
112
100
  end
113
101
  end
114
102
  end
@@ -44,7 +44,7 @@ module DatadogAPIClient::V2
44
44
  # @!visibility private
45
45
  def self.openapi_types
46
46
  {
47
- :'attributes' => :'CIAppEventAttributes',
47
+ :'attributes' => :'CIAppPipelineEventAttributes',
48
48
  :'id' => :'String',
49
49
  :'type' => :'CIAppPipelineEventTypeName'
50
50
  }
@@ -17,26 +17,26 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # A team
21
- class TeamData
20
+ # JSON object containing all event attributes and their associated values.
21
+ class CIAppPipelineEventAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # Team attributes
25
- attr_reader :attributes
24
+ # JSON object of attributes from CI Visibility pipeline events.
25
+ attr_accessor :attributes
26
26
 
27
- # The team's identifier
28
- attr_reader :id
27
+ # Pipeline execution level.
28
+ attr_accessor :ci_level
29
29
 
30
- # Team type
31
- attr_reader :type
30
+ # Array of tags associated with your event.
31
+ attr_accessor :tags
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  # @!visibility private
35
35
  def self.attribute_map
36
36
  {
37
37
  :'attributes' => :'attributes',
38
- :'id' => :'id',
39
- :'type' => :'type'
38
+ :'ci_level' => :'ci_level',
39
+ :'tags' => :'tags'
40
40
  }
41
41
  end
42
42
 
@@ -44,9 +44,9 @@ module DatadogAPIClient::V2
44
44
  # @!visibility private
45
45
  def self.openapi_types
46
46
  {
47
- :'attributes' => :'TeamAttributes',
48
- :'id' => :'String',
49
- :'type' => :'TeamType'
47
+ :'attributes' => :'Hash<String, Object>',
48
+ :'ci_level' => :'CIAppPipelineLevel',
49
+ :'tags' => :'Array<String>'
50
50
  }
51
51
  end
52
52
 
@@ -55,13 +55,13 @@ module DatadogAPIClient::V2
55
55
  # @!visibility private
56
56
  def initialize(attributes = {})
57
57
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamData` initialize method"
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppPipelineEventAttributes` initialize method"
59
59
  end
60
60
 
61
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
62
  attributes = attributes.each_with_object({}) { |(k, v), h|
63
63
  if (!self.class.attribute_map.key?(k.to_sym))
64
- fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CIAppPipelineEventAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
65
  end
66
66
  h[k.to_sym] = v
67
67
  }
@@ -70,53 +70,15 @@ module DatadogAPIClient::V2
70
70
  self.attributes = attributes[:'attributes']
71
71
  end
72
72
 
73
- if attributes.key?(:'id')
74
- self.id = attributes[:'id']
73
+ if attributes.key?(:'ci_level')
74
+ self.ci_level = attributes[:'ci_level']
75
75
  end
76
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 @attributes.nil?
87
- return false if @id.nil?
88
- return false if @type.nil?
89
- true
90
- end
91
-
92
- # Custom attribute writer method with validation
93
- # @param attributes [Object] Object to be assigned
94
- # @!visibility private
95
- def attributes=(attributes)
96
- if attributes.nil?
97
- fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
98
- end
99
- @attributes = attributes
100
- end
101
-
102
- # Custom attribute writer method with validation
103
- # @param id [Object] Object to be assigned
104
- # @!visibility private
105
- def id=(id)
106
- if id.nil?
107
- fail ArgumentError, 'invalid value for "id", id cannot be nil.'
108
- end
109
- @id = id
110
- end
111
-
112
- # Custom attribute writer method with validation
113
- # @param type [Object] Object to be assigned
114
- # @!visibility private
115
- def type=(type)
116
- if type.nil?
117
- fail ArgumentError, 'invalid value for "type", type cannot be nil.'
77
+ if attributes.key?(:'tags')
78
+ if (value = attributes[:'tags']).is_a?(Array)
79
+ self.tags = value
80
+ end
118
81
  end
119
- @type = type
120
82
  end
121
83
 
122
84
  # Checks equality by comparing each attribute.
@@ -126,15 +88,15 @@ module DatadogAPIClient::V2
126
88
  return true if self.equal?(o)
127
89
  self.class == o.class &&
128
90
  attributes == o.attributes &&
129
- id == o.id &&
130
- type == o.type
91
+ ci_level == o.ci_level &&
92
+ tags == o.tags
131
93
  end
132
94
 
133
95
  # Calculates hash code according to all attributes.
134
96
  # @return [Integer] Hash code
135
97
  # @!visibility private
136
98
  def hash
137
- [attributes, id, type].hash
99
+ [attributes, ci_level, tags].hash
138
100
  end
139
101
  end
140
102
  end
@@ -0,0 +1,30 @@
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
+ # Pipeline execution level.
21
+ class CIAppPipelineLevel
22
+ include BaseEnumModel
23
+
24
+ PIPELINE = "pipeline".freeze
25
+ STAGE = "stage".freeze
26
+ JOB = "job".freeze
27
+ STEP = "step".freeze
28
+ CUSTOM = "custom".freeze
29
+ end
30
+ end
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
25
25
  attr_accessor :from
26
26
 
27
- # The search query following the Log search syntax.
27
+ # The search query following the CI Visibility Explorer search syntax.
28
28
  attr_accessor :query
29
29
 
30
30
  # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
@@ -0,0 +1,29 @@
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
+ # Test run level.
21
+ class CIAppTestLevel
22
+ include BaseEnumModel
23
+
24
+ SESSION = "session".freeze
25
+ MODULE = "module".freeze
26
+ SUITE = "suite".freeze
27
+ TEST = "test".freeze
28
+ end
29
+ end
@@ -46,7 +46,7 @@ module DatadogAPIClient::V2
46
46
  {
47
47
  :'data' => :'CIAppTestsAggregationBucketsResponse',
48
48
  :'links' => :'CIAppResponseLinks',
49
- :'meta' => :'CIAppResponseMetadata'
49
+ :'meta' => :'CIAppResponseMetadataWithPagination'
50
50
  }
51
51
  end
52
52
 
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
24
24
  # The minimum time for the requested events; supports date, math, and regular timestamps (in milliseconds).
25
25
  attr_accessor :from
26
26
 
27
- # The search query following the Log search syntax.
27
+ # The search query following the CI Visibility Explorer search syntax.
28
28
  attr_accessor :query
29
29
 
30
30
  # The maximum time for the requested events, supports date, math, and regular timestamps (in milliseconds).
@@ -21,6 +21,12 @@ module DatadogAPIClient::V2
21
21
  class CloudConfigurationRuleComplianceSignalOptions
22
22
  include BaseGenericModel
23
23
 
24
+ # The default activation status.
25
+ attr_accessor :default_activation_status
26
+
27
+ # The default group by fields.
28
+ attr_accessor :default_group_by_fields
29
+
24
30
  # Whether signals will be sent.
25
31
  attr_accessor :user_activation_status
26
32
 
@@ -31,6 +37,8 @@ module DatadogAPIClient::V2
31
37
  # @!visibility private
32
38
  def self.attribute_map
33
39
  {
40
+ :'default_activation_status' => :'defaultActivationStatus',
41
+ :'default_group_by_fields' => :'defaultGroupByFields',
34
42
  :'user_activation_status' => :'userActivationStatus',
35
43
  :'user_group_by_fields' => :'userGroupByFields'
36
44
  }
@@ -40,6 +48,8 @@ module DatadogAPIClient::V2
40
48
  # @!visibility private
41
49
  def self.openapi_types
42
50
  {
51
+ :'default_activation_status' => :'Boolean',
52
+ :'default_group_by_fields' => :'Array<String>',
43
53
  :'user_activation_status' => :'Boolean',
44
54
  :'user_group_by_fields' => :'Array<String>'
45
55
  }
@@ -49,6 +59,8 @@ module DatadogAPIClient::V2
49
59
  # @!visibility private
50
60
  def self.openapi_nullable
51
61
  Set.new([
62
+ :'default_activation_status',
63
+ :'default_group_by_fields',
52
64
  :'user_activation_status',
53
65
  :'user_group_by_fields',
54
66
  ])
@@ -70,6 +82,16 @@ module DatadogAPIClient::V2
70
82
  h[k.to_sym] = v
71
83
  }
72
84
 
85
+ if attributes.key?(:'default_activation_status')
86
+ self.default_activation_status = attributes[:'default_activation_status']
87
+ end
88
+
89
+ if attributes.key?(:'default_group_by_fields')
90
+ if (value = attributes[:'default_group_by_fields']).is_a?(Array)
91
+ self.default_group_by_fields = value
92
+ end
93
+ end
94
+
73
95
  if attributes.key?(:'user_activation_status')
74
96
  self.user_activation_status = attributes[:'user_activation_status']
75
97
  end
@@ -87,6 +109,8 @@ module DatadogAPIClient::V2
87
109
  def ==(o)
88
110
  return true if self.equal?(o)
89
111
  self.class == o.class &&
112
+ default_activation_status == o.default_activation_status &&
113
+ default_group_by_fields == o.default_group_by_fields &&
90
114
  user_activation_status == o.user_activation_status &&
91
115
  user_group_by_fields == o.user_group_by_fields
92
116
  end
@@ -95,7 +119,7 @@ module DatadogAPIClient::V2
95
119
  # @return [Integer] Hash code
96
120
  # @!visibility private
97
121
  def hash
98
- [user_activation_status, user_group_by_fields].hash
122
+ [default_activation_status, default_group_by_fields, user_activation_status, user_group_by_fields].hash
99
123
  end
100
124
  end
101
125
  end
@@ -51,6 +51,9 @@ module DatadogAPIClient::V2
51
51
  # Popularity of the dashboard.
52
52
  attr_reader :popularity
53
53
 
54
+ # List of team names representing ownership of a dashboard.
55
+ attr_reader :tags
56
+
54
57
  # Title of the dashboard.
55
58
  attr_accessor :title
56
59
 
@@ -74,6 +77,7 @@ module DatadogAPIClient::V2
74
77
  :'is_shared' => :'is_shared',
75
78
  :'modified' => :'modified',
76
79
  :'popularity' => :'popularity',
80
+ :'tags' => :'tags',
77
81
  :'title' => :'title',
78
82
  :'type' => :'type',
79
83
  :'url' => :'url'
@@ -94,6 +98,7 @@ module DatadogAPIClient::V2
94
98
  :'is_shared' => :'Boolean',
95
99
  :'modified' => :'Time',
96
100
  :'popularity' => :'Integer',
101
+ :'tags' => :'Array<String>',
97
102
  :'title' => :'String',
98
103
  :'type' => :'DashboardType',
99
104
  :'url' => :'String'
@@ -106,6 +111,7 @@ module DatadogAPIClient::V2
106
111
  Set.new([
107
112
  :'icon',
108
113
  :'integration_id',
114
+ :'tags',
109
115
  ])
110
116
  end
111
117
 
@@ -165,6 +171,12 @@ module DatadogAPIClient::V2
165
171
  self.popularity = attributes[:'popularity']
166
172
  end
167
173
 
174
+ if attributes.key?(:'tags')
175
+ if (value = attributes[:'tags']).is_a?(Array)
176
+ self.tags = value
177
+ end
178
+ end
179
+
168
180
  if attributes.key?(:'title')
169
181
  self.title = attributes[:'title']
170
182
  end
@@ -184,6 +196,7 @@ module DatadogAPIClient::V2
184
196
  def valid?
185
197
  return false if @id.nil?
186
198
  return false if !@popularity.nil? && @popularity > 5
199
+ return false if !@tags.nil? && @tags.length > 5
187
200
  return false if @type.nil?
188
201
  true
189
202
  end
@@ -208,6 +221,16 @@ module DatadogAPIClient::V2
208
221
  @popularity = popularity
209
222
  end
210
223
 
224
+ # Custom attribute writer method with validation
225
+ # @param tags [Object] Object to be assigned
226
+ # @!visibility private
227
+ def tags=(tags)
228
+ if !tags.nil? && tags.length > 5
229
+ fail ArgumentError, 'invalid value for "tags", number of items must be less than or equal to 5.'
230
+ end
231
+ @tags = tags
232
+ end
233
+
211
234
  # Custom attribute writer method with validation
212
235
  # @param type [Object] Object to be assigned
213
236
  # @!visibility private
@@ -234,6 +257,7 @@ module DatadogAPIClient::V2
234
257
  is_shared == o.is_shared &&
235
258
  modified == o.modified &&
236
259
  popularity == o.popularity &&
260
+ tags == o.tags &&
237
261
  title == o.title &&
238
262
  type == o.type &&
239
263
  url == o.url
@@ -243,7 +267,7 @@ module DatadogAPIClient::V2
243
267
  # @return [Integer] Hash code
244
268
  # @!visibility private
245
269
  def hash
246
- [author, created, icon, id, integration_id, is_favorite, is_read_only, is_shared, modified, popularity, title, type, url].hash
270
+ [author, created, icon, id, integration_id, is_favorite, is_read_only, is_shared, modified, popularity, tags, title, type, url].hash
247
271
  end
248
272
  end
249
273
  end
@@ -40,7 +40,7 @@ module DatadogAPIClient::V2
40
40
  # @!visibility private
41
41
  def self.openapi_types
42
42
  {
43
- :'id' => :'Integer',
43
+ :'id' => :'String',
44
44
  :'type' => :'DowntimeIncludedMonitorType'
45
45
  }
46
46
  end
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
25
25
  attr_accessor :_end
26
26
 
27
27
  # ISO-8601 Datetime to start the downtime.
28
- attr_accessor :start
28
+ attr_reader :start
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  # @!visibility private
@@ -78,6 +78,24 @@ module DatadogAPIClient::V2
78
78
  end
79
79
  end
80
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 @start.nil?
86
+ true
87
+ end
88
+
89
+ # Custom attribute writer method with validation
90
+ # @param start [Object] Object to be assigned
91
+ # @!visibility private
92
+ def start=(start)
93
+ if start.nil?
94
+ fail ArgumentError, 'invalid value for "start", start cannot be nil.'
95
+ end
96
+ @start = start
97
+ end
98
+
81
99
  # Checks equality by comparing each attribute.
82
100
  # @param o [Object] Object to be compared
83
101
  # @!visibility private
@@ -18,6 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
20
  # Message for specifying limits to the number of values returned by a query.
21
+ # This limit is only for scalar queries and has no effect on timeseries queries.
21
22
  class FormulaLimit
22
23
  include BaseGenericModel
23
24
 
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
33
33
  # Name of the application key.
34
34
  attr_accessor :name
35
35
 
36
- # Array of scopes to grant the application key. This feature is in private beta, please contact Datadog support to enable scopes for your application keys.
36
+ # Array of scopes to grant the application key.
37
37
  attr_accessor :scopes
38
38
 
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,7 +31,7 @@ module DatadogAPIClient::V2
31
31
  attr_accessor :group_by
32
32
 
33
33
  # Global query options that are used during the query.
34
- # Note: You should only supply timezone or time offset but not both otherwise the query will fail.
34
+ # Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
35
35
  attr_accessor :options
36
36
 
37
37
  # Paging settings
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class LogsAggregateRequestPage
22
22
  include BaseGenericModel
23
23
 
24
- # The returned paging point to use to get the next results
24
+ # The returned paging point to use to get the next results. Note: at most 1000 results can be paged.
25
25
  attr_accessor :cursor
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -25,10 +25,11 @@ module DatadogAPIClient::V2
25
25
  attr_reader :facet
26
26
 
27
27
  # Used to perform a histogram computation (only for measure facets).
28
- # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
28
+ # Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
29
29
  attr_accessor :histogram
30
30
 
31
- # The maximum buckets to return for this group by
31
+ # The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed.
32
+ # If grouping by multiple facets, the product of limits must not exceed 10000.
32
33
  attr_accessor :limit
33
34
 
34
35
  # The value to use for logs that don't have the facet used to group by
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
20
  # Used to perform a histogram computation (only for measure facets).
21
- # Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
21
+ # Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
22
22
  class LogsGroupByHistogram
23
23
  include BaseGenericModel
24
24
 
@@ -25,7 +25,7 @@ module DatadogAPIClient::V2
25
25
  attr_accessor :filter
26
26
 
27
27
  # Global query options that are used during the query.
28
- # Note: You should only supply timezone or time offset but not both otherwise the query will fail.
28
+ # Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
29
29
  attr_accessor :options
30
30
 
31
31
  # Paging attributes for listing logs.
@@ -18,7 +18,7 @@ require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
20
  # Global query options that are used during the query.
21
- # Note: You should only supply timezone or time offset but not both otherwise the query will fail.
21
+ # Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
22
22
  class LogsQueryOptions
23
23
  include BaseGenericModel
24
24
 
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class LogsResponseMetadataPage
22
22
  include BaseGenericModel
23
23
 
24
- # The cursor to use to get the next results, if any. To make the next request, use the same.
24
+ # The cursor to use to get the next results, if any. To make the next request, use the same
25
25
  # parameters with the addition of the `page[cursor]`.
26
26
  attr_accessor :after
27
27