datadog_api_client 2.21.0 → 2.22.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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +4 -4
  3. data/.generator/schemas/v1/openapi.yaml +180 -637
  4. data/.generator/schemas/v2/openapi.yaml +515 -33
  5. data/.github/workflows/prepare_release.yml +2 -2
  6. data/.github/workflows/publish.yml +2 -2
  7. data/.github/workflows/release.yml +2 -2
  8. data/.github/workflows/test.yml +1 -1
  9. data/CHANGELOG.md +24 -0
  10. data/Gemfile +1 -1
  11. data/examples/v1/aws-integration/CreateAWSAccount.rb +1 -1
  12. data/examples/v1/aws-integration/CreateNewAWSExternalID.rb +1 -0
  13. data/examples/v1/aws-integration/UpdateAWSAccount.rb +1 -1
  14. data/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +118 -0
  15. data/examples/v1/synthetics/UpdateBrowserTest.rb +3 -0
  16. data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +2 -2
  17. data/examples/v2/authn-mappings/CreateAuthNMapping.rb +1 -1
  18. data/examples/v2/authn-mappings/UpdateAuthNMapping.rb +1 -1
  19. data/examples/v2/cloud-workload-security/CreateCSMThreatsAgentRule.rb +1 -1
  20. data/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +1 -1
  21. data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +1 -1
  22. data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +1 -1
  23. data/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +1 -1
  24. data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +1 -1
  25. data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +1 -1
  26. data/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +1 -1
  27. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +1 -1
  28. data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +1 -1
  29. data/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +4 -0
  30. data/examples/v2/metrics/QueryScalarData_3112571352.rb +2 -2
  31. data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +3 -3
  32. data/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +19 -0
  33. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +42 -0
  34. data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +4 -0
  35. data/examples/v2/service-level-objectives/CreateSLOReportJob.rb +20 -0
  36. data/examples/v2/service-level-objectives/GetSLOReport.rb +8 -0
  37. data/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +11 -0
  38. data/lib/datadog_api_client/configuration.rb +3 -0
  39. data/lib/datadog_api_client/inflector.rb +20 -7
  40. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +104 -131
  41. data/lib/datadog_api_client/v1/models/aws_account.rb +12 -2
  42. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
  43. data/lib/datadog_api_client/v1/models/monitor_options.rb +4 -1
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
  45. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +41 -1
  46. data/lib/datadog_api_client/v1/models/series.rb +1 -1
  47. data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +14 -2
  48. data/lib/datadog_api_client/v1/models/slo_time_slice_interval.rb +29 -0
  49. data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +1 -1
  50. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +13 -1
  51. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb +175 -0
  52. data/lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb +2 -0
  53. data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +6 -0
  54. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  55. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +67 -0
  56. data/lib/datadog_api_client/v2/api/service_level_objectives_api.rb +245 -0
  57. data/lib/datadog_api_client/v2/api/usage_metering_api.rb +12 -3
  58. data/lib/datadog_api_client/v2/models/authn_mapping_create_data.rb +1 -1
  59. data/lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb +37 -54
  60. data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +2 -1
  61. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb +98 -0
  62. data/lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb +98 -0
  63. data/lib/datadog_api_client/v2/models/authn_mapping_relationships.rb +14 -4
  64. data/lib/datadog_api_client/{v1/models/usage_attribution_metadata.rb → v2/models/authn_mapping_team.rb} +31 -23
  65. data/lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb +212 -0
  66. data/lib/datadog_api_client/v2/models/authn_mapping_update_data.rb +1 -1
  67. data/lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb +37 -54
  68. data/lib/datadog_api_client/v2/models/custom_destination_type.rb +1 -1
  69. data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
  70. data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
  71. data/lib/datadog_api_client/v2/models/relationship_to_team.rb +80 -0
  72. data/lib/datadog_api_client/{v1/models/usage_attribution_response.rb → v2/models/relationship_to_team_data.rb} +21 -23
  73. data/lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb +183 -0
  74. data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +1 -1
  75. data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +1 -1
  76. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_create_payload.rb +1 -1
  77. data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +1 -1
  78. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +1 -1
  79. data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +1 -1
  80. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_attributes.rb +11 -1
  81. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_create_attributes.rb +13 -14
  82. data/lib/datadog_api_client/v2/models/security_monitoring_suppression_update_attributes.rb +11 -1
  83. data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +13 -1
  84. data/lib/datadog_api_client/v2/models/slo_report_create_request.rb +98 -0
  85. data/lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb +160 -0
  86. data/lib/datadog_api_client/{v1/models/usage_attribution_pagination.rb → v2/models/slo_report_create_request_data.rb} +29 -51
  87. data/lib/datadog_api_client/v2/models/slo_report_interval.rb +27 -0
  88. data/lib/datadog_api_client/v2/models/slo_report_post_response.rb +80 -0
  89. data/lib/datadog_api_client/v2/models/slo_report_post_response_data.rb +90 -0
  90. data/lib/datadog_api_client/v2/models/slo_report_status.rb +29 -0
  91. data/lib/datadog_api_client/v2/models/slo_report_status_get_response.rb +80 -0
  92. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb +80 -0
  93. data/lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb +100 -0
  94. data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +8 -0
  95. data/lib/datadog_api_client/v2/models/user_teams_response.rb +13 -1
  96. data/lib/datadog_api_client/version.rb +1 -1
  97. metadata +51 -33
  98. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -9
  99. data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +0 -152
  100. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +0 -63
  101. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +0 -74
  102. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +0 -590
