datadog_api_client 2.13.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +346 -36
- data/.generator/schemas/v2/openapi.yaml +436 -174
- data/.generator/src/generator/formatter.py +34 -29
- data/.generator/src/generator/openapi.py +3 -1
- data/.generator/src/generator/templates/api.j2 +8 -2
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.pre-commit-config.yaml +2 -2
- data/CHANGELOG.md +57 -0
- data/README.md +23 -0
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +3 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
- data/examples/v1/dashboards/CreateDashboard_2618036642.rb +36 -0
- data/examples/v1/dashboards/CreateDashboard_2705593938.rb +3 -0
- data/examples/v1/dashboards/CreateDashboard_3777304439.rb +50 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/dashboards/ListDashboards_1062671515.rb +8 -0
- data/examples/v1/monitors/ListMonitors_2966492814.rb +8 -0
- data/examples/v1/notebooks/ListNotebooks_788665428.rb +8 -0
- data/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +8 -0
- data/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +8 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +2 -0
- data/examples/v1/synthetics/ListTests_1938827783.rb +8 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/downtimes/CancelDowntime.rb +0 -3
- data/examples/v2/downtimes/CreateDowntime.rb +0 -3
- data/examples/v2/downtimes/GetDowntime.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListDowntimes_805770330.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +0 -3
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +0 -3
- data/examples/v2/downtimes/UpdateDowntime.rb +0 -3
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
- data/examples/v2/teams/CreateTeam.rb +2 -2
- data/examples/v2/teams/CreateTeam_252121814.rb +24 -0
- data/examples/v2/teams/GetUserMemberships.rb +8 -0
- data/examples/v2/teams/ListTeams_3592098458.rb +8 -0
- data/examples/v2/teams/UpdateTeam.rb +9 -0
- data/examples/v2/users/ListUsers_4075885358.rb +8 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +22 -6
- data/lib/datadog_api_client/inflector.rb +11 -1
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +25 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +22 -0
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +21 -0
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +23 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -10
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +25 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/azure_account.rb +32 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/heat_map_widget_request.rb +35 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +4 -0
- data/lib/datadog_api_client/v1/models/list_stream_source.rb +1 -0
- data/lib/datadog_api_client/v1/models/monitor.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_options.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +8 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +81 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +14 -4
- data/lib/datadog_api_client/v1/models/synthetics_assertion_target.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion_timings_scope.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +44 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +44 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +44 -4
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v2/api/audit_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -7
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -36
- data/lib/datadog_api_client/v2/api/events_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/processes_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/rum_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +6 -6
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/spans_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +87 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/users_api.rb +22 -0
- data/lib/datadog_api_client/v2/models/application_key_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/audit_logs_event_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/ci_app_event_attributes.rb +9 -21
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event.rb +1 -1
- data/lib/datadog_api_client/v2/models/{team_data.rb → ci_app_pipeline_event_attributes.rb} +24 -62
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_level.rb +30 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipelines_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_test_level.rb +29 -0
- data/lib/datadog_api_client/v2/models/ci_app_tests_analytics_aggregate_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_tests_query_filter.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +25 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +25 -1
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +1 -1
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/formula_limit.rb +1 -0
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_request_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by.rb +3 -2
- data/lib/datadog_api_client/v2/models/logs_group_by_histogram.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_list_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_query_options.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_response_metadata_page.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap.rb +14 -4
- data/lib/datadog_api_client/v2/models/on_demand_concurrency_cap_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/query_formula.rb +1 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +14 -4
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +14 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_metadata_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_rule_response_query.rb +26 -2
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +24 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_query.rb +1 -19
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_meta.rb +11 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/team_attributes.rb +50 -4
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/team_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +57 -4
- data/lib/datadog_api_client/v2/models/teams_response.rb +24 -4
- data/lib/datadog_api_client/v2/models/teams_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/teams_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/usage_attributes_object.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +24 -4
- data/lib/datadog_api_client/version.rb +1 -1
- data/spec/configuration_spec.rb +17 -0
- data/spec/retry_spec.rb +44 -0
- metadata +28 -3
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# On-demand concurrency cap attributes.
|
25
25
|
attr_accessor :attributes
|
26
26
|
|
27
|
+
# On-demand concurrency cap type.
|
28
|
+
attr_accessor :type
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'attributes' => :'attributes'
|
34
|
+
:'attributes' => :'attributes',
|
35
|
+
:'type' => :'type'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'attributes' => :'OnDemandConcurrencyCapAttributes'
|
43
|
+
:'attributes' => :'OnDemandConcurrencyCapAttributes',
|
44
|
+
:'type' => :'OnDemandConcurrencyCapType'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -59,6 +64,10 @@ module DatadogAPIClient::V2
|
|
59
64
|
if attributes.key?(:'attributes')
|
60
65
|
self.attributes = attributes[:'attributes']
|
61
66
|
end
|
67
|
+
|
68
|
+
if attributes.key?(:'type')
|
69
|
+
self.type = attributes[:'type']
|
70
|
+
end
|
62
71
|
end
|
63
72
|
|
64
73
|
# Checks equality by comparing each attribute.
|
@@ -67,14 +76,15 @@ module DatadogAPIClient::V2
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
attributes == o.attributes
|
79
|
+
attributes == o.attributes &&
|
80
|
+
type == o.type
|
71
81
|
end
|
72
82
|
|
73
83
|
# Calculates hash code according to all attributes.
|
74
84
|
# @return [Integer] Hash code
|
75
85
|
# @!visibility private
|
76
86
|
def hash
|
77
|
-
[attributes].hash
|
87
|
+
[attributes, type].hash
|
78
88
|
end
|
79
89
|
end
|
80
90
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# On-demand concurrency cap type.
|
21
|
+
class OnDemandConcurrencyCapType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
ON_DEMAND_CONCURRENCY_CAP = "on_demand_concurrency_cap".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
|
|
30
30
|
# Name of the application key.
|
31
31
|
attr_accessor :name
|
32
32
|
|
33
|
-
# Array of scopes to grant the application key.
|
33
|
+
# Array of scopes to grant the application key.
|
34
34
|
attr_accessor :scopes
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -25,6 +25,7 @@ module DatadogAPIClient::V2
|
|
25
25
|
attr_reader :formula
|
26
26
|
|
27
27
|
# Message for specifying limits to the number of values returned by a query.
|
28
|
+
# This limit is only for scalar queries and has no effect on timeseries queries.
|
28
29
|
attr_accessor :limit
|
29
30
|
|
30
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Related team links
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
|
+
# Links attributes.
|
28
|
+
attr_accessor :links
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'data' => :'data'
|
34
|
+
:'data' => :'data',
|
35
|
+
:'links' => :'links'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'data' => :'Array<RelationshipToTeamLinkData>'
|
43
|
+
:'data' => :'Array<RelationshipToTeamLinkData>',
|
44
|
+
:'links' => :'TeamRelationshipsLinks'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -61,6 +66,10 @@ module DatadogAPIClient::V2
|
|
61
66
|
self.data = value
|
62
67
|
end
|
63
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'links')
|
71
|
+
self.links = attributes[:'links']
|
72
|
+
end
|
64
73
|
end
|
65
74
|
|
66
75
|
# Checks equality by comparing each attribute.
|
@@ -69,14 +78,15 @@ module DatadogAPIClient::V2
|
|
69
78
|
def ==(o)
|
70
79
|
return true if self.equal?(o)
|
71
80
|
self.class == o.class &&
|
72
|
-
data == o.data
|
81
|
+
data == o.data &&
|
82
|
+
links == o.links
|
73
83
|
end
|
74
84
|
|
75
85
|
# Calculates hash code according to all attributes.
|
76
86
|
# @return [Integer] Hash code
|
77
87
|
# @!visibility private
|
78
88
|
def hash
|
79
|
-
[data].hash
|
89
|
+
[data, links].hash
|
80
90
|
end
|
81
91
|
end
|
82
92
|
end
|
@@ -24,11 +24,15 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Related user team permission data
|
25
25
|
attr_accessor :data
|
26
26
|
|
27
|
+
# Links attributes.
|
28
|
+
attr_accessor :links
|
29
|
+
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
# @!visibility private
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
|
-
:'data' => :'data'
|
34
|
+
:'data' => :'data',
|
35
|
+
:'links' => :'links'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -36,7 +40,8 @@ module DatadogAPIClient::V2
|
|
36
40
|
# @!visibility private
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
|
-
:'data' => :'RelationshipToUserTeamPermissionData'
|
43
|
+
:'data' => :'RelationshipToUserTeamPermissionData',
|
44
|
+
:'links' => :'TeamRelationshipsLinks'
|
40
45
|
}
|
41
46
|
end
|
42
47
|
|
@@ -59,6 +64,10 @@ module DatadogAPIClient::V2
|
|
59
64
|
if attributes.key?(:'data')
|
60
65
|
self.data = attributes[:'data']
|
61
66
|
end
|
67
|
+
|
68
|
+
if attributes.key?(:'links')
|
69
|
+
self.links = attributes[:'links']
|
70
|
+
end
|
62
71
|
end
|
63
72
|
|
64
73
|
# Checks equality by comparing each attribute.
|
@@ -67,14 +76,15 @@ module DatadogAPIClient::V2
|
|
67
76
|
def ==(o)
|
68
77
|
return true if self.equal?(o)
|
69
78
|
self.class == o.class &&
|
70
|
-
data == o.data
|
79
|
+
data == o.data &&
|
80
|
+
links == o.links
|
71
81
|
end
|
72
82
|
|
73
83
|
# Calculates hash code according to all attributes.
|
74
84
|
# @return [Integer] Hash code
|
75
85
|
# @!visibility private
|
76
86
|
def hash
|
77
|
-
[data].hash
|
87
|
+
[data, links].hash
|
78
88
|
end
|
79
89
|
end
|
80
90
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The type of event.
|
21
|
+
class SecurityMonitoringSignalMetadataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
SIGNAL_METADATA = "signal_metadata".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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
|
+
# Security Signal response data object.
|
21
|
+
class SecurityMonitoringSignalResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Object description of a security signal.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
# @!visibility private
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'data' => :'data'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
# @!visibility private
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'data' => :'SecurityMonitoringSignal'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
45
|
+
# @!visibility private
|
46
|
+
def initialize(attributes = {})
|
47
|
+
if (!attributes.is_a?(Hash))
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse` initialize method"
|
49
|
+
end
|
50
|
+
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SecurityMonitoringSignalResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
end
|
56
|
+
h[k.to_sym] = v
|
57
|
+
}
|
58
|
+
|
59
|
+
if attributes.key?(:'data')
|
60
|
+
self.data = attributes[:'data']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Checks equality by comparing each attribute.
|
65
|
+
# @param o [Object] Object to be compared
|
66
|
+
# @!visibility private
|
67
|
+
def ==(o)
|
68
|
+
return true if self.equal?(o)
|
69
|
+
self.class == o.class &&
|
70
|
+
data == o.data
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Integer] Hash code
|
75
|
+
# @!visibility private
|
76
|
+
def hash
|
77
|
+
[data].hash
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# The aggregation type.
|
25
25
|
attr_accessor :aggregation
|
26
26
|
|
27
|
-
# Fields to
|
27
|
+
# Fields to correlate by.
|
28
28
|
attr_accessor :correlated_by_fields
|
29
29
|
|
30
30
|
# Index of the rule query used to retrieve the correlated field.
|
@@ -33,6 +33,12 @@ module DatadogAPIClient::V2
|
|
33
33
|
# Default Rule ID to match on signals.
|
34
34
|
attr_accessor :default_rule_id
|
35
35
|
|
36
|
+
# Field for which the cardinality is measured. Sent as an array.
|
37
|
+
attr_accessor :distinct_fields
|
38
|
+
|
39
|
+
# Fields to group by.
|
40
|
+
attr_accessor :group_by_fields
|
41
|
+
|
36
42
|
# Group of target fields to aggregate over.
|
37
43
|
attr_accessor :metrics
|
38
44
|
|
@@ -50,6 +56,8 @@ module DatadogAPIClient::V2
|
|
50
56
|
:'correlated_by_fields' => :'correlatedByFields',
|
51
57
|
:'correlated_query_index' => :'correlatedQueryIndex',
|
52
58
|
:'default_rule_id' => :'defaultRuleId',
|
59
|
+
:'distinct_fields' => :'distinctFields',
|
60
|
+
:'group_by_fields' => :'groupByFields',
|
53
61
|
:'metrics' => :'metrics',
|
54
62
|
:'name' => :'name',
|
55
63
|
:'rule_id' => :'ruleId'
|
@@ -64,6 +72,8 @@ module DatadogAPIClient::V2
|
|
64
72
|
:'correlated_by_fields' => :'Array<String>',
|
65
73
|
:'correlated_query_index' => :'Integer',
|
66
74
|
:'default_rule_id' => :'String',
|
75
|
+
:'distinct_fields' => :'Array<String>',
|
76
|
+
:'group_by_fields' => :'Array<String>',
|
67
77
|
:'metrics' => :'Array<String>',
|
68
78
|
:'name' => :'String',
|
69
79
|
:'rule_id' => :'String'
|
@@ -104,6 +114,18 @@ module DatadogAPIClient::V2
|
|
104
114
|
self.default_rule_id = attributes[:'default_rule_id']
|
105
115
|
end
|
106
116
|
|
117
|
+
if attributes.key?(:'distinct_fields')
|
118
|
+
if (value = attributes[:'distinct_fields']).is_a?(Array)
|
119
|
+
self.distinct_fields = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'group_by_fields')
|
124
|
+
if (value = attributes[:'group_by_fields']).is_a?(Array)
|
125
|
+
self.group_by_fields = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
107
129
|
if attributes.key?(:'metrics')
|
108
130
|
if (value = attributes[:'metrics']).is_a?(Array)
|
109
131
|
self.metrics = value
|
@@ -147,6 +169,8 @@ module DatadogAPIClient::V2
|
|
147
169
|
correlated_by_fields == o.correlated_by_fields &&
|
148
170
|
correlated_query_index == o.correlated_query_index &&
|
149
171
|
default_rule_id == o.default_rule_id &&
|
172
|
+
distinct_fields == o.distinct_fields &&
|
173
|
+
group_by_fields == o.group_by_fields &&
|
150
174
|
metrics == o.metrics &&
|
151
175
|
name == o.name &&
|
152
176
|
rule_id == o.rule_id
|
@@ -156,7 +180,7 @@ module DatadogAPIClient::V2
|
|
156
180
|
# @return [Integer] Hash code
|
157
181
|
# @!visibility private
|
158
182
|
def hash
|
159
|
-
[aggregation, correlated_by_fields, correlated_query_index, default_rule_id, metrics, name, rule_id].hash
|
183
|
+
[aggregation, correlated_by_fields, correlated_query_index, default_rule_id, distinct_fields, group_by_fields, metrics, name, rule_id].hash
|
160
184
|
end
|
161
185
|
end
|
162
186
|
end
|
@@ -24,11 +24,19 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Attributes describing the change of state of a security signal.
|
25
25
|
attr_reader :attributes
|
26
26
|
|
27
|
+
# The unique ID of the security signal.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# The type of event.
|
31
|
+
attr_accessor :type
|
32
|
+
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
34
|
# @!visibility private
|
29
35
|
def self.attribute_map
|
30
36
|
{
|
31
|
-
:'attributes' => :'attributes'
|
37
|
+
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
39
|
+
:'type' => :'type'
|
32
40
|
}
|
33
41
|
end
|
34
42
|
|
@@ -36,7 +44,9 @@ module DatadogAPIClient::V2
|
|
36
44
|
# @!visibility private
|
37
45
|
def self.openapi_types
|
38
46
|
{
|
39
|
-
:'attributes' => :'SecurityMonitoringSignalStateUpdateAttributes'
|
47
|
+
:'attributes' => :'SecurityMonitoringSignalStateUpdateAttributes',
|
48
|
+
:'id' => :'Object',
|
49
|
+
:'type' => :'SecurityMonitoringSignalMetadataType'
|
40
50
|
}
|
41
51
|
end
|
42
52
|
|
@@ -59,6 +69,14 @@ module DatadogAPIClient::V2
|
|
59
69
|
if attributes.key?(:'attributes')
|
60
70
|
self.attributes = attributes[:'attributes']
|
61
71
|
end
|
72
|
+
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'type')
|
78
|
+
self.type = attributes[:'type']
|
79
|
+
end
|
62
80
|
end
|
63
81
|
|
64
82
|
# Check to see if the all the properties in the model are valid
|
@@ -85,14 +103,16 @@ module DatadogAPIClient::V2
|
|
85
103
|
def ==(o)
|
86
104
|
return true if self.equal?(o)
|
87
105
|
self.class == o.class &&
|
88
|
-
attributes == o.attributes
|
106
|
+
attributes == o.attributes &&
|
107
|
+
id == o.id &&
|
108
|
+
type == o.type
|
89
109
|
end
|
90
110
|
|
91
111
|
# Calculates hash code according to all attributes.
|
92
112
|
# @return [Integer] Hash code
|
93
113
|
# @!visibility private
|
94
114
|
def hash
|
95
|
-
[attributes].hash
|
115
|
+
[attributes, id, type].hash
|
96
116
|
end
|
97
117
|
end
|
98
118
|
end
|
@@ -24,11 +24,19 @@ module DatadogAPIClient::V2
|
|
24
24
|
# Attributes describing a triage state update operation over a security signal.
|
25
25
|
attr_accessor :attributes
|
26
26
|
|
27
|
+
# The unique ID of the security signal.
|
28
|
+
attr_accessor :id
|
29
|
+
|
30
|
+
# The type of event.
|
31
|
+
attr_accessor :type
|
32
|
+
|
27
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
34
|
# @!visibility private
|
29
35
|
def self.attribute_map
|
30
36
|
{
|
31
|
-
:'attributes' => :'attributes'
|
37
|
+
:'attributes' => :'attributes',
|
38
|
+
:'id' => :'id',
|
39
|
+
:'type' => :'type'
|
32
40
|
}
|
33
41
|
end
|
34
42
|
|
@@ -36,7 +44,9 @@ module DatadogAPIClient::V2
|
|
36
44
|
# @!visibility private
|
37
45
|
def self.openapi_types
|
38
46
|
{
|
39
|
-
:'attributes' => :'SecurityMonitoringSignalTriageAttributes'
|
47
|
+
:'attributes' => :'SecurityMonitoringSignalTriageAttributes',
|
48
|
+
:'id' => :'String',
|
49
|
+
:'type' => :'SecurityMonitoringSignalMetadataType'
|
40
50
|
}
|
41
51
|
end
|
42
52
|
|
@@ -59,6 +69,14 @@ module DatadogAPIClient::V2
|
|
59
69
|
if attributes.key?(:'attributes')
|
60
70
|
self.attributes = attributes[:'attributes']
|
61
71
|
end
|
72
|
+
|
73
|
+
if attributes.key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'type')
|
78
|
+
self.type = attributes[:'type']
|
79
|
+
end
|
62
80
|
end
|
63
81
|
|
64
82
|
# Checks equality by comparing each attribute.
|
@@ -67,14 +85,16 @@ module DatadogAPIClient::V2
|
|
67
85
|
def ==(o)
|
68
86
|
return true if self.equal?(o)
|
69
87
|
self.class == o.class &&
|
70
|
-
attributes == o.attributes
|
88
|
+
attributes == o.attributes &&
|
89
|
+
id == o.id &&
|
90
|
+
type == o.type
|
71
91
|
end
|
72
92
|
|
73
93
|
# Calculates hash code according to all attributes.
|
74
94
|
# @return [Integer] Hash code
|
75
95
|
# @!visibility private
|
76
96
|
def hash
|
77
|
-
[attributes].hash
|
97
|
+
[attributes, id, type].hash
|
78
98
|
end
|
79
99
|
end
|
80
100
|
end
|
@@ -41,7 +41,7 @@ module DatadogAPIClient::V2
|
|
41
41
|
attr_accessor :name
|
42
42
|
|
43
43
|
# Query to run on logs.
|
44
|
-
|
44
|
+
attr_accessor :query
|
45
45
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
# @!visibility private
|
@@ -122,24 +122,6 @@ module DatadogAPIClient::V2
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
# Check to see if the all the properties in the model are valid
|
126
|
-
# @return true if the model is valid
|
127
|
-
# @!visibility private
|
128
|
-
def valid?
|
129
|
-
return false if @query.nil?
|
130
|
-
true
|
131
|
-
end
|
132
|
-
|
133
|
-
# Custom attribute writer method with validation
|
134
|
-
# @param query [Object] Object to be assigned
|
135
|
-
# @!visibility private
|
136
|
-
def query=(query)
|
137
|
-
if query.nil?
|
138
|
-
fail ArgumentError, 'invalid value for "query", query cannot be nil.'
|
139
|
-
end
|
140
|
-
@query = query
|
141
|
-
end
|
142
|
-
|
143
125
|
# Checks equality by comparing each attribute.
|
144
126
|
# @param o [Object] Object to be compared
|
145
127
|
# @!visibility private
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
24
24
|
# The handle for this user account.
|
25
25
|
attr_accessor :handle
|
26
26
|
|
27
|
+
# Gravatar icon associated to the user.
|
28
|
+
attr_accessor :icon
|
29
|
+
|
27
30
|
# Numerical ID assigned by Datadog to this user account.
|
28
31
|
attr_accessor :id
|
29
32
|
|
@@ -38,6 +41,7 @@ module DatadogAPIClient::V2
|
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
40
43
|
:'handle' => :'handle',
|
44
|
+
:'icon' => :'icon',
|
41
45
|
:'id' => :'id',
|
42
46
|
:'name' => :'name',
|
43
47
|
:'uuid' => :'uuid'
|
@@ -49,6 +53,7 @@ module DatadogAPIClient::V2
|
|
49
53
|
def self.openapi_types
|
50
54
|
{
|
51
55
|
:'handle' => :'String',
|
56
|
+
:'icon' => :'String',
|
52
57
|
:'id' => :'Integer',
|
53
58
|
:'name' => :'String',
|
54
59
|
:'uuid' => :'String'
|
@@ -83,6 +88,10 @@ module DatadogAPIClient::V2
|
|
83
88
|
self.handle = attributes[:'handle']
|
84
89
|
end
|
85
90
|
|
91
|
+
if attributes.key?(:'icon')
|
92
|
+
self.icon = attributes[:'icon']
|
93
|
+
end
|
94
|
+
|
86
95
|
if attributes.key?(:'id')
|
87
96
|
self.id = attributes[:'id']
|
88
97
|
end
|
@@ -121,6 +130,7 @@ module DatadogAPIClient::V2
|
|
121
130
|
return true if self.equal?(o)
|
122
131
|
self.class == o.class &&
|
123
132
|
handle == o.handle &&
|
133
|
+
icon == o.icon &&
|
124
134
|
id == o.id &&
|
125
135
|
name == o.name &&
|
126
136
|
uuid == o.uuid
|
@@ -130,7 +140,7 @@ module DatadogAPIClient::V2
|
|
130
140
|
# @return [Integer] Hash code
|
131
141
|
# @!visibility private
|
132
142
|
def hash
|
133
|
-
[handle, id, name, uuid].hash
|
143
|
+
[handle, icon, id, name, uuid].hash
|
134
144
|
end
|
135
145
|
end
|
136
146
|
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class SensitiveDataScannerGetConfigResponseData
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# Attributes of the Sensitive Data configuration.
|
25
|
+
attr_accessor :attributes
|
26
|
+
|
24
27
|
# ID of the configuration.
|
25
28
|
attr_accessor :id
|
26
29
|
|
@@ -34,6 +37,7 @@ module DatadogAPIClient::V2
|
|
34
37
|
# @!visibility private
|
35
38
|
def self.attribute_map
|
36
39
|
{
|
40
|
+
:'attributes' => :'attributes',
|
37
41
|
:'id' => :'id',
|
38
42
|
:'relationships' => :'relationships',
|
39
43
|
:'type' => :'type'
|
@@ -44,6 +48,7 @@ module DatadogAPIClient::V2
|
|
44
48
|
# @!visibility private
|
45
49
|
def self.openapi_types
|
46
50
|
{
|
51
|
+
:'attributes' => :'Hash<String, Object>',
|
47
52
|
:'id' => :'String',
|
48
53
|
:'relationships' => :'SensitiveDataScannerConfigurationRelationships',
|
49
54
|
:'type' => :'SensitiveDataScannerConfigurationType'
|
@@ -66,6 +71,10 @@ module DatadogAPIClient::V2
|
|
66
71
|
h[k.to_sym] = v
|
67
72
|
}
|
68
73
|
|
74
|
+
if attributes.key?(:'attributes')
|
75
|
+
self.attributes = attributes[:'attributes']
|
76
|
+
end
|
77
|
+
|
69
78
|
if attributes.key?(:'id')
|
70
79
|
self.id = attributes[:'id']
|
71
80
|
end
|
@@ -85,6 +94,7 @@ module DatadogAPIClient::V2
|
|
85
94
|
def ==(o)
|
86
95
|
return true if self.equal?(o)
|
87
96
|
self.class == o.class &&
|
97
|
+
attributes == o.attributes &&
|
88
98
|
id == o.id &&
|
89
99
|
relationships == o.relationships &&
|
90
100
|
type == o.type
|
@@ -94,7 +104,7 @@ module DatadogAPIClient::V2
|
|
94
104
|
# @return [Integer] Hash code
|
95
105
|
# @!visibility private
|
96
106
|
def hash
|
97
|
-
[id, relationships, type].hash
|
107
|
+
[attributes, id, relationships, type].hash
|
98
108
|
end
|
99
109
|
end
|
100
110
|
end
|