datadog_api_client 2.21.0 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,152 +0,0 @@
1
- =begin
2
- #Datadog API V1 Collection
3
-
4
- #Collection of all Datadog Public endpoints.
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@datadoghq.com
8
- Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
-
10
- Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
- This product includes software developed at Datadog (https://www.datadoghq.com/).
12
- Copyright 2020-Present Datadog, Inc.
13
-
14
- =end
15
-
16
- require 'date'
17
- require 'time'
18
-
19
- module DatadogAPIClient::V1
20
- # Usage Summary by tag for a given organization.
21
- class UsageAttributionBody
22
- include BaseGenericModel
23
-
24
- # Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM].
25
- attr_accessor :month
26
-
27
- # The name of the organization.
28
- attr_accessor :org_name
29
-
30
- # The organization public ID.
31
- attr_accessor :public_id
32
-
33
- # The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
34
- attr_accessor :tag_config_source
35
-
36
- # Tag keys and values.
37
- #
38
- # A `null` value here means that the requested tag breakdown cannot be applied because it does not match the [tags
39
- # configured for usage attribution](https://docs.datadoghq.com/account_management/billing/usage_attribution/#getting-started).
40
- # In this scenario the API returns the total usage, not broken down by tags.
41
- attr_accessor :tags
42
-
43
- # Shows the the most recent hour in the current month for all organizations for which all usages were calculated.
44
- attr_accessor :updated_at
45
-
46
- # Fields in Usage Summary by tag(s).
47
- attr_accessor :values
48
-
49
- # Attribute mapping from ruby-style variable name to JSON key.
50
- # @!visibility private
51
- def self.attribute_map
52
- {
53
- :'month' => :'month',
54
- :'org_name' => :'org_name',
55
- :'public_id' => :'public_id',
56
- :'tag_config_source' => :'tag_config_source',
57
- :'tags' => :'tags',
58
- :'updated_at' => :'updated_at',
59
- :'values' => :'values'
60
- }
61
- end
62
-
63
- # Attribute type mapping.
64
- # @!visibility private
65
- def self.openapi_types
66
- {
67
- :'month' => :'Time',
68
- :'org_name' => :'String',
69
- :'public_id' => :'String',
70
- :'tag_config_source' => :'String',
71
- :'tags' => :'Hash<String, Array<String>>',
72
- :'updated_at' => :'String',
73
- :'values' => :'UsageAttributionValues'
74
- }
75
- end
76
-
77
- # List of attributes with nullable: true
78
- # @!visibility private
79
- def self.openapi_nullable
80
- Set.new([
81
- :'tags',
82
- ])
83
- end
84
-
85
- # Initializes the object
86
- # @param attributes [Hash] Model attributes in the form of hash
87
- # @!visibility private
88
- def initialize(attributes = {})
89
- if (!attributes.is_a?(Hash))
90
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::UsageAttributionBody` initialize method"
91
- end
92
-
93
- # check to see if the attribute exists and convert string to symbol for hash key
94
- attributes = attributes.each_with_object({}) { |(k, v), h|
95
- if (!self.class.attribute_map.key?(k.to_sym))
96
- fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::UsageAttributionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
- end
98
- h[k.to_sym] = v
99
- }
100
-
101
- if attributes.key?(:'month')
102
- self.month = attributes[:'month']
103
- end
104
-
105
- if attributes.key?(:'org_name')
106
- self.org_name = attributes[:'org_name']
107
- end
108
-
109
- if attributes.key?(:'public_id')
110
- self.public_id = attributes[:'public_id']
111
- end
112
-
113
- if attributes.key?(:'tag_config_source')
114
- self.tag_config_source = attributes[:'tag_config_source']
115
- end
116
-
117
- if attributes.key?(:'tags')
118
- self.tags = attributes[:'tags']
119
- end
120
-
121
- if attributes.key?(:'updated_at')
122
- self.updated_at = attributes[:'updated_at']
123
- end
124
-
125
- if attributes.key?(:'values')
126
- self.values = attributes[:'values']
127
- end
128
- end
129
-
130
- # Checks equality by comparing each attribute.
131
- # @param o [Object] Object to be compared
132
- # @!visibility private
133
- def ==(o)
134
- return true if self.equal?(o)
135
- self.class == o.class &&
136
- month == o.month &&
137
- org_name == o.org_name &&
138
- public_id == o.public_id &&
139
- tag_config_source == o.tag_config_source &&
140
- tags == o.tags &&
141
- updated_at == o.updated_at &&
142
- values == o.values
143
- end
144
-
145
- # Calculates hash code according to all attributes.
146
- # @return [Integer] Hash code
147
- # @!visibility private
148
- def hash
149
- [month, org_name, public_id, tag_config_source, tags, updated_at, values].hash
150
- end
151
- end
152
- end
@@ -1,63 +0,0 @@
1
- =begin
2
- #Datadog API V1 Collection
3
-
4
- #Collection of all Datadog Public endpoints.
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@datadoghq.com
8
- Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
-
10
- Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
- This product includes software developed at Datadog (https://www.datadoghq.com/).
12
- Copyright 2020-Present Datadog, Inc.
13
-
14
- =end
15
-
16
- require 'date'
17
- require 'time'
18
-
19
- module DatadogAPIClient::V1
20
- # The field to sort by.
21
- class UsageAttributionSort
22
- include BaseEnumModel
23
-
24
- API_PERCENTAGE = "api_percentage".freeze
25
- SNMP_USAGE = "snmp_usage".freeze
26
- APM_HOST_USAGE = "apm_host_usage".freeze
27
- API_USAGE = "api_usage".freeze
28
- APPSEC_USAGE = "appsec_usage".freeze
29
- APPSEC_PERCENTAGE = "appsec_percentage".freeze
30
- CONTAINER_USAGE = "container_usage".freeze
31
- CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze
32
- CONTAINER_PERCENTAGE = "container_percentage".freeze
33
- APM_HOST_PERCENTAGE = "apm_host_percentage".freeze
34
- NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
35
- BROWSER_PERCENTAGE = "browser_percentage".freeze
36
- BROWSER_USAGE = "browser_usage".freeze
37
- INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
38
- SNMP_PERCENTAGE = "snmp_percentage".freeze
39
- NPM_HOST_USAGE = "npm_host_usage".freeze
40
- INFRA_HOST_USAGE = "infra_host_usage".freeze
41
- CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
42
- LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze
43
- LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze
44
- LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze
45
- LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze
46
- ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
47
- ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
48
- ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
49
- ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
50
- ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
51
- ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
52
- ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
53
- ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze
54
- APM_FARGATE_USAGE = "apm_fargate_usage".freeze
55
- APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze
56
- APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
57
- APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage".freeze
58
- ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE = "estimated_rum_usage_attribution_usage".freeze
59
- ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE = "estimated_rum_usage_attribution_percentage".freeze
60
- ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze
61
- ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze
62
- end
63
- end
@@ -1,74 +0,0 @@
1
- =begin
2
- #Datadog API V1 Collection
3
-
4
- #Collection of all Datadog Public endpoints.
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@datadoghq.com
8
- Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
-
10
- Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
- This product includes software developed at Datadog (https://www.datadoghq.com/).
12
- Copyright 2020-Present Datadog, Inc.
13
-
14
- =end
15
-
16
- require 'date'
17
- require 'time'
18
-
19
- module DatadogAPIClient::V1
20
- # Supported fields for usage attribution requests (valid requests contain one or more metrics, or `*` for all).
21
- class UsageAttributionSupportedMetrics
22
- include BaseEnumModel
23
-
24
- CUSTOM_TIMESERIES_USAGE = "custom_timeseries_usage".freeze
25
- CONTAINER_USAGE = "container_usage".freeze
26
- SNMP_PERCENTAGE = "snmp_percentage".freeze
27
- APM_HOST_USAGE = "apm_host_usage".freeze
28
- BROWSER_USAGE = "browser_usage".freeze
29
- NPM_HOST_PERCENTAGE = "npm_host_percentage".freeze
30
- INFRA_HOST_USAGE = "infra_host_usage".freeze
31
- CUSTOM_TIMESERIES_PERCENTAGE = "custom_timeseries_percentage".freeze
32
- CONTAINER_PERCENTAGE = "container_percentage".freeze
33
- API_USAGE = "api_usage".freeze
34
- APM_HOST_PERCENTAGE = "apm_host_percentage".freeze
35
- INFRA_HOST_PERCENTAGE = "infra_host_percentage".freeze
36
- SNMP_USAGE = "snmp_usage".freeze
37
- BROWSER_PERCENTAGE = "browser_percentage".freeze
38
- API_PERCENTAGE = "api_percentage".freeze
39
- NPM_HOST_USAGE = "npm_host_usage".freeze
40
- LAMBDA_FUNCTIONS_USAGE = "lambda_functions_usage".freeze
41
- LAMBDA_FUNCTIONS_PERCENTAGE = "lambda_functions_percentage".freeze
42
- LAMBDA_INVOCATIONS_USAGE = "lambda_invocations_usage".freeze
43
- LAMBDA_INVOCATIONS_PERCENTAGE = "lambda_invocations_percentage".freeze
44
- FARGATE_USAGE = "fargate_usage".freeze
45
- FARGATE_PERCENTAGE = "fargate_percentage".freeze
46
- PROFILED_HOST_USAGE = "profiled_host_usage".freeze
47
- PROFILED_HOST_PERCENTAGE = "profiled_host_percentage".freeze
48
- PROFILED_CONTAINER_USAGE = "profiled_container_usage".freeze
49
- PROFILED_CONTAINER_PERCENTAGE = "profiled_container_percentage".freeze
50
- DBM_HOSTS_USAGE = "dbm_hosts_usage".freeze
51
- DBM_HOSTS_PERCENTAGE = "dbm_hosts_percentage".freeze
52
- DBM_QUERIES_USAGE = "dbm_queries_usage".freeze
53
- DBM_QUERIES_PERCENTAGE = "dbm_queries_percentage".freeze
54
- ESTIMATED_INDEXED_LOGS_USAGE = "estimated_indexed_logs_usage".freeze
55
- ESTIMATED_INDEXED_LOGS_PERCENTAGE = "estimated_indexed_logs_percentage".freeze
56
- ESTIMATED_INGESTED_LOGS_USAGE = "estimated_ingested_logs_usage".freeze
57
- ESTIMATED_INGESTED_LOGS_PERCENTAGE = "estimated_ingested_logs_percentage".freeze
58
- APPSEC_USAGE = "appsec_usage".freeze
59
- APPSEC_PERCENTAGE = "appsec_percentage".freeze
60
- ESTIMATED_INDEXED_SPANS_USAGE = "estimated_indexed_spans_usage".freeze
61
- ESTIMATED_INDEXED_SPANS_PERCENTAGE = "estimated_indexed_spans_percentage".freeze
62
- ESTIMATED_INGESTED_SPANS_USAGE = "estimated_ingested_spans_usage".freeze
63
- ESTIMATED_INGESTED_SPANS_PERCENTAGE = "estimated_ingested_spans_percentage".freeze
64
- APM_FARGATE_USAGE = "apm_fargate_usage".freeze
65
- APM_FARGATE_PERCENTAGE = "apm_fargate_percentage".freeze
66
- APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
67
- APPSEC_FARGATE_PERCENTAGE = "appsec_fargate_percentage".freeze
68
- ESTIMATED_RUM_USAGE_ATTRIBUTION_USAGE = "estimated_rum_usage_attribution_usage".freeze
69
- ESTIMATED_RUM_USAGE_ATTRIBUTION_PERCENTAGE = "estimated_rum_usage_attribution_percentage".freeze
70
- ASM_SERVERLESS_TRACED_INVOCATIONS_USAGE = "asm_serverless_traced_invocations_usage".freeze
71
- ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE = "asm_serverless_traced_invocations_percentage".freeze
72
- ALL = "*".freeze
73
- end
74
- end