datadog_api_client 1.11.0 → 2.0.2
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 +4 -4
- data/.generator/conftest.py +2 -1
- data/.generator/schemas/v1/openapi.yaml +293 -116
- 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 +6 -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 +44 -0
- data/Gemfile +1 -0
- data/Makefile +1 -2
- data/README.md +13 -13
- 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/pagerduty-integration/DeletePagerDutyIntegrationService.rb +2 -2
- 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/audit/ListAuditLogs_1275402458.rb +8 -0
- data/examples/v2/audit/SearchAuditLogs_3215529662.rb +22 -0
- data/examples/v2/events/ListEvents.rb +8 -0
- data/examples/v2/events/ListEvents_1527584014.rb +13 -0
- data/examples/v2/events/ListEvents_2663715109.rb +14 -0
- data/examples/v2/events/SearchEvents.rb +23 -0
- data/examples/v2/events/SearchEvents_3856995058.rb +25 -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/ListIncidents_2665616954.rb +11 -0
- 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/logs/ListLogsGet_738202670.rb +8 -0
- data/examples/v2/logs/ListLogs_3138392594.rb +25 -0
- data/examples/v2/metrics/SubmitMetrics.rb +6 -0
- data/examples/v2/processes/ListProcesses_797840471.rb +8 -0
- data/examples/v2/rum/ListRUMEvents_2680821282.rb +8 -0
- data/examples/v2/rum/SearchRUMEvents_574690310.rb +21 -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/ListSecurityMonitoringSignals_3960412991.rb +8 -0
- data/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +20 -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/version.rb +1 -1
- data/lib/datadog_api_client.rb +13 -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 +109 -22
- 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/lib/datadog_api_client/v2.rb +0 -555
- 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 LogsIndexesAPI
|
|
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<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers
|
|
41
41
|
def create_logs_index_with_http_info(body, opts = {})
|
|
42
42
|
|
|
43
|
-
if @api_client.config.unstable_operations.has_key?(:create_logs_index)
|
|
44
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_logs_index]
|
|
45
|
-
if unstable_enabled
|
|
46
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_logs_index")
|
|
47
|
-
else
|
|
48
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_logs_index"))
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
43
|
if @api_client.config.debugging
|
|
53
44
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.create_logs_index ...'
|
|
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<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers
|
|
116
108
|
def get_logs_index_with_http_info(name, opts = {})
|
|
117
109
|
|
|
118
|
-
if @api_client.config.unstable_operations.has_key?(:get_logs_index)
|
|
119
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_logs_index]
|
|
120
|
-
if unstable_enabled
|
|
121
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_logs_index")
|
|
122
|
-
else
|
|
123
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_logs_index"))
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
110
|
if @api_client.config.debugging
|
|
128
111
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.get_logs_index ...'
|
|
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::Get, local_var_path, new_options)
|
|
@@ -187,15 +171,6 @@ module DatadogAPIClient::V1
|
|
|
187
171
|
# @return [Array<(LogsIndexesOrder, Integer, Hash)>] LogsIndexesOrder data, response status code and response headers
|
|
188
172
|
def get_logs_index_order_with_http_info(opts = {})
|
|
189
173
|
|
|
190
|
-
if @api_client.config.unstable_operations.has_key?(:get_logs_index_order)
|
|
191
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_logs_index_order]
|
|
192
|
-
if unstable_enabled
|
|
193
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_logs_index_order")
|
|
194
|
-
else
|
|
195
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_logs_index_order"))
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
|
|
199
174
|
if @api_client.config.debugging
|
|
200
175
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.get_logs_index_order ...'
|
|
201
176
|
end
|
|
@@ -229,7 +204,8 @@ module DatadogAPIClient::V1
|
|
|
229
204
|
:form_params => form_params,
|
|
230
205
|
:body => post_body,
|
|
231
206
|
:auth_names => auth_names,
|
|
232
|
-
:return_type => return_type
|
|
207
|
+
:return_type => return_type,
|
|
208
|
+
:api_version => "V1"
|
|
233
209
|
)
|
|
234
210
|
|
|
235
211
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -256,15 +232,6 @@ module DatadogAPIClient::V1
|
|
|
256
232
|
# @return [Array<(LogsIndexListResponse, Integer, Hash)>] LogsIndexListResponse data, response status code and response headers
|
|
257
233
|
def list_log_indexes_with_http_info(opts = {})
|
|
258
234
|
|
|
259
|
-
if @api_client.config.unstable_operations.has_key?(:list_log_indexes)
|
|
260
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_log_indexes]
|
|
261
|
-
if unstable_enabled
|
|
262
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_log_indexes")
|
|
263
|
-
else
|
|
264
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_log_indexes"))
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
|
|
268
235
|
if @api_client.config.debugging
|
|
269
236
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.list_log_indexes ...'
|
|
270
237
|
end
|
|
@@ -298,7 +265,8 @@ module DatadogAPIClient::V1
|
|
|
298
265
|
:form_params => form_params,
|
|
299
266
|
:body => post_body,
|
|
300
267
|
:auth_names => auth_names,
|
|
301
|
-
:return_type => return_type
|
|
268
|
+
:return_type => return_type,
|
|
269
|
+
:api_version => "V1"
|
|
302
270
|
)
|
|
303
271
|
|
|
304
272
|
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<(LogsIndex, Integer, Hash)>] LogsIndex data, response status code and response headers
|
|
331
299
|
def update_logs_index_with_http_info(name, body, opts = {})
|
|
332
300
|
|
|
333
|
-
if @api_client.config.unstable_operations.has_key?(:update_logs_index)
|
|
334
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_logs_index]
|
|
335
|
-
if unstable_enabled
|
|
336
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_logs_index")
|
|
337
|
-
else
|
|
338
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_logs_index"))
|
|
339
|
-
end
|
|
340
|
-
end
|
|
341
|
-
|
|
342
301
|
if @api_client.config.debugging
|
|
343
302
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.update_logs_index ...'
|
|
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)
|
|
@@ -410,15 +370,6 @@ module DatadogAPIClient::V1
|
|
|
410
370
|
# @return [Array<(LogsIndexesOrder, Integer, Hash)>] LogsIndexesOrder data, response status code and response headers
|
|
411
371
|
def update_logs_index_order_with_http_info(body, opts = {})
|
|
412
372
|
|
|
413
|
-
if @api_client.config.unstable_operations.has_key?(:update_logs_index_order)
|
|
414
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_logs_index_order]
|
|
415
|
-
if unstable_enabled
|
|
416
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_logs_index_order")
|
|
417
|
-
else
|
|
418
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_logs_index_order"))
|
|
419
|
-
end
|
|
420
|
-
end
|
|
421
|
-
|
|
422
373
|
if @api_client.config.debugging
|
|
423
374
|
@api_client.config.logger.debug 'Calling API: LogsIndexesAPI.update_logs_index_order ...'
|
|
424
375
|
end
|
|
@@ -458,7 +409,8 @@ module DatadogAPIClient::V1
|
|
|
458
409
|
:form_params => form_params,
|
|
459
410
|
:body => post_body,
|
|
460
411
|
:auth_names => auth_names,
|
|
461
|
-
:return_type => return_type
|
|
412
|
+
:return_type => return_type,
|
|
413
|
+
:api_version => "V1"
|
|
462
414
|
)
|
|
463
415
|
|
|
464
416
|
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 LogsPipelinesAPI
|
|
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<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers
|
|
41
41
|
def create_logs_pipeline_with_http_info(body, opts = {})
|
|
42
42
|
|
|
43
|
-
if @api_client.config.unstable_operations.has_key?(:create_logs_pipeline)
|
|
44
|
-
unstable_enabled = @api_client.config.unstable_operations[:create_logs_pipeline]
|
|
45
|
-
if unstable_enabled
|
|
46
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "create_logs_pipeline")
|
|
47
|
-
else
|
|
48
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "create_logs_pipeline"))
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
43
|
if @api_client.config.debugging
|
|
53
44
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.create_logs_pipeline ...'
|
|
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)
|
|
@@ -116,15 +108,6 @@ module DatadogAPIClient::V1
|
|
|
116
108
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
117
109
|
def delete_logs_pipeline_with_http_info(pipeline_id, opts = {})
|
|
118
110
|
|
|
119
|
-
if @api_client.config.unstable_operations.has_key?(:delete_logs_pipeline)
|
|
120
|
-
unstable_enabled = @api_client.config.unstable_operations[:delete_logs_pipeline]
|
|
121
|
-
if unstable_enabled
|
|
122
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "delete_logs_pipeline")
|
|
123
|
-
else
|
|
124
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "delete_logs_pipeline"))
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
|
|
128
111
|
if @api_client.config.debugging
|
|
129
112
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.delete_logs_pipeline ...'
|
|
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)
|
|
@@ -190,15 +174,6 @@ module DatadogAPIClient::V1
|
|
|
190
174
|
# @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers
|
|
191
175
|
def get_logs_pipeline_with_http_info(pipeline_id, opts = {})
|
|
192
176
|
|
|
193
|
-
if @api_client.config.unstable_operations.has_key?(:get_logs_pipeline)
|
|
194
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_logs_pipeline]
|
|
195
|
-
if unstable_enabled
|
|
196
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_logs_pipeline")
|
|
197
|
-
else
|
|
198
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_logs_pipeline"))
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
|
|
202
177
|
if @api_client.config.debugging
|
|
203
178
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.get_logs_pipeline ...'
|
|
204
179
|
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::Get, local_var_path, new_options)
|
|
@@ -263,15 +239,6 @@ module DatadogAPIClient::V1
|
|
|
263
239
|
# @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers
|
|
264
240
|
def get_logs_pipeline_order_with_http_info(opts = {})
|
|
265
241
|
|
|
266
|
-
if @api_client.config.unstable_operations.has_key?(:get_logs_pipeline_order)
|
|
267
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_logs_pipeline_order]
|
|
268
|
-
if unstable_enabled
|
|
269
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_logs_pipeline_order")
|
|
270
|
-
else
|
|
271
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_logs_pipeline_order"))
|
|
272
|
-
end
|
|
273
|
-
end
|
|
274
|
-
|
|
275
242
|
if @api_client.config.debugging
|
|
276
243
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.get_logs_pipeline_order ...'
|
|
277
244
|
end
|
|
@@ -305,7 +272,8 @@ module DatadogAPIClient::V1
|
|
|
305
272
|
:form_params => form_params,
|
|
306
273
|
:body => post_body,
|
|
307
274
|
:auth_names => auth_names,
|
|
308
|
-
:return_type => return_type
|
|
275
|
+
:return_type => return_type,
|
|
276
|
+
:api_version => "V1"
|
|
309
277
|
)
|
|
310
278
|
|
|
311
279
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -332,15 +300,6 @@ module DatadogAPIClient::V1
|
|
|
332
300
|
# @return [Array<(Array<LogsPipeline>, Integer, Hash)>] Array<LogsPipeline> data, response status code and response headers
|
|
333
301
|
def list_logs_pipelines_with_http_info(opts = {})
|
|
334
302
|
|
|
335
|
-
if @api_client.config.unstable_operations.has_key?(:list_logs_pipelines)
|
|
336
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_logs_pipelines]
|
|
337
|
-
if unstable_enabled
|
|
338
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_logs_pipelines")
|
|
339
|
-
else
|
|
340
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_logs_pipelines"))
|
|
341
|
-
end
|
|
342
|
-
end
|
|
343
|
-
|
|
344
303
|
if @api_client.config.debugging
|
|
345
304
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.list_logs_pipelines ...'
|
|
346
305
|
end
|
|
@@ -374,7 +333,8 @@ module DatadogAPIClient::V1
|
|
|
374
333
|
:form_params => form_params,
|
|
375
334
|
:body => post_body,
|
|
376
335
|
:auth_names => auth_names,
|
|
377
|
-
:return_type => return_type
|
|
336
|
+
:return_type => return_type,
|
|
337
|
+
:api_version => "V1"
|
|
378
338
|
)
|
|
379
339
|
|
|
380
340
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -405,15 +365,6 @@ module DatadogAPIClient::V1
|
|
|
405
365
|
# @return [Array<(LogsPipeline, Integer, Hash)>] LogsPipeline data, response status code and response headers
|
|
406
366
|
def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {})
|
|
407
367
|
|
|
408
|
-
if @api_client.config.unstable_operations.has_key?(:update_logs_pipeline)
|
|
409
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_logs_pipeline]
|
|
410
|
-
if unstable_enabled
|
|
411
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_logs_pipeline")
|
|
412
|
-
else
|
|
413
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_logs_pipeline"))
|
|
414
|
-
end
|
|
415
|
-
end
|
|
416
|
-
|
|
417
368
|
if @api_client.config.debugging
|
|
418
369
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.update_logs_pipeline ...'
|
|
419
370
|
end
|
|
@@ -457,7 +408,8 @@ module DatadogAPIClient::V1
|
|
|
457
408
|
:form_params => form_params,
|
|
458
409
|
:body => post_body,
|
|
459
410
|
:auth_names => auth_names,
|
|
460
|
-
:return_type => return_type
|
|
411
|
+
:return_type => return_type,
|
|
412
|
+
:api_version => "V1"
|
|
461
413
|
)
|
|
462
414
|
|
|
463
415
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|
|
@@ -488,15 +440,6 @@ module DatadogAPIClient::V1
|
|
|
488
440
|
# @return [Array<(LogsPipelinesOrder, Integer, Hash)>] LogsPipelinesOrder data, response status code and response headers
|
|
489
441
|
def update_logs_pipeline_order_with_http_info(body, opts = {})
|
|
490
442
|
|
|
491
|
-
if @api_client.config.unstable_operations.has_key?(:update_logs_pipeline_order)
|
|
492
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_logs_pipeline_order]
|
|
493
|
-
if unstable_enabled
|
|
494
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_logs_pipeline_order")
|
|
495
|
-
else
|
|
496
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_logs_pipeline_order"))
|
|
497
|
-
end
|
|
498
|
-
end
|
|
499
|
-
|
|
500
443
|
if @api_client.config.debugging
|
|
501
444
|
@api_client.config.logger.debug 'Calling API: LogsPipelinesAPI.update_logs_pipeline_order ...'
|
|
502
445
|
end
|
|
@@ -536,7 +479,8 @@ module DatadogAPIClient::V1
|
|
|
536
479
|
:form_params => form_params,
|
|
537
480
|
:body => post_body,
|
|
538
481
|
:auth_names => auth_names,
|
|
539
|
-
:return_type => return_type
|
|
482
|
+
:return_type => return_type,
|
|
483
|
+
:api_version => "V1"
|
|
540
484
|
)
|
|
541
485
|
|
|
542
486
|
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 MetricsAPI
|
|
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<(MetricMetadata, Integer, Hash)>] MetricMetadata data, response status code and response headers
|
|
41
41
|
def get_metric_metadata_with_http_info(metric_name, opts = {})
|
|
42
42
|
|
|
43
|
-
if @api_client.config.unstable_operations.has_key?(:get_metric_metadata)
|
|
44
|
-
unstable_enabled = @api_client.config.unstable_operations[:get_metric_metadata]
|
|
45
|
-
if unstable_enabled
|
|
46
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "get_metric_metadata")
|
|
47
|
-
else
|
|
48
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "get_metric_metadata"))
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
43
|
if @api_client.config.debugging
|
|
53
44
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.get_metric_metadata ...'
|
|
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::Get, local_var_path, new_options)
|
|
@@ -115,15 +107,6 @@ module DatadogAPIClient::V1
|
|
|
115
107
|
# @return [Array<(MetricsListResponse, Integer, Hash)>] MetricsListResponse data, response status code and response headers
|
|
116
108
|
def list_active_metrics_with_http_info(from, opts = {})
|
|
117
109
|
|
|
118
|
-
if @api_client.config.unstable_operations.has_key?(:list_active_metrics)
|
|
119
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_active_metrics]
|
|
120
|
-
if unstable_enabled
|
|
121
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_active_metrics")
|
|
122
|
-
else
|
|
123
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_active_metrics"))
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
110
|
if @api_client.config.debugging
|
|
128
111
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_active_metrics ...'
|
|
129
112
|
end
|
|
@@ -164,7 +147,8 @@ module DatadogAPIClient::V1
|
|
|
164
147
|
:form_params => form_params,
|
|
165
148
|
:body => post_body,
|
|
166
149
|
:auth_names => auth_names,
|
|
167
|
-
:return_type => return_type
|
|
150
|
+
:return_type => return_type,
|
|
151
|
+
:api_version => "V1"
|
|
168
152
|
)
|
|
169
153
|
|
|
170
154
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -191,15 +175,6 @@ module DatadogAPIClient::V1
|
|
|
191
175
|
# @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers
|
|
192
176
|
def list_metrics_with_http_info(q, opts = {})
|
|
193
177
|
|
|
194
|
-
if @api_client.config.unstable_operations.has_key?(:list_metrics)
|
|
195
|
-
unstable_enabled = @api_client.config.unstable_operations[:list_metrics]
|
|
196
|
-
if unstable_enabled
|
|
197
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "list_metrics")
|
|
198
|
-
else
|
|
199
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "list_metrics"))
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
|
|
203
178
|
if @api_client.config.debugging
|
|
204
179
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_metrics ...'
|
|
205
180
|
end
|
|
@@ -238,7 +213,8 @@ module DatadogAPIClient::V1
|
|
|
238
213
|
:form_params => form_params,
|
|
239
214
|
:body => post_body,
|
|
240
215
|
:auth_names => auth_names,
|
|
241
|
-
:return_type => return_type
|
|
216
|
+
:return_type => return_type,
|
|
217
|
+
:api_version => "V1"
|
|
242
218
|
)
|
|
243
219
|
|
|
244
220
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -267,15 +243,6 @@ module DatadogAPIClient::V1
|
|
|
267
243
|
# @return [Array<(MetricsQueryResponse, Integer, Hash)>] MetricsQueryResponse data, response status code and response headers
|
|
268
244
|
def query_metrics_with_http_info(from, to, query, opts = {})
|
|
269
245
|
|
|
270
|
-
if @api_client.config.unstable_operations.has_key?(:query_metrics)
|
|
271
|
-
unstable_enabled = @api_client.config.unstable_operations[:query_metrics]
|
|
272
|
-
if unstable_enabled
|
|
273
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "query_metrics")
|
|
274
|
-
else
|
|
275
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "query_metrics"))
|
|
276
|
-
end
|
|
277
|
-
end
|
|
278
|
-
|
|
279
246
|
if @api_client.config.debugging
|
|
280
247
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.query_metrics ...'
|
|
281
248
|
end
|
|
@@ -324,7 +291,8 @@ module DatadogAPIClient::V1
|
|
|
324
291
|
:form_params => form_params,
|
|
325
292
|
:body => post_body,
|
|
326
293
|
:auth_names => auth_names,
|
|
327
|
-
:return_type => return_type
|
|
294
|
+
:return_type => return_type,
|
|
295
|
+
:api_version => "V1"
|
|
328
296
|
)
|
|
329
297
|
|
|
330
298
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
@@ -352,15 +320,6 @@ module DatadogAPIClient::V1
|
|
|
352
320
|
# @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers
|
|
353
321
|
def submit_distribution_points_with_http_info(body, opts = {})
|
|
354
322
|
|
|
355
|
-
if @api_client.config.unstable_operations.has_key?(:submit_distribution_points)
|
|
356
|
-
unstable_enabled = @api_client.config.unstable_operations[:submit_distribution_points]
|
|
357
|
-
if unstable_enabled
|
|
358
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "submit_distribution_points")
|
|
359
|
-
else
|
|
360
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "submit_distribution_points"))
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
|
|
364
323
|
if @api_client.config.debugging
|
|
365
324
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.submit_distribution_points ...'
|
|
366
325
|
end
|
|
@@ -405,7 +364,8 @@ module DatadogAPIClient::V1
|
|
|
405
364
|
:form_params => form_params,
|
|
406
365
|
:body => post_body,
|
|
407
366
|
:auth_names => auth_names,
|
|
408
|
-
:return_type => return_type
|
|
367
|
+
:return_type => return_type,
|
|
368
|
+
:api_version => "V1"
|
|
409
369
|
)
|
|
410
370
|
|
|
411
371
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
@@ -443,15 +403,6 @@ module DatadogAPIClient::V1
|
|
|
443
403
|
# @return [Array<(IntakePayloadAccepted, Integer, Hash)>] IntakePayloadAccepted data, response status code and response headers
|
|
444
404
|
def submit_metrics_with_http_info(body, opts = {})
|
|
445
405
|
|
|
446
|
-
if @api_client.config.unstable_operations.has_key?(:submit_metrics)
|
|
447
|
-
unstable_enabled = @api_client.config.unstable_operations[:submit_metrics]
|
|
448
|
-
if unstable_enabled
|
|
449
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "submit_metrics")
|
|
450
|
-
else
|
|
451
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "submit_metrics"))
|
|
452
|
-
end
|
|
453
|
-
end
|
|
454
|
-
|
|
455
406
|
if @api_client.config.debugging
|
|
456
407
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.submit_metrics ...'
|
|
457
408
|
end
|
|
@@ -496,7 +447,8 @@ module DatadogAPIClient::V1
|
|
|
496
447
|
:form_params => form_params,
|
|
497
448
|
:body => post_body,
|
|
498
449
|
:auth_names => auth_names,
|
|
499
|
-
:return_type => return_type
|
|
450
|
+
:return_type => return_type,
|
|
451
|
+
:api_version => "V1"
|
|
500
452
|
)
|
|
501
453
|
|
|
502
454
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
@@ -524,15 +476,6 @@ module DatadogAPIClient::V1
|
|
|
524
476
|
# @return [Array<(MetricMetadata, Integer, Hash)>] MetricMetadata data, response status code and response headers
|
|
525
477
|
def update_metric_metadata_with_http_info(metric_name, body, opts = {})
|
|
526
478
|
|
|
527
|
-
if @api_client.config.unstable_operations.has_key?(:update_metric_metadata)
|
|
528
|
-
unstable_enabled = @api_client.config.unstable_operations[:update_metric_metadata]
|
|
529
|
-
if unstable_enabled
|
|
530
|
-
@api_client.config.logger.warn format("Using unstable operation '%s'", "update_metric_metadata")
|
|
531
|
-
else
|
|
532
|
-
raise APIError.new(message: format("Unstable operation '%s' is disabled", "update_metric_metadata"))
|
|
533
|
-
end
|
|
534
|
-
end
|
|
535
|
-
|
|
536
479
|
if @api_client.config.debugging
|
|
537
480
|
@api_client.config.logger.debug 'Calling API: MetricsAPI.update_metric_metadata ...'
|
|
538
481
|
end
|
|
@@ -576,7 +519,8 @@ module DatadogAPIClient::V1
|
|
|
576
519
|
:form_params => form_params,
|
|
577
520
|
:body => post_body,
|
|
578
521
|
:auth_names => auth_names,
|
|
579
|
-
:return_type => return_type
|
|
522
|
+
:return_type => return_type,
|
|
523
|
+
:api_version => "V1"
|
|
580
524
|
)
|
|
581
525
|
|
|
582
526
|
data, status_code, headers = @api_client.call_api(Net::HTTP::Put, local_var_path, new_options)
|