datadog_api_client 2.26.1 → 2.27.1
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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +2152 -10
- data/.generator/schemas/v2/openapi.yaml +1771 -41
- data/.generator/src/generator/formatter.py +1 -1
- data/.github/workflows/approved_status.yml +4 -0
- data/.github/workflows/changelog.yml +5 -0
- data/.github/workflows/codeql-analysis.yml +4 -0
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/labeler.yml +5 -0
- data/.github/workflows/prepare_release.yml +4 -0
- data/.github/workflows/publish.yml +5 -0
- data/.github/workflows/release.yml +4 -0
- data/.github/workflows/stale.yml +6 -0
- data/.github/workflows/test.yml +3 -0
- data/.github/workflows/test_integration.yml +3 -0
- data/CHANGELOG.md +27 -0
- data/examples/v1/dashboards/CreateDashboard_1433408735.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_794302680.rb +152 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +27 -0
- data/examples/v1/synthetics/FetchUptimes.rb +13 -0
- data/examples/v1/synthetics/GetMobileTest.rb +8 -0
- data/examples/v1/synthetics/UpdateMobileTest.rb +30 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +0 -1
- data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/CreateApiHandle_1540689753.rb +17 -0
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetChannelByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListApiHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListApiHandles_769592979.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +18 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +9 -0
- data/lib/datadog_api_client/inflector.rb +51 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +272 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_fetch_uptimes_payload.rb +167 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +251 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +203 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +263 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding_items.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding_items_role.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_ci_options.rb +123 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_initial_application_arguments.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +354 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +155 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options_notification_preset_name.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +154 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_port.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_uptime.rb +135 -0
- data/lib/datadog_api_client/v1/models/synthetics_uptime.rb +161 -0
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +16 -4
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_palette.rb +36 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace.rb +63 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring.rb +165 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_rule.rb +163 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +497 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/fastly_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_notification_handle.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_type_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response_attributes.rb +249 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_api_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_api_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_get_channel_by_name_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_api_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_api_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +35 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +1 -26
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +72 -2
|
@@ -0,0 +1,497 @@
|
|
|
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 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class MicrosoftTeamsIntegrationAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Create handle.
|
|
27
|
+
#
|
|
28
|
+
# @see #create_api_handle_with_http_info
|
|
29
|
+
def create_api_handle(body, opts = {})
|
|
30
|
+
data, _status_code, _headers = create_api_handle_with_http_info(body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Create handle.
|
|
35
|
+
#
|
|
36
|
+
# Create a handle in the Datadog Microsoft Teams integration.
|
|
37
|
+
#
|
|
38
|
+
# @param body [MicrosoftTeamsCreateApiHandleRequest] Handle payload.
|
|
39
|
+
# @param opts [Hash] the optional parameters
|
|
40
|
+
# @return [Array<(MicrosoftTeamsCreateApiHandleResponse, Integer, Hash)>] MicrosoftTeamsCreateApiHandleResponse data, response status code and response headers
|
|
41
|
+
def create_api_handle_with_http_info(body, opts = {})
|
|
42
|
+
|
|
43
|
+
if @api_client.config.debugging
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.create_api_handle ...'
|
|
45
|
+
end
|
|
46
|
+
# verify the required parameter 'body' is set
|
|
47
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
48
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.create_api_handle"
|
|
49
|
+
end
|
|
50
|
+
# resource path
|
|
51
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'
|
|
52
|
+
|
|
53
|
+
# query parameters
|
|
54
|
+
query_params = opts[:query_params] || {}
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
60
|
+
# HTTP header 'Content-Type'
|
|
61
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
62
|
+
|
|
63
|
+
# form parameters
|
|
64
|
+
form_params = opts[:form_params] || {}
|
|
65
|
+
|
|
66
|
+
# http body (model)
|
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
68
|
+
|
|
69
|
+
# return_type
|
|
70
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsCreateApiHandleResponse'
|
|
71
|
+
|
|
72
|
+
# auth_names
|
|
73
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
74
|
+
|
|
75
|
+
new_options = opts.merge(
|
|
76
|
+
:operation => :create_api_handle,
|
|
77
|
+
:header_params => header_params,
|
|
78
|
+
:query_params => query_params,
|
|
79
|
+
:form_params => form_params,
|
|
80
|
+
:body => post_body,
|
|
81
|
+
:auth_names => auth_names,
|
|
82
|
+
:return_type => return_type,
|
|
83
|
+
:api_version => "V2"
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#create_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
|
+
end
|
|
90
|
+
return data, status_code, headers
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Delete handle.
|
|
94
|
+
#
|
|
95
|
+
# @see #delete_api_handle_with_http_info
|
|
96
|
+
def delete_api_handle(handle_id, opts = {})
|
|
97
|
+
delete_api_handle_with_http_info(handle_id, opts)
|
|
98
|
+
nil
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Delete handle.
|
|
102
|
+
#
|
|
103
|
+
# Delete a handle from the Datadog Microsoft Teams integration.
|
|
104
|
+
#
|
|
105
|
+
# @param handle_id [String] Your handle id.
|
|
106
|
+
# @param opts [Hash] the optional parameters
|
|
107
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
108
|
+
def delete_api_handle_with_http_info(handle_id, opts = {})
|
|
109
|
+
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.delete_api_handle ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'handle_id' is set
|
|
114
|
+
if @api_client.config.client_side_validation && handle_id.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.delete_api_handle"
|
|
116
|
+
end
|
|
117
|
+
# resource path
|
|
118
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
|
|
119
|
+
|
|
120
|
+
# query parameters
|
|
121
|
+
query_params = opts[:query_params] || {}
|
|
122
|
+
|
|
123
|
+
# header parameters
|
|
124
|
+
header_params = opts[:header_params] || {}
|
|
125
|
+
# HTTP header 'Accept' (if needed)
|
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
127
|
+
|
|
128
|
+
# form parameters
|
|
129
|
+
form_params = opts[:form_params] || {}
|
|
130
|
+
|
|
131
|
+
# http body (model)
|
|
132
|
+
post_body = opts[:debug_body]
|
|
133
|
+
|
|
134
|
+
# return_type
|
|
135
|
+
return_type = opts[:debug_return_type]
|
|
136
|
+
|
|
137
|
+
# auth_names
|
|
138
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
139
|
+
|
|
140
|
+
new_options = opts.merge(
|
|
141
|
+
:operation => :delete_api_handle,
|
|
142
|
+
:header_params => header_params,
|
|
143
|
+
:query_params => query_params,
|
|
144
|
+
:form_params => form_params,
|
|
145
|
+
:body => post_body,
|
|
146
|
+
:auth_names => auth_names,
|
|
147
|
+
:return_type => return_type,
|
|
148
|
+
:api_version => "V2"
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#delete_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Get handle information.
|
|
159
|
+
#
|
|
160
|
+
# @see #get_api_handle_with_http_info
|
|
161
|
+
def get_api_handle(handle_id, opts = {})
|
|
162
|
+
data, _status_code, _headers = get_api_handle_with_http_info(handle_id, opts)
|
|
163
|
+
data
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Get handle information.
|
|
167
|
+
#
|
|
168
|
+
# Get the tenant, team, and channel information of a handle from the Datadog Microsoft Teams integration.
|
|
169
|
+
#
|
|
170
|
+
# @param handle_id [String] Your handle id.
|
|
171
|
+
# @param opts [Hash] the optional parameters
|
|
172
|
+
# @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
|
|
173
|
+
def get_api_handle_with_http_info(handle_id, opts = {})
|
|
174
|
+
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_api_handle ...'
|
|
177
|
+
end
|
|
178
|
+
# verify the required parameter 'handle_id' is set
|
|
179
|
+
if @api_client.config.client_side_validation && handle_id.nil?
|
|
180
|
+
fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.get_api_handle"
|
|
181
|
+
end
|
|
182
|
+
# resource path
|
|
183
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
|
|
184
|
+
|
|
185
|
+
# query parameters
|
|
186
|
+
query_params = opts[:query_params] || {}
|
|
187
|
+
|
|
188
|
+
# header parameters
|
|
189
|
+
header_params = opts[:header_params] || {}
|
|
190
|
+
# HTTP header 'Accept' (if needed)
|
|
191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
192
|
+
|
|
193
|
+
# form parameters
|
|
194
|
+
form_params = opts[:form_params] || {}
|
|
195
|
+
|
|
196
|
+
# http body (model)
|
|
197
|
+
post_body = opts[:debug_body]
|
|
198
|
+
|
|
199
|
+
# return_type
|
|
200
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
|
|
201
|
+
|
|
202
|
+
# auth_names
|
|
203
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
204
|
+
|
|
205
|
+
new_options = opts.merge(
|
|
206
|
+
:operation => :get_api_handle,
|
|
207
|
+
:header_params => header_params,
|
|
208
|
+
:query_params => query_params,
|
|
209
|
+
:form_params => form_params,
|
|
210
|
+
:body => post_body,
|
|
211
|
+
:auth_names => auth_names,
|
|
212
|
+
:return_type => return_type,
|
|
213
|
+
:api_version => "V2"
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
217
|
+
if @api_client.config.debugging
|
|
218
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
219
|
+
end
|
|
220
|
+
return data, status_code, headers
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Get handle information by name.
|
|
224
|
+
#
|
|
225
|
+
# @see #get_api_handle_by_name_with_http_info
|
|
226
|
+
def get_api_handle_by_name(handle_name, opts = {})
|
|
227
|
+
data, _status_code, _headers = get_api_handle_by_name_with_http_info(handle_name, opts)
|
|
228
|
+
data
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Get handle information by name.
|
|
232
|
+
#
|
|
233
|
+
# Get the tenant, team, and channel information of a handle by name from the Datadog Microsoft Teams integration.
|
|
234
|
+
#
|
|
235
|
+
# @param handle_name [String] Your handle name.
|
|
236
|
+
# @param opts [Hash] the optional parameters
|
|
237
|
+
# @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
|
|
238
|
+
def get_api_handle_by_name_with_http_info(handle_name, opts = {})
|
|
239
|
+
|
|
240
|
+
if @api_client.config.debugging
|
|
241
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_api_handle_by_name ...'
|
|
242
|
+
end
|
|
243
|
+
# verify the required parameter 'handle_name' is set
|
|
244
|
+
if @api_client.config.client_side_validation && handle_name.nil?
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'handle_name' when calling MicrosoftTeamsIntegrationAPI.get_api_handle_by_name"
|
|
246
|
+
end
|
|
247
|
+
# resource path
|
|
248
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/name/{handle_name}'.sub('{handle_name}', CGI.escape(handle_name.to_s).gsub('%2F', '/'))
|
|
249
|
+
|
|
250
|
+
# query parameters
|
|
251
|
+
query_params = opts[:query_params] || {}
|
|
252
|
+
|
|
253
|
+
# header parameters
|
|
254
|
+
header_params = opts[:header_params] || {}
|
|
255
|
+
# HTTP header 'Accept' (if needed)
|
|
256
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
257
|
+
|
|
258
|
+
# form parameters
|
|
259
|
+
form_params = opts[:form_params] || {}
|
|
260
|
+
|
|
261
|
+
# http body (model)
|
|
262
|
+
post_body = opts[:debug_body]
|
|
263
|
+
|
|
264
|
+
# return_type
|
|
265
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
|
|
266
|
+
|
|
267
|
+
# auth_names
|
|
268
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
269
|
+
|
|
270
|
+
new_options = opts.merge(
|
|
271
|
+
:operation => :get_api_handle_by_name,
|
|
272
|
+
:header_params => header_params,
|
|
273
|
+
:query_params => query_params,
|
|
274
|
+
:form_params => form_params,
|
|
275
|
+
:body => post_body,
|
|
276
|
+
:auth_names => auth_names,
|
|
277
|
+
:return_type => return_type,
|
|
278
|
+
:api_version => "V2"
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
282
|
+
if @api_client.config.debugging
|
|
283
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_api_handle_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
284
|
+
end
|
|
285
|
+
return data, status_code, headers
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Get channel information by name.
|
|
289
|
+
#
|
|
290
|
+
# @see #get_channel_by_name_with_http_info
|
|
291
|
+
def get_channel_by_name(tenant_name, team_name, channel_name, opts = {})
|
|
292
|
+
data, _status_code, _headers = get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts)
|
|
293
|
+
data
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Get channel information by name.
|
|
297
|
+
#
|
|
298
|
+
# Get the tenant, team, and channel ID of a channel in the Datadog Microsoft Teams integration.
|
|
299
|
+
#
|
|
300
|
+
# @param tenant_name [String] Your tenant name.
|
|
301
|
+
# @param team_name [String] Your team name.
|
|
302
|
+
# @param channel_name [String] Your channel name.
|
|
303
|
+
# @param opts [Hash] the optional parameters
|
|
304
|
+
# @return [Array<(MicrosoftTeamsGetChannelByNameResponse, Integer, Hash)>] MicrosoftTeamsGetChannelByNameResponse data, response status code and response headers
|
|
305
|
+
def get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opts = {})
|
|
306
|
+
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.get_channel_by_name ...'
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'tenant_name' is set
|
|
311
|
+
if @api_client.config.client_side_validation && tenant_name.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'tenant_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
|
|
313
|
+
end
|
|
314
|
+
# verify the required parameter 'team_name' is set
|
|
315
|
+
if @api_client.config.client_side_validation && team_name.nil?
|
|
316
|
+
fail ArgumentError, "Missing the required parameter 'team_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
|
|
317
|
+
end
|
|
318
|
+
# verify the required parameter 'channel_name' is set
|
|
319
|
+
if @api_client.config.client_side_validation && channel_name.nil?
|
|
320
|
+
fail ArgumentError, "Missing the required parameter 'channel_name' when calling MicrosoftTeamsIntegrationAPI.get_channel_by_name"
|
|
321
|
+
end
|
|
322
|
+
# resource path
|
|
323
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/channel/{tenant_name}/{team_name}/{channel_name}'.sub('{tenant_name}', CGI.escape(tenant_name.to_s).gsub('%2F', '/')).sub('{team_name}', CGI.escape(team_name.to_s).gsub('%2F', '/')).sub('{channel_name}', CGI.escape(channel_name.to_s).gsub('%2F', '/'))
|
|
324
|
+
|
|
325
|
+
# query parameters
|
|
326
|
+
query_params = opts[:query_params] || {}
|
|
327
|
+
|
|
328
|
+
# header parameters
|
|
329
|
+
header_params = opts[:header_params] || {}
|
|
330
|
+
# HTTP header 'Accept' (if needed)
|
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
332
|
+
|
|
333
|
+
# form parameters
|
|
334
|
+
form_params = opts[:form_params] || {}
|
|
335
|
+
|
|
336
|
+
# http body (model)
|
|
337
|
+
post_body = opts[:debug_body]
|
|
338
|
+
|
|
339
|
+
# return_type
|
|
340
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsGetChannelByNameResponse'
|
|
341
|
+
|
|
342
|
+
# auth_names
|
|
343
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
344
|
+
|
|
345
|
+
new_options = opts.merge(
|
|
346
|
+
:operation => :get_channel_by_name,
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => return_type,
|
|
353
|
+
:api_version => "V2"
|
|
354
|
+
)
|
|
355
|
+
|
|
356
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
357
|
+
if @api_client.config.debugging
|
|
358
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#get_channel_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
359
|
+
end
|
|
360
|
+
return data, status_code, headers
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Get all handles.
|
|
364
|
+
#
|
|
365
|
+
# @see #list_api_handles_with_http_info
|
|
366
|
+
def list_api_handles(opts = {})
|
|
367
|
+
data, _status_code, _headers = list_api_handles_with_http_info(opts)
|
|
368
|
+
data
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Get all handles.
|
|
372
|
+
#
|
|
373
|
+
# Get a list of all handles from the Datadog Microsoft Teams integration.
|
|
374
|
+
#
|
|
375
|
+
# @param opts [Hash] the optional parameters
|
|
376
|
+
# @option opts [String] :tenant_id Your tenant id.
|
|
377
|
+
# @return [Array<(MicrosoftTeamsApiHandlesResponse, Integer, Hash)>] MicrosoftTeamsApiHandlesResponse data, response status code and response headers
|
|
378
|
+
def list_api_handles_with_http_info(opts = {})
|
|
379
|
+
|
|
380
|
+
if @api_client.config.debugging
|
|
381
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.list_api_handles ...'
|
|
382
|
+
end
|
|
383
|
+
# resource path
|
|
384
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles'
|
|
385
|
+
|
|
386
|
+
# query parameters
|
|
387
|
+
query_params = opts[:query_params] || {}
|
|
388
|
+
query_params[:'tenant_id'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil?
|
|
389
|
+
|
|
390
|
+
# header parameters
|
|
391
|
+
header_params = opts[:header_params] || {}
|
|
392
|
+
# HTTP header 'Accept' (if needed)
|
|
393
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
394
|
+
|
|
395
|
+
# form parameters
|
|
396
|
+
form_params = opts[:form_params] || {}
|
|
397
|
+
|
|
398
|
+
# http body (model)
|
|
399
|
+
post_body = opts[:debug_body]
|
|
400
|
+
|
|
401
|
+
# return_type
|
|
402
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandlesResponse'
|
|
403
|
+
|
|
404
|
+
# auth_names
|
|
405
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
406
|
+
|
|
407
|
+
new_options = opts.merge(
|
|
408
|
+
:operation => :list_api_handles,
|
|
409
|
+
:header_params => header_params,
|
|
410
|
+
:query_params => query_params,
|
|
411
|
+
:form_params => form_params,
|
|
412
|
+
:body => post_body,
|
|
413
|
+
:auth_names => auth_names,
|
|
414
|
+
:return_type => return_type,
|
|
415
|
+
:api_version => "V2"
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#list_api_handles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
|
+
end
|
|
422
|
+
return data, status_code, headers
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Update handle.
|
|
426
|
+
#
|
|
427
|
+
# @see #update_api_handle_with_http_info
|
|
428
|
+
def update_api_handle(handle_id, body, opts = {})
|
|
429
|
+
data, _status_code, _headers = update_api_handle_with_http_info(handle_id, body, opts)
|
|
430
|
+
data
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Update handle.
|
|
434
|
+
#
|
|
435
|
+
# Update a handle from the Datadog Microsoft Teams integration.
|
|
436
|
+
#
|
|
437
|
+
# @param handle_id [String] Your handle id.
|
|
438
|
+
# @param body [MicrosoftTeamsUpdateApiHandleRequest] Opsgenie service payload.
|
|
439
|
+
# @param opts [Hash] the optional parameters
|
|
440
|
+
# @return [Array<(MicrosoftTeamsApiHandleInfoResponse, Integer, Hash)>] MicrosoftTeamsApiHandleInfoResponse data, response status code and response headers
|
|
441
|
+
def update_api_handle_with_http_info(handle_id, body, opts = {})
|
|
442
|
+
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: MicrosoftTeamsIntegrationAPI.update_api_handle ...'
|
|
445
|
+
end
|
|
446
|
+
# verify the required parameter 'handle_id' is set
|
|
447
|
+
if @api_client.config.client_side_validation && handle_id.nil?
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'handle_id' when calling MicrosoftTeamsIntegrationAPI.update_api_handle"
|
|
449
|
+
end
|
|
450
|
+
# verify the required parameter 'body' is set
|
|
451
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
452
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling MicrosoftTeamsIntegrationAPI.update_api_handle"
|
|
453
|
+
end
|
|
454
|
+
# resource path
|
|
455
|
+
local_var_path = '/api/v2/integration/ms-teams/configuration/tenant-based-handles/{handle_id}'.sub('{handle_id}', CGI.escape(handle_id.to_s).gsub('%2F', '/'))
|
|
456
|
+
|
|
457
|
+
# query parameters
|
|
458
|
+
query_params = opts[:query_params] || {}
|
|
459
|
+
|
|
460
|
+
# header parameters
|
|
461
|
+
header_params = opts[:header_params] || {}
|
|
462
|
+
# HTTP header 'Accept' (if needed)
|
|
463
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
464
|
+
# HTTP header 'Content-Type'
|
|
465
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
466
|
+
|
|
467
|
+
# form parameters
|
|
468
|
+
form_params = opts[:form_params] || {}
|
|
469
|
+
|
|
470
|
+
# http body (model)
|
|
471
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
472
|
+
|
|
473
|
+
# return_type
|
|
474
|
+
return_type = opts[:debug_return_type] || 'MicrosoftTeamsApiHandleInfoResponse'
|
|
475
|
+
|
|
476
|
+
# auth_names
|
|
477
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
478
|
+
|
|
479
|
+
new_options = opts.merge(
|
|
480
|
+
:operation => :update_api_handle,
|
|
481
|
+
:header_params => header_params,
|
|
482
|
+
:query_params => query_params,
|
|
483
|
+
:form_params => form_params,
|
|
484
|
+
:body => post_body,
|
|
485
|
+
:auth_names => auth_names,
|
|
486
|
+
:return_type => return_type,
|
|
487
|
+
:api_version => "V2"
|
|
488
|
+
)
|
|
489
|
+
|
|
490
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
491
|
+
if @api_client.config.debugging
|
|
492
|
+
@api_client.config.logger.debug "API called: MicrosoftTeamsIntegrationAPI#update_api_handle\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
493
|
+
end
|
|
494
|
+
return data, status_code, headers
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
end
|
|
@@ -68,7 +68,7 @@ module DatadogAPIClient::V2
|
|
|
68
68
|
return_type = opts[:debug_return_type]
|
|
69
69
|
|
|
70
70
|
# auth_names
|
|
71
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
71
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
72
72
|
|
|
73
73
|
new_options = opts.merge(
|
|
74
74
|
:operation => :delete_restriction_policy,
|
|
@@ -133,7 +133,7 @@ module DatadogAPIClient::V2
|
|
|
133
133
|
return_type = opts[:debug_return_type] || 'RestrictionPolicyResponse'
|
|
134
134
|
|
|
135
135
|
# auth_names
|
|
136
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
136
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
137
137
|
|
|
138
138
|
new_options = opts.merge(
|
|
139
139
|
:operation => :get_restriction_policy,
|
|
@@ -230,7 +230,7 @@ module DatadogAPIClient::V2
|
|
|
230
230
|
return_type = opts[:debug_return_type] || 'RestrictionPolicyResponse'
|
|
231
231
|
|
|
232
232
|
# auth_names
|
|
233
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
233
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
234
234
|
|
|
235
235
|
new_options = opts.merge(
|
|
236
236
|
:operation => :update_restriction_policy,
|
|
@@ -331,7 +331,7 @@ module DatadogAPIClient::V2
|
|
|
331
331
|
# Get hourly usage by product family.
|
|
332
332
|
#
|
|
333
333
|
# @param filter_timestamp_start [Time] Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
|
|
334
|
-
# @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `csm_container_enterprise`, `csm_host_enterprise`, `cspm`, `custom_events`, `cws`, `dbm`, `error_tracking`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `
|
|
334
|
+
# @param filter_product_families [String] Comma separated list of product families to retrieve. Available families are `all`, `analyzed_logs`, `application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`, `cloud_siem`, `csm_container_enterprise`, `csm_host_enterprise`, `cspm`, `custom_events`, `cws`, `dbm`, `error_tracking`, `fargate`, `infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`, `iot`, `lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `network_monitoring`, `observability_pipelines`, `online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`, `sds`, `snmp`, `synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`, `timeseries`, `vuln_management`, and `workflow_executions`. The following product family has been **deprecated**: `audit_logs`.
|
|
335
335
|
# @param opts [Hash] the optional parameters
|
|
336
336
|
# @option opts [Time] :filter_timestamp_end Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending **before** this hour.
|
|
337
337
|
# @option opts [Boolean] :filter_include_descendants Include child org usage in the response. Defaults to false.
|
|
@@ -39,6 +39,9 @@ module DatadogAPIClient::V2
|
|
|
39
39
|
# Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
|
|
40
40
|
attr_reader :started_at
|
|
41
41
|
|
|
42
|
+
# Name of the team owning the deployed service. If not provided, this is automatically populated with the team associated with the service in the Service Catalog.
|
|
43
|
+
attr_accessor :team
|
|
44
|
+
|
|
42
45
|
# Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
|
|
43
46
|
attr_accessor :version
|
|
44
47
|
|
|
@@ -54,6 +57,7 @@ module DatadogAPIClient::V2
|
|
|
54
57
|
:'id' => :'id',
|
|
55
58
|
:'service' => :'service',
|
|
56
59
|
:'started_at' => :'started_at',
|
|
60
|
+
:'team' => :'team',
|
|
57
61
|
:'version' => :'version'
|
|
58
62
|
}
|
|
59
63
|
end
|
|
@@ -68,6 +72,7 @@ module DatadogAPIClient::V2
|
|
|
68
72
|
:'id' => :'String',
|
|
69
73
|
:'service' => :'String',
|
|
70
74
|
:'started_at' => :'Integer',
|
|
75
|
+
:'team' => :'String',
|
|
71
76
|
:'version' => :'String'
|
|
72
77
|
}
|
|
73
78
|
end
|
|
@@ -114,6 +119,10 @@ module DatadogAPIClient::V2
|
|
|
114
119
|
self.started_at = attributes[:'started_at']
|
|
115
120
|
end
|
|
116
121
|
|
|
122
|
+
if attributes.key?(:'team')
|
|
123
|
+
self.team = attributes[:'team']
|
|
124
|
+
end
|
|
125
|
+
|
|
117
126
|
if attributes.key?(:'version')
|
|
118
127
|
self.version = attributes[:'version']
|
|
119
128
|
end
|
|
@@ -191,6 +200,7 @@ module DatadogAPIClient::V2
|
|
|
191
200
|
id == o.id &&
|
|
192
201
|
service == o.service &&
|
|
193
202
|
started_at == o.started_at &&
|
|
203
|
+
team == o.team &&
|
|
194
204
|
version == o.version
|
|
195
205
|
additional_properties == o.additional_properties
|
|
196
206
|
end
|
|
@@ -199,7 +209,7 @@ module DatadogAPIClient::V2
|
|
|
199
209
|
# @return [Integer] Hash code
|
|
200
210
|
# @!visibility private
|
|
201
211
|
def hash
|
|
202
|
-
[env, finished_at, git, id, service, started_at, version].hash
|
|
212
|
+
[env, finished_at, git, id, service, started_at, team, version].hash
|
|
203
213
|
end
|
|
204
214
|
end
|
|
205
215
|
end
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The name of the notified handle.
|
|
25
25
|
attr_accessor :display_name
|
|
26
26
|
|
|
27
|
-
# The
|
|
27
|
+
# The handle used for the notification. This includes an email address, Slack channel, or workflow.
|
|
28
28
|
attr_accessor :handle
|
|
29
29
|
|
|
30
30
|
attr_accessor :additional_properties
|
|
@@ -36,7 +36,7 @@ module DatadogAPIClient::V2
|
|
|
36
36
|
# - time: sum, space: avg
|
|
37
37
|
# - time: sum, space: sum
|
|
38
38
|
#
|
|
39
|
-
# Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
39
|
+
# Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
40
40
|
attr_accessor :aggregations
|
|
41
41
|
|
|
42
42
|
# Timestamp when the tag configuration was created.
|
|
@@ -36,7 +36,7 @@ module DatadogAPIClient::V2
|
|
|
36
36
|
# - time: sum, space: avg
|
|
37
37
|
# - time: sum, space: sum
|
|
38
38
|
#
|
|
39
|
-
# Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
39
|
+
# Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
40
40
|
attr_accessor :aggregations
|
|
41
41
|
|
|
42
42
|
# When set to true, the configuration will exclude the configured tags and include any other submitted tags.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The metric's type category.
|
|
21
|
+
class MetricTagConfigurationMetricTypeCategory
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
NON_DISTRIBUTION = "non_distribution".freeze
|
|
25
|
+
DISTRIBUTION = "distribution".freeze
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -36,7 +36,7 @@ module DatadogAPIClient::V2
|
|
|
36
36
|
# - time: sum, space: avg
|
|
37
37
|
# - time: sum, space: sum
|
|
38
38
|
#
|
|
39
|
-
# Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
39
|
+
# Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
|
|
40
40
|
attr_accessor :aggregations
|
|
41
41
|
|
|
42
42
|
# When set to true, the configuration will exclude the configured tags and include any other submitted tags.
|