datadog_api_client 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.apigentools-info +6 -6
  3. data/.generator/schemas/v1/openapi.yaml +282 -900
  4. data/.generator/schemas/v2/openapi.yaml +343 -672
  5. data/.generator/src/generator/formatter.py +1 -1
  6. data/.github/workflows/test.yml +1 -1
  7. data/.github/workflows/test_integration.yml +5 -0
  8. data/CHANGELOG.md +23 -0
  9. data/examples/v1/dashboards/CreateDashboard_1094917386.rb +37 -0
  10. data/examples/v1/dashboards/CreateDashboard_1307120899.rb +61 -0
  11. data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
  12. data/examples/v1/monitors/ValidateMonitor.rb +1 -0
  13. data/examples/v1/monitors/ValidateMonitor_4247196452.rb +38 -0
  14. data/examples/v1/synthetics/CreateGlobalVariable.rb +1 -0
  15. data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +23 -0
  16. data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +10 -0
  17. data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +6 -0
  18. data/examples/v1/synthetics/EditGlobalVariable.rb +1 -0
  19. data/examples/v1/synthetics/UpdateBrowserTest.rb +1 -0
  20. data/examples/v1/usage-metering/GetDailyCustomReports.rb +0 -3
  21. data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +0 -3
  22. data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +0 -3
  23. data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +0 -3
  24. data/examples/v1/usage-metering/GetUsageAttribution.rb +0 -3
  25. data/examples/v2/metrics/SubmitMetrics_1762007427.rb +23 -0
  26. data/examples/v2/roles/UpdateRole.rb +13 -0
  27. data/examples/v2/rum/CreateRUMApplication.rb +15 -0
  28. data/examples/v2/rum/DeleteRUMApplication.rb +8 -0
  29. data/examples/v2/rum/GetRUMApplication.rb +8 -0
  30. data/examples/v2/rum/GetRUMApplications.rb +5 -0
  31. data/examples/v2/rum/UpdateRUMApplication.rb +16 -0
  32. data/examples/v2/usage-metering/GetHourlyUsage.rb +5 -0
  33. data/lib/datadog_api_client/configuration.rb +0 -5
  34. data/lib/datadog_api_client/inflector.rb +16 -0
  35. data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
  36. data/lib/datadog_api_client/v1/api/usage_metering_api.rb +42 -62
  37. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  38. data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
  39. data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
  40. data/lib/datadog_api_client/v1/models/metric_content_encoding.rb +1 -0
  41. data/lib/datadog_api_client/v1/models/monitor_options.rb +28 -1
  42. data/lib/datadog_api_client/v1/models/monitor_summary_widget_definition.rb +13 -1
  43. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
  44. data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
  45. data/lib/datadog_api_client/v1/models/on_missing_data_option.rb +33 -0
  46. data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +2 -1
  47. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb +155 -0
  48. data/lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb +26 -0
  49. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +11 -12
  50. data/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +1 -0
  51. data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +31 -1
  52. data/lib/datadog_api_client/v1/models/synthetics_test_process_status.rb +0 -1
  53. data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +15 -1
  54. data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
  55. data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
  56. data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +21 -1
  57. data/lib/datadog_api_client/v1/models/usage_billable_summary_hour.rb +11 -1
  58. data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +12 -1
  59. data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
  60. data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
  61. data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
  62. data/lib/datadog_api_client/v1/models/widget_monitor_summary_sort.rb +2 -0
  63. data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
  64. data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
  65. data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
  66. data/lib/datadog_api_client/v2/api/rum_api.rb +329 -0
  67. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
  68. data/lib/datadog_api_client/v2/models/content_encoding.rb +1 -0
  69. data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +2 -0
  70. data/lib/datadog_api_client/v2/models/role_update_data.rb +11 -1
  71. data/lib/datadog_api_client/v2/models/rum_application.rb +166 -0
  72. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +279 -0
  73. data/lib/datadog_api_client/v2/models/rum_application_create.rb +145 -0
  74. data/lib/datadog_api_client/v2/models/rum_application_create_attributes.rb +132 -0
  75. data/lib/datadog_api_client/v2/models/rum_application_create_request.rb +122 -0
  76. data/lib/datadog_api_client/v2/models/rum_application_create_type.rb +26 -0
  77. data/lib/datadog_api_client/v2/models/rum_application_response.rb +111 -0
  78. data/lib/datadog_api_client/v2/models/rum_application_type.rb +26 -0
  79. data/lib/datadog_api_client/v2/models/rum_application_update.rb +155 -0
  80. data/lib/datadog_api_client/v2/models/rum_application_update_attributes.rb +121 -0
  81. data/lib/datadog_api_client/v2/models/rum_application_update_request.rb +122 -0
  82. data/lib/datadog_api_client/v2/models/rum_application_update_type.rb +26 -0
  83. data/lib/datadog_api_client/v2/models/rum_applications_response.rb +113 -0
  84. data/lib/datadog_api_client/version.rb +1 -1
  85. metadata +29 -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
