datadog_api_client 2.12.0 → 2.14.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 +6 -6
- data/.generator/conftest.py +7 -0
- data/.generator/poetry.lock +45 -75
- data/.generator/pyproject.toml +7 -7
- data/.generator/schemas/v1/openapi.yaml +257 -19
- data/.generator/schemas/v2/openapi.yaml +3020 -911
- data/.generator/src/generator/formatter.py +43 -32
- data/.generator/src/generator/openapi.py +4 -2
- data/.generator/src/generator/templates/api_client.j2 +81 -53
- data/.generator/src/generator/templates/configuration.j2 +21 -0
- data/.github/workflows/test_integration.yml +7 -1
- data/.pre-commit-config.yaml +4 -4
- data/CHANGELOG.md +62 -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_1284514532.rb +43 -0
- data/examples/v1/dashboards/CreateDashboard_2261785072.rb +47 -0
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +6 -0
- data/examples/v1/dashboards/CreateDashboard_3513586382.rb +74 -0
- data/examples/v1/dashboards/CreateDashboard_3562282606.rb +1 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +3 -3
- data/examples/v1/organizations/UpdateOrg.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +1 -0
- data/examples/v1/users/CreateUser.rb +1 -1
- data/examples/v1/users/CreateUser_266604071.rb +13 -0
- data/examples/v1/users/UpdateUser.rb +1 -1
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +3 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +3 -0
- data/examples/v2/confluent-cloud/CreateConfluentAccount.rb +1 -0
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -0
- data/examples/v2/confluent-cloud/UpdateConfluentResource.rb +1 -0
- data/examples/v2/downtimes/CancelDowntime.rb +11 -0
- data/examples/v2/downtimes/CreateDowntime.rb +26 -0
- data/examples/v2/downtimes/GetDowntime.rb +11 -0
- data/examples/v2/downtimes/ListDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes.rb +8 -0
- data/examples/v2/downtimes/ListMonitorDowntimes_128979780.rb +8 -0
- data/examples/v2/downtimes/UpdateDowntime.rb +21 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +1 -1
- data/examples/v2/logs/ListLogsGet_2034110533.rb +3 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +10 -0
- data/examples/v2/spans/AggregateSpans.rb +25 -0
- data/examples/v2/spans/ListSpans.rb +25 -0
- data/examples/v2/spans/ListSpansGet.rb +5 -0
- data/examples/v2/spans/ListSpansGet_1130763422.rb +8 -0
- data/examples/v2/spans/ListSpans_3495563906.rb +25 -0
- 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/UpdateTeam.rb +9 -0
- data/lib/datadog_api_client/api_client.rb +81 -53
- data/lib/datadog_api_client/configuration.rb +28 -0
- data/lib/datadog_api_client/inflector.rb +97 -1
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +10 -10
- 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/change_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_definition.rb +13 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_data_source.rb +26 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb +150 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_response_format.rb +2 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_slo_query_definition.rb +11 -1
- data/lib/datadog_api_client/v1/models/geomap_widget_request.rb +24 -2
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/ip_prefixes_remote_configuration.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/organization_settings.rb +8 -0
- data/lib/datadog_api_client/v1/models/query_value_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/scatterplot_table_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/timeseries_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/toplist_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +12 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +24 -4
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +24 -4
- data/lib/datadog_api_client/v1/models/user.rb +8 -0
- data/lib/datadog_api_client/v1/models/widget_comparator.rb +1 -0
- data/lib/datadog_api_client/v1/models/widget_display_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +11 -5
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +462 -0
- data/lib/datadog_api_client/v2/api/ip_allowlist_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/logs_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/rum_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/spans_api.rb +294 -0
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/teams_api.rb +65 -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/ci_app_pipeline_event_attributes.rb +102 -0
- data/lib/datadog_api_client/v2/models/ci_app_pipeline_event_pipeline.rb +1 -1
- 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/cloud_configuration_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +41 -1
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_response_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +36 -1
- data/lib/datadog_api_client/v2/models/downtime_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_attributes.rb +194 -0
- data/lib/datadog_api_client/v2/models/downtime_create_request_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/downtime_included_monitor_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_id.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_identifier_tags.rb +107 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_attributes.rb +80 -0
- data/lib/datadog_api_client/v2/models/downtime_monitor_included_item.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_actions.rb +27 -0
- data/lib/datadog_api_client/v2/models/downtime_notify_end_state_types.rb +28 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_created_by_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor.rb +88 -0
- data/lib/datadog_api_client/v2/models/downtime_relationships_monitor_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/downtime_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/downtime_response.rb +95 -0
- data/lib/datadog_api_client/v2/models/downtime_response_attributes.rb +208 -0
- data/lib/datadog_api_client/v2/models/downtime_response_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_response_included_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_create_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_current_downtime_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_create_update_request.rb +101 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_one_time_response.rb +116 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_create_update_request.rb +143 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrence_response.rb +106 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_create_request.rb +110 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_response.rb +131 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_recurrences_update_request.rb +92 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_response.rb +65 -0
- data/lib/datadog_api_client/v2/models/downtime_schedule_update_request.rb +63 -0
- data/lib/datadog_api_client/v2/models/downtime_status.rb +29 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/downtime_update_request_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/{team_data.rb → downtime_update_request_data.rb} +9 -9
- data/lib/datadog_api_client/v2/models/event_response_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/events_group_by_sort.rb +1 -1
- data/lib/datadog_api_client/v2/models/events_response_metadata.rb +11 -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/list_downtimes_response.rb +104 -0
- 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/metrics_aggregator.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_resource_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_attributes.rb +120 -0
- data/lib/datadog_api_client/v2/models/monitor_downtime_match_response_data.rb +108 -0
- 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/restriction_policy_binding.rb +2 -1
- data/lib/datadog_api_client/v2/models/rum_application_list.rb +11 -1
- 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/service_definition_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/service_definition_meta.rb +36 -4
- data/lib/datadog_api_client/v2/models/service_definition_meta_warnings.rb +100 -0
- data/lib/datadog_api_client/v2/models/span.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_bucket_value_timeseries_point.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_metadata.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_response_status.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort.rb +110 -0
- data/lib/datadog_api_client/v2/models/spans_aggregate_sort_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_aggregation_function.rb +37 -0
- data/lib/datadog_api_client/v2/models/spans_attributes.rb +244 -0
- data/lib/datadog_api_client/v2/models/spans_compute.rb +129 -0
- data/lib/datadog_api_client/v2/models/spans_compute_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_group_by.rb +149 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_histogram.rb +143 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_missing.rb +63 -0
- data/lib/datadog_api_client/v2/models/spans_group_by_total.rb +64 -0
- data/lib/datadog_api_client/v2/models/spans_list_request.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_attributes.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_page.rb +108 -0
- data/lib/datadog_api_client/v2/models/spans_list_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_list_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_links.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_list_response_metadata.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_query_filter.rb +100 -0
- data/lib/datadog_api_client/v2/models/spans_query_options.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_response_metadata_page.rb +81 -0
- data/lib/datadog_api_client/v2/models/spans_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_sort_order.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_warning.rb +100 -0
- 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_invitation_response_data.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 +119 -3
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
# Downtime match details.
|
|
21
|
+
class MonitorDowntimeMatchResponseAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The end of the downtime.
|
|
25
|
+
attr_accessor :_end
|
|
26
|
+
|
|
27
|
+
# An array of groups associated with the downtime.
|
|
28
|
+
attr_accessor :groups
|
|
29
|
+
|
|
30
|
+
# The scope to which the downtime applies. Must follow the [common search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
|
|
31
|
+
attr_accessor :scope
|
|
32
|
+
|
|
33
|
+
# The start of the downtime.
|
|
34
|
+
attr_accessor :start
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
# @!visibility private
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'_end' => :'end',
|
|
41
|
+
:'groups' => :'groups',
|
|
42
|
+
:'scope' => :'scope',
|
|
43
|
+
:'start' => :'start'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
# @!visibility private
|
|
49
|
+
def self.openapi_types
|
|
50
|
+
{
|
|
51
|
+
:'_end' => :'Time',
|
|
52
|
+
:'groups' => :'Array<String>',
|
|
53
|
+
:'scope' => :'String',
|
|
54
|
+
:'start' => :'Time'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# List of attributes with nullable: true
|
|
59
|
+
# @!visibility private
|
|
60
|
+
def self.openapi_nullable
|
|
61
|
+
Set.new([
|
|
62
|
+
:'_end',
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
68
|
+
# @!visibility private
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
if (!attributes.is_a?(Hash))
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes` initialize method"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
78
|
+
end
|
|
79
|
+
h[k.to_sym] = v
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'_end')
|
|
83
|
+
self._end = attributes[:'_end']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'groups')
|
|
87
|
+
if (value = attributes[:'groups']).is_a?(Array)
|
|
88
|
+
self.groups = value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'scope')
|
|
93
|
+
self.scope = attributes[:'scope']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'start')
|
|
97
|
+
self.start = attributes[:'start']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Checks equality by comparing each attribute.
|
|
102
|
+
# @param o [Object] Object to be compared
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def ==(o)
|
|
105
|
+
return true if self.equal?(o)
|
|
106
|
+
self.class == o.class &&
|
|
107
|
+
_end == o._end &&
|
|
108
|
+
groups == o.groups &&
|
|
109
|
+
scope == o.scope &&
|
|
110
|
+
start == o.start
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Calculates hash code according to all attributes.
|
|
114
|
+
# @return [Integer] Hash code
|
|
115
|
+
# @!visibility private
|
|
116
|
+
def hash
|
|
117
|
+
[_end, groups, scope, start].hash
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
# A downtime match.
|
|
21
|
+
class MonitorDowntimeMatchResponseData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Downtime match details.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# The downtime ID.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
30
|
+
# Monitor Downtime Match resource type.
|
|
31
|
+
attr_accessor :type
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
39
|
+
:'type' => :'type'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'attributes' => :'MonitorDowntimeMatchResponseAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
49
|
+
:'type' => :'MonitorDowntimeMatchResourceType'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# List of attributes with nullable: true
|
|
54
|
+
# @!visibility private
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
:'id',
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
63
|
+
# @!visibility private
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::MonitorDowntimeMatchResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'attributes')
|
|
78
|
+
self.attributes = attributes[:'attributes']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'id')
|
|
82
|
+
self.id = attributes[:'id']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'type')
|
|
86
|
+
self.type = attributes[:'type']
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
attributes == o.attributes &&
|
|
97
|
+
id == o.id &&
|
|
98
|
+
type == o.type
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def hash
|
|
105
|
+
[attributes, id, type].hash
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
@@ -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
|
|
@@ -22,8 +22,9 @@ module DatadogAPIClient::V2
|
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
24
|
# An array of principals. A principal is a subject or group of subjects.
|
|
25
|
-
# Each principal is formatted as `type:id`. Supported types: `role` and `org`.
|
|
25
|
+
# Each principal is formatted as `type:id`. Supported types: `role`, `team` (beta), `user` (beta), and `org`.
|
|
26
26
|
# The org ID can be obtained through the api/v2/current_user API.
|
|
27
|
+
# The user principal type accepts service account IDs.
|
|
27
28
|
attr_reader :principals
|
|
28
29
|
|
|
29
30
|
# The role/level of access.
|
|
@@ -24,6 +24,9 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# RUM application list attributes.
|
|
25
25
|
attr_reader :attributes
|
|
26
26
|
|
|
27
|
+
# RUM application ID.
|
|
28
|
+
attr_accessor :id
|
|
29
|
+
|
|
27
30
|
# RUM application list type.
|
|
28
31
|
attr_reader :type
|
|
29
32
|
|
|
@@ -32,6 +35,7 @@ module DatadogAPIClient::V2
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'attributes' => :'attributes',
|
|
38
|
+
:'id' => :'id',
|
|
35
39
|
:'type' => :'type'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
@@ -41,6 +45,7 @@ module DatadogAPIClient::V2
|
|
|
41
45
|
def self.openapi_types
|
|
42
46
|
{
|
|
43
47
|
:'attributes' => :'RUMApplicationListAttributes',
|
|
48
|
+
:'id' => :'String',
|
|
44
49
|
:'type' => :'RUMApplicationListType'
|
|
45
50
|
}
|
|
46
51
|
end
|
|
@@ -65,6 +70,10 @@ module DatadogAPIClient::V2
|
|
|
65
70
|
self.attributes = attributes[:'attributes']
|
|
66
71
|
end
|
|
67
72
|
|
|
73
|
+
if attributes.key?(:'id')
|
|
74
|
+
self.id = attributes[:'id']
|
|
75
|
+
end
|
|
76
|
+
|
|
68
77
|
if attributes.key?(:'type')
|
|
69
78
|
self.type = attributes[:'type']
|
|
70
79
|
end
|
|
@@ -106,6 +115,7 @@ module DatadogAPIClient::V2
|
|
|
106
115
|
return true if self.equal?(o)
|
|
107
116
|
self.class == o.class &&
|
|
108
117
|
attributes == o.attributes &&
|
|
118
|
+
id == o.id &&
|
|
109
119
|
type == o.type
|
|
110
120
|
end
|
|
111
121
|
|
|
@@ -113,7 +123,7 @@ module DatadogAPIClient::V2
|
|
|
113
123
|
# @return [Integer] Hash code
|
|
114
124
|
# @!visibility private
|
|
115
125
|
def hash
|
|
116
|
-
[attributes, type].hash
|
|
126
|
+
[attributes, id, type].hash
|
|
117
127
|
end
|
|
118
128
|
end
|
|
119
129
|
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
|