datadog_api_client 2.6.0 → 2.7.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.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +233 -14
- data/.generator/schemas/v2/openapi.yaml +1403 -151
- data/CHANGELOG.md +27 -0
- data/examples/v1/dashboards/CreateDashboard_1039800684.rb +37 -0
- data/examples/v1/dashboards/CreateDashboard_2432046716.rb +33 -0
- data/examples/v1/dashboards/CreateDashboard_2610827685.rb +38 -0
- data/examples/v1/dashboards/CreateDashboard_2843286292.rb +43 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/DeleteGCPIntegration.rb +1 -0
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +1 -0
- data/examples/v1/monitors/ValidateExistingMonitor.rb +1 -0
- data/examples/v1/monitors/ValidateMonitor.rb +1 -0
- data/examples/v1/service-level-objectives/CreateSLO.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +16 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +74 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +16 -0
- data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +16 -0
- data/examples/v2/cloudflare-integration/DeleteCloudflareAccount.rb +5 -0
- data/examples/v2/cloudflare-integration/GetCloudflareAccount.rb +8 -0
- data/examples/v2/cloudflare-integration/ListCloudflareAccounts.rb +5 -0
- data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +18 -0
- data/examples/v2/fastly-integration/CreateFastlyAccount.rb +16 -0
- data/examples/v2/fastly-integration/CreateFastlyService.rb +18 -0
- data/examples/v2/fastly-integration/DeleteFastlyAccount.rb +5 -0
- data/examples/v2/fastly-integration/DeleteFastlyService.rb +5 -0
- data/examples/v2/fastly-integration/GetFastlyAccount.rb +8 -0
- data/examples/v2/fastly-integration/GetFastlyService.rb +5 -0
- data/examples/v2/fastly-integration/ListFastlyAccounts.rb +5 -0
- data/examples/v2/fastly-integration/ListFastlyServices.rb +5 -0
- data/examples/v2/fastly-integration/UpdateFastlyAccount.rb +17 -0
- data/examples/v2/fastly-integration/UpdateFastlyService.rb +18 -0
- data/examples/v2/metrics/QueryScalarData.rb +5 -6
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +35 -0
- data/examples/v2/metrics/QueryTimeseriesData.rb +5 -6
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +35 -0
- data/examples/v2/monitors/CreateMonitorConfigPolicy.rb +22 -0
- data/examples/v2/monitors/DeleteMonitorConfigPolicy.rb +8 -0
- data/examples/v2/monitors/GetMonitorConfigPolicy.rb +8 -0
- data/examples/v2/monitors/ListMonitorConfigPolicies.rb +5 -0
- data/examples/v2/monitors/UpdateMonitorConfigPolicy.rb +26 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +6 -0
- data/examples/v2/{users → service-accounts}/CreateServiceAccount.rb +1 -1
- data/lib/datadog_api_client/inflector.rb +61 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/gcp_account.rb +11 -1
- data/lib/datadog_api_client/v1/models/host_meta.rb +1 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -1
- data/lib/datadog_api_client/v1/models/list_stream_compute_aggregation.rb +40 -0
- data/lib/datadog_api_client/v1/models/list_stream_compute_items.rb +112 -0
- data/lib/datadog_api_client/v1/models/list_stream_group_by_items.rb +102 -0
- data/lib/datadog_api_client/v1/models/list_stream_query.rb +61 -1
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +2 -0
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +3 -2
- data/lib/datadog_api_client/v1/models/monitor_options.rb +11 -1
- data/lib/datadog_api_client/v1/models/monitor_options_notification_presets.rb +29 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -2
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +13 -13
- data/lib/datadog_api_client/v1/models/run_workflow_widget_definition.rb +187 -0
- data/lib/datadog_api_client/v1/models/run_workflow_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/run_workflow_widget_input.rb +123 -0
- data/lib/datadog_api_client/v1/models/synthetics_config_variable.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options_http_version.rb +28 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling.rb +103 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_options_scheduling_timeframe.rb +126 -0
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -0
- data/lib/datadog_api_client/v2/api/cloudflare_integration_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/fastly_integration_api.rb +709 -0
- data/lib/datadog_api_client/v2/api/metrics_api.rb +7 -6
- data/lib/datadog_api_client/v2/api/monitors_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/service_accounts_api.rb +67 -0
- data/lib/datadog_api_client/v2/api/users_api.rb +0 -67
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +112 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +112 -0
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_data.rb +101 -0
- data/lib/datadog_api_client/v2/models/cloudflare_accounts_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/data_scalar_column.rb +123 -0
- data/lib/datadog_api_client/v2/models/fastly_accoun_response_attributes.rb +114 -0
- data/lib/datadog_api_client/v2/models/fastly_account_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/fastly_account_create_request_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/fastly_account_create_request_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/fastly_account_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/fastly_account_response_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/fastly_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fastly_account_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/fastly_account_update_request_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/fastly_account_update_request_data.rb +101 -0
- data/lib/datadog_api_client/v2/models/fastly_accounts_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/fastly_service.rb +114 -0
- data/lib/datadog_api_client/v2/models/fastly_service_attributes.rb +93 -0
- data/lib/datadog_api_client/v2/models/fastly_service_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/fastly_service_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/fastly_service_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/fastly_service_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/fastly_services_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/group_scalar_column.rb +113 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_edit_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_attribute_response.rb +101 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_create_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_edit_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_edit_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_list_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy_create_request.rb +62 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_response_data.rb +111 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy.rb +124 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_tag_policy_create_request.rb +150 -0
- data/lib/datadog_api_client/v2/models/monitor_config_policy_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/scalar_column.rb +35 -77
- data/lib/datadog_api_client/v2/models/scalar_formula_response_atrributes.rb +4 -16
- data/lib/datadog_api_client/v2/models/scalar_meta.rb +96 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_aggregation.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +22 -9
- data/lib/datadog_api_client/v2/models/timeseries_response_series.rb +4 -1
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +91 -3
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
# List of facets on which to group.
|
|
21
|
+
class ListStreamGroupByItems
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# Facet name.
|
|
29
|
+
attr_reader :facet
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
# @!visibility private
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'facet' => :'facet'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'facet' => :'String'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Initializes the object
|
|
48
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
49
|
+
# @!visibility private
|
|
50
|
+
def initialize(attributes = {})
|
|
51
|
+
if (!attributes.is_a?(Hash))
|
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ListStreamGroupByItems` initialize method"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::ListStreamGroupByItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
59
|
+
end
|
|
60
|
+
h[k.to_sym] = v
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'facet')
|
|
64
|
+
self.facet = attributes[:'facet']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Check to see if the all the properties in the model are valid
|
|
69
|
+
# @return true if the model is valid
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def valid?
|
|
72
|
+
return false if @facet.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param facet [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def facet=(facet)
|
|
80
|
+
if facet.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "facet", facet cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@facet = facet
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param o [Object] Object to be compared
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def ==(o)
|
|
90
|
+
return true if self.equal?(o)
|
|
91
|
+
self.class == o.class &&
|
|
92
|
+
facet == o.facet
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Calculates hash code according to all attributes.
|
|
96
|
+
# @return [Integer] Hash code
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def hash
|
|
99
|
+
[facet].hash
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -25,9 +25,18 @@ module DatadogAPIClient::V1
|
|
|
25
25
|
# @!visibility private
|
|
26
26
|
attr_accessor :_unparsed
|
|
27
27
|
|
|
28
|
+
# Compute configuration for the List Stream Widget. Compute can be used only with the logs_transaction_stream (from 1 to 5 items) list stream source.
|
|
29
|
+
attr_reader :compute
|
|
30
|
+
|
|
28
31
|
# Source from which to query items to display in the stream.
|
|
29
32
|
attr_reader :data_source
|
|
30
33
|
|
|
34
|
+
# Size to use to display an event.
|
|
35
|
+
attr_accessor :event_size
|
|
36
|
+
|
|
37
|
+
# Group by configuration for the List Stream Widget. Group by can be used only with logs_pattern_stream (up to 3 items) or logs_transaction_stream (one group by item is required) list stream source.
|
|
38
|
+
attr_reader :group_by
|
|
39
|
+
|
|
31
40
|
# List of indexes.
|
|
32
41
|
attr_accessor :indexes
|
|
33
42
|
|
|
@@ -41,7 +50,10 @@ module DatadogAPIClient::V1
|
|
|
41
50
|
# @!visibility private
|
|
42
51
|
def self.attribute_map
|
|
43
52
|
{
|
|
53
|
+
:'compute' => :'compute',
|
|
44
54
|
:'data_source' => :'data_source',
|
|
55
|
+
:'event_size' => :'event_size',
|
|
56
|
+
:'group_by' => :'group_by',
|
|
45
57
|
:'indexes' => :'indexes',
|
|
46
58
|
:'query_string' => :'query_string',
|
|
47
59
|
:'storage' => :'storage'
|
|
@@ -52,7 +64,10 @@ module DatadogAPIClient::V1
|
|
|
52
64
|
# @!visibility private
|
|
53
65
|
def self.openapi_types
|
|
54
66
|
{
|
|
67
|
+
:'compute' => :'Array<ListStreamComputeItems>',
|
|
55
68
|
:'data_source' => :'ListStreamSource',
|
|
69
|
+
:'event_size' => :'WidgetEventSize',
|
|
70
|
+
:'group_by' => :'Array<ListStreamGroupByItems>',
|
|
56
71
|
:'indexes' => :'Array<String>',
|
|
57
72
|
:'query_string' => :'String',
|
|
58
73
|
:'storage' => :'String'
|
|
@@ -75,10 +90,26 @@ module DatadogAPIClient::V1
|
|
|
75
90
|
h[k.to_sym] = v
|
|
76
91
|
}
|
|
77
92
|
|
|
93
|
+
if attributes.key?(:'compute')
|
|
94
|
+
if (value = attributes[:'compute']).is_a?(Array)
|
|
95
|
+
self.compute = value
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
78
99
|
if attributes.key?(:'data_source')
|
|
79
100
|
self.data_source = attributes[:'data_source']
|
|
80
101
|
end
|
|
81
102
|
|
|
103
|
+
if attributes.key?(:'event_size')
|
|
104
|
+
self.event_size = attributes[:'event_size']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'group_by')
|
|
108
|
+
if (value = attributes[:'group_by']).is_a?(Array)
|
|
109
|
+
self.group_by = value
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
82
113
|
if attributes.key?(:'indexes')
|
|
83
114
|
if (value = attributes[:'indexes']).is_a?(Array)
|
|
84
115
|
self.indexes = value
|
|
@@ -98,11 +129,27 @@ module DatadogAPIClient::V1
|
|
|
98
129
|
# @return true if the model is valid
|
|
99
130
|
# @!visibility private
|
|
100
131
|
def valid?
|
|
132
|
+
return false if !@compute.nil? && @compute.length > 5
|
|
133
|
+
return false if !@compute.nil? && @compute.length < 1
|
|
101
134
|
return false if @data_source.nil?
|
|
135
|
+
return false if !@group_by.nil? && @group_by.length > 3
|
|
102
136
|
return false if @query_string.nil?
|
|
103
137
|
true
|
|
104
138
|
end
|
|
105
139
|
|
|
140
|
+
# Custom attribute writer method with validation
|
|
141
|
+
# @param compute [Object] Object to be assigned
|
|
142
|
+
# @!visibility private
|
|
143
|
+
def compute=(compute)
|
|
144
|
+
if !compute.nil? && compute.length > 5
|
|
145
|
+
fail ArgumentError, 'invalid value for "compute", number of items must be less than or equal to 5.'
|
|
146
|
+
end
|
|
147
|
+
if !compute.nil? && compute.length < 1
|
|
148
|
+
fail ArgumentError, 'invalid value for "compute", number of items must be greater than or equal to 1.'
|
|
149
|
+
end
|
|
150
|
+
@compute = compute
|
|
151
|
+
end
|
|
152
|
+
|
|
106
153
|
# Custom attribute writer method with validation
|
|
107
154
|
# @param data_source [Object] Object to be assigned
|
|
108
155
|
# @!visibility private
|
|
@@ -113,6 +160,16 @@ module DatadogAPIClient::V1
|
|
|
113
160
|
@data_source = data_source
|
|
114
161
|
end
|
|
115
162
|
|
|
163
|
+
# Custom attribute writer method with validation
|
|
164
|
+
# @param group_by [Object] Object to be assigned
|
|
165
|
+
# @!visibility private
|
|
166
|
+
def group_by=(group_by)
|
|
167
|
+
if !group_by.nil? && group_by.length > 3
|
|
168
|
+
fail ArgumentError, 'invalid value for "group_by", number of items must be less than or equal to 3.'
|
|
169
|
+
end
|
|
170
|
+
@group_by = group_by
|
|
171
|
+
end
|
|
172
|
+
|
|
116
173
|
# Custom attribute writer method with validation
|
|
117
174
|
# @param query_string [Object] Object to be assigned
|
|
118
175
|
# @!visibility private
|
|
@@ -129,7 +186,10 @@ module DatadogAPIClient::V1
|
|
|
129
186
|
def ==(o)
|
|
130
187
|
return true if self.equal?(o)
|
|
131
188
|
self.class == o.class &&
|
|
189
|
+
compute == o.compute &&
|
|
132
190
|
data_source == o.data_source &&
|
|
191
|
+
event_size == o.event_size &&
|
|
192
|
+
group_by == o.group_by &&
|
|
133
193
|
indexes == o.indexes &&
|
|
134
194
|
query_string == o.query_string &&
|
|
135
195
|
storage == o.storage
|
|
@@ -139,7 +199,7 @@ module DatadogAPIClient::V1
|
|
|
139
199
|
# @return [Integer] Hash code
|
|
140
200
|
# @!visibility private
|
|
141
201
|
def hash
|
|
142
|
-
[data_source, indexes, query_string, storage].hash
|
|
202
|
+
[compute, data_source, event_size, group_by, indexes, query_string, storage].hash
|
|
143
203
|
end
|
|
144
204
|
end
|
|
145
205
|
end
|
|
@@ -26,5 +26,7 @@ module DatadogAPIClient::V1
|
|
|
26
26
|
RUM_ISSUE_STREAM = "rum_issue_stream".freeze
|
|
27
27
|
APM_ISSUE_STREAM = "apm_issue_stream".freeze
|
|
28
28
|
LOGS_PATTERN_STREAM = "logs_pattern_stream".freeze
|
|
29
|
+
LOGS_TRANSACTION_STREAM = "logs_transaction_stream".freeze
|
|
30
|
+
EVENT_STREAM = "event_stream".freeze
|
|
29
31
|
end
|
|
30
32
|
end
|
|
@@ -62,8 +62,9 @@ module DatadogAPIClient::V1
|
|
|
62
62
|
attr_accessor :tag_set
|
|
63
63
|
|
|
64
64
|
# Detailed information about the metric unit.
|
|
65
|
-
#
|
|
66
|
-
# second describes the "per unit" (for example, `second` in `bytes per second`).
|
|
65
|
+
# The first element describes the "primary unit" (for example, `bytes` in `bytes per second`).
|
|
66
|
+
# The second element describes the "per unit" (for example, `second` in `bytes per second`).
|
|
67
|
+
# If the second element is not present, the API returns null.
|
|
67
68
|
attr_reader :unit
|
|
68
69
|
|
|
69
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -94,6 +94,9 @@ module DatadogAPIClient::V1
|
|
|
94
94
|
# If omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.
|
|
95
95
|
attr_accessor :no_data_timeframe
|
|
96
96
|
|
|
97
|
+
# Toggles the display of additional content sent in the monitor notification.
|
|
98
|
+
attr_accessor :notification_preset_name
|
|
99
|
+
|
|
97
100
|
# A Boolean indicating whether tagged users is notified on changes to this monitor.
|
|
98
101
|
attr_accessor :notify_audit
|
|
99
102
|
|
|
@@ -170,6 +173,7 @@ module DatadogAPIClient::V1
|
|
|
170
173
|
:'new_group_delay' => :'new_group_delay',
|
|
171
174
|
:'new_host_delay' => :'new_host_delay',
|
|
172
175
|
:'no_data_timeframe' => :'no_data_timeframe',
|
|
176
|
+
:'notification_preset_name' => :'notification_preset_name',
|
|
173
177
|
:'notify_audit' => :'notify_audit',
|
|
174
178
|
:'notify_by' => :'notify_by',
|
|
175
179
|
:'notify_no_data' => :'notify_no_data',
|
|
@@ -207,6 +211,7 @@ module DatadogAPIClient::V1
|
|
|
207
211
|
:'new_group_delay' => :'Integer',
|
|
208
212
|
:'new_host_delay' => :'Integer',
|
|
209
213
|
:'no_data_timeframe' => :'Integer',
|
|
214
|
+
:'notification_preset_name' => :'MonitorOptionsNotificationPresets',
|
|
210
215
|
:'notify_audit' => :'Boolean',
|
|
211
216
|
:'notify_by' => :'Array<String>',
|
|
212
217
|
:'notify_no_data' => :'Boolean',
|
|
@@ -321,6 +326,10 @@ module DatadogAPIClient::V1
|
|
|
321
326
|
self.no_data_timeframe = attributes[:'no_data_timeframe']
|
|
322
327
|
end
|
|
323
328
|
|
|
329
|
+
if attributes.key?(:'notification_preset_name')
|
|
330
|
+
self.notification_preset_name = attributes[:'notification_preset_name']
|
|
331
|
+
end
|
|
332
|
+
|
|
324
333
|
if attributes.key?(:'notify_audit')
|
|
325
334
|
self.notify_audit = attributes[:'notify_audit']
|
|
326
335
|
end
|
|
@@ -431,6 +440,7 @@ module DatadogAPIClient::V1
|
|
|
431
440
|
new_group_delay == o.new_group_delay &&
|
|
432
441
|
new_host_delay == o.new_host_delay &&
|
|
433
442
|
no_data_timeframe == o.no_data_timeframe &&
|
|
443
|
+
notification_preset_name == o.notification_preset_name &&
|
|
434
444
|
notify_audit == o.notify_audit &&
|
|
435
445
|
notify_by == o.notify_by &&
|
|
436
446
|
notify_no_data == o.notify_no_data &&
|
|
@@ -452,7 +462,7 @@ module DatadogAPIClient::V1
|
|
|
452
462
|
# @return [Integer] Hash code
|
|
453
463
|
# @!visibility private
|
|
454
464
|
def hash
|
|
455
|
-
[aggregation, device_ids, enable_logs_sample, enable_samples, escalation_message, evaluation_delay, group_retention_duration, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notify_audit, notify_by, notify_no_data, on_missing_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, scheduling_options, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
|
|
465
|
+
[aggregation, device_ids, enable_logs_sample, enable_samples, escalation_message, evaluation_delay, group_retention_duration, groupby_simple_monitor, include_tags, locked, min_failure_duration, min_location_failed, new_group_delay, new_host_delay, no_data_timeframe, notification_preset_name, notify_audit, notify_by, notify_no_data, on_missing_data, renotify_interval, renotify_occurrences, renotify_statuses, require_full_window, scheduling_options, silenced, synthetics_check_id, threshold_windows, thresholds, timeout_h, variables].hash
|
|
456
466
|
end
|
|
457
467
|
end
|
|
458
468
|
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
# Toggles the display of additional content sent in the monitor notification.
|
|
21
|
+
class MonitorOptionsNotificationPresets
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
SHOW_ALL = "show_all".freeze
|
|
25
|
+
HIDE_QUERY = "hide_query".freeze
|
|
26
|
+
HIDE_HANDLES = "hide_handles".freeze
|
|
27
|
+
HIDE_ALL = "hide_all".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -33,6 +33,8 @@ module DatadogAPIClient::V1
|
|
|
33
33
|
APPSEC_PERCENTAGE = "appsec_percentage".freeze
|
|
34
34
|
BROWSER_USAGE = "browser_usage".freeze
|
|
35
35
|
BROWSER_PERCENTAGE = "browser_percentage".freeze
|
|
36
|
+
CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage".freeze
|
|
37
|
+
CONTAINER_EXCL_AGENT_PERCENTAGE = "container_excl_agent_percentage".freeze
|
|
36
38
|
CONTAINER_USAGE = "container_usage".freeze
|
|
37
39
|
CONTAINER_PERCENTAGE = "container_percentage".freeze
|
|
38
40
|
CSPM_CONTAINERS_PERCENTAGE = "cspm_containers_percentage".freeze
|
|
@@ -75,8 +77,6 @@ module DatadogAPIClient::V1
|
|
|
75
77
|
SNMP_PERCENTAGE = "snmp_percentage".freeze
|
|
76
78
|
ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
|
|
77
79
|
ESTIMATED_RUM_SESSIONS_PERCENTAGE = "estimated_rum_sessions_percentage".freeze
|
|
78
|
-
CONT_USAGE = "cont_usage".freeze
|
|
79
|
-
CONT_PERCENTAGE = "cont_percentage".freeze
|
|
80
80
|
ALL = "*".freeze
|
|
81
81
|
end
|
|
82
82
|
end
|
|
@@ -62,10 +62,10 @@ module DatadogAPIClient::V1
|
|
|
62
62
|
attr_accessor :browser_usage
|
|
63
63
|
|
|
64
64
|
# The percentage of container usage without the Datadog Agent by tag(s).
|
|
65
|
-
attr_accessor :
|
|
65
|
+
attr_accessor :container_excl_agent_percentage
|
|
66
66
|
|
|
67
67
|
# The container usage without the Datadog Agent by tag(s).
|
|
68
|
-
attr_accessor :
|
|
68
|
+
attr_accessor :container_excl_agent_usage
|
|
69
69
|
|
|
70
70
|
# The percentage of container usage by tag(s).
|
|
71
71
|
attr_accessor :container_percentage
|
|
@@ -209,8 +209,8 @@ module DatadogAPIClient::V1
|
|
|
209
209
|
:'appsec_usage' => :'appsec_usage',
|
|
210
210
|
:'browser_percentage' => :'browser_percentage',
|
|
211
211
|
:'browser_usage' => :'browser_usage',
|
|
212
|
-
:'
|
|
213
|
-
:'
|
|
212
|
+
:'container_excl_agent_percentage' => :'container_excl_agent_percentage',
|
|
213
|
+
:'container_excl_agent_usage' => :'container_excl_agent_usage',
|
|
214
214
|
:'container_percentage' => :'container_percentage',
|
|
215
215
|
:'container_usage' => :'container_usage',
|
|
216
216
|
:'cspm_containers_percentage' => :'cspm_containers_percentage',
|
|
@@ -272,8 +272,8 @@ module DatadogAPIClient::V1
|
|
|
272
272
|
:'appsec_usage' => :'Float',
|
|
273
273
|
:'browser_percentage' => :'Float',
|
|
274
274
|
:'browser_usage' => :'Float',
|
|
275
|
-
:'
|
|
276
|
-
:'
|
|
275
|
+
:'container_excl_agent_percentage' => :'Float',
|
|
276
|
+
:'container_excl_agent_usage' => :'Float',
|
|
277
277
|
:'container_percentage' => :'Float',
|
|
278
278
|
:'container_usage' => :'Float',
|
|
279
279
|
:'cspm_containers_percentage' => :'Float',
|
|
@@ -383,12 +383,12 @@ module DatadogAPIClient::V1
|
|
|
383
383
|
self.browser_usage = attributes[:'browser_usage']
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
-
if attributes.key?(:'
|
|
387
|
-
self.
|
|
386
|
+
if attributes.key?(:'container_excl_agent_percentage')
|
|
387
|
+
self.container_excl_agent_percentage = attributes[:'container_excl_agent_percentage']
|
|
388
388
|
end
|
|
389
389
|
|
|
390
|
-
if attributes.key?(:'
|
|
391
|
-
self.
|
|
390
|
+
if attributes.key?(:'container_excl_agent_usage')
|
|
391
|
+
self.container_excl_agent_usage = attributes[:'container_excl_agent_usage']
|
|
392
392
|
end
|
|
393
393
|
|
|
394
394
|
if attributes.key?(:'container_percentage')
|
|
@@ -585,8 +585,8 @@ module DatadogAPIClient::V1
|
|
|
585
585
|
appsec_usage == o.appsec_usage &&
|
|
586
586
|
browser_percentage == o.browser_percentage &&
|
|
587
587
|
browser_usage == o.browser_usage &&
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
container_excl_agent_percentage == o.container_excl_agent_percentage &&
|
|
589
|
+
container_excl_agent_usage == o.container_excl_agent_usage &&
|
|
590
590
|
container_percentage == o.container_percentage &&
|
|
591
591
|
container_usage == o.container_usage &&
|
|
592
592
|
cspm_containers_percentage == o.cspm_containers_percentage &&
|
|
@@ -635,7 +635,7 @@ module DatadogAPIClient::V1
|
|
|
635
635
|
# @return [Integer] Hash code
|
|
636
636
|
# @!visibility private
|
|
637
637
|
def hash
|
|
638
|
-
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage,
|
|
638
|
+
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
end
|
|
@@ -0,0 +1,187 @@
|
|
|
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
|
+
# Run workflow is widget that allows you to run a workflow from a dashboard.
|
|
21
|
+
class RunWorkflowWidgetDefinition
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# List of custom links.
|
|
29
|
+
attr_accessor :custom_links
|
|
30
|
+
|
|
31
|
+
# Array of workflow inputs to map to dashboard template variables.
|
|
32
|
+
attr_accessor :inputs
|
|
33
|
+
|
|
34
|
+
# Time setting for the widget.
|
|
35
|
+
attr_accessor :time
|
|
36
|
+
|
|
37
|
+
# Title of your widget.
|
|
38
|
+
attr_accessor :title
|
|
39
|
+
|
|
40
|
+
# How to align the text on the widget.
|
|
41
|
+
attr_accessor :title_align
|
|
42
|
+
|
|
43
|
+
# Size of the title.
|
|
44
|
+
attr_accessor :title_size
|
|
45
|
+
|
|
46
|
+
# Type of the run workflow widget.
|
|
47
|
+
attr_reader :type
|
|
48
|
+
|
|
49
|
+
# Workflow id.
|
|
50
|
+
attr_reader :workflow_id
|
|
51
|
+
|
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
|
+
# @!visibility private
|
|
54
|
+
def self.attribute_map
|
|
55
|
+
{
|
|
56
|
+
:'custom_links' => :'custom_links',
|
|
57
|
+
:'inputs' => :'inputs',
|
|
58
|
+
:'time' => :'time',
|
|
59
|
+
:'title' => :'title',
|
|
60
|
+
:'title_align' => :'title_align',
|
|
61
|
+
:'title_size' => :'title_size',
|
|
62
|
+
:'type' => :'type',
|
|
63
|
+
:'workflow_id' => :'workflow_id'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Attribute type mapping.
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def self.openapi_types
|
|
70
|
+
{
|
|
71
|
+
:'custom_links' => :'Array<WidgetCustomLink>',
|
|
72
|
+
:'inputs' => :'Array<RunWorkflowWidgetInput>',
|
|
73
|
+
:'time' => :'WidgetTime',
|
|
74
|
+
:'title' => :'String',
|
|
75
|
+
:'title_align' => :'WidgetTextAlign',
|
|
76
|
+
:'title_size' => :'String',
|
|
77
|
+
:'type' => :'RunWorkflowWidgetDefinitionType',
|
|
78
|
+
:'workflow_id' => :'String'
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Initializes the object
|
|
83
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
84
|
+
# @!visibility private
|
|
85
|
+
def initialize(attributes = {})
|
|
86
|
+
if (!attributes.is_a?(Hash))
|
|
87
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::RunWorkflowWidgetDefinition` initialize method"
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::RunWorkflowWidgetDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
94
|
+
end
|
|
95
|
+
h[k.to_sym] = v
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'custom_links')
|
|
99
|
+
if (value = attributes[:'custom_links']).is_a?(Array)
|
|
100
|
+
self.custom_links = value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'inputs')
|
|
105
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
|
106
|
+
self.inputs = value
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'time')
|
|
111
|
+
self.time = attributes[:'time']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'title')
|
|
115
|
+
self.title = attributes[:'title']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'title_align')
|
|
119
|
+
self.title_align = attributes[:'title_align']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'title_size')
|
|
123
|
+
self.title_size = attributes[:'title_size']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'type')
|
|
127
|
+
self.type = attributes[:'type']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'workflow_id')
|
|
131
|
+
self.workflow_id = attributes[:'workflow_id']
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Check to see if the all the properties in the model are valid
|
|
136
|
+
# @return true if the model is valid
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def valid?
|
|
139
|
+
return false if @type.nil?
|
|
140
|
+
return false if @workflow_id.nil?
|
|
141
|
+
true
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Custom attribute writer method with validation
|
|
145
|
+
# @param type [Object] Object to be assigned
|
|
146
|
+
# @!visibility private
|
|
147
|
+
def type=(type)
|
|
148
|
+
if type.nil?
|
|
149
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
150
|
+
end
|
|
151
|
+
@type = type
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Custom attribute writer method with validation
|
|
155
|
+
# @param workflow_id [Object] Object to be assigned
|
|
156
|
+
# @!visibility private
|
|
157
|
+
def workflow_id=(workflow_id)
|
|
158
|
+
if workflow_id.nil?
|
|
159
|
+
fail ArgumentError, 'invalid value for "workflow_id", workflow_id cannot be nil.'
|
|
160
|
+
end
|
|
161
|
+
@workflow_id = workflow_id
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Checks equality by comparing each attribute.
|
|
165
|
+
# @param o [Object] Object to be compared
|
|
166
|
+
# @!visibility private
|
|
167
|
+
def ==(o)
|
|
168
|
+
return true if self.equal?(o)
|
|
169
|
+
self.class == o.class &&
|
|
170
|
+
custom_links == o.custom_links &&
|
|
171
|
+
inputs == o.inputs &&
|
|
172
|
+
time == o.time &&
|
|
173
|
+
title == o.title &&
|
|
174
|
+
title_align == o.title_align &&
|
|
175
|
+
title_size == o.title_size &&
|
|
176
|
+
type == o.type &&
|
|
177
|
+
workflow_id == o.workflow_id
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Calculates hash code according to all attributes.
|
|
181
|
+
# @return [Integer] Hash code
|
|
182
|
+
# @!visibility private
|
|
183
|
+
def hash
|
|
184
|
+
[custom_links, inputs, time, title, title_align, title_size, type, workflow_id].hash
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
# Type of the run workflow widget.
|
|
21
|
+
class RunWorkflowWidgetDefinitionType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
RUN_WORKFLOW = "run_workflow".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|