+ # RUM application update request.
21
+ class RUMApplicationUpdateRequest
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # RUM application update.
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' => :'RUMApplicationUpdate'
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::RUMApplicationUpdateRequest` 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::RUMApplicationUpdateRequest`. 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,26 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # RUM application update type.
21
+ class RUMApplicationUpdateType
22
+ include BaseEnumModel
23
+
24
+ RUM_APPLICATION_UPDATE = "rum_application_update".freeze
25
+ end
26
+ end
@@ -0,0 +1,113 @@
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
+ # RUM applications response.
21
+ class RUMApplicationsResponse
22
+ include BaseGenericModel
23
+
24
+ # Whether the object has unparsed attributes
25
+ # @!visibility private
26
+ attr_accessor :_unparsed
27
+
28
+ # RUM applications array response.
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<RUMApplication>'
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::RUMApplicationsResponse` 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::RUMApplicationsResponse`. 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
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param o [Object] Object to be compared
92
+ # @!visibility private
93
+ def ==(o)
94
+ return true if self.equal?(o)
95
+ self.class == o.class &&
96
+ data == o.data
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param o [Object] Object to be compared
101
+ # @!visibility private
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Integer] Hash code
108
+ # @!visibility private
109
+ def hash
110
+ [data].hash
111
+ end
112
+ end
113
+ end
@@ -1,5 +1,5 @@
1
1
  # Define library version.
2
2
 
3
3
  module DatadogAPIClient
4
- VERSION = '2.0.2'
4
+ VERSION = '2.1.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: 2.0.2
4
+ version: 2.1.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-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -166,9 +166,11 @@ files:
166
166
  - examples/v1/dashboard-lists/UpdateDashboardList.rb
167
167
  - examples/v1/dashboards/CreateDashboard.rb
168
168
  - examples/v1/dashboards/CreateDashboard_1024858348.rb
169
+ - examples/v1/dashboards/CreateDashboard_1094917386.rb
169
170
  - examples/v1/dashboards/CreateDashboard_1177423752.rb
170
171
  - examples/v1/dashboards/CreateDashboard_1200099236.rb
171
172
  - examples/v1/dashboards/CreateDashboard_1213075383.rb
173
+ - examples/v1/dashboards/CreateDashboard_1307120899.rb
172
174
  - examples/v1/dashboards/CreateDashboard_1442588603.rb
173
175
  - examples/v1/dashboards/CreateDashboard_145494973.rb
174
176
  - examples/v1/dashboards/CreateDashboard_173805046.rb
@@ -293,6 +295,7 @@ files:
293
295
  - examples/v1/monitors/UpdateMonitor.rb
294
296
  - examples/v1/monitors/ValidateExistingMonitor.rb
295
297
  - examples/v1/monitors/ValidateMonitor.rb
298
+ - examples/v1/monitors/ValidateMonitor_4247196452.rb
296
299
  - examples/v1/notebooks/CreateNotebook.rb
297
300
  - examples/v1/notebooks/DeleteNotebook.rb
298
301
  - examples/v1/notebooks/GetNotebook.rb
@@ -335,6 +338,7 @@ files:
335
338
  - examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb
336
339
  - examples/v1/snapshots/GetGraphSnapshot.rb
337
340
  - examples/v1/synthetics/CreateGlobalVariable.rb
341
+ - examples/v1/synthetics/CreateGlobalVariable_1068962881.rb
338
342
  - examples/v1/synthetics/CreatePrivateLocation.rb
339
343
  - examples/v1/synthetics/CreateSyntheticsAPITest.rb
340
344
  - examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb
@@ -546,6 +550,7 @@ files:
546
550
  - examples/v2/metrics/ListTagsByMetricName.rb
547
551
  - examples/v2/metrics/ListVolumesByMetricName.rb
548
552
  - examples/v2/metrics/SubmitMetrics.rb
553
+ - examples/v2/metrics/SubmitMetrics_1762007427.rb
549
554
  - examples/v2/metrics/UpdateTagConfiguration.rb
550
555
  - examples/v2/opsgenie-integration/CreateOpsgenieService.rb
551
556
  - examples/v2/opsgenie-integration/DeleteOpsgenieService.rb
