datadog_api_client 1.11.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +291 -114
- data/.generator/schemas/v2/openapi.yaml +1156 -41
- data/.generator/src/generator/cli.py +57 -40
- data/.generator/src/generator/openapi.py +12 -6
- data/.generator/src/generator/templates/api.j2 +14 -13
- data/.generator/src/generator/templates/api_client.j2 +63 -11
- data/.generator/src/generator/templates/configuration.j2 +12 -8
- data/.generator/src/generator/templates/example.j2 +1 -1
- data/.generator/src/generator/templates/inflector.j2 +28 -0
- data/.generator/src/generator/templates/model_base.j2 +2 -2
- data/.generator/src/generator/templates/model_oneof.j2 +1 -1
- data/.generator/src/generator/templates/package.j2 +7 -12
- data/.github/workflows/approved_status.yml +0 -2
- data/.github/workflows/codeql-analysis.yml +49 -0
- data/.github/workflows/docs.yml +1 -1
- data/.github/workflows/prepare_release.yml +1 -1
- data/.github/workflows/publish.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/test.yml +4 -6
- data/.github/workflows/test_integration.yml +1 -1
- data/.pre-commit-config.yaml +3 -12
- data/CHANGELOG.md +25 -0
- data/Gemfile +1 -0
- data/Makefile +1 -2
- data/datadog_api_client.gemspec +2 -0
- data/examples/v1/downtimes/CreateDowntime_1393233946.rb +3 -0
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +3 -0
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +3 -0
- data/examples/v1/events/ListEvents.rb +1 -1
- data/examples/v1/service-level-objectives/GetSLOHistory.rb +1 -1
- data/examples/v1/service-level-objectives/SearchSLO.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/GetAPITestLatestResults.rb +1 -1
- data/examples/v1/synthetics/GetAPITestResult.rb +1 -1
- data/examples/v1/synthetics/GetBrowserTestLatestResults.rb +1 -1
- data/examples/v1/synthetics/GetBrowserTestResult.rb +1 -1
- data/examples/v1/usage-metering/GetDailyCustomReports.rb +1 -1
- data/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +0 -3
- data/examples/v1/usage-metering/GetMonthlyCustomReports.rb +1 -1
- data/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +0 -3
- data/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +1 -1
- data/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +1 -1
- data/examples/v1/usage-metering/GetUsageAttribution.rb +1 -1
- data/examples/v1/usage-metering/GetUsageCIApp.rb +2 -5
- data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +8 -0
- data/examples/v1/usage-metering/GetUsageCWS.rb +2 -5
- data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +8 -0
- data/examples/v1/usage-metering/GetUsageDBM.rb +2 -5
- data/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +8 -0
- data/examples/v1/usage-metering/GetUsageLambda.rb +2 -5
- data/examples/v1/usage-metering/GetUsageLambda_3132428705.rb +8 -0
- data/examples/v1/usage-metering/GetUsageLogs.rb +2 -5
- data/examples/v1/usage-metering/GetUsageLogsByIndex.rb +2 -5
- data/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +8 -0
- data/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +8 -0
- data/examples/v1/usage-metering/GetUsageNetworkFlows.rb +2 -5
- data/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +8 -0
- data/examples/v1/usage-metering/GetUsageNetworkHosts.rb +2 -5
- data/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +8 -0
- data/examples/v1/usage-metering/GetUsageOnlineArchive.rb +2 -5
- data/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +8 -0
- data/examples/v1/usage-metering/GetUsageRumSessions.rb +2 -5
- data/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +8 -0
- data/examples/v1/usage-metering/GetUsageRumUnits.rb +2 -5
- data/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +8 -0
- data/examples/v1/usage-metering/GetUsageSDS.rb +2 -5
- data/examples/v1/usage-metering/GetUsageSDS_271128478.rb +8 -0
- data/examples/v1/usage-metering/GetUsageSynthetics.rb +1 -1
- data/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +2 -5
- data/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +8 -0
- data/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +2 -5
- data/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +8 -0
- data/examples/v2/events/ListEvents.rb +8 -0
- data/examples/v2/events/ListEvents_2663715109.rb +14 -0
- data/examples/v2/events/SearchEvents.rb +23 -0
- data/examples/v2/incident-services/CreateIncidentService.rb +1 -1
- data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
- data/examples/v2/incident-services/GetIncidentService.rb +1 -1
- data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
- data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
- data/examples/v2/incident-teams/CreateIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
- data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
- data/examples/v2/incidents/CreateIncident.rb +1 -1
- data/examples/v2/incidents/DeleteIncident.rb +1 -1
- data/examples/v2/incidents/GetIncident.rb +1 -1
- data/examples/v2/incidents/ListIncidents.rb +1 -1
- data/examples/v2/incidents/UpdateIncident.rb +1 -1
- data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
- data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
- data/examples/v2/metrics/SubmitMetrics.rb +6 -0
- data/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +15 -0
- data/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +15 -0
- data/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +14 -0
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -0
- data/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +5 -2
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_2734954020.rb +11 -0
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +11 -0
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +2 -5
- data/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring_3959166796.rb +8 -0
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +2 -5
- data/examples/v2/usage-metering/GetUsageLambdaTracedInvocations_1436752065.rb +8 -0
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +2 -5
- data/examples/v2/usage-metering/GetUsageObservabilityPipelines_970725512.rb +8 -0
- data/lib/datadog_api_client/{v2/api_client.rb → api_client.rb} +63 -11
- data/lib/datadog_api_client/api_key_configuration.rb +1 -18
- data/lib/datadog_api_client/{v1/configuration.rb → configuration.rb} +84 -31
- data/lib/datadog_api_client/inflector.rb +1293 -0
- data/lib/datadog_api_client/models.rb +66 -0
- data/lib/datadog_api_client/v1/api/authentication_api.rb +3 -11
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +19 -91
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +15 -71
- data/lib/datadog_api_client/v1/api/azure_integration_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/dashboard_lists_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +15 -71
- data/lib/datadog_api_client/v1/api/downtimes_api.rb +15 -71
- data/lib/datadog_api_client/v1/api/events_api.rb +9 -33
- data/lib/datadog_api_client/v1/api/gcp_integration_api.rb +9 -41
- data/lib/datadog_api_client/v1/api/hosts_api.rb +9 -41
- data/lib/datadog_api_client/v1/api/ip_ranges_api.rb +3 -11
- data/lib/datadog_api_client/v1/api/key_management_api.rb +21 -101
- data/lib/datadog_api_client/v1/api/logs_api.rb +5 -21
- data/lib/datadog_api_client/v1/api/logs_indexes_api.rb +13 -61
- data/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +15 -71
- data/lib/datadog_api_client/v1/api/metrics_api.rb +15 -71
- data/lib/datadog_api_client/v1/api/monitors_api.rb +21 -101
- data/lib/datadog_api_client/v1/api/notebooks_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/organizations_api.rb +13 -61
- data/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +9 -41
- data/lib/datadog_api_client/v1/api/security_monitoring_api.rb +8 -32
- data/lib/datadog_api_client/v1/api/service_checks_api.rb +3 -11
- data/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/service_level_objectives_api.rb +31 -99
- data/lib/datadog_api_client/v1/api/slack_integration_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/snapshots_api.rb +3 -11
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +55 -271
- data/lib/datadog_api_client/v1/api/tags_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +171 -418
- data/lib/datadog_api_client/v1/api/users_api.rb +11 -51
- data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +17 -81
- data/lib/datadog_api_client/v1/model_base.rb +2 -2
- data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +5 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +7 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +6 -2
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +14 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +21 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
- data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_color_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_group_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_size_by.rb +1 -1
- data/lib/datadog_api_client/v1/models/tree_map_widget_definition.rb +28 -6
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +6 -2
- data/lib/datadog_api_client/v1/models/usage_attribution_sort.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +22 -2
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
- data/lib/datadog_api_client/v2/api/audit_api.rb +11 -25
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +11 -51
- data/lib/datadog_api_client/v2/api/cloud_workload_security_api.rb +13 -61
- data/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +9 -41
- data/lib/datadog_api_client/v2/api/events_api.rb +228 -0
- data/lib/datadog_api_client/v2/api/incident_services_api.rb +36 -46
- data/lib/datadog_api_client/v2/api/incident_teams_api.rb +36 -46
- data/lib/datadog_api_client/v2/api/incidents_api.rb +39 -48
- data/lib/datadog_api_client/v2/api/key_management_api.rb +29 -141
- data/lib/datadog_api_client/v2/api/logs_api.rb +15 -45
- data/lib/datadog_api_client/v2/api/logs_archives_api.rb +21 -101
- data/lib/datadog_api_client/v2/api/logs_metrics_api.rb +11 -51
- data/lib/datadog_api_client/v2/api/metrics_api.rb +26 -112
- data/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +11 -51
- data/lib/datadog_api_client/v2/api/organizations_api.rb +3 -11
- data/lib/datadog_api_client/v2/api/processes_api.rb +6 -13
- data/lib/datadog_api_client/v2/api/roles_api.rb +27 -131
- data/lib/datadog_api_client/v2/api/rum_api.rb +13 -35
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +247 -125
- data/lib/datadog_api_client/v2/api/service_accounts_api.rb +11 -51
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +132 -68
- data/lib/datadog_api_client/v2/api/users_api.rb +21 -101
- data/lib/datadog_api_client/v2/model_base.rb +2 -2
- data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
- data/lib/datadog_api_client/v2/models/event.rb +141 -0
- data/lib/datadog_api_client/v2/models/event_attributes.rb +305 -0
- data/lib/datadog_api_client/v2/models/event_priority.rb +27 -0
- data/lib/datadog_api_client/v2/models/event_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/event_response_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/event_status_type.rb +35 -0
- data/lib/datadog_api_client/v2/models/event_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/events_list_request.rb +142 -0
- data/lib/datadog_api_client/v2/models/events_list_response.rb +133 -0
- data/lib/datadog_api_client/v2/models/events_list_response_links.rb +112 -0
- data/lib/datadog_api_client/v2/models/events_query_filter.rb +137 -0
- data/lib/datadog_api_client/v2/models/events_query_options.rb +124 -0
- data/lib/datadog_api_client/v2/models/events_request_page.rb +134 -0
- data/lib/datadog_api_client/v2/models/events_response_metadata.rb +144 -0
- data/lib/datadog_api_client/v2/models/events_response_metadata_page.rb +112 -0
- data/lib/datadog_api_client/v2/models/events_sort.rb +27 -0
- data/lib/datadog_api_client/v2/models/events_warning.rb +131 -0
- data/lib/datadog_api_client/v2/models/hourly_usage.rb +133 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_attributes.rb +163 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_measurement.rb +122 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_metadata.rb +111 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_pagination.rb +112 -0
- data/lib/datadog_api_client/v2/models/hourly_usage_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_intake_type.rb +1 -2
- data/lib/datadog_api_client/v2/models/metric_resource.rb +2 -2
- data/lib/datadog_api_client/v2/models/metric_series.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_type.rb +215 -0
- data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query_create.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_archive_reason.rb +29 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_data.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_assignee_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_attributes.rb +134 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_data.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_incidents_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state.rb +28 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_attributes.rb +152 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_data.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_state_update_request.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_attributes.rb +248 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_data.rb +111 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_signal_triage_update_response.rb +122 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +152 -0
- data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2.rb +40 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/lib/datadog_api_client.rb +11 -5
- data/spec/{v1/api_client_spec.rb → api_client_spec.rb} +29 -29
- data/spec/{v1/configuration_spec.rb → configuration_spec.rb} +3 -3
- data/spec/spec_helper.rb +1 -3
- metadata +97 -21
- data/.dockerignore +0 -1
- data/.generator/src/generator/templates/api_error.j2 +0 -49
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_1171921972.rb +0 -9
- data/examples/v2/usage-metering/GetEstimatedCostByOrg_627383212.rb +0 -9
- data/lib/datadog_api_client/v1/api_client.rb +0 -453
- data/lib/datadog_api_client/v1/api_error.rb +0 -60
- data/lib/datadog_api_client/v1.rb +0 -813
- data/lib/datadog_api_client/v2/api_error.rb +0 -60
- data/lib/datadog_api_client/v2/configuration.rb +0 -420
- data/spec/v2/api_client_spec.rb +0 -210
- data/spec/v2/configuration_spec.rb +0 -45
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
|
|
19
19
|
class DashboardListsAPI
|
20
20
|
attr_accessor :api_client
|
21
21
|
|
22
|
-
def initialize(api_client = APIClient.default)
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
@@ -40,15 +40,6 @@ module DatadogAPIClient::V1
|
|
40
40
|
# @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers
|
41
41
|
def create_dashboard_list_with_http_info(body, opts = {})
|
42
42
|
|
43
|
-
if @api_client.config.unstable_operations.has_key?(:create_dashboard_list)
|
44
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_dashboard_list]
|
45
|
-
if unstable_enabled
|
46
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_dashboard_list")
|
47
|
-
else
|
48
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_dashboard_list"))
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
43
|
if @api_client.config.debugging
|
53
44
|
@api_client.config.logger.debug 'Calling API: DashboardListsAPI.create_dashboard_list ...'
|
54
45
|
end
|
@@ -88,7 +79,8 @@ module DatadogAPIClient::V1
|
|
88
79
|
:form_params => form_params,
|
89
80
|
:body => post_body,
|
90
81
|
:auth_names => auth_names,
|
91
|
-
:return_type => return_type
|
82
|
+
:return_type => return_type,
|
83
|
+
:api_version => "V1"
|
92
84
|
)
|
93
85
|
|
94
86
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
@@ -115,15 +107,6 @@ module DatadogAPIClient::V1
|
|
115
107
|
# @return [Array<(DashboardListDeleteResponse, Integer, Hash)>] DashboardListDeleteResponse data, response status code and response headers
|
116
108
|
def delete_dashboard_list_with_http_info(list_id, opts = {})
|
117
109
|
|
118
|
-
if @api_client.config.unstable_operations.has_key?(:delete_dashboard_list)
|
119
|
-
unstable_enabled = @api_client.config.unstable_operations[:delete_dashboard_list]
|
120
|
-
if unstable_enabled
|
121
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "delete_dashboard_list")
|
122
|
-
else
|
123
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_dashboard_list"))
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
110
|
if @api_client.config.debugging
|
128
111
|
@api_client.config.logger.debug 'Calling API: DashboardListsAPI.delete_dashboard_list ...'
|
129
112
|
end
|
@@ -161,7 +144,8 @@ module DatadogAPIClient::V1
|
|
161
144
|
:form_params => form_params,
|
162
145
|
:body => post_body,
|
163
146
|
:auth_names => auth_names,
|
164
|
-
:return_type => return_type
|
147
|
+
:return_type => return_type,
|
148
|
+
:api_version => "V1"
|
165
149
|
)
|
166
150
|
|
167
151
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
@@ -188,15 +172,6 @@ module DatadogAPIClient::V1
|
|
188
172
|
# @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers
|
189
173
|
def get_dashboard_list_with_http_info(list_id, opts = {})
|
190
174
|
|
191
|
-
if @api_client.config.unstable_operations.has_key?(:get_dashboard_list)
|
192
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_dashboard_list]
|
193
|
-
if unstable_enabled
|
194
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_dashboard_list")
|
195
|
-
else
|
196
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_dashboard_list"))
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
175
|
if @api_client.config.debugging
|
201
176
|
@api_client.config.logger.debug 'Calling API: DashboardListsAPI.get_dashboard_list ...'
|
202
177
|
end
|
@@ -234,7 +209,8 @@ module DatadogAPIClient::V1
|
|
234
209
|
:form_params => form_params,
|
235
210
|
:body => post_body,
|
236
211
|
:auth_names => auth_names,
|
237
|
-
:return_type => return_type
|
212
|
+
:return_type => return_type,
|
213
|
+
:api_version => "V1"
|
238
214
|
)
|
239
215
|
|
240
216
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -260,15 +236,6 @@ module DatadogAPIClient::V1
|
|
260
236
|
# @return [Array<(DashboardListListResponse, Integer, Hash)>] DashboardListListResponse data, response status code and response headers
|
261
237
|
def list_dashboard_lists_with_http_info(opts = {})
|
262
238
|
|
263
|
-
if @api_client.config.unstable_operations.has_key?(:list_dashboard_lists)
|
264
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_dashboard_lists]
|
265
|
-
if unstable_enabled
|
266
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_dashboard_lists")
|
267
|
-
else
|
268
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_dashboard_lists"))
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
239
|
if @api_client.config.debugging
|
273
240
|
@api_client.config.logger.debug 'Calling API: DashboardListsAPI.list_dashboard_lists ...'
|
274
241
|
end
|
@@ -302,7 +269,8 @@ module DatadogAPIClient::V1
|
|
302
269
|
:form_params => form_params,
|
303
270
|
:body => post_body,
|
304
271
|
:auth_names => auth_names,
|
305
|
-
:return_type => return_type
|
272
|
+
:return_type => return_type,
|
273
|
+
:api_version => "V1"
|
306
274
|
)
|
307
275
|
|
308
276
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -330,15 +298,6 @@ module DatadogAPIClient::V1
|
|
330
298
|
# @return [Array<(DashboardList, Integer, Hash)>] DashboardList data, response status code and response headers
|
331
299
|
def update_dashboard_list_with_http_info(list_id, body, opts = {})
|
332
300
|
|
333
|
-
if @api_client.config.unstable_operations.has_key?(:update_dashboard_list)
|
334
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_dashboard_list]
|
335
|
-
if unstable_enabled
|
336
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_dashboard_list")
|
337
|
-
else
|
338
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_dashboard_list"))
|
339
|
-
end
|
340
|
-
end
|
341
|
-
|
342
301
|
if @api_client.config.debugging
|
343
302
|
@api_client.config.logger.debug 'Calling API: DashboardListsAPI.update_dashboard_list ...'
|
344
303
|
end
|
@@ -382,7 +341,8 @@ module DatadogAPIClient::V1
|
|
382
341
|
:form_params => form_params,
|
383
342
|
:body => post_body,
|
384
343
|
:auth_names => auth_names,
|
385
|
-
:return_type => return_type
|
344
|
+
:return_type => return_type,
|
345
|
+
:api_version => "V1"
|
386
346
|
)
|
387
347
|
|
388
348
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
|
|
19
19
|
class DashboardsAPI
|
20
20
|
attr_accessor :api_client
|
21
21
|
|
22
|
-
def initialize(api_client = APIClient.default)
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
@@ -41,15 +41,6 @@ module DatadogAPIClient::V1
|
|
41
41
|
# @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers
|
42
42
|
def create_dashboard_with_http_info(body, opts = {})
|
43
43
|
|
44
|
-
if @api_client.config.unstable_operations.has_key?(:create_dashboard)
|
45
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_dashboard]
|
46
|
-
if unstable_enabled
|
47
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_dashboard")
|
48
|
-
else
|
49
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_dashboard"))
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
44
|
if @api_client.config.debugging
|
54
45
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.create_dashboard ...'
|
55
46
|
end
|
@@ -89,7 +80,8 @@ module DatadogAPIClient::V1
|
|
89
80
|
:form_params => form_params,
|
90
81
|
:body => post_body,
|
91
82
|
:auth_names => auth_names,
|
92
|
-
:return_type => return_type
|
83
|
+
:return_type => return_type,
|
84
|
+
:api_version => "V1"
|
93
85
|
)
|
94
86
|
|
95
87
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
@@ -116,15 +108,6 @@ module DatadogAPIClient::V1
|
|
116
108
|
# @return [Array<(DashboardDeleteResponse, Integer, Hash)>] DashboardDeleteResponse data, response status code and response headers
|
117
109
|
def delete_dashboard_with_http_info(dashboard_id, opts = {})
|
118
110
|
|
119
|
-
if @api_client.config.unstable_operations.has_key?(:delete_dashboard)
|
120
|
-
unstable_enabled = @api_client.config.unstable_operations[:delete_dashboard]
|
121
|
-
if unstable_enabled
|
122
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "delete_dashboard")
|
123
|
-
else
|
124
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_dashboard"))
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
111
|
if @api_client.config.debugging
|
129
112
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.delete_dashboard ...'
|
130
113
|
end
|
@@ -162,7 +145,8 @@ module DatadogAPIClient::V1
|
|
162
145
|
:form_params => form_params,
|
163
146
|
:body => post_body,
|
164
147
|
:auth_names => auth_names,
|
165
|
-
:return_type => return_type
|
148
|
+
:return_type => return_type,
|
149
|
+
:api_version => "V1"
|
166
150
|
)
|
167
151
|
|
168
152
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
@@ -189,15 +173,6 @@ module DatadogAPIClient::V1
|
|
189
173
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
190
174
|
def delete_dashboards_with_http_info(body, opts = {})
|
191
175
|
|
192
|
-
if @api_client.config.unstable_operations.has_key?(:delete_dashboards)
|
193
|
-
unstable_enabled = @api_client.config.unstable_operations[:delete_dashboards]
|
194
|
-
if unstable_enabled
|
195
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "delete_dashboards")
|
196
|
-
else
|
197
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_dashboards"))
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
176
|
if @api_client.config.debugging
|
202
177
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.delete_dashboards ...'
|
203
178
|
end
|
@@ -237,7 +212,8 @@ module DatadogAPIClient::V1
|
|
237
212
|
:form_params => form_params,
|
238
213
|
:body => post_body,
|
239
214
|
:auth_names => auth_names,
|
240
|
-
:return_type => return_type
|
215
|
+
:return_type => return_type,
|
216
|
+
:api_version => "V1"
|
241
217
|
)
|
242
218
|
|
243
219
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
@@ -264,15 +240,6 @@ module DatadogAPIClient::V1
|
|
264
240
|
# @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers
|
265
241
|
def get_dashboard_with_http_info(dashboard_id, opts = {})
|
266
242
|
|
267
|
-
if @api_client.config.unstable_operations.has_key?(:get_dashboard)
|
268
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_dashboard]
|
269
|
-
if unstable_enabled
|
270
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_dashboard")
|
271
|
-
else
|
272
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_dashboard"))
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
243
|
if @api_client.config.debugging
|
277
244
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.get_dashboard ...'
|
278
245
|
end
|
@@ -310,7 +277,8 @@ module DatadogAPIClient::V1
|
|
310
277
|
:form_params => form_params,
|
311
278
|
:body => post_body,
|
312
279
|
:auth_names => auth_names,
|
313
|
-
:return_type => return_type
|
280
|
+
:return_type => return_type,
|
281
|
+
:api_version => "V1"
|
314
282
|
)
|
315
283
|
|
316
284
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -341,15 +309,6 @@ module DatadogAPIClient::V1
|
|
341
309
|
# @return [Array<(DashboardSummary, Integer, Hash)>] DashboardSummary data, response status code and response headers
|
342
310
|
def list_dashboards_with_http_info(opts = {})
|
343
311
|
|
344
|
-
if @api_client.config.unstable_operations.has_key?(:list_dashboards)
|
345
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_dashboards]
|
346
|
-
if unstable_enabled
|
347
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_dashboards")
|
348
|
-
else
|
349
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_dashboards"))
|
350
|
-
end
|
351
|
-
end
|
352
|
-
|
353
312
|
if @api_client.config.debugging
|
354
313
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.list_dashboards ...'
|
355
314
|
end
|
@@ -385,7 +344,8 @@ module DatadogAPIClient::V1
|
|
385
344
|
:form_params => form_params,
|
386
345
|
:body => post_body,
|
387
346
|
:auth_names => auth_names,
|
388
|
-
:return_type => return_type
|
347
|
+
:return_type => return_type,
|
348
|
+
:api_version => "V1"
|
389
349
|
)
|
390
350
|
|
391
351
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -412,15 +372,6 @@ module DatadogAPIClient::V1
|
|
412
372
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
413
373
|
def restore_dashboards_with_http_info(body, opts = {})
|
414
374
|
|
415
|
-
if @api_client.config.unstable_operations.has_key?(:restore_dashboards)
|
416
|
-
unstable_enabled = @api_client.config.unstable_operations[:restore_dashboards]
|
417
|
-
if unstable_enabled
|
418
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "restore_dashboards")
|
419
|
-
else
|
420
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "restore_dashboards"))
|
421
|
-
end
|
422
|
-
end
|
423
|
-
|
424
375
|
if @api_client.config.debugging
|
425
376
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.restore_dashboards ...'
|
426
377
|
end
|
@@ -460,7 +411,8 @@ module DatadogAPIClient::V1
|
|
460
411
|
:form_params => form_params,
|
461
412
|
:body => post_body,
|
462
413
|
:auth_names => auth_names,
|
463
|
-
:return_type => return_type
|
414
|
+
:return_type => return_type,
|
415
|
+
:api_version => "V1"
|
464
416
|
)
|
465
417
|
|
466
418
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
@@ -488,15 +440,6 @@ module DatadogAPIClient::V1
|
|
488
440
|
# @return [Array<(Dashboard, Integer, Hash)>] Dashboard data, response status code and response headers
|
489
441
|
def update_dashboard_with_http_info(dashboard_id, body, opts = {})
|
490
442
|
|
491
|
-
if @api_client.config.unstable_operations.has_key?(:update_dashboard)
|
492
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_dashboard]
|
493
|
-
if unstable_enabled
|
494
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_dashboard")
|
495
|
-
else
|
496
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_dashboard"))
|
497
|
-
end
|
498
|
-
end
|
499
|
-
|
500
443
|
if @api_client.config.debugging
|
501
444
|
@api_client.config.logger.debug 'Calling API: DashboardsAPI.update_dashboard ...'
|
502
445
|
end
|
@@ -540,7 +483,8 @@ module DatadogAPIClient::V1
|
|
540
483
|
:form_params => form_params,
|
541
484
|
:body => post_body,
|
542
485
|
:auth_names => auth_names,
|
543
|
-
:return_type => return_type
|
486
|
+
:return_type => return_type,
|
487
|
+
:api_version => "V1"
|
544
488
|
)
|
545
489
|
|
546
490
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
|
|
19
19
|
class DowntimesAPI
|
20
20
|
attr_accessor :api_client
|
21
21
|
|
22
|
-
def initialize(api_client = APIClient.default)
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
@@ -40,15 +40,6 @@ module DatadogAPIClient::V1
|
|
40
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
41
|
def cancel_downtime_with_http_info(downtime_id, opts = {})
|
42
42
|
|
43
|
-
if @api_client.config.unstable_operations.has_key?(:cancel_downtime)
|
44
|
-
unstable_enabled = @api_client.config.unstable_operations[:cancel_downtime]
|
45
|
-
if unstable_enabled
|
46
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "cancel_downtime")
|
47
|
-
else
|
48
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "cancel_downtime"))
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
43
|
if @api_client.config.debugging
|
53
44
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtime ...'
|
54
45
|
end
|
@@ -86,7 +77,8 @@ module DatadogAPIClient::V1
|
|
86
77
|
:form_params => form_params,
|
87
78
|
:body => post_body,
|
88
79
|
:auth_names => auth_names,
|
89
|
-
:return_type => return_type
|
80
|
+
:return_type => return_type,
|
81
|
+
:api_version => "V1"
|
90
82
|
)
|
91
83
|
|
92
84
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
@@ -113,15 +105,6 @@ module DatadogAPIClient::V1
|
|
113
105
|
# @return [Array<(CanceledDowntimesIds, Integer, Hash)>] CanceledDowntimesIds data, response status code and response headers
|
114
106
|
def cancel_downtimes_by_scope_with_http_info(body, opts = {})
|
115
107
|
|
116
|
-
if @api_client.config.unstable_operations.has_key?(:cancel_downtimes_by_scope)
|
117
|
-
unstable_enabled = @api_client.config.unstable_operations[:cancel_downtimes_by_scope]
|
118
|
-
if unstable_enabled
|
119
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "cancel_downtimes_by_scope")
|
120
|
-
else
|
121
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "cancel_downtimes_by_scope"))
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
108
|
if @api_client.config.debugging
|
126
109
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.cancel_downtimes_by_scope ...'
|
127
110
|
end
|
@@ -161,7 +144,8 @@ module DatadogAPIClient::V1
|
|
161
144
|
:form_params => form_params,
|
162
145
|
:body => post_body,
|
163
146
|
:auth_names => auth_names,
|
164
|
-
:return_type => return_type
|
147
|
+
:return_type => return_type,
|
148
|
+
:api_version => "V1"
|
165
149
|
)
|
166
150
|
|
167
151
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
@@ -188,15 +172,6 @@ module DatadogAPIClient::V1
|
|
188
172
|
# @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
|
189
173
|
def create_downtime_with_http_info(body, opts = {})
|
190
174
|
|
191
|
-
if @api_client.config.unstable_operations.has_key?(:create_downtime)
|
192
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_downtime]
|
193
|
-
if unstable_enabled
|
194
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_downtime")
|
195
|
-
else
|
196
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_downtime"))
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
175
|
if @api_client.config.debugging
|
201
176
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.create_downtime ...'
|
202
177
|
end
|
@@ -236,7 +211,8 @@ module DatadogAPIClient::V1
|
|
236
211
|
:form_params => form_params,
|
237
212
|
:body => post_body,
|
238
213
|
:auth_names => auth_names,
|
239
|
-
:return_type => return_type
|
214
|
+
:return_type => return_type,
|
215
|
+
:api_version => "V1"
|
240
216
|
)
|
241
217
|
|
242
218
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
@@ -263,15 +239,6 @@ module DatadogAPIClient::V1
|
|
263
239
|
# @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
|
264
240
|
def get_downtime_with_http_info(downtime_id, opts = {})
|
265
241
|
|
266
|
-
if @api_client.config.unstable_operations.has_key?(:get_downtime)
|
267
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_downtime]
|
268
|
-
if unstable_enabled
|
269
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_downtime")
|
270
|
-
else
|
271
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_downtime"))
|
272
|
-
end
|
273
|
-
end
|
274
|
-
|
275
242
|
if @api_client.config.debugging
|
276
243
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.get_downtime ...'
|
277
244
|
end
|
@@ -309,7 +276,8 @@ module DatadogAPIClient::V1
|
|
309
276
|
:form_params => form_params,
|
310
277
|
:body => post_body,
|
311
278
|
:auth_names => auth_names,
|
312
|
-
:return_type => return_type
|
279
|
+
:return_type => return_type,
|
280
|
+
:api_version => "V1"
|
313
281
|
)
|
314
282
|
|
315
283
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -336,15 +304,6 @@ module DatadogAPIClient::V1
|
|
336
304
|
# @return [Array<(Array<Downtime>, Integer, Hash)>] Array<Downtime> data, response status code and response headers
|
337
305
|
def list_downtimes_with_http_info(opts = {})
|
338
306
|
|
339
|
-
if @api_client.config.unstable_operations.has_key?(:list_downtimes)
|
340
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_downtimes]
|
341
|
-
if unstable_enabled
|
342
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_downtimes")
|
343
|
-
else
|
344
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_downtimes"))
|
345
|
-
end
|
346
|
-
end
|
347
|
-
|
348
307
|
if @api_client.config.debugging
|
349
308
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.list_downtimes ...'
|
350
309
|
end
|
@@ -379,7 +338,8 @@ module DatadogAPIClient::V1
|
|
379
338
|
:form_params => form_params,
|
380
339
|
:body => post_body,
|
381
340
|
:auth_names => auth_names,
|
382
|
-
:return_type => return_type
|
341
|
+
:return_type => return_type,
|
342
|
+
:api_version => "V1"
|
383
343
|
)
|
384
344
|
|
385
345
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -406,15 +366,6 @@ module DatadogAPIClient::V1
|
|
406
366
|
# @return [Array<(Array<Downtime>, Integer, Hash)>] Array<Downtime> data, response status code and response headers
|
407
367
|
def list_monitor_downtimes_with_http_info(monitor_id, opts = {})
|
408
368
|
|
409
|
-
if @api_client.config.unstable_operations.has_key?(:list_monitor_downtimes)
|
410
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_monitor_downtimes]
|
411
|
-
if unstable_enabled
|
412
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_monitor_downtimes")
|
413
|
-
else
|
414
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_monitor_downtimes"))
|
415
|
-
end
|
416
|
-
end
|
417
|
-
|
418
369
|
if @api_client.config.debugging
|
419
370
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.list_monitor_downtimes ...'
|
420
371
|
end
|
@@ -452,7 +403,8 @@ module DatadogAPIClient::V1
|
|
452
403
|
:form_params => form_params,
|
453
404
|
:body => post_body,
|
454
405
|
:auth_names => auth_names,
|
455
|
-
:return_type => return_type
|
406
|
+
:return_type => return_type,
|
407
|
+
:api_version => "V1"
|
456
408
|
)
|
457
409
|
|
458
410
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -480,15 +432,6 @@ module DatadogAPIClient::V1
|
|
480
432
|
# @return [Array<(Downtime, Integer, Hash)>] Downtime data, response status code and response headers
|
481
433
|
def update_downtime_with_http_info(downtime_id, body, opts = {})
|
482
434
|
|
483
|
-
if @api_client.config.unstable_operations.has_key?(:update_downtime)
|
484
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_downtime]
|
485
|
-
if unstable_enabled
|
486
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_downtime")
|
487
|
-
else
|
488
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_downtime"))
|
489
|
-
end
|
490
|
-
end
|
491
|
-
|
492
435
|
if @api_client.config.debugging
|
493
436
|
@api_client.config.logger.debug 'Calling API: DowntimesAPI.update_downtime ...'
|
494
437
|
end
|
@@ -532,7 +475,8 @@ module DatadogAPIClient::V1
|
|
532
475
|
:form_params => form_params,
|
533
476
|
:body => post_body,
|
534
477
|
:auth_names => auth_names,
|
535
|
-
:return_type => return_type
|
478
|
+
:return_type => return_type,
|
479
|
+
:api_version => "V1"
|
536
480
|
)
|
537
481
|
|
538
482
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
@@ -19,7 +19,7 @@ module DatadogAPIClient::V1
|
|
19
19
|
class EventsAPI
|
20
20
|
attr_accessor :api_client
|
21
21
|
|
22
|
-
def initialize(api_client = APIClient.default)
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
23
23
|
@api_client = api_client
|
24
24
|
end
|
25
25
|
|
@@ -41,15 +41,6 @@ module DatadogAPIClient::V1
|
|
41
41
|
# @return [Array<(EventCreateResponse, Integer, Hash)>] EventCreateResponse data, response status code and response headers
|
42
42
|
def create_event_with_http_info(body, opts = {})
|
43
43
|
|
44
|
-
if @api_client.config.unstable_operations.has_key?(:create_event)
|
45
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_event]
|
46
|
-
if unstable_enabled
|
47
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_event")
|
48
|
-
else
|
49
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_event"))
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
44
|
if @api_client.config.debugging
|
54
45
|
@api_client.config.logger.debug 'Calling API: EventsAPI.create_event ...'
|
55
46
|
end
|
@@ -89,7 +80,8 @@ module DatadogAPIClient::V1
|
|
89
80
|
:form_params => form_params,
|
90
81
|
:body => post_body,
|
91
82
|
:auth_names => auth_names,
|
92
|
-
:return_type => return_type
|
83
|
+
:return_type => return_type,
|
84
|
+
:api_version => "V1"
|
93
85
|
)
|
94
86
|
|
95
87
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
@@ -119,15 +111,6 @@ module DatadogAPIClient::V1
|
|
119
111
|
# @return [Array<(EventResponse, Integer, Hash)>] EventResponse data, response status code and response headers
|
120
112
|
def get_event_with_http_info(event_id, opts = {})
|
121
113
|
|
122
|
-
if @api_client.config.unstable_operations.has_key?(:get_event)
|
123
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_event]
|
124
|
-
if unstable_enabled
|
125
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_event")
|
126
|
-
else
|
127
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_event"))
|
128
|
-
end
|
129
|
-
end
|
130
|
-
|
131
114
|
if @api_client.config.debugging
|
132
115
|
@api_client.config.logger.debug 'Calling API: EventsAPI.get_event ...'
|
133
116
|
end
|
@@ -165,7 +148,8 @@ module DatadogAPIClient::V1
|
|
165
148
|
:form_params => form_params,
|
166
149
|
:body => post_body,
|
167
150
|
:auth_names => auth_names,
|
168
|
-
:return_type => return_type
|
151
|
+
:return_type => return_type,
|
152
|
+
:api_version => "V1"
|
169
153
|
)
|
170
154
|
|
171
155
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
@@ -175,7 +159,7 @@ module DatadogAPIClient::V1
|
|
175
159
|
return data, status_code, headers
|
176
160
|
end
|
177
161
|
|
178
|
-
#
|
162
|
+
# Get a list of events.
|
179
163
|
#
|
180
164
|
# @see #list_events_with_http_info
|
181
165
|
def list_events(start, _end, opts = {})
|
@@ -183,7 +167,7 @@ module DatadogAPIClient::V1
|
|
183
167
|
data
|
184
168
|
end
|
185
169
|
|
186
|
-
#
|
170
|
+
# Get a list of events.
|
187
171
|
#
|
188
172
|
# The event stream can be queried and filtered by time, priority, sources and tags.
|
189
173
|
#
|
@@ -207,15 +191,6 @@ module DatadogAPIClient::V1
|
|
207
191
|
# @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers
|
208
192
|
def list_events_with_http_info(start, _end, opts = {})
|
209
193
|
|
210
|
-
if @api_client.config.unstable_operations.has_key?(:list_events)
|
211
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_events]
|
212
|
-
if unstable_enabled
|
213
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_events")
|
214
|
-
else
|
215
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_events"))
|
216
|
-
end
|
217
|
-
end
|
218
|
-
|
219
194
|
if @api_client.config.debugging
|
220
195
|
@api_client.config.logger.debug 'Calling API: EventsAPI.list_events ...'
|
221
196
|
end
|
@@ -272,7 +247,8 @@ module DatadogAPIClient::V1
|
|
272
247
|
:form_params => form_params,
|
273
248
|
:body => post_body,
|
274
249
|
:auth_names => auth_names,
|
275
|
-
:return_type => return_type
|
250
|
+
:return_type => return_type,
|
251
|
+
:api_version => "V1"
|
276
252
|
)
|
277
253
|
|
278
254
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|