datadog_api_client 1.9.0 → 1.10.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 +489 -124
- data/.generator/schemas/v2/openapi.yaml +701 -28
- data/.generator/src/generator/formatter.py +6 -1
- data/.generator/src/generator/openapi.py +5 -5
- data/.generator/src/generator/templates/api_client.j2 +1 -4
- data/.generator/src/generator/templates/model_generic.j2 +42 -3
- data/.github/workflows/prepare_release.yml +15 -3
- data/CHANGELOG.md +32 -0
- data/Makefile +1 -1
- data/README.md +16 -0
- data/check-examples.sh +0 -2
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +8 -4
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -0
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -0
- data/examples/v1/downtimes/UpdateDowntime.rb +1 -0
- data/examples/v1/monitors/CreateMonitor_1969035628.rb +52 -0
- data/examples/v1/monitors/CreateMonitor_2520912138.rb +22 -0
- data/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +9 -0
- data/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb +10 -0
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +0 -3
- data/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +0 -3
- data/examples/v1/service-level-objectives/GetSLOCorrections.rb +0 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest.rb +5 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +44 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +64 -0
- data/examples/v1/synthetics/UpdateBrowserTest.rb +5 -0
- data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/{GetMonthlyUsageAttribution_3738504447.rb → GetMonthlyUsageAttribution_3849653599.rb} +1 -1
- data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb +9 -0
- data/examples/v2/logs/SubmitLog.rb +1 -0
- data/examples/v2/logs-archives/CreateLogsArchive.rb +1 -0
- data/examples/v2/logs-archives/UpdateLogsArchive.rb +1 -0
- data/examples/v2/metrics/EstimateMetricsOutputSeries.rb +9 -0
- data/examples/v2/metrics/SubmitMetrics.rb +20 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
- data/examples/v2/usage-metering/GetCostByOrg.rb +5 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +8 -0
- data/lib/datadog_api_client/v1/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +69 -56
- data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +266 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +10 -10
- data/lib/datadog_api_client/v1/api_client.rb +1 -4
- data/lib/datadog_api_client/v1/configuration.rb +0 -6
- data/lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb +142 -0
- data/lib/datadog_api_client/v1/models/downtime.rb +11 -1
- data/lib/datadog_api_client/v1/models/downtime_child.rb +11 -1
- data/lib/datadog_api_client/v1/models/event.rb +1 -1
- data/lib/datadog_api_client/v1/models/http_log_item.rb +29 -4
- data/lib/datadog_api_client/v1/models/logs_category_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/logs_sort.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor_group_search_response_counts.rb +2 -2
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_tag_item.rb → monitor_search_count_item.rb} +3 -3
- data/lib/datadog_api_client/v1/models/monitor_search_response_counts.rb +4 -4
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request.rb +146 -0
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +68 -0
- data/lib/datadog_api_client/v1/models/series.rb +2 -2
- data/lib/datadog_api_client/v1/models/signal_archive_reason.rb +29 -0
- data/lib/datadog_api_client/v1/models/signal_assignee_update_request.rb +132 -0
- data/lib/datadog_api_client/v1/models/signal_state_update_request.rb +152 -0
- data/lib/datadog_api_client/v1/models/signal_triage_state.rb +28 -0
- data/lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +4 -4
- data/lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/{monitor_search_response_counts_status_item.rb → successful_signal_update_response.rb} +12 -22
- data/lib/datadog_api_client/v1/models/synthetics_api_test.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/synthetics_browser_test_rum_settings.rb +152 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_sub_type.rb +2 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_options.rb +21 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_rum_sessions_hour.rb +18 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +11 -1
- data/lib/datadog_api_client/v1.rb +11 -6
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +0 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +173 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +228 -0
- data/lib/datadog_api_client/v2/api_client.rb +1 -4
- data/lib/datadog_api_client/v2/models/authn_mapping.rb +1 -13
- data/lib/datadog_api_client/v2/models/authn_mapping_attributes.rb +1 -12
- data/lib/datadog_api_client/v2/models/authn_mapping_response.rb +16 -4
- data/lib/datadog_api_client/v2/models/authn_mappings_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/chargeback_breakdown.rb +131 -0
- data/lib/datadog_api_client/v2/models/cost_by_org.rb +133 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_attributes.rb +153 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_response.rb +113 -0
- data/lib/datadog_api_client/v2/models/cost_by_org_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_type.rb +2 -0
- data/lib/datadog_api_client/v2/models/http_log_item.rb +40 -4
- data/lib/datadog_api_client/v2/models/intake_payload_accepted.rb +111 -0
- data/lib/datadog_api_client/v2/models/logs_archive_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/metric_content_encoding.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_response.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_estimate_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/metric_intake_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/metric_metadata.rb +111 -0
- data/lib/datadog_api_client/v2/models/metric_origin.rb +170 -0
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_type_item.rb → v2/models/metric_payload.rb} +27 -24
- data/lib/datadog_api_client/v2/models/metric_point.rb +122 -0
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_type_item.rb → v2/models/metric_resource.rb} +21 -21
- data/lib/datadog_api_client/v2/models/metric_series.rb +220 -0
- data/lib/datadog_api_client/v2/models/relationship_to_saml_assertion_attribute_data.rb +1 -5
- data/lib/datadog_api_client/v2/models/saml_assertion_attribute.rb +1 -5
- 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_hardcoded_evaluator_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/{v1/models/monitor_group_search_response_counts_status_item.rb → v2/models/usage_application_security_monitoring_response.rb} +16 -24
- data/lib/datadog_api_client/{v1/models/monitor_search_response_counts_muted_item.rb → v2/models/usage_lambda_traced_invocations_response.rb} +16 -24
- data/lib/datadog_api_client/v2.rb +22 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/v1/api_client_spec.rb +3 -3
- data/spec/v2/api_client_spec.rb +3 -3
- metadata +49 -11
- data/extract-code-blocks.awk +0 -81
- data/extract-code-blocks.sh +0 -3
|
@@ -107,7 +107,7 @@ module DatadogAPIClient::V1
|
|
|
107
107
|
return data, status_code, headers
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
# Get
|
|
110
|
+
# Get hourly usage attribution.
|
|
111
111
|
#
|
|
112
112
|
# @see #get_hourly_usage_attribution_with_http_info
|
|
113
113
|
def get_hourly_usage_attribution(start_hr, usage_type, opts = {})
|
|
@@ -115,9 +115,9 @@ module DatadogAPIClient::V1
|
|
|
115
115
|
data
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
# Get
|
|
118
|
+
# Get hourly usage attribution.
|
|
119
119
|
#
|
|
120
|
-
# Get
|
|
120
|
+
# Get hourly usage attribution.
|
|
121
121
|
#
|
|
122
122
|
# This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is
|
|
123
123
|
# set in the response. If it is, make another request and pass `next_record_id` as a parameter.
|
|
@@ -448,7 +448,7 @@ module DatadogAPIClient::V1
|
|
|
448
448
|
return data, status_code, headers
|
|
449
449
|
end
|
|
450
450
|
|
|
451
|
-
# Get
|
|
451
|
+
# Get monthly usage attribution.
|
|
452
452
|
#
|
|
453
453
|
# @see #get_monthly_usage_attribution_with_http_info
|
|
454
454
|
def get_monthly_usage_attribution(start_month, fields, opts = {})
|
|
@@ -456,9 +456,9 @@ module DatadogAPIClient::V1
|
|
|
456
456
|
data
|
|
457
457
|
end
|
|
458
458
|
|
|
459
|
-
# Get
|
|
459
|
+
# Get monthly usage attribution.
|
|
460
460
|
#
|
|
461
|
-
# Get
|
|
461
|
+
# Get monthly usage attribution.
|
|
462
462
|
#
|
|
463
463
|
# This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is
|
|
464
464
|
# set in the response. If it is, make another request and pass `next_record_id` as a parameter.
|
|
@@ -787,7 +787,7 @@ module DatadogAPIClient::V1
|
|
|
787
787
|
return data, status_code, headers
|
|
788
788
|
end
|
|
789
789
|
|
|
790
|
-
# Get
|
|
790
|
+
# Get usage attribution.
|
|
791
791
|
#
|
|
792
792
|
# @see #get_usage_attribution_with_http_info
|
|
793
793
|
def get_usage_attribution(start_month, fields, opts = {})
|
|
@@ -795,9 +795,9 @@ module DatadogAPIClient::V1
|
|
|
795
795
|
data
|
|
796
796
|
end
|
|
797
797
|
|
|
798
|
-
# Get
|
|
798
|
+
# Get usage attribution.
|
|
799
799
|
#
|
|
800
|
-
# Get
|
|
800
|
+
# Get usage attribution.
|
|
801
801
|
#
|
|
802
802
|
# @param start_month [Time] Datetime in ISO-8601 format, UTC, precise to month: `[YYYY-MM]` for usage beginning in this month. Maximum of 15 months ago.
|
|
803
803
|
# @param fields [UsageAttributionSupportedMetrics] Comma-separated list of usage types to return, or `*` for all usage types.
|
|
@@ -1048,7 +1048,7 @@ module DatadogAPIClient::V1
|
|
|
1048
1048
|
|
|
1049
1049
|
# Get hourly usage for CI Visibility.
|
|
1050
1050
|
#
|
|
1051
|
-
# Get hourly usage for CI Visibility (Tests, Pipeline,
|
|
1051
|
+
# Get hourly usage for CI Visibility (Tests, Pipeline, and Spans).
|
|
1052
1052
|
#
|
|
1053
1053
|
# @param start_hr [Time] Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]` for usage beginning at this hour.
|
|
1054
1054
|
# @param opts [Hash] the optional parameters
|
|
@@ -36,7 +36,6 @@ module DatadogAPIClient::V1
|
|
|
36
36
|
@config = config
|
|
37
37
|
@user_agent = "#{DatadogAPIClient::USER_AGENT}"
|
|
38
38
|
@default_headers = {
|
|
39
|
-
'Content-Type' => 'application/json',
|
|
40
39
|
'User-Agent' => @user_agent
|
|
41
40
|
}
|
|
42
41
|
@default_headers['Accept-Encoding'] = 'gzip' if @config.compress
|
|
@@ -341,9 +340,7 @@ module DatadogAPIClient::V1
|
|
|
341
340
|
# @return [String] the Accept header (e.g. application/json)
|
|
342
341
|
def select_header_accept(accepts)
|
|
343
342
|
return nil if accepts.nil? || accepts.empty?
|
|
344
|
-
|
|
345
|
-
json_accept = accepts.find { |s| json_mime?(s) }
|
|
346
|
-
json_accept || accepts.join(',')
|
|
343
|
+
accepts.join(', ')
|
|
347
344
|
end
|
|
348
345
|
|
|
349
346
|
# Return Content-Type header based on an array of content types provided.
|
|
@@ -162,12 +162,6 @@ module DatadogAPIClient::V1
|
|
|
162
162
|
get_specified_daily_custom_reports: false,
|
|
163
163
|
get_monthly_custom_reports: false,
|
|
164
164
|
get_specified_monthly_custom_reports: false,
|
|
165
|
-
list_slo_correction: false,
|
|
166
|
-
create_slo_correction: false,
|
|
167
|
-
delete_slo_correction: false,
|
|
168
|
-
get_slo_correction: false,
|
|
169
|
-
update_slo_correction: false,
|
|
170
|
-
get_slo_corrections: false,
|
|
171
165
|
get_slo_history: false,
|
|
172
166
|
get_usage_attribution: false,
|
|
173
167
|
get_hourly_usage_attribution: false,
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
# Attributes describing which incident to add the signal to.
|
|
21
|
+
class AddSignalToIncidentRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Whether the object has unparsed attributes
|
|
25
|
+
# @!visibility private
|
|
26
|
+
attr_accessor :_unparsed
|
|
27
|
+
|
|
28
|
+
# Whether to post the signal on the incident timeline.
|
|
29
|
+
attr_accessor :add_to_signal_timeline
|
|
30
|
+
|
|
31
|
+
# Public ID attribute of the incident to which the signal will be added.
|
|
32
|
+
attr_accessor :incident_id
|
|
33
|
+
|
|
34
|
+
# Version of the updated signal. If server side version is higher, update will be rejected.
|
|
35
|
+
attr_accessor :version
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.attribute_map
|
|
40
|
+
{
|
|
41
|
+
:'add_to_signal_timeline' => :'add_to_signal_timeline',
|
|
42
|
+
:'incident_id' => :'incident_id',
|
|
43
|
+
:'version' => :'version'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
|
48
|
+
# @!visibility private
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Attribute type mapping.
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'add_to_signal_timeline' => :'Boolean',
|
|
58
|
+
:'incident_id' => :'Integer',
|
|
59
|
+
:'version' => :'Integer'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
# @!visibility private
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::AddSignalToIncidentRequest` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::AddSignalToIncidentRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
82
|
+
end
|
|
83
|
+
h[k.to_sym] = v
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'add_to_signal_timeline')
|
|
87
|
+
self.add_to_signal_timeline = attributes[:'add_to_signal_timeline']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'incident_id')
|
|
91
|
+
self.incident_id = attributes[:'incident_id']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'version')
|
|
95
|
+
self.version = attributes[:'version']
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
# @!visibility private
|
|
102
|
+
def valid?
|
|
103
|
+
return false if @incident_id.nil?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Custom attribute writer method with validation
|
|
108
|
+
# @param incident_id [Object] Object to be assigned
|
|
109
|
+
# @!visibility private
|
|
110
|
+
def incident_id=(incident_id)
|
|
111
|
+
if incident_id.nil?
|
|
112
|
+
fail ArgumentError, 'invalid value for "incident_id", incident_id cannot be nil.'
|
|
113
|
+
end
|
|
114
|
+
@incident_id = incident_id
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param o [Object] Object to be compared
|
|
119
|
+
# @!visibility private
|
|
120
|
+
def ==(o)
|
|
121
|
+
return true if self.equal?(o)
|
|
122
|
+
self.class == o.class &&
|
|
123
|
+
add_to_signal_timeline == o.add_to_signal_timeline &&
|
|
124
|
+
incident_id == o.incident_id &&
|
|
125
|
+
version == o.version
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @see the `==` method
|
|
129
|
+
# @param o [Object] Object to be compared
|
|
130
|
+
# @!visibility private
|
|
131
|
+
def eql?(o)
|
|
132
|
+
self == o
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Calculates hash code according to all attributes.
|
|
136
|
+
# @return [Integer] Hash code
|
|
137
|
+
# @!visibility private
|
|
138
|
+
def hash
|
|
139
|
+
[add_to_signal_timeline, incident_id, version].hash
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
@@ -70,6 +70,9 @@ module DatadogAPIClient::V1
|
|
|
70
70
|
# For example, `service:postgres` **AND** `team:frontend`.
|
|
71
71
|
attr_accessor :monitor_tags
|
|
72
72
|
|
|
73
|
+
# If the first recovery notification during a downtime should be muted.
|
|
74
|
+
attr_accessor :mute_first_recovery_notification
|
|
75
|
+
|
|
73
76
|
# ID of the parent Downtime.
|
|
74
77
|
attr_accessor :parent_id
|
|
75
78
|
|
|
@@ -106,6 +109,7 @@ module DatadogAPIClient::V1
|
|
|
106
109
|
:'message' => :'message',
|
|
107
110
|
:'monitor_id' => :'monitor_id',
|
|
108
111
|
:'monitor_tags' => :'monitor_tags',
|
|
112
|
+
:'mute_first_recovery_notification' => :'mute_first_recovery_notification',
|
|
109
113
|
:'parent_id' => :'parent_id',
|
|
110
114
|
:'recurrence' => :'recurrence',
|
|
111
115
|
:'scope' => :'scope',
|
|
@@ -136,6 +140,7 @@ module DatadogAPIClient::V1
|
|
|
136
140
|
:'message' => :'String',
|
|
137
141
|
:'monitor_id' => :'Integer',
|
|
138
142
|
:'monitor_tags' => :'Array<String>',
|
|
143
|
+
:'mute_first_recovery_notification' => :'Boolean',
|
|
139
144
|
:'parent_id' => :'Integer',
|
|
140
145
|
:'recurrence' => :'DowntimeRecurrence',
|
|
141
146
|
:'scope' => :'Array<String>',
|
|
@@ -221,6 +226,10 @@ module DatadogAPIClient::V1
|
|
|
221
226
|
end
|
|
222
227
|
end
|
|
223
228
|
|
|
229
|
+
if attributes.key?(:'mute_first_recovery_notification')
|
|
230
|
+
self.mute_first_recovery_notification = attributes[:'mute_first_recovery_notification']
|
|
231
|
+
end
|
|
232
|
+
|
|
224
233
|
if attributes.key?(:'parent_id')
|
|
225
234
|
self.parent_id = attributes[:'parent_id']
|
|
226
235
|
end
|
|
@@ -305,6 +314,7 @@ module DatadogAPIClient::V1
|
|
|
305
314
|
message == o.message &&
|
|
306
315
|
monitor_id == o.monitor_id &&
|
|
307
316
|
monitor_tags == o.monitor_tags &&
|
|
317
|
+
mute_first_recovery_notification == o.mute_first_recovery_notification &&
|
|
308
318
|
parent_id == o.parent_id &&
|
|
309
319
|
recurrence == o.recurrence &&
|
|
310
320
|
scope == o.scope &&
|
|
@@ -324,7 +334,7 @@ module DatadogAPIClient::V1
|
|
|
324
334
|
# @return [Integer] Hash code
|
|
325
335
|
# @!visibility private
|
|
326
336
|
def hash
|
|
327
|
-
[active, active_child, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, parent_id, recurrence, scope, start, timezone, updater_id].hash
|
|
337
|
+
[active, active_child, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, mute_first_recovery_notification, parent_id, recurrence, scope, start, timezone, updater_id].hash
|
|
328
338
|
end
|
|
329
339
|
end
|
|
330
340
|
end
|
|
@@ -64,6 +64,9 @@ module DatadogAPIClient::V1
|
|
|
64
64
|
# For example, `service:postgres` **AND** `team:frontend`.
|
|
65
65
|
attr_accessor :monitor_tags
|
|
66
66
|
|
|
67
|
+
# If the first recovery notification during a downtime should be muted.
|
|
68
|
+
attr_accessor :mute_first_recovery_notification
|
|
69
|
+
|
|
67
70
|
# ID of the parent Downtime.
|
|
68
71
|
attr_accessor :parent_id
|
|
69
72
|
|
|
@@ -99,6 +102,7 @@ module DatadogAPIClient::V1
|
|
|
99
102
|
:'message' => :'message',
|
|
100
103
|
:'monitor_id' => :'monitor_id',
|
|
101
104
|
:'monitor_tags' => :'monitor_tags',
|
|
105
|
+
:'mute_first_recovery_notification' => :'mute_first_recovery_notification',
|
|
102
106
|
:'parent_id' => :'parent_id',
|
|
103
107
|
:'recurrence' => :'recurrence',
|
|
104
108
|
:'scope' => :'scope',
|
|
@@ -128,6 +132,7 @@ module DatadogAPIClient::V1
|
|
|
128
132
|
:'message' => :'String',
|
|
129
133
|
:'monitor_id' => :'Integer',
|
|
130
134
|
:'monitor_tags' => :'Array<String>',
|
|
135
|
+
:'mute_first_recovery_notification' => :'Boolean',
|
|
131
136
|
:'parent_id' => :'Integer',
|
|
132
137
|
:'recurrence' => :'DowntimeRecurrence',
|
|
133
138
|
:'scope' => :'Array<String>',
|
|
@@ -208,6 +213,10 @@ module DatadogAPIClient::V1
|
|
|
208
213
|
end
|
|
209
214
|
end
|
|
210
215
|
|
|
216
|
+
if attributes.key?(:'mute_first_recovery_notification')
|
|
217
|
+
self.mute_first_recovery_notification = attributes[:'mute_first_recovery_notification']
|
|
218
|
+
end
|
|
219
|
+
|
|
211
220
|
if attributes.key?(:'parent_id')
|
|
212
221
|
self.parent_id = attributes[:'parent_id']
|
|
213
222
|
end
|
|
@@ -291,6 +300,7 @@ module DatadogAPIClient::V1
|
|
|
291
300
|
message == o.message &&
|
|
292
301
|
monitor_id == o.monitor_id &&
|
|
293
302
|
monitor_tags == o.monitor_tags &&
|
|
303
|
+
mute_first_recovery_notification == o.mute_first_recovery_notification &&
|
|
294
304
|
parent_id == o.parent_id &&
|
|
295
305
|
recurrence == o.recurrence &&
|
|
296
306
|
scope == o.scope &&
|
|
@@ -310,7 +320,7 @@ module DatadogAPIClient::V1
|
|
|
310
320
|
# @return [Integer] Hash code
|
|
311
321
|
# @!visibility private
|
|
312
322
|
def hash
|
|
313
|
-
[active, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, parent_id, recurrence, scope, start, timezone, updater_id].hash
|
|
323
|
+
[active, canceled, creator_id, disabled, downtime_type, _end, id, message, monitor_id, monitor_tags, mute_first_recovery_notification, parent_id, recurrence, scope, start, timezone, updater_id].hash
|
|
314
324
|
end
|
|
315
325
|
end
|
|
316
326
|
end
|
|
@@ -55,7 +55,7 @@ module DatadogAPIClient::V1
|
|
|
55
55
|
attr_accessor :priority
|
|
56
56
|
|
|
57
57
|
# The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc.
|
|
58
|
-
#
|
|
58
|
+
# The list of standard source attribute values [available here](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
|
|
59
59
|
attr_accessor :source_type_name
|
|
60
60
|
|
|
61
61
|
# A list of tags to apply to the event.
|
|
@@ -46,6 +46,8 @@ module DatadogAPIClient::V1
|
|
|
46
46
|
# See [reserved attributes](https://docs.datadoghq.com/logs/log_collection/#reserved-attributes).
|
|
47
47
|
attr_accessor :service
|
|
48
48
|
|
|
49
|
+
attr_accessor :additional_properties
|
|
50
|
+
|
|
49
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
52
|
# @!visibility private
|
|
51
53
|
def self.attribute_map
|
|
@@ -91,12 +93,14 @@ module DatadogAPIClient::V1
|
|
|
91
93
|
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HTTPLogItem` initialize method"
|
|
92
94
|
end
|
|
93
95
|
|
|
96
|
+
self.additional_properties = {}
|
|
94
97
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
98
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
99
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
97
|
-
|
|
100
|
+
self.additional_properties[k.to_sym] = v
|
|
101
|
+
else
|
|
102
|
+
h[k.to_sym] = v
|
|
98
103
|
end
|
|
99
|
-
h[k.to_sym] = v
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
if attributes.key?(:'ddsource')
|
|
@@ -138,6 +142,26 @@ module DatadogAPIClient::V1
|
|
|
138
142
|
@message = message
|
|
139
143
|
end
|
|
140
144
|
|
|
145
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
146
|
+
# @return [Hash] Returns the object in the form of hash
|
|
147
|
+
# @!visibility private
|
|
148
|
+
def to_hash
|
|
149
|
+
hash = {}
|
|
150
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
+
value = self.send(attr)
|
|
152
|
+
if value.nil?
|
|
153
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
154
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
hash[param] = _to_hash(value)
|
|
158
|
+
end
|
|
159
|
+
self.additional_properties.each_pair do |attr, value|
|
|
160
|
+
hash[attr] = value
|
|
161
|
+
end
|
|
162
|
+
hash
|
|
163
|
+
end
|
|
164
|
+
|
|
141
165
|
# Checks equality by comparing each attribute.
|
|
142
166
|
# @param o [Object] Object to be compared
|
|
143
167
|
# @!visibility private
|
|
@@ -148,7 +172,8 @@ module DatadogAPIClient::V1
|
|
|
148
172
|
ddtags == o.ddtags &&
|
|
149
173
|
hostname == o.hostname &&
|
|
150
174
|
message == o.message &&
|
|
151
|
-
service == o.service
|
|
175
|
+
service == o.service &&
|
|
176
|
+
additional_properties == o.additional_properties
|
|
152
177
|
end
|
|
153
178
|
|
|
154
179
|
# @see the `==` method
|
|
@@ -162,7 +187,7 @@ module DatadogAPIClient::V1
|
|
|
162
187
|
# @return [Integer] Hash code
|
|
163
188
|
# @!visibility private
|
|
164
189
|
def hash
|
|
165
|
-
[ddsource, ddtags, hostname, message, service].hash
|
|
190
|
+
[ddsource, ddtags, hostname, message, service, additional_properties].hash
|
|
166
191
|
end
|
|
167
192
|
end
|
|
168
193
|
end
|
|
@@ -38,7 +38,7 @@ module DatadogAPIClient::V1
|
|
|
38
38
|
attr_accessor :_unparsed
|
|
39
39
|
|
|
40
40
|
# Array of filters to match or not a log and their
|
|
41
|
-
# corresponding `name`to assign a custom value to the log.
|
|
41
|
+
# corresponding `name` to assign a custom value to the log.
|
|
42
42
|
attr_accessor :categories
|
|
43
43
|
|
|
44
44
|
# Whether or not the processor is enabled.
|
|
@@ -35,7 +35,7 @@ module DatadogAPIClient::V1
|
|
|
35
35
|
# The search query - following the log search syntax.
|
|
36
36
|
attr_accessor :query
|
|
37
37
|
|
|
38
|
-
# Time-ascending `asc` or time-descending `desc`results.
|
|
38
|
+
# Time-ascending `asc` or time-descending `desc` results.
|
|
39
39
|
attr_accessor :sort
|
|
40
40
|
|
|
41
41
|
# Hash identifier of the first log to return in the list, available in a log `id` attribute.
|
|
@@ -50,8 +50,8 @@ module DatadogAPIClient::V1
|
|
|
50
50
|
# @!visibility private
|
|
51
51
|
def self.openapi_types
|
|
52
52
|
{
|
|
53
|
-
:'status' => :'Array<
|
|
54
|
-
:'type' => :'Array<
|
|
53
|
+
:'status' => :'Array<MonitorSearchCountItem>',
|
|
54
|
+
:'type' => :'Array<MonitorSearchCountItem>'
|
|
55
55
|
}
|
|
56
56
|
end
|
|
57
57
|
|
|
@@ -18,7 +18,7 @@ require 'time'
|
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
20
|
# A facet item.
|
|
21
|
-
class
|
|
21
|
+
class MonitorSearchCountItem
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# Whether the object has unparsed attributes
|
|
@@ -67,13 +67,13 @@ module DatadogAPIClient::V1
|
|
|
67
67
|
# @!visibility private
|
|
68
68
|
def initialize(attributes = {})
|
|
69
69
|
if (!attributes.is_a?(Hash))
|
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::MonitorSearchCountItem` initialize method"
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::MonitorSearchCountItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
77
77
|
end
|
|
78
78
|
h[k.to_sym] = v
|
|
79
79
|
}
|
|
@@ -58,10 +58,10 @@ module DatadogAPIClient::V1
|
|
|
58
58
|
# @!visibility private
|
|
59
59
|
def self.openapi_types
|
|
60
60
|
{
|
|
61
|
-
:'muted' => :'Array<
|
|
62
|
-
:'status' => :'Array<
|
|
63
|
-
:'tag' => :'Array<
|
|
64
|
-
:'type' => :'Array<
|
|
61
|
+
:'muted' => :'Array<MonitorSearchCountItem>',
|
|
62
|
+
:'status' => :'Array<MonitorSearchCountItem>',
|
|
63
|
+
:'tag' => :'Array<MonitorSearchCountItem>',
|
|
64
|
+
:'type' => :'Array<MonitorSearchCountItem>'
|
|
65
65
|
}
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -35,6 +35,7 @@ module DatadogAPIClient::V1
|
|
|
35
35
|
EVENT_V2_ALERT = "event-v2 alert".freeze
|
|
36
36
|
AUDIT_ALERT = "audit alert".freeze
|
|
37
37
|
CI_PIPELINES_ALERT = "ci-pipelines alert".freeze
|
|
38
|
+
CI_TESTS_ALERT = "ci-tests alert".freeze
|
|
38
39
|
ERROR_TRACKING_ALERT = "error-tracking alert".freeze
|
|
39
40
|
end
|
|
40
41
|
end
|
|
@@ -28,7 +28,7 @@ module DatadogAPIClient::V1
|
|
|
28
28
|
# The object containing document metadata.
|
|
29
29
|
attr_accessor :metadata
|
|
30
30
|
|
|
31
|
-
# Get
|
|
31
|
+
# Get usage summary by tag(s).
|
|
32
32
|
attr_accessor :usage
|
|
33
33
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|