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
|
@@ -21,6 +21,10 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class AzureAccount
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Limit the Azure app service plans that are pulled into Datadog using tags.
|
|
25
|
+
# Only app service plans that match one of the defined tags are imported into Datadog.
|
|
26
|
+
attr_accessor :app_service_plan_filters
|
|
27
|
+
|
|
24
28
|
# Silence monitors for expected Azure VM shutdowns.
|
|
25
29
|
attr_accessor :automute
|
|
26
30
|
|
|
@@ -30,6 +34,12 @@ module DatadogAPIClient::V1
|
|
|
30
34
|
# Your Azure web application secret key.
|
|
31
35
|
attr_accessor :client_secret
|
|
32
36
|
|
|
37
|
+
# Enable Cloud Security Management Misconfigurations for your organization.
|
|
38
|
+
attr_accessor :cspm_enabled
|
|
39
|
+
|
|
40
|
+
# Enable custom metrics for your organization.
|
|
41
|
+
attr_accessor :custom_metrics_enabled
|
|
42
|
+
|
|
33
43
|
# Errors in your configuration.
|
|
34
44
|
attr_accessor :errors
|
|
35
45
|
|
|
@@ -50,9 +60,12 @@ module DatadogAPIClient::V1
|
|
|
50
60
|
# @!visibility private
|
|
51
61
|
def self.attribute_map
|
|
52
62
|
{
|
|
63
|
+
:'app_service_plan_filters' => :'app_service_plan_filters',
|
|
53
64
|
:'automute' => :'automute',
|
|
54
65
|
:'client_id' => :'client_id',
|
|
55
66
|
:'client_secret' => :'client_secret',
|
|
67
|
+
:'cspm_enabled' => :'cspm_enabled',
|
|
68
|
+
:'custom_metrics_enabled' => :'custom_metrics_enabled',
|
|
56
69
|
:'errors' => :'errors',
|
|
57
70
|
:'host_filters' => :'host_filters',
|
|
58
71
|
:'new_client_id' => :'new_client_id',
|
|
@@ -65,9 +78,12 @@ module DatadogAPIClient::V1
|
|
|
65
78
|
# @!visibility private
|
|
66
79
|
def self.openapi_types
|
|
67
80
|
{
|
|
81
|
+
:'app_service_plan_filters' => :'String',
|
|
68
82
|
:'automute' => :'Boolean',
|
|
69
83
|
:'client_id' => :'String',
|
|
70
84
|
:'client_secret' => :'String',
|
|
85
|
+
:'cspm_enabled' => :'Boolean',
|
|
86
|
+
:'custom_metrics_enabled' => :'Boolean',
|
|
71
87
|
:'errors' => :'Array<String>',
|
|
72
88
|
:'host_filters' => :'String',
|
|
73
89
|
:'new_client_id' => :'String',
|
|
@@ -92,6 +108,10 @@ module DatadogAPIClient::V1
|
|
|
92
108
|
h[k.to_sym] = v
|
|
93
109
|
}
|
|
94
110
|
|
|
111
|
+
if attributes.key?(:'app_service_plan_filters')
|
|
112
|
+
self.app_service_plan_filters = attributes[:'app_service_plan_filters']
|
|
113
|
+
end
|
|
114
|
+
|
|
95
115
|
if attributes.key?(:'automute')
|
|
96
116
|
self.automute = attributes[:'automute']
|
|
97
117
|
end
|
|
@@ -104,6 +124,14 @@ module DatadogAPIClient::V1
|
|
|
104
124
|
self.client_secret = attributes[:'client_secret']
|
|
105
125
|
end
|
|
106
126
|
|
|
127
|
+
if attributes.key?(:'cspm_enabled')
|
|
128
|
+
self.cspm_enabled = attributes[:'cspm_enabled']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'custom_metrics_enabled')
|
|
132
|
+
self.custom_metrics_enabled = attributes[:'custom_metrics_enabled']
|
|
133
|
+
end
|
|
134
|
+
|
|
107
135
|
if attributes.key?(:'errors')
|
|
108
136
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
109
137
|
self.errors = value
|
|
@@ -133,9 +161,12 @@ module DatadogAPIClient::V1
|
|
|
133
161
|
def ==(o)
|
|
134
162
|
return true if self.equal?(o)
|
|
135
163
|
self.class == o.class &&
|
|
164
|
+
app_service_plan_filters == o.app_service_plan_filters &&
|
|
136
165
|
automute == o.automute &&
|
|
137
166
|
client_id == o.client_id &&
|
|
138
167
|
client_secret == o.client_secret &&
|
|
168
|
+
cspm_enabled == o.cspm_enabled &&
|
|
169
|
+
custom_metrics_enabled == o.custom_metrics_enabled &&
|
|
139
170
|
errors == o.errors &&
|
|
140
171
|
host_filters == o.host_filters &&
|
|
141
172
|
new_client_id == o.new_client_id &&
|
|
@@ -147,7 +178,7 @@ module DatadogAPIClient::V1
|
|
|
147
178
|
# @return [Integer] Hash code
|
|
148
179
|
# @!visibility private
|
|
149
180
|
def hash
|
|
150
|
-
[automute, client_id, client_secret, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash
|
|
181
|
+
[app_service_plan_filters, automute, client_id, client_secret, cspm_enabled, custom_metrics_enabled, errors, host_filters, new_client_id, new_tenant_name, tenant_name].hash
|
|
151
182
|
end
|
|
152
183
|
end
|
|
153
184
|
end
|
|
@@ -63,7 +63,7 @@ module DatadogAPIClient::V1
|
|
|
63
63
|
# List of queries that can be returned directly or used in formulas.
|
|
64
64
|
attr_accessor :queries
|
|
65
65
|
|
|
66
|
-
# Timeseries or
|
|
66
|
+
# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
|
|
67
67
|
attr_accessor :response_format
|
|
68
68
|
|
|
69
69
|
# The log query.
|
|
@@ -23,6 +23,9 @@ module DatadogAPIClient::V1
|
|
|
23
23
|
class DistributionWidgetDefinition
|
|
24
24
|
include BaseGenericModel
|
|
25
25
|
|
|
26
|
+
# A list of custom links.
|
|
27
|
+
attr_accessor :custom_links
|
|
28
|
+
|
|
26
29
|
# (Deprecated) The widget legend was replaced by a tooltip and sidebar.
|
|
27
30
|
attr_accessor :legend_size
|
|
28
31
|
|
|
@@ -63,6 +66,7 @@ module DatadogAPIClient::V1
|
|
|
63
66
|
# @!visibility private
|
|
64
67
|
def self.attribute_map
|
|
65
68
|
{
|
|
69
|
+
:'custom_links' => :'custom_links',
|
|
66
70
|
:'legend_size' => :'legend_size',
|
|
67
71
|
:'markers' => :'markers',
|
|
68
72
|
:'requests' => :'requests',
|
|
@@ -81,6 +85,7 @@ module DatadogAPIClient::V1
|
|
|
81
85
|
# @!visibility private
|
|
82
86
|
def self.openapi_types
|
|
83
87
|
{
|
|
88
|
+
:'custom_links' => :'Array<WidgetCustomLink>',
|
|
84
89
|
:'legend_size' => :'String',
|
|
85
90
|
:'markers' => :'Array<WidgetMarker>',
|
|
86
91
|
:'requests' => :'Array<DistributionWidgetRequest>',
|
|
@@ -111,6 +116,12 @@ module DatadogAPIClient::V1
|
|
|
111
116
|
h[k.to_sym] = v
|
|
112
117
|
}
|
|
113
118
|
|
|
119
|
+
if attributes.key?(:'custom_links')
|
|
120
|
+
if (value = attributes[:'custom_links']).is_a?(Array)
|
|
121
|
+
self.custom_links = value
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
114
125
|
if attributes.key?(:'legend_size')
|
|
115
126
|
self.legend_size = attributes[:'legend_size']
|
|
116
127
|
end
|
|
@@ -203,6 +214,7 @@ module DatadogAPIClient::V1
|
|
|
203
214
|
def ==(o)
|
|
204
215
|
return true if self.equal?(o)
|
|
205
216
|
self.class == o.class &&
|
|
217
|
+
custom_links == o.custom_links &&
|
|
206
218
|
legend_size == o.legend_size &&
|
|
207
219
|
markers == o.markers &&
|
|
208
220
|
requests == o.requests &&
|
|
@@ -220,7 +232,7 @@ module DatadogAPIClient::V1
|
|
|
220
232
|
# @return [Integer] Hash code
|
|
221
233
|
# @!visibility private
|
|
222
234
|
def hash
|
|
223
|
-
[legend_size, markers, requests, show_legend, time, title, title_align, title_size, type, xaxis, yaxis].hash
|
|
235
|
+
[custom_links, legend_size, markers, requests, show_legend, time, title, title_align, title_size, type, xaxis, yaxis].hash
|
|
224
236
|
end
|
|
225
237
|
end
|
|
226
238
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Data source for Cloud Cost queries.
|
|
21
|
+
class FormulaAndFunctionCloudCostDataSource
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
CLOUD_COST = "cloud_cost".freeze
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
+
# A formula and functions Cloud Cost query.
|
|
21
|
+
class FormulaAndFunctionCloudCostQueryDefinition
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Aggregator used for the request.
|
|
25
|
+
attr_accessor :aggregator
|
|
26
|
+
|
|
27
|
+
# Data source for Cloud Cost queries.
|
|
28
|
+
attr_reader :data_source
|
|
29
|
+
|
|
30
|
+
# Name of the query for use in formulas.
|
|
31
|
+
attr_reader :name
|
|
32
|
+
|
|
33
|
+
# Query for Cloud Cost data.
|
|
34
|
+
attr_reader :query
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
# @!visibility private
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'aggregator' => :'aggregator',
|
|
41
|
+
:'data_source' => :'data_source',
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'query' => :'query'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
# @!visibility private
|
|
49
|
+
def self.openapi_types
|
|
50
|
+
{
|
|
51
|
+
:'aggregator' => :'WidgetAggregator',
|
|
52
|
+
:'data_source' => :'FormulaAndFunctionCloudCostDataSource',
|
|
53
|
+
:'name' => :'String',
|
|
54
|
+
:'query' => :'String'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
60
|
+
# @!visibility private
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::FormulaAndFunctionCloudCostQueryDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'aggregator')
|
|
75
|
+
self.aggregator = attributes[:'aggregator']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'data_source')
|
|
79
|
+
self.data_source = attributes[:'data_source']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'name')
|
|
83
|
+
self.name = attributes[:'name']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'query')
|
|
87
|
+
self.query = attributes[:'query']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
# @!visibility private
|
|
94
|
+
def valid?
|
|
95
|
+
return false if @data_source.nil?
|
|
96
|
+
return false if @name.nil?
|
|
97
|
+
return false if @query.nil?
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param data_source [Object] Object to be assigned
|
|
103
|
+
# @!visibility private
|
|
104
|
+
def data_source=(data_source)
|
|
105
|
+
if data_source.nil?
|
|
106
|
+
fail ArgumentError, 'invalid value for "data_source", data_source cannot be nil.'
|
|
107
|
+
end
|
|
108
|
+
@data_source = data_source
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Custom attribute writer method with validation
|
|
112
|
+
# @param name [Object] Object to be assigned
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def name=(name)
|
|
115
|
+
if name.nil?
|
|
116
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
117
|
+
end
|
|
118
|
+
@name = name
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param query [Object] Object to be assigned
|
|
123
|
+
# @!visibility private
|
|
124
|
+
def query=(query)
|
|
125
|
+
if query.nil?
|
|
126
|
+
fail ArgumentError, 'invalid value for "query", query cannot be nil.'
|
|
127
|
+
end
|
|
128
|
+
@query = query
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Checks equality by comparing each attribute.
|
|
132
|
+
# @param o [Object] Object to be compared
|
|
133
|
+
# @!visibility private
|
|
134
|
+
def ==(o)
|
|
135
|
+
return true if self.equal?(o)
|
|
136
|
+
self.class == o.class &&
|
|
137
|
+
aggregator == o.aggregator &&
|
|
138
|
+
data_source == o.data_source &&
|
|
139
|
+
name == o.name &&
|
|
140
|
+
query == o.query
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
# @!visibility private
|
|
146
|
+
def hash
|
|
147
|
+
[aggregator, data_source, name, query].hash
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
@@ -31,7 +31,8 @@ module DatadogAPIClient::V1
|
|
|
31
31
|
:'FormulaAndFunctionProcessQueryDefinition',
|
|
32
32
|
:'FormulaAndFunctionApmDependencyStatsQueryDefinition',
|
|
33
33
|
:'FormulaAndFunctionApmResourceStatsQueryDefinition',
|
|
34
|
-
:'FormulaAndFunctionSLOQueryDefinition'
|
|
34
|
+
:'FormulaAndFunctionSLOQueryDefinition',
|
|
35
|
+
:'FormulaAndFunctionCloudCostQueryDefinition'
|
|
35
36
|
]
|
|
36
37
|
end
|
|
37
38
|
# Builds the object
|
|
@@ -17,11 +17,12 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V1
|
|
20
|
-
# Timeseries or
|
|
20
|
+
# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
|
|
21
21
|
class FormulaAndFunctionResponseFormat
|
|
22
22
|
include BaseEnumModel
|
|
23
23
|
|
|
24
24
|
TIMESERIES = "timeseries".freeze
|
|
25
25
|
SCALAR = "scalar".freeze
|
|
26
|
+
EVENT_LIST = "event_list".freeze
|
|
26
27
|
end
|
|
27
28
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class FormulaAndFunctionSLOQueryDefinition
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Additional filters applied to the SLO query.
|
|
25
|
+
attr_accessor :additional_query_filters
|
|
26
|
+
|
|
24
27
|
# Data source for SLO measures queries.
|
|
25
28
|
attr_reader :data_source
|
|
26
29
|
|
|
@@ -43,6 +46,7 @@ module DatadogAPIClient::V1
|
|
|
43
46
|
# @!visibility private
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
{
|
|
49
|
+
:'additional_query_filters' => :'additional_query_filters',
|
|
46
50
|
:'data_source' => :'data_source',
|
|
47
51
|
:'group_mode' => :'group_mode',
|
|
48
52
|
:'measure' => :'measure',
|
|
@@ -56,6 +60,7 @@ module DatadogAPIClient::V1
|
|
|
56
60
|
# @!visibility private
|
|
57
61
|
def self.openapi_types
|
|
58
62
|
{
|
|
63
|
+
:'additional_query_filters' => :'String',
|
|
59
64
|
:'data_source' => :'FormulaAndFunctionSLODataSource',
|
|
60
65
|
:'group_mode' => :'FormulaAndFunctionSLOGroupMode',
|
|
61
66
|
:'measure' => :'FormulaAndFunctionSLOMeasure',
|
|
@@ -81,6 +86,10 @@ module DatadogAPIClient::V1
|
|
|
81
86
|
h[k.to_sym] = v
|
|
82
87
|
}
|
|
83
88
|
|
|
89
|
+
if attributes.key?(:'additional_query_filters')
|
|
90
|
+
self.additional_query_filters = attributes[:'additional_query_filters']
|
|
91
|
+
end
|
|
92
|
+
|
|
84
93
|
if attributes.key?(:'data_source')
|
|
85
94
|
self.data_source = attributes[:'data_source']
|
|
86
95
|
end
|
|
@@ -152,6 +161,7 @@ module DatadogAPIClient::V1
|
|
|
152
161
|
def ==(o)
|
|
153
162
|
return true if self.equal?(o)
|
|
154
163
|
self.class == o.class &&
|
|
164
|
+
additional_query_filters == o.additional_query_filters &&
|
|
155
165
|
data_source == o.data_source &&
|
|
156
166
|
group_mode == o.group_mode &&
|
|
157
167
|
measure == o.measure &&
|
|
@@ -164,7 +174,7 @@ module DatadogAPIClient::V1
|
|
|
164
174
|
# @return [Integer] Hash code
|
|
165
175
|
# @!visibility private
|
|
166
176
|
def hash
|
|
167
|
-
[data_source, group_mode, measure, name, slo_id, slo_query_type].hash
|
|
177
|
+
[additional_query_filters, data_source, group_mode, measure, name, slo_id, slo_query_type].hash
|
|
168
178
|
end
|
|
169
179
|
end
|
|
170
180
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
|
|
|
21
21
|
class GeomapWidgetRequest
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# Widget columns.
|
|
25
|
+
attr_accessor :columns
|
|
26
|
+
|
|
24
27
|
# List of formulas that operate on queries.
|
|
25
28
|
attr_accessor :formulas
|
|
26
29
|
|
|
@@ -33,7 +36,10 @@ module DatadogAPIClient::V1
|
|
|
33
36
|
# List of queries that can be returned directly or used in formulas.
|
|
34
37
|
attr_accessor :queries
|
|
35
38
|
|
|
36
|
-
#
|
|
39
|
+
# Updated list stream widget.
|
|
40
|
+
attr_accessor :query
|
|
41
|
+
|
|
42
|
+
# Timeseries, scalar, or event list response. Event list response formats are supported by Geomap widgets.
|
|
37
43
|
attr_accessor :response_format
|
|
38
44
|
|
|
39
45
|
# The log query.
|
|
@@ -46,10 +52,12 @@ module DatadogAPIClient::V1
|
|
|
46
52
|
# @!visibility private
|
|
47
53
|
def self.attribute_map
|
|
48
54
|
{
|
|
55
|
+
:'columns' => :'columns',
|
|
49
56
|
:'formulas' => :'formulas',
|
|
50
57
|
:'log_query' => :'log_query',
|
|
51
58
|
:'q' => :'q',
|
|
52
59
|
:'queries' => :'queries',
|
|
60
|
+
:'query' => :'query',
|
|
53
61
|
:'response_format' => :'response_format',
|
|
54
62
|
:'rum_query' => :'rum_query',
|
|
55
63
|
:'security_query' => :'security_query'
|
|
@@ -60,10 +68,12 @@ module DatadogAPIClient::V1
|
|
|
60
68
|
# @!visibility private
|
|
61
69
|
def self.openapi_types
|
|
62
70
|
{
|
|
71
|
+
:'columns' => :'Array<ListStreamColumn>',
|
|
63
72
|
:'formulas' => :'Array<WidgetFormula>',
|
|
64
73
|
:'log_query' => :'LogQueryDefinition',
|
|
65
74
|
:'q' => :'String',
|
|
66
75
|
:'queries' => :'Array<FormulaAndFunctionQueryDefinition>',
|
|
76
|
+
:'query' => :'ListStreamQuery',
|
|
67
77
|
:'response_format' => :'FormulaAndFunctionResponseFormat',
|
|
68
78
|
:'rum_query' => :'LogQueryDefinition',
|
|
69
79
|
:'security_query' => :'LogQueryDefinition'
|
|
@@ -86,6 +96,12 @@ module DatadogAPIClient::V1
|
|
|
86
96
|
h[k.to_sym] = v
|
|
87
97
|
}
|
|
88
98
|
|
|
99
|
+
if attributes.key?(:'columns')
|
|
100
|
+
if (value = attributes[:'columns']).is_a?(Array)
|
|
101
|
+
self.columns = value
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
89
105
|
if attributes.key?(:'formulas')
|
|
90
106
|
if (value = attributes[:'formulas']).is_a?(Array)
|
|
91
107
|
self.formulas = value
|
|
@@ -106,6 +122,10 @@ module DatadogAPIClient::V1
|
|
|
106
122
|
end
|
|
107
123
|
end
|
|
108
124
|
|
|
125
|
+
if attributes.key?(:'query')
|
|
126
|
+
self.query = attributes[:'query']
|
|
127
|
+
end
|
|
128
|
+
|
|
109
129
|
if attributes.key?(:'response_format')
|
|
110
130
|
self.response_format = attributes[:'response_format']
|
|
111
131
|
end
|
|
@@ -125,10 +145,12 @@ module DatadogAPIClient::V1
|
|
|
125
145
|
def ==(o)
|
|
126
146
|
return true if self.equal?(o)
|
|
127
147
|
self.class == o.class &&
|
|
148
|
+
columns == o.columns &&
|
|
128
149
|
formulas == o.formulas &&
|
|
129
150
|
log_query == o.log_query &&
|
|
130
151
|
q == o.q &&
|
|
131
152
|
queries == o.queries &&
|
|
153
|
+
query == o.query &&
|
|
132
154
|
response_format == o.response_format &&
|
|
133
155
|
rum_query == o.rum_query &&
|
|
134
156
|
security_query == o.security_query
|
|
@@ -138,7 +160,7 @@ module DatadogAPIClient::V1
|
|
|
138
160
|
# @return [Integer] Hash code
|
|
139
161
|
# @!visibility private
|
|
140
162
|
def hash
|
|
141
|
-
[formulas, log_query, q, queries, response_format, rum_query, security_query].hash
|
|
163
|
+
[columns, formulas, log_query, q, queries, query, response_format, rum_query, security_query].hash
|
|
142
164
|
end
|
|
143
165
|
end
|
|
144
166
|
end
|
|
@@ -24,10 +24,12 @@ module DatadogAPIClient::V1
|
|
|
24
24
|
API_USAGE = "api_usage".freeze
|
|
25
25
|
APM_FARGATE_USAGE = "apm_fargate_usage".freeze
|
|
26
26
|
APM_HOST_USAGE = "apm_host_usage".freeze
|
|
27
|
+
APM_USM_USAGE = "apm_usm_usage".freeze
|
|
27
28
|
APPSEC_FARGATE_USAGE = "appsec_fargate_usage".freeze
|
|
28
29
|
APPSEC_USAGE = "appsec_usage".freeze
|
|
29
30
|
BROWSER_USAGE = "browser_usage".freeze
|
|
30
31
|
CONTAINER_EXCL_AGENT_USAGE = "container_excl_agent_usage".freeze
|
|
32
|
+
CI_VISIBILITY_ITR_USAGE = "ci_visibility_itr_usage".freeze
|
|
31
33
|
CONTAINER_USAGE = "container_usage".freeze
|
|
32
34
|
CSPM_CONTAINERS_USAGE = "cspm_containers_usage".freeze
|
|
33
35
|
CSPM_HOSTS_USAGE = "cspm_hosts_usage".freeze
|
|
@@ -54,5 +56,6 @@ module DatadogAPIClient::V1
|
|
|
54
56
|
ESTIMATED_RUM_SESSIONS_USAGE = "estimated_rum_sessions_usage".freeze
|
|
55
57
|
UNIVERSAL_SERVICE_MONITORING_USAGE = "universal_service_monitoring_usage".freeze
|
|
56
58
|
VULN_MANAGEMENT_HOSTS_USAGE = "vuln_management_hosts_usage".freeze
|
|
59
|
+
SDS_SCANNED_BYTES_USAGE = "sds_scanned_bytes_usage".freeze
|
|
57
60
|
end
|
|
58
61
|
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
# Available prefix information for the Remote Configuration endpoints.
|
|
21
|
+
class IPPrefixesRemoteConfiguration
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# List of IPv4 prefixes.
|
|
25
|
+
attr_accessor :prefixes_ipv4
|
|
26
|
+
|
|
27
|
+
# List of IPv6 prefixes.
|
|
28
|
+
attr_accessor :prefixes_ipv6
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
# @!visibility private
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'prefixes_ipv4' => :'prefixes_ipv4',
|
|
35
|
+
:'prefixes_ipv6' => :'prefixes_ipv6'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
# @!visibility private
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'prefixes_ipv4' => :'Array<String>',
|
|
44
|
+
:'prefixes_ipv6' => :'Array<String>'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
50
|
+
# @!visibility private
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::IPPrefixesRemoteConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'prefixes_ipv4')
|
|
65
|
+
if (value = attributes[:'prefixes_ipv4']).is_a?(Array)
|
|
66
|
+
self.prefixes_ipv4 = value
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'prefixes_ipv6')
|
|
71
|
+
if (value = attributes[:'prefixes_ipv6']).is_a?(Array)
|
|
72
|
+
self.prefixes_ipv6 = value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Checks equality by comparing each attribute.
|
|
78
|
+
# @param o [Object] Object to be compared
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def ==(o)
|
|
81
|
+
return true if self.equal?(o)
|
|
82
|
+
self.class == o.class &&
|
|
83
|
+
prefixes_ipv4 == o.prefixes_ipv4 &&
|
|
84
|
+
prefixes_ipv6 == o.prefixes_ipv6
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Calculates hash code according to all attributes.
|
|
88
|
+
# @return [Integer] Hash code
|
|
89
|
+
# @!visibility private
|
|
90
|
+
def hash
|
|
91
|
+
[prefixes_ipv4, prefixes_ipv6].hash
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -42,6 +42,9 @@ module DatadogAPIClient::V1
|
|
|
42
42
|
# Available prefix information for the Process endpoints.
|
|
43
43
|
attr_accessor :process
|
|
44
44
|
|
|
45
|
+
# Available prefix information for the Remote Configuration endpoints.
|
|
46
|
+
attr_accessor :remote_configuration
|
|
47
|
+
|
|
45
48
|
# Available prefix information for the Synthetics endpoints.
|
|
46
49
|
attr_accessor :synthetics
|
|
47
50
|
|
|
@@ -65,6 +68,7 @@ module DatadogAPIClient::V1
|
|
|
65
68
|
:'modified' => :'modified',
|
|
66
69
|
:'orchestrator' => :'orchestrator',
|
|
67
70
|
:'process' => :'process',
|
|
71
|
+
:'remote_configuration' => :'remote-configuration',
|
|
68
72
|
:'synthetics' => :'synthetics',
|
|
69
73
|
:'synthetics_private_locations' => :'synthetics-private-locations',
|
|
70
74
|
:'version' => :'version',
|
|
@@ -83,6 +87,7 @@ module DatadogAPIClient::V1
|
|
|
83
87
|
:'modified' => :'String',
|
|
84
88
|
:'orchestrator' => :'IPPrefixesOrchestrator',
|
|
85
89
|
:'process' => :'IPPrefixesProcess',
|
|
90
|
+
:'remote_configuration' => :'IPPrefixesRemoteConfiguration',
|
|
86
91
|
:'synthetics' => :'IPPrefixesSynthetics',
|
|
87
92
|
:'synthetics_private_locations' => :'IPPrefixesSyntheticsPrivateLocations',
|
|
88
93
|
:'version' => :'Integer',
|
|
@@ -134,6 +139,10 @@ module DatadogAPIClient::V1
|
|
|
134
139
|
self.process = attributes[:'process']
|
|
135
140
|
end
|
|
136
141
|
|
|
142
|
+
if attributes.key?(:'remote_configuration')
|
|
143
|
+
self.remote_configuration = attributes[:'remote_configuration']
|
|
144
|
+
end
|
|
145
|
+
|
|
137
146
|
if attributes.key?(:'synthetics')
|
|
138
147
|
self.synthetics = attributes[:'synthetics']
|
|
139
148
|
end
|
|
@@ -164,6 +173,7 @@ module DatadogAPIClient::V1
|
|
|
164
173
|
modified == o.modified &&
|
|
165
174
|
orchestrator == o.orchestrator &&
|
|
166
175
|
process == o.process &&
|
|
176
|
+
remote_configuration == o.remote_configuration &&
|
|
167
177
|
synthetics == o.synthetics &&
|
|
168
178
|
synthetics_private_locations == o.synthetics_private_locations &&
|
|
169
179
|
version == o.version &&
|
|
@@ -174,7 +184,7 @@ module DatadogAPIClient::V1
|
|
|
174
184
|
# @return [Integer] Hash code
|
|
175
185
|
# @!visibility private
|
|
176
186
|
def hash
|
|
177
|
-
[agents, api, apm, logs, modified, orchestrator, process, synthetics, synthetics_private_locations, version, webhooks].hash
|
|
187
|
+
[agents, api, apm, logs, modified, orchestrator, process, remote_configuration, synthetics, synthetics_private_locations, version, webhooks].hash
|
|
178
188
|
end
|
|
179
189
|
end
|
|
180
190
|
end
|