@@ -569,10 +574,15 @@ files:
569
574
  - examples/v2/roles/RemoveUserFromRole.rb
570
575
  - examples/v2/roles/UpdateRole.rb
571
576
  - examples/v2/rum/AggregateRUMEvents.rb
577
+ - examples/v2/rum/CreateRUMApplication.rb
578
+ - examples/v2/rum/DeleteRUMApplication.rb
579
+ - examples/v2/rum/GetRUMApplication.rb
580
+ - examples/v2/rum/GetRUMApplications.rb
572
581
  - examples/v2/rum/ListRUMEvents.rb
573
582
  - examples/v2/rum/ListRUMEvents_2680821282.rb
574
583
  - examples/v2/rum/SearchRUMEvents.rb
575
584
  - examples/v2/rum/SearchRUMEvents_574690310.rb
585
+ - examples/v2/rum/UpdateRUMApplication.rb
576
586
  - examples/v2/security-monitoring/CreateSecurityFilter.rb
577
587
  - examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb
578
588
  - examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb
@@ -608,6 +618,7 @@ files:
608
618
  - examples/v2/usage-metering/GetEstimatedCostByOrg.rb
609
619
  - examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb
610
620
  - examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb
621
+ - examples/v2/usage-metering/GetHourlyUsage.rb
611
622
  - examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb
612
623
  - examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb
613
624
  - examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb
@@ -994,6 +1005,7 @@ files:
994
1005
  - lib/datadog_api_client/v1/models/notebooks_response_data_attributes.rb
995
1006
  - lib/datadog_api_client/v1/models/notebooks_response_meta.rb
996
1007
  - lib/datadog_api_client/v1/models/notebooks_response_page.rb
1008
+ - lib/datadog_api_client/v1/models/on_missing_data_option.rb
997
1009
  - lib/datadog_api_client/v1/models/org_downgraded_response.rb
998
1010
  - lib/datadog_api_client/v1/models/organization.rb
999
1011
  - lib/datadog_api_client/v1/models/organization_billing.rb
@@ -1118,6 +1130,8 @@ files:
1118
1130
  - lib/datadog_api_client/v1/models/synthetics_assertion_target.rb
1119
1131
  - lib/datadog_api_client/v1/models/synthetics_assertion_type.rb
1120
1132
  - lib/datadog_api_client/v1/models/synthetics_basic_auth.rb
1133
+ - lib/datadog_api_client/v1/models/synthetics_basic_auth_digest.rb
1134
+ - lib/datadog_api_client/v1/models/synthetics_basic_auth_digest_type.rb
1121
1135
  - lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm.rb
1122
1136
  - lib/datadog_api_client/v1/models/synthetics_basic_auth_ntlm_type.rb
1123
1137
  - lib/datadog_api_client/v1/models/synthetics_basic_auth_sigv4.rb
@@ -1786,6 +1800,19 @@ files:
1786
1800
  - lib/datadog_api_client/v2/models/rum_aggregation_buckets_response.rb
1787
1801
  - lib/datadog_api_client/v2/models/rum_aggregation_function.rb
1788
1802
  - lib/datadog_api_client/v2/models/rum_analytics_aggregate_response.rb
1803
+ - lib/datadog_api_client/v2/models/rum_application.rb
1804
+ - lib/datadog_api_client/v2/models/rum_application_attributes.rb
1805
+ - lib/datadog_api_client/v2/models/rum_application_create.rb
1806
+ - lib/datadog_api_client/v2/models/rum_application_create_attributes.rb
1807
+ - lib/datadog_api_client/v2/models/rum_application_create_request.rb
1808
+ - lib/datadog_api_client/v2/models/rum_application_create_type.rb
1809
+ - lib/datadog_api_client/v2/models/rum_application_response.rb
1810
+ - lib/datadog_api_client/v2/models/rum_application_type.rb
1811
+ - lib/datadog_api_client/v2/models/rum_application_update.rb
1812
+ - lib/datadog_api_client/v2/models/rum_application_update_attributes.rb
1813
+ - lib/datadog_api_client/v2/models/rum_application_update_request.rb
1814
+ - lib/datadog_api_client/v2/models/rum_application_update_type.rb
1815
+ - lib/datadog_api_client/v2/models/rum_applications_response.rb
1789
1816
  - lib/datadog_api_client/v2/models/rum_bucket_response.rb
1790
1817
  - lib/datadog_api_client/v2/models/rum_compute.rb
1791
1818
  - lib/datadog_api_client/v2/models/rum_compute_type.rb