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
|
@@ -78,6 +78,9 @@ module DatadogAPIClient::V1
|
|
|
78
78
|
# Shows the sum of all CI test indexed spans over all hours in the current months for all organizations.
|
|
79
79
|
attr_accessor :ci_test_indexed_spans_agg_sum
|
|
80
80
|
|
|
81
|
+
# Shows the high-water mark of all CI visibility intelligent test runner committers over all hours in the current months for all organizations.
|
|
82
|
+
attr_accessor :ci_visibility_itr_committers_hwm_sum
|
|
83
|
+
|
|
81
84
|
# Shows the high-water mark of all CI visibility pipeline committers over all hours in the current months for all organizations.
|
|
82
85
|
attr_accessor :ci_visibility_pipeline_committers_hwm_sum
|
|
83
86
|
|
|
@@ -297,6 +300,9 @@ module DatadogAPIClient::V1
|
|
|
297
300
|
# Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current months for all organizations.
|
|
298
301
|
attr_accessor :vuln_management_host_count_top99p_sum
|
|
299
302
|
|
|
303
|
+
# Sum of all workflows executed over all hours in the current months for all organizations.
|
|
304
|
+
attr_accessor :workflow_executions_usage_agg_sum
|
|
305
|
+
|
|
300
306
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
301
307
|
# @!visibility private
|
|
302
308
|
def self.attribute_map
|
|
@@ -320,6 +326,7 @@ module DatadogAPIClient::V1
|
|
|
320
326
|
:'browser_rum_units_agg_sum' => :'browser_rum_units_agg_sum',
|
|
321
327
|
:'ci_pipeline_indexed_spans_agg_sum' => :'ci_pipeline_indexed_spans_agg_sum',
|
|
322
328
|
:'ci_test_indexed_spans_agg_sum' => :'ci_test_indexed_spans_agg_sum',
|
|
329
|
+
:'ci_visibility_itr_committers_hwm_sum' => :'ci_visibility_itr_committers_hwm_sum',
|
|
323
330
|
:'ci_visibility_pipeline_committers_hwm_sum' => :'ci_visibility_pipeline_committers_hwm_sum',
|
|
324
331
|
:'ci_visibility_test_committers_hwm_sum' => :'ci_visibility_test_committers_hwm_sum',
|
|
325
332
|
:'cloud_cost_management_aws_host_count_avg_sum' => :'cloud_cost_management_aws_host_count_avg_sum',
|
|
@@ -392,7 +399,8 @@ module DatadogAPIClient::V1
|
|
|
392
399
|
:'universal_service_monitoring_host_top99p_sum' => :'universal_service_monitoring_host_top99p_sum',
|
|
393
400
|
:'usage' => :'usage',
|
|
394
401
|
:'vsphere_host_top99p_sum' => :'vsphere_host_top99p_sum',
|
|
395
|
-
:'vuln_management_host_count_top99p_sum' => :'vuln_management_host_count_top99p_sum'
|
|
402
|
+
:'vuln_management_host_count_top99p_sum' => :'vuln_management_host_count_top99p_sum',
|
|
403
|
+
:'workflow_executions_usage_agg_sum' => :'workflow_executions_usage_agg_sum'
|
|
396
404
|
}
|
|
397
405
|
end
|
|
398
406
|
|
|
@@ -419,6 +427,7 @@ module DatadogAPIClient::V1
|
|
|
419
427
|
:'browser_rum_units_agg_sum' => :'Integer',
|
|
420
428
|
:'ci_pipeline_indexed_spans_agg_sum' => :'Integer',
|
|
421
429
|
:'ci_test_indexed_spans_agg_sum' => :'Integer',
|
|
430
|
+
:'ci_visibility_itr_committers_hwm_sum' => :'Integer',
|
|
422
431
|
:'ci_visibility_pipeline_committers_hwm_sum' => :'Integer',
|
|
423
432
|
:'ci_visibility_test_committers_hwm_sum' => :'Integer',
|
|
424
433
|
:'cloud_cost_management_aws_host_count_avg_sum' => :'Integer',
|
|
@@ -491,7 +500,8 @@ module DatadogAPIClient::V1
|
|
|
491
500
|
:'universal_service_monitoring_host_top99p_sum' => :'Integer',
|
|
492
501
|
:'usage' => :'Array<UsageSummaryDate>',
|
|
493
502
|
:'vsphere_host_top99p_sum' => :'Integer',
|
|
494
|
-
:'vuln_management_host_count_top99p_sum' => :'Integer'
|
|
503
|
+
:'vuln_management_host_count_top99p_sum' => :'Integer',
|
|
504
|
+
:'workflow_executions_usage_agg_sum' => :'Integer'
|
|
495
505
|
}
|
|
496
506
|
end
|
|
497
507
|
|
|
@@ -587,6 +597,10 @@ module DatadogAPIClient::V1
|
|
|
587
597
|
self.ci_test_indexed_spans_agg_sum = attributes[:'ci_test_indexed_spans_agg_sum']
|
|
588
598
|
end
|
|
589
599
|
|
|
600
|
+
if attributes.key?(:'ci_visibility_itr_committers_hwm_sum')
|
|
601
|
+
self.ci_visibility_itr_committers_hwm_sum = attributes[:'ci_visibility_itr_committers_hwm_sum']
|
|
602
|
+
end
|
|
603
|
+
|
|
590
604
|
if attributes.key?(:'ci_visibility_pipeline_committers_hwm_sum')
|
|
591
605
|
self.ci_visibility_pipeline_committers_hwm_sum = attributes[:'ci_visibility_pipeline_committers_hwm_sum']
|
|
592
606
|
end
|
|
@@ -880,6 +894,10 @@ module DatadogAPIClient::V1
|
|
|
880
894
|
if attributes.key?(:'vuln_management_host_count_top99p_sum')
|
|
881
895
|
self.vuln_management_host_count_top99p_sum = attributes[:'vuln_management_host_count_top99p_sum']
|
|
882
896
|
end
|
|
897
|
+
|
|
898
|
+
if attributes.key?(:'workflow_executions_usage_agg_sum')
|
|
899
|
+
self.workflow_executions_usage_agg_sum = attributes[:'workflow_executions_usage_agg_sum']
|
|
900
|
+
end
|
|
883
901
|
end
|
|
884
902
|
|
|
885
903
|
# Checks equality by comparing each attribute.
|
|
@@ -907,6 +925,7 @@ module DatadogAPIClient::V1
|
|
|
907
925
|
browser_rum_units_agg_sum == o.browser_rum_units_agg_sum &&
|
|
908
926
|
ci_pipeline_indexed_spans_agg_sum == o.ci_pipeline_indexed_spans_agg_sum &&
|
|
909
927
|
ci_test_indexed_spans_agg_sum == o.ci_test_indexed_spans_agg_sum &&
|
|
928
|
+
ci_visibility_itr_committers_hwm_sum == o.ci_visibility_itr_committers_hwm_sum &&
|
|
910
929
|
ci_visibility_pipeline_committers_hwm_sum == o.ci_visibility_pipeline_committers_hwm_sum &&
|
|
911
930
|
ci_visibility_test_committers_hwm_sum == o.ci_visibility_test_committers_hwm_sum &&
|
|
912
931
|
cloud_cost_management_aws_host_count_avg_sum == o.cloud_cost_management_aws_host_count_avg_sum &&
|
|
@@ -979,14 +998,15 @@ module DatadogAPIClient::V1
|
|
|
979
998
|
universal_service_monitoring_host_top99p_sum == o.universal_service_monitoring_host_top99p_sum &&
|
|
980
999
|
usage == o.usage &&
|
|
981
1000
|
vsphere_host_top99p_sum == o.vsphere_host_top99p_sum &&
|
|
982
|
-
vuln_management_host_count_top99p_sum == o.vuln_management_host_count_top99p_sum
|
|
1001
|
+
vuln_management_host_count_top99p_sum == o.vuln_management_host_count_top99p_sum &&
|
|
1002
|
+
workflow_executions_usage_agg_sum == o.workflow_executions_usage_agg_sum
|
|
983
1003
|
end
|
|
984
1004
|
|
|
985
1005
|
# Calculates hash code according to all attributes.
|
|
986
1006
|
# @return [Integer] Hash code
|
|
987
1007
|
# @!visibility private
|
|
988
1008
|
def hash
|
|
989
|
-
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum].hash
|
|
1009
|
+
[agent_host_top99p_sum, apm_azure_app_service_host_top99p_sum, apm_fargate_count_avg_sum, apm_host_top99p_sum, appsec_fargate_count_avg_sum, audit_logs_lines_indexed_agg_sum, audit_trail_enabled_hwm_sum, avg_profiled_fargate_tasks_sum, aws_host_top99p_sum, aws_lambda_func_count, aws_lambda_invocations_sum, azure_app_service_top99p_sum, azure_host_top99p_sum, billable_ingested_bytes_agg_sum, browser_rum_lite_session_count_agg_sum, browser_rum_replay_session_count_agg_sum, browser_rum_units_agg_sum, ci_pipeline_indexed_spans_agg_sum, ci_test_indexed_spans_agg_sum, ci_visibility_itr_committers_hwm_sum, ci_visibility_pipeline_committers_hwm_sum, ci_visibility_test_committers_hwm_sum, cloud_cost_management_aws_host_count_avg_sum, cloud_cost_management_azure_host_count_avg_sum, cloud_cost_management_host_count_avg_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum, cspm_aas_host_top99p_sum, cspm_aws_host_top99p_sum, cspm_azure_host_top99p_sum, cspm_container_avg_sum, cspm_container_hwm_sum, cspm_gcp_host_top99p_sum, cspm_host_top99p_sum, custom_ts_sum, cws_containers_avg_sum, cws_host_top99p_sum, dbm_host_top99p_sum, dbm_queries_avg_sum, end_date, fargate_tasks_count_avg_sum, fargate_tasks_count_hwm_sum, forwarding_events_bytes_agg_sum, gcp_host_top99p_sum, heroku_host_top99p_sum, incident_management_monthly_active_users_hwm_sum, indexed_events_count_agg_sum, infra_host_top99p_sum, ingested_events_bytes_agg_sum, iot_device_agg_sum, iot_device_top99p_sum, last_updated, live_indexed_events_agg_sum, live_ingested_bytes_agg_sum, logs_by_retention, mobile_rum_lite_session_count_agg_sum, mobile_rum_session_count_agg_sum, mobile_rum_session_count_android_agg_sum, mobile_rum_session_count_flutter_agg_sum, mobile_rum_session_count_ios_agg_sum, mobile_rum_session_count_reactnative_agg_sum, mobile_rum_session_count_roku_agg_sum, mobile_rum_units_agg_sum, netflow_indexed_events_count_agg_sum, npm_host_top99p_sum, observability_pipelines_bytes_processed_agg_sum, online_archive_events_count_agg_sum, opentelemetry_apm_host_top99p_sum, opentelemetry_host_top99p_sum, profiling_container_agent_count_avg, profiling_host_count_top99p_sum, rehydrated_indexed_events_agg_sum, rehydrated_ingested_bytes_agg_sum, rum_browser_and_mobile_session_count, rum_session_count_agg_sum, rum_total_session_count_agg_sum, rum_units_agg_sum, sds_apm_scanned_bytes_sum, sds_events_scanned_bytes_sum, sds_logs_scanned_bytes_sum, sds_rum_scanned_bytes_sum, sds_total_scanned_bytes_sum, start_date, synthetics_browser_check_calls_count_agg_sum, synthetics_check_calls_count_agg_sum, synthetics_parallel_testing_max_slots_hwm_sum, trace_search_indexed_events_count_agg_sum, twol_ingested_events_bytes_agg_sum, universal_service_monitoring_host_top99p_sum, usage, vsphere_host_top99p_sum, vuln_management_host_count_top99p_sum, workflow_executions_usage_agg_sum].hash
|
|
990
1010
|
end
|
|
991
1011
|
end
|
|
992
1012
|
end
|
|
@@ -70,6 +70,14 @@ module DatadogAPIClient::V1
|
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
# List of attributes with nullable: true
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def self.openapi_nullable
|
|
76
|
+
Set.new([
|
|
77
|
+
:'access_role',
|
|
78
|
+
])
|
|
79
|
+
end
|
|
80
|
+
|
|
73
81
|
# Initializes the object
|
|
74
82
|
# @param attributes [Hash] Model attributes in the form of hash
|
|
75
83
|
# @!visibility private
|
|
@@ -33,7 +33,7 @@ module DatadogAPIClient::V2
|
|
|
33
33
|
|
|
34
34
|
# Aggregate pipelines events.
|
|
35
35
|
#
|
|
36
|
-
#
|
|
36
|
+
# Use this API endpoint to aggregate CI Visibility pipeline events into buckets of computed metrics and timeseries.
|
|
37
37
|
#
|
|
38
38
|
# @param body [CIAppPipelinesAggregateRequest]
|
|
39
39
|
# @param opts [Hash] the optional parameters
|
|
@@ -100,14 +100,20 @@ module DatadogAPIClient::V2
|
|
|
100
100
|
|
|
101
101
|
# Send pipeline event.
|
|
102
102
|
#
|
|
103
|
-
# Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see
|
|
103
|
+
# Send your pipeline event to your Datadog platform over HTTP. For details about how pipeline executions are modeled and what execution types we support, see [Pipeline Data Model And Execution Types](https://docs.datadoghq.com/continuous_integration/guides/pipeline_data_model/).
|
|
104
104
|
#
|
|
105
|
-
#
|
|
105
|
+
# Pipeline events can be submitted with a timestamp that is up to 18 hours in the past.
|
|
106
106
|
#
|
|
107
107
|
# @param body [CIAppCreatePipelineEventRequest]
|
|
108
108
|
# @param opts [Hash] the optional parameters
|
|
109
109
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
110
110
|
def create_ci_app_pipeline_event_with_http_info(body, opts = {})
|
|
111
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_ci_app_pipeline_event".to_sym]
|
|
112
|
+
if unstable_enabled
|
|
113
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_ci_app_pipeline_event")
|
|
114
|
+
else
|
|
115
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_ci_app_pipeline_event"))
|
|
116
|
+
end
|
|
111
117
|
|
|
112
118
|
if @api_client.config.debugging
|
|
113
119
|
@api_client.config.logger.debug 'Calling API: CIVisibilityPipelinesAPI.create_ci_app_pipeline_event ...'
|
|
@@ -169,7 +175,7 @@ module DatadogAPIClient::V2
|
|
|
169
175
|
|
|
170
176
|
# Get a list of pipelines events.
|
|
171
177
|
#
|
|
172
|
-
# List endpoint returns CI Visibility pipeline events that match a [
|
|
178
|
+
# List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/).
|
|
173
179
|
# [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
|
174
180
|
#
|
|
175
181
|
# Use this endpoint to see your latest pipeline events.
|
|
@@ -272,7 +278,7 @@ module DatadogAPIClient::V2
|
|
|
272
278
|
|
|
273
279
|
# Search pipelines events.
|
|
274
280
|
#
|
|
275
|
-
# List endpoint returns CI Visibility pipeline events that match a [
|
|
281
|
+
# List endpoint returns CI Visibility pipeline events that match a [search query](https://docs.datadoghq.com/continuous_integration/explorer/search_syntax/).
|
|
276
282
|
# [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
|
277
283
|
#
|
|
278
284
|
# Use this endpoint to build complex events filtering and search.
|
|
@@ -0,0 +1,462 @@
|
|
|
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 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class DowntimesAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Cancel a downtime.
|
|
27
|
+
#
|
|
28
|
+
# @see #cancel_downtime_with_http_info
|
|
29
|
+
def cancel_downtime(downtime_id, opts = {})
|
|
30
|
+
cancel_downtime_with_http_info(downtime_id, opts)
|
|
31
|
+
nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Cancel a downtime.
|
|
35
|
+
#
|
|
36
|
+
# Cancel a downtime.
|
|
37
|
+
#
|
|
38
|
+
# @param downtime_id [String] ID of the downtime to cancel.
|
|
39
|
+
# @param opts [Hash] the optional parameters
|
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
+
def cancel_downtime_with_http_info(downtime_id, opts = {})
|
|
42
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.cancel_downtime".to_sym]
|
|
43
|
+
if unstable_enabled
|
|
44
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.cancel_downtime")
|
|
45
|
+
else
|
|
46
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.cancel_downtime"))
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
if @api_client.config.debugging
|
|
50
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtime ...'
|
|
51
|
+
end
|
|
52
|
+
# verify the required parameter 'downtime_id' is set
|
|
53
|
+
if @api_client.config.client_side_validation && downtime_id.nil?
|
|
54
|
+
fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.cancel_downtime"
|
|
55
|
+
end
|
|
56
|
+
# resource path
|
|
57
|
+
local_var_path = '/api/v2/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/'))
|
|
58
|
+
|
|
59
|
+
# query parameters
|
|
60
|
+
query_params = opts[:query_params] || {}
|
|
61
|
+
|
|
62
|
+
# header parameters
|
|
63
|
+
header_params = opts[:header_params] || {}
|
|
64
|
+
# HTTP header 'Accept' (if needed)
|
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body]
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type]
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :cancel_downtime,
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type,
|
|
87
|
+
:api_version => "V2"
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#cancel_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
93
|
+
end
|
|
94
|
+
return data, status_code, headers
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Schedule a downtime.
|
|
98
|
+
#
|
|
99
|
+
# @see #create_downtime_with_http_info
|
|
100
|
+
def create_downtime(body, opts = {})
|
|
101
|
+
data, _status_code, _headers = create_downtime_with_http_info(body, opts)
|
|
102
|
+
data
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Schedule a downtime.
|
|
106
|
+
#
|
|
107
|
+
# Schedule a downtime.
|
|
108
|
+
#
|
|
109
|
+
# @param body [DowntimeCreateRequest] Schedule a downtime request body.
|
|
110
|
+
# @param opts [Hash] the optional parameters
|
|
111
|
+
# @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
|
|
112
|
+
def create_downtime_with_http_info(body, opts = {})
|
|
113
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.create_downtime".to_sym]
|
|
114
|
+
if unstable_enabled
|
|
115
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_downtime")
|
|
116
|
+
else
|
|
117
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_downtime"))
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.create_downtime ...'
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'body' is set
|
|
124
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.create_downtime"
|
|
126
|
+
end
|
|
127
|
+
# resource path
|
|
128
|
+
local_var_path = '/api/v2/downtime'
|
|
129
|
+
|
|
130
|
+
# query parameters
|
|
131
|
+
query_params = opts[:query_params] || {}
|
|
132
|
+
|
|
133
|
+
# header parameters
|
|
134
|
+
header_params = opts[:header_params] || {}
|
|
135
|
+
# HTTP header 'Accept' (if needed)
|
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
137
|
+
# HTTP header 'Content-Type'
|
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
139
|
+
|
|
140
|
+
# form parameters
|
|
141
|
+
form_params = opts[:form_params] || {}
|
|
142
|
+
|
|
143
|
+
# http body (model)
|
|
144
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
145
|
+
|
|
146
|
+
# return_type
|
|
147
|
+
return_type = opts[:debug_return_type] || 'DowntimeResponse'
|
|
148
|
+
|
|
149
|
+
# auth_names
|
|
150
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
151
|
+
|
|
152
|
+
new_options = opts.merge(
|
|
153
|
+
:operation => :create_downtime,
|
|
154
|
+
:header_params => header_params,
|
|
155
|
+
:query_params => query_params,
|
|
156
|
+
:form_params => form_params,
|
|
157
|
+
:body => post_body,
|
|
158
|
+
:auth_names => auth_names,
|
|
159
|
+
:return_type => return_type,
|
|
160
|
+
:api_version => "V2"
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#create_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
166
|
+
end
|
|
167
|
+
return data, status_code, headers
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Get a downtime.
|
|
171
|
+
#
|
|
172
|
+
# @see #get_downtime_with_http_info
|
|
173
|
+
def get_downtime(downtime_id, opts = {})
|
|
174
|
+
data, _status_code, _headers = get_downtime_with_http_info(downtime_id, opts)
|
|
175
|
+
data
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Get a downtime.
|
|
179
|
+
#
|
|
180
|
+
# Get downtime detail by `downtime_id`.
|
|
181
|
+
#
|
|
182
|
+
# @param downtime_id [String] ID of the downtime to fetch.
|
|
183
|
+
# @param opts [Hash] the optional parameters
|
|
184
|
+
# @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `monitor`.
|
|
185
|
+
# @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
|
|
186
|
+
def get_downtime_with_http_info(downtime_id, opts = {})
|
|
187
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.get_downtime".to_sym]
|
|
188
|
+
if unstable_enabled
|
|
189
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_downtime")
|
|
190
|
+
else
|
|
191
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_downtime"))
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.get_downtime ...'
|
|
196
|
+
end
|
|
197
|
+
# verify the required parameter 'downtime_id' is set
|
|
198
|
+
if @api_client.config.client_side_validation && downtime_id.nil?
|
|
199
|
+
fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.get_downtime"
|
|
200
|
+
end
|
|
201
|
+
# resource path
|
|
202
|
+
local_var_path = '/api/v2/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/'))
|
|
203
|
+
|
|
204
|
+
# query parameters
|
|
205
|
+
query_params = opts[:query_params] || {}
|
|
206
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
207
|
+
|
|
208
|
+
# header parameters
|
|
209
|
+
header_params = opts[:header_params] || {}
|
|
210
|
+
# HTTP header 'Accept' (if needed)
|
|
211
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
212
|
+
|
|
213
|
+
# form parameters
|
|
214
|
+
form_params = opts[:form_params] || {}
|
|
215
|
+
|
|
216
|
+
# http body (model)
|
|
217
|
+
post_body = opts[:debug_body]
|
|
218
|
+
|
|
219
|
+
# return_type
|
|
220
|
+
return_type = opts[:debug_return_type] || 'DowntimeResponse'
|
|
221
|
+
|
|
222
|
+
# auth_names
|
|
223
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
224
|
+
|
|
225
|
+
new_options = opts.merge(
|
|
226
|
+
:operation => :get_downtime,
|
|
227
|
+
:header_params => header_params,
|
|
228
|
+
:query_params => query_params,
|
|
229
|
+
:form_params => form_params,
|
|
230
|
+
:body => post_body,
|
|
231
|
+
:auth_names => auth_names,
|
|
232
|
+
:return_type => return_type,
|
|
233
|
+
:api_version => "V2"
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
237
|
+
if @api_client.config.debugging
|
|
238
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#get_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
239
|
+
end
|
|
240
|
+
return data, status_code, headers
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Get all downtimes.
|
|
244
|
+
#
|
|
245
|
+
# @see #list_downtimes_with_http_info
|
|
246
|
+
def list_downtimes(opts = {})
|
|
247
|
+
data, _status_code, _headers = list_downtimes_with_http_info(opts)
|
|
248
|
+
data
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Get all downtimes.
|
|
252
|
+
#
|
|
253
|
+
# Get all scheduled downtimes.
|
|
254
|
+
#
|
|
255
|
+
# @param opts [Hash] the optional parameters
|
|
256
|
+
# @option opts [Boolean] :current_only Only return downtimes that are active when the request is made.
|
|
257
|
+
# @option opts [String] :include Comma-separated list of resource paths for related resources to include in the response. Supported resource paths are `created_by` and `monitor`.
|
|
258
|
+
# @return [Array<(ListDowntimesResponse, Integer, Hash)>] ListDowntimesResponse data, response status code and response headers
|
|
259
|
+
def list_downtimes_with_http_info(opts = {})
|
|
260
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_downtimes".to_sym]
|
|
261
|
+
if unstable_enabled
|
|
262
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_downtimes")
|
|
263
|
+
else
|
|
264
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_downtimes"))
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.list_downtimes ...'
|
|
269
|
+
end
|
|
270
|
+
# resource path
|
|
271
|
+
local_var_path = '/api/v2/downtime'
|
|
272
|
+
|
|
273
|
+
# query parameters
|
|
274
|
+
query_params = opts[:query_params] || {}
|
|
275
|
+
query_params[:'current_only'] = opts[:'current_only'] if !opts[:'current_only'].nil?
|
|
276
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
277
|
+
|
|
278
|
+
# header parameters
|
|
279
|
+
header_params = opts[:header_params] || {}
|
|
280
|
+
# HTTP header 'Accept' (if needed)
|
|
281
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
282
|
+
|
|
283
|
+
# form parameters
|
|
284
|
+
form_params = opts[:form_params] || {}
|
|
285
|
+
|
|
286
|
+
# http body (model)
|
|
287
|
+
post_body = opts[:debug_body]
|
|
288
|
+
|
|
289
|
+
# return_type
|
|
290
|
+
return_type = opts[:debug_return_type] || 'ListDowntimesResponse'
|
|
291
|
+
|
|
292
|
+
# auth_names
|
|
293
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
294
|
+
|
|
295
|
+
new_options = opts.merge(
|
|
296
|
+
:operation => :list_downtimes,
|
|
297
|
+
:header_params => header_params,
|
|
298
|
+
:query_params => query_params,
|
|
299
|
+
:form_params => form_params,
|
|
300
|
+
:body => post_body,
|
|
301
|
+
:auth_names => auth_names,
|
|
302
|
+
:return_type => return_type,
|
|
303
|
+
:api_version => "V2"
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#list_downtimes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
309
|
+
end
|
|
310
|
+
return data, status_code, headers
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Get active downtimes for a monitor.
|
|
314
|
+
#
|
|
315
|
+
# @see #list_monitor_downtimes_with_http_info
|
|
316
|
+
def list_monitor_downtimes(monitor_id, opts = {})
|
|
317
|
+
data, _status_code, _headers = list_monitor_downtimes_with_http_info(monitor_id, opts)
|
|
318
|
+
data
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Get active downtimes for a monitor.
|
|
322
|
+
#
|
|
323
|
+
# Get all active downtimes for the specified monitor.
|
|
324
|
+
#
|
|
325
|
+
# @param monitor_id [Integer] The id of the monitor.
|
|
326
|
+
# @param opts [Hash] the optional parameters
|
|
327
|
+
# @return [Array<(MonitorDowntimeMatchResponse, Integer, Hash)>] MonitorDowntimeMatchResponse data, response status code and response headers
|
|
328
|
+
def list_monitor_downtimes_with_http_info(monitor_id, opts = {})
|
|
329
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.list_monitor_downtimes".to_sym]
|
|
330
|
+
if unstable_enabled
|
|
331
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_monitor_downtimes")
|
|
332
|
+
else
|
|
333
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_monitor_downtimes"))
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if @api_client.config.debugging
|
|
337
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.list_monitor_downtimes ...'
|
|
338
|
+
end
|
|
339
|
+
# verify the required parameter 'monitor_id' is set
|
|
340
|
+
if @api_client.config.client_side_validation && monitor_id.nil?
|
|
341
|
+
fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DowntimesAPI.list_monitor_downtimes"
|
|
342
|
+
end
|
|
343
|
+
# resource path
|
|
344
|
+
local_var_path = '/api/v2/monitor/{monitor_id}/downtime_matches'.sub('{monitor_id}', CGI.escape(monitor_id.to_s).gsub('%2F', '/'))
|
|
345
|
+
|
|
346
|
+
# query parameters
|
|
347
|
+
query_params = opts[:query_params] || {}
|
|
348
|
+
|
|
349
|
+
# header parameters
|
|
350
|
+
header_params = opts[:header_params] || {}
|
|
351
|
+
# HTTP header 'Accept' (if needed)
|
|
352
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
353
|
+
|
|
354
|
+
# form parameters
|
|
355
|
+
form_params = opts[:form_params] || {}
|
|
356
|
+
|
|
357
|
+
# http body (model)
|
|
358
|
+
post_body = opts[:debug_body]
|
|
359
|
+
|
|
360
|
+
# return_type
|
|
361
|
+
return_type = opts[:debug_return_type] || 'MonitorDowntimeMatchResponse'
|
|
362
|
+
|
|
363
|
+
# auth_names
|
|
364
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
365
|
+
|
|
366
|
+
new_options = opts.merge(
|
|
367
|
+
:operation => :list_monitor_downtimes,
|
|
368
|
+
:header_params => header_params,
|
|
369
|
+
:query_params => query_params,
|
|
370
|
+
:form_params => form_params,
|
|
371
|
+
:body => post_body,
|
|
372
|
+
:auth_names => auth_names,
|
|
373
|
+
:return_type => return_type,
|
|
374
|
+
:api_version => "V2"
|
|
375
|
+
)
|
|
376
|
+
|
|
377
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
378
|
+
if @api_client.config.debugging
|
|
379
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#list_monitor_downtimes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
380
|
+
end
|
|
381
|
+
return data, status_code, headers
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Update a downtime.
|
|
385
|
+
#
|
|
386
|
+
# @see #update_downtime_with_http_info
|
|
387
|
+
def update_downtime(downtime_id, body, opts = {})
|
|
388
|
+
data, _status_code, _headers = update_downtime_with_http_info(downtime_id, body, opts)
|
|
389
|
+
data
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Update a downtime.
|
|
393
|
+
#
|
|
394
|
+
# Update a downtime by `downtime_id`.
|
|
395
|
+
#
|
|
396
|
+
# @param downtime_id [String] ID of the downtime to update.
|
|
397
|
+
# @param body [DowntimeUpdateRequest] Update a downtime request body.
|
|
398
|
+
# @param opts [Hash] the optional parameters
|
|
399
|
+
# @return [Array<(DowntimeResponse, Integer, Hash)>] DowntimeResponse data, response status code and response headers
|
|
400
|
+
def update_downtime_with_http_info(downtime_id, body, opts = {})
|
|
401
|
+
unstable_enabled = @api_client.config.unstable_operations["v2.update_downtime".to_sym]
|
|
402
|
+
if unstable_enabled
|
|
403
|
+
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_downtime")
|
|
404
|
+
else
|
|
405
|
+
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.update_downtime"))
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if @api_client.config.debugging
|
|
409
|
+
@api_client.config.logger.debug 'Calling API: DowntimesAPI.update_downtime ...'
|
|
410
|
+
end
|
|
411
|
+
# verify the required parameter 'downtime_id' is set
|
|
412
|
+
if @api_client.config.client_side_validation && downtime_id.nil?
|
|
413
|
+
fail ArgumentError, "Missing the required parameter 'downtime_id' when calling DowntimesAPI.update_downtime"
|
|
414
|
+
end
|
|
415
|
+
# verify the required parameter 'body' is set
|
|
416
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
417
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling DowntimesAPI.update_downtime"
|
|
418
|
+
end
|
|
419
|
+
# resource path
|
|
420
|
+
local_var_path = '/api/v2/downtime/{downtime_id}'.sub('{downtime_id}', CGI.escape(downtime_id.to_s).gsub('%2F', '/'))
|
|
421
|
+
|
|
422
|
+
# query parameters
|
|
423
|
+
query_params = opts[:query_params] || {}
|
|
424
|
+
|
|
425
|
+
# header parameters
|
|
426
|
+
header_params = opts[:header_params] || {}
|
|
427
|
+
# HTTP header 'Accept' (if needed)
|
|
428
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
429
|
+
# HTTP header 'Content-Type'
|
|
430
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
431
|
+
|
|
432
|
+
# form parameters
|
|
433
|
+
form_params = opts[:form_params] || {}
|
|
434
|
+
|
|
435
|
+
# http body (model)
|
|
436
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
437
|
+
|
|
438
|
+
# return_type
|
|
439
|
+
return_type = opts[:debug_return_type] || 'DowntimeResponse'
|
|
440
|
+
|
|
441
|
+
# auth_names
|
|
442
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
|
|
443
|
+
|
|
444
|
+
new_options = opts.merge(
|
|
445
|
+
:operation => :update_downtime,
|
|
446
|
+
:header_params => header_params,
|
|
447
|
+
:query_params => query_params,
|
|
448
|
+
:form_params => form_params,
|
|
449
|
+
:body => post_body,
|
|
450
|
+
:auth_names => auth_names,
|
|
451
|
+
:return_type => return_type,
|
|
452
|
+
:api_version => "V2"
|
|
453
|
+
)
|
|
454
|
+
|
|
455
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
456
|
+
if @api_client.config.debugging
|
|
457
|
+
@api_client.config.logger.debug "API called: DowntimesAPI#update_downtime\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
458
|
+
end
|
|
459
|
+
return data, status_code, headers
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
end
|
|
@@ -63,7 +63,7 @@ module DatadogAPIClient::V2
|
|
|
63
63
|
return_type = opts[:debug_return_type] || 'IPAllowlistResponse'
|
|
64
64
|
|
|
65
65
|
# auth_names
|
|
66
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
66
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
67
67
|
|
|
68
68
|
new_options = opts.merge(
|
|
69
69
|
:operation => :get_ip_allowlist,
|
|
@@ -130,7 +130,7 @@ module DatadogAPIClient::V2
|
|
|
130
130
|
return_type = opts[:debug_return_type] || 'IPAllowlistResponse'
|
|
131
131
|
|
|
132
132
|
# auth_names
|
|
133
|
-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth
|
|
133
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
134
134
|
|
|
135
135
|
new_options = opts.merge(
|
|
136
136
|
:operation => :update_ip_allowlist,
|