@@ -0,0 +1,80 @@
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 SLO report status response.
21
+ class SLOReportStatusGetResponse
22
+ include BaseGenericModel
23
+
24
+ # The data portion of the SLO report status response.
25
+ attr_accessor :data
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'data' => :'data'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'data' => :'SLOReportStatusGetResponseData'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportStatusGetResponse` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportStatusGetResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'data')
60
+ self.data = attributes[:'data']
61
+ end
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param o [Object] Object to be compared
66
+ # @!visibility private
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ data == o.data
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Integer] Hash code
75
+ # @!visibility private
76
+ def hash
77
+ [data].hash
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,80 @@
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 attributes portion of the SLO report status response.
21
+ class SLOReportStatusGetResponseAttributes
22
+ include BaseGenericModel
23
+
24
+ # The status of the SLO report job.
25
+ attr_accessor :status
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ # @!visibility private
29
+ def self.attribute_map
30
+ {
31
+ :'status' => :'status'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ # @!visibility private
37
+ def self.openapi_types
38
+ {
39
+ :'status' => :'SLOReportStatus'
40
+ }
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param attributes [Hash] Model attributes in the form of hash
45
+ # @!visibility private
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SLOReportStatusGetResponseAttributes` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SLOReportStatusGetResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'status')
60
+ self.status = attributes[:'status']
61
+ end
62
+ end
63
+
64
+ # Checks equality by comparing each attribute.
65
+ # @param o [Object] Object to be compared
66
+ # @!visibility private
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ status == o.status
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Integer] Hash code
75
+ # @!visibility private
76
+ def hash
77
+ [status].hash
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,100 @@
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 data portion of the SLO report status response.
21
+ class SLOReportStatusGetResponseData
22
+ include BaseGenericModel
23
+
24
+ # The attributes portion of the SLO report status response.
25
+ attr_accessor :attributes
26
+
27
+ # The ID of the report job.
28
+ attr_accessor :id
29
+
30
+ # The type of ID.
31
+ attr_accessor :type
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ # @!visibility private
35
+ def self.attribute_map
36
+ {
37
+ :'attributes' => :'attributes',
38
+ :'id' => :'id',
39
+ :'type' => :'type'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ # @!visibility private
45
+ def self.openapi_types
46
+ {
47
+ :'attributes' => :'SLOReportStatusGetResponseAttributes',
48
+ :'id' => :'String',
49
+ :'type' => :'String'
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::V2::SLOReportStatusGetResponseData` 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::V2::SLOReportStatusGetResponseData`. 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?(:'attributes')
70
+ self.attributes = attributes[:'attributes']
71
+ end
72
+
73
+ if attributes.key?(:'id')
74
+ self.id = attributes[:'id']
75
+ end
76
+
77
+ if attributes.key?(:'type')
78
+ self.type = attributes[:'type']
79
+ end
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param o [Object] Object to be compared
84
+ # @!visibility private
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ attributes == o.attributes &&
89
+ id == o.id &&
90
+ type == o.type
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ # @!visibility private
96
+ def hash
97
+ [attributes, id, type].hash
98
+ end
99
+ end
100
+ end
@@ -53,6 +53,14 @@ module DatadogAPIClient::V2
53
53
  }
54
54
  end
55
55
 
56
+ # List of attributes with nullable: true
57
+ # @!visibility private
58
+ def self.openapi_nullable
59
+ Set.new([
60
+ :'unit',
61
+ ])
62
+ end
63
+
56
64
  # Initializes the object
57
65
  # @param attributes [Hash] Model attributes in the form of hash
58
66
  # @!visibility private
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
24
24
  # Team memberships response data
25
25
  attr_accessor :data
26
26
 
27
+ # Resources related to the team memberships
28
+ attr_accessor :included
29
+
27
30
  # Teams response links.
28
31
  attr_accessor :links
29
32
 
@@ -35,6 +38,7 @@ module DatadogAPIClient::V2
35
38
  def self.attribute_map
36
39
  {
37
40
  :'data' => :'data',
41
+ :'included' => :'included',
38
42
  :'links' => :'links',
39
43
  :'meta' => :'meta'
40
44
  }
@@ -45,6 +49,7 @@ module DatadogAPIClient::V2
45
49
  def self.openapi_types
46
50
  {
47
51
  :'data' => :'Array<UserTeam>',
52
+ :'included' => :'Array<UserTeamIncluded>',
48
53
  :'links' => :'TeamsResponseLinks',
49
54
  :'meta' => :'TeamsResponseMeta'
50
55
  }
@@ -72,6 +77,12 @@ module DatadogAPIClient::V2
72
77
  end
73
78
  end
74
79
 
80
+ if attributes.key?(:'included')
81
+ if (value = attributes[:'included']).is_a?(Array)
82
+ self.included = value
83
+ end
84
+ end
85
+
75
86
  if attributes.key?(:'links')
76
87
  self.links = attributes[:'links']
77
88
  end
@@ -88,6 +99,7 @@ module DatadogAPIClient::V2
88
99
  return true if self.equal?(o)
89
100
  self.class == o.class &&
90
101
  data == o.data &&
102
+ included == o.included &&
91
103
  links == o.links &&
92
104
  meta == o.meta
93
105
  end
@@ -96,7 +108,7 @@ module DatadogAPIClient::V2
96
108
  # @return [Integer] Hash code
97
109
  # @!visibility private
98
110
  def hash
99
- [data, links, meta].hash
111
+ [data, included, links, meta].hash
100
112
  end
101
113
  end
102
114
  end
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.21.0'
4
+ VERSION = '2.22.0'
5
5
  end
metadata CHANGED
@@ -1,95 +1,95 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.21.0
4
+ version: 2.22.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: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.20.0
20
17
  - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: '0.20'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.20.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.20.0
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0.20'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.20.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: zeitwerk
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.6.0
40
37
  - - "~>"
41
38
  - !ruby/object:Gem::Version
42
39
  version: '2.6'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.6.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.6.0
50
47
  - - "~>"
51
48
  - !ruby/object:Gem::Version
52
49
  version: '2.6'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.6.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: uuidtools
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: 2.1.5
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 2.1.5
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: 2.1.5
70
- - - "~>"
70
+ - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 2.1.5
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rspec
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 3.6.0
80
77
  - - "~>"
81
78
  - !ruby/object:Gem::Version
82
79
  version: '3.6'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 3.6.0
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: 3.6.0
90
87
  - - "~>"
91
88
  - !ruby/object:Gem::Version
92
89
  version: '3.6'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 3.6.0
93
93
  description: Collection of all Datadog Public API endpoints.
94
94
  email:
95
95
  - support@datadoghq.com
@@ -409,6 +409,7 @@ files:
409
409
  - examples/v1/synthetics/CreatePrivateLocation.rb
410
410
  - examples/v1/synthetics/CreateSyntheticsAPITest.rb
411
411
  - examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb
412
+ - examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb
412
413
  - examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb
413
414
  - examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb
414
415
  - examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb
@@ -462,7 +463,6 @@ files:
462
463
  - examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb
463
464
  - examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb
464
465
  - examples/v1/usage-metering/GetUsageAnalyzedLogs.rb
465
- - examples/v1/usage-metering/GetUsageAttribution.rb
466
466
  - examples/v1/usage-metering/GetUsageAuditLogs.rb
467
467
  - examples/v1/usage-metering/GetUsageBillableSummary.rb
468
468
  - examples/v1/usage-metering/GetUsageCIApp.rb
@@ -817,6 +817,7 @@ files:
817
817
  - examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb
818
818
  - examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb
819
819
  - examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb
820
+ - examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb
820
821
  - examples/v2/security-monitoring/DeleteSecurityFilter.rb
821
822
  - examples/v2/security-monitoring/DeleteSecurityFilter_555029489.rb
822
823
  - examples/v2/security-monitoring/DeleteSecurityMonitoringRule.rb
@@ -844,6 +845,7 @@ files:
844
845
  - examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb
845
846
  - examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb
846
847
  - examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb
848
+ - examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb
847
849
  - examples/v2/sensitive-data-scanner/CreateScanningGroup.rb
848
850
  - examples/v2/sensitive-data-scanner/CreateScanningRule.rb
849
851
  - examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb
@@ -868,6 +870,9 @@ files:
868
870
  - examples/v2/service-definition/GetServiceDefinition.rb
869
871
  - examples/v2/service-definition/ListServiceDefinitions.rb
870
872
  - examples/v2/service-definition/ListServiceDefinitions_336468013.rb
873
+ - examples/v2/service-level-objectives/CreateSLOReportJob.rb
874
+ - examples/v2/service-level-objectives/GetSLOReport.rb
875
+ - examples/v2/service-level-objectives/GetSLOReportJobStatus.rb
871
876
  - examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb
872
877
  - examples/v2/service-scorecards/CreateScorecardRule.rb
873
878
  - examples/v2/service-scorecards/DeleteScorecardRule.rb
@@ -1465,6 +1470,7 @@ files:
1465
1470
  - lib/datadog_api_client/v1/models/slo_threshold.rb
1466
1471
  - lib/datadog_api_client/v1/models/slo_time_slice_comparator.rb
1467
1472
  - lib/datadog_api_client/v1/models/slo_time_slice_condition.rb
1473
+ - lib/datadog_api_client/v1/models/slo_time_slice_interval.rb
1468
1474
  - lib/datadog_api_client/v1/models/slo_time_slice_query.rb
1469
1475
  - lib/datadog_api_client/v1/models/slo_time_slice_spec.rb
1470
1476
  - lib/datadog_api_client/v1/models/slo_timeframe.rb
@@ -1612,6 +1618,7 @@ files:
1612
1618
  - lib/datadog_api_client/v1/models/synthetics_test_pause_status.rb
1613
1619
  - lib/datadog_api_client/v1/models/synthetics_test_process_status.rb
1614
1620
  - lib/datadog_api_client/v1/models/synthetics_test_request.rb
1621
+ - lib/datadog_api_client/v1/models/synthetics_test_request_body_file.rb
1615
1622
  - lib/datadog_api_client/v1/models/synthetics_test_request_body_type.rb
1616
1623
  - lib/datadog_api_client/v1/models/synthetics_test_request_certificate.rb
1617
1624
  - lib/datadog_api_client/v1/models/synthetics_test_request_certificate_item.rb
@@ -1666,13 +1673,6 @@ files:
1666
1673
  - lib/datadog_api_client/v1/models/usage_analyzed_logs_hour.rb
1667
1674
  - lib/datadog_api_client/v1/models/usage_analyzed_logs_response.rb
1668
1675
  - lib/datadog_api_client/v1/models/usage_attribution_aggregates_body.rb
1669
- - lib/datadog_api_client/v1/models/usage_attribution_body.rb
1670
- - lib/datadog_api_client/v1/models/usage_attribution_metadata.rb
1671
- - lib/datadog_api_client/v1/models/usage_attribution_pagination.rb
1672
- - lib/datadog_api_client/v1/models/usage_attribution_response.rb
1673
- - lib/datadog_api_client/v1/models/usage_attribution_sort.rb
1674
- - lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb
1675
- - lib/datadog_api_client/v1/models/usage_attribution_values.rb
1676
1676
  - lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb
1677
1677
  - lib/datadog_api_client/v1/models/usage_audit_logs_response.rb
1678
1678
  - lib/datadog_api_client/v1/models/usage_billable_summary_body.rb
@@ -1850,6 +1850,7 @@ files:
1850
1850
  - lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb
1851
1851
  - lib/datadog_api_client/v2/api/service_accounts_api.rb
1852
1852
  - lib/datadog_api_client/v2/api/service_definition_api.rb
1853
+ - lib/datadog_api_client/v2/api/service_level_objectives_api.rb
1853
1854
  - lib/datadog_api_client/v2/api/service_scorecards_api.rb
1854
1855
  - lib/datadog_api_client/v2/api/spans_api.rb
1855
1856
  - lib/datadog_api_client/v2/api/spans_metrics_api.rb
@@ -1912,8 +1913,12 @@ files:
1912
1913
  - lib/datadog_api_client/v2/models/authn_mapping_create_relationships.rb
1913
1914
  - lib/datadog_api_client/v2/models/authn_mapping_create_request.rb
1914
1915
  - lib/datadog_api_client/v2/models/authn_mapping_included.rb
1916
+ - lib/datadog_api_client/v2/models/authn_mapping_relationship_to_role.rb
1917
+ - lib/datadog_api_client/v2/models/authn_mapping_relationship_to_team.rb
1915
1918
  - lib/datadog_api_client/v2/models/authn_mapping_relationships.rb
1916
1919
  - lib/datadog_api_client/v2/models/authn_mapping_response.rb
1920
+ - lib/datadog_api_client/v2/models/authn_mapping_team.rb
1921
+ - lib/datadog_api_client/v2/models/authn_mapping_team_attributes.rb
1917
1922
  - lib/datadog_api_client/v2/models/authn_mapping_update_attributes.rb
1918
1923
  - lib/datadog_api_client/v2/models/authn_mapping_update_data.rb
1919
1924
  - lib/datadog_api_client/v2/models/authn_mapping_update_relationships.rb
@@ -2802,6 +2807,8 @@ files:
2802
2807
  - lib/datadog_api_client/v2/models/relationship_to_rule_data_object.rb
2803
2808
  - lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute.rb
2804
2809
  - lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb
2810
+ - lib/datadog_api_client/v2/models/relationship_to_team.rb
2811
+ - lib/datadog_api_client/v2/models/relationship_to_team_data.rb
2805
2812
  - lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb
2806
2813
  - lib/datadog_api_client/v2/models/relationship_to_team_links.rb
2807
2814
  - lib/datadog_api_client/v2/models/relationship_to_user.rb
@@ -2831,6 +2838,7 @@ files:
2831
2838
  - lib/datadog_api_client/v2/models/retention_filter_create_request.rb
2832
2839
  - lib/datadog_api_client/v2/models/retention_filter_response.rb
2833
2840
  - lib/datadog_api_client/v2/models/retention_filter_type.rb
2841
+ - lib/datadog_api_client/v2/models/retention_filter_update_attributes.rb
2834
2842
  - lib/datadog_api_client/v2/models/retention_filter_update_data.rb
2835
2843
  - lib/datadog_api_client/v2/models/retention_filter_update_request.rb
2836
2844
  - lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb
@@ -3134,6 +3142,16 @@ files:
3134
3142
  - lib/datadog_api_client/v2/models/service_now_ticket_result.rb
3135
3143
  - lib/datadog_api_client/v2/models/slack_integration_metadata.rb
3136
3144
  - lib/datadog_api_client/v2/models/slack_integration_metadata_channel_item.rb
3145
+ - lib/datadog_api_client/v2/models/slo_report_create_request.rb
3146
+ - lib/datadog_api_client/v2/models/slo_report_create_request_attributes.rb
3147
+ - lib/datadog_api_client/v2/models/slo_report_create_request_data.rb
3148
+ - lib/datadog_api_client/v2/models/slo_report_interval.rb
3149
+ - lib/datadog_api_client/v2/models/slo_report_post_response.rb
3150
+ - lib/datadog_api_client/v2/models/slo_report_post_response_data.rb
3151
+ - lib/datadog_api_client/v2/models/slo_report_status.rb
3152
+ - lib/datadog_api_client/v2/models/slo_report_status_get_response.rb
3153
+ - lib/datadog_api_client/v2/models/slo_report_status_get_response_attributes.rb
3154
+ - lib/datadog_api_client/v2/models/slo_report_status_get_response_data.rb
3137
3155
  - lib/datadog_api_client/v2/models/sort_direction.rb
3138
3156
  - lib/datadog_api_client/v2/models/span.rb
3139
3157
  - lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb
@@ -3332,7 +3350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3332
3350
  - !ruby/object:Gem::Version
3333
3351
  version: '0'
3334
3352
  requirements: []
3335
- rubygems_version: 3.0.3.1
3353
+ rubygems_version: 3.1.6
3336
3354
  signing_key:
3337
3355
  specification_version: 4
3338
3356
  summary: Datadog API Collection Ruby Gem
@@ -1,9 +0,0 @@
1
- # Get usage attribution returns "OK" response
2
-
3
- require "datadog_api_client"
4
- api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new
5
- opts = {
6
- offset: 0,
7
- limit: 1,
8
- }
9
- p api_instance.get_usage_attribution((Time.now + -3 * 86400), UsageAttributionSupportedMetrics::ALL, opts)