Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189759,6 +189759,7 @@ paths:
Please check the documentation regularly for updates.
/api/v2/slo/report:
post:
deprecated: true
description: |-
Create a job to generate an SLO report. The report job is processed asynchronously and eventually results in a CSV report being available for download.

Expand Down Expand Up @@ -189821,10 +189822,12 @@ paths:
operator: OR
permissions:
- slos_read
x-sunset: "2027-01-25"
x-unstable: |-
**Note**: This feature is in private beta. To request access, use the request access form in the [Service Level Objectives](https://docs.datadoghq.com/service_management/service_level_objectives/#slo-csv-export) docs.
**Note**: This feature is in private beta and is no longer accepting requests for access.
/api/v2/slo/report/{report_id}/download:
get:
deprecated: true
description: |-
Download an SLO report. This can only be performed after the report job has completed.

Expand Down Expand Up @@ -189870,10 +189873,12 @@ paths:
summary: Get SLO report
tags:
- Service Level Objectives
x-sunset: "2027-01-25"
x-unstable: |-
**Note**: This feature is in private beta. To request access, use the request access form in the [Service Level Objectives](https://docs.datadoghq.com/service_management/service_level_objectives/#slo-csv-export) docs.
**Note**: This feature is in private beta and is no longer accepting requests for access.
/api/v2/slo/report/{report_id}/status:
get:
deprecated: true
description: Get the status of the SLO report job.
operationId: GetSLOReportJobStatus
parameters:
Expand Down Expand Up @@ -189921,8 +189926,9 @@ paths:
summary: Get SLO report status
tags:
- Service Level Objectives
x-sunset: "2027-01-25"
x-unstable: |-
**Note**: This feature is in private beta. To request access, use the request access form in the [Service Level Objectives](https://docs.datadoghq.com/service_management/service_level_objectives/#slo-csv-export) docs.
**Note**: This feature is in private beta and is no longer accepting requests for access.
/api/v2/slo/{slo_id}/status:
get:
description: |-
Expand Down
10 changes: 7 additions & 3 deletions src/datadog_api_client/v2/api/service_level_objectives_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import annotations

from typing import Any, Dict, Union
import warnings

from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
from datadog_api_client.configuration import Configuration
Expand Down Expand Up @@ -142,7 +143,7 @@ def create_slo_report_job(
self,
body: SloReportCreateRequest,
) -> SLOReportPostResponse:
"""Create a new SLO report.
"""Create a new SLO report. **Deprecated**.

Create a job to generate an SLO report. The report job is processed asynchronously and eventually results in a CSV report being available for download.

Expand All @@ -155,13 +156,14 @@ def create_slo_report_job(
kwargs: Dict[str, Any] = {}
kwargs["body"] = body

warnings.warn("create_slo_report_job is deprecated", DeprecationWarning, stacklevel=2)
return self._create_slo_report_job_endpoint.call_with_http_info(**kwargs)

def get_slo_report(
self,
report_id: str,
) -> str:
"""Get SLO report.
"""Get SLO report. **Deprecated**.

Download an SLO report. This can only be performed after the report job has completed.

Expand All @@ -174,13 +176,14 @@ def get_slo_report(
kwargs: Dict[str, Any] = {}
kwargs["report_id"] = report_id

warnings.warn("get_slo_report is deprecated", DeprecationWarning, stacklevel=2)
return self._get_slo_report_endpoint.call_with_http_info(**kwargs)

def get_slo_report_job_status(
self,
report_id: str,
) -> SLOReportStatusGetResponse:
"""Get SLO report status.
"""Get SLO report status. **Deprecated**.

Get the status of the SLO report job.

Expand All @@ -191,6 +194,7 @@ def get_slo_report_job_status(
kwargs: Dict[str, Any] = {}
kwargs["report_id"] = report_id

warnings.warn("get_slo_report_job_status is deprecated", DeprecationWarning, stacklevel=2)
return self._get_slo_report_job_status_endpoint.call_with_http_info(**kwargs)

def get_slo_status(
Expand Down
Loading