Skip to content

Commit 5849b79

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove Beta status for SLO history endpoint (#883)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent f39990a commit 5849b79

File tree

6 files changed

+6
-19
lines changed

6 files changed

+6
-19
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-10-25 16:39:03.429773",
8-
"spec_repo_commit": "afdd6b70"
7+
"regenerated": "2022-10-25 17:03:49.624394",
8+
"spec_repo_commit": "9673a7f6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-25 16:39:03.449124",
13-
"spec_repo_commit": "afdd6b70"
12+
"regenerated": "2022-10-25 17:03:49.640407",
13+
"spec_repo_commit": "9673a7f6"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25271,9 +25271,6 @@ paths:
2527125271
summary: Get an SLO's history
2527225272
tags:
2527325273
- Service Level Objectives
25274-
x-unstable: '**Note**: This endpoint is in public beta.
25275-
25276-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2527725274
/api/v1/synthetics/ci/batch/{batch_id}:
2527825275
get:
2527925276
description: Get a batch's updated details.

examples/v1/service-level-objectives/GetSLOHistory.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { client, v1 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v1.getSLOHistory"] = true;
98
const apiInstance = new v1.ServiceLevelObjectivesApi(configuration);
109

1110
// there is a valid "slo" in the system

features/v1/service_level_objectives.feature

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ Feature: Service Level Objectives
148148

149149
@generated @skip @team:DataDog/slo-app
150150
Scenario: Get an SLO's history returns "Bad Request" response
151-
Given operation "GetSLOHistory" enabled
152-
And new "GetSLOHistory" request
151+
Given new "GetSLOHistory" request
153152
And request contains "slo_id" parameter from "REPLACE.ME"
154153
And request contains "from_ts" parameter from "REPLACE.ME"
155154
And request contains "to_ts" parameter from "REPLACE.ME"
@@ -158,8 +157,7 @@ Feature: Service Level Objectives
158157

159158
@generated @skip @team:DataDog/slo-app
160159
Scenario: Get an SLO's history returns "Not Found" response
161-
Given operation "GetSLOHistory" enabled
162-
And new "GetSLOHistory" request
160+
Given new "GetSLOHistory" request
163161
And request contains "slo_id" parameter from "REPLACE.ME"
164162
And request contains "from_ts" parameter from "REPLACE.ME"
165163
And request contains "to_ts" parameter from "REPLACE.ME"
@@ -169,7 +167,6 @@ Feature: Service Level Objectives
169167
@team:DataDog/slo-app
170168
Scenario: Get an SLO's history returns "OK" response
171169
Given there is a valid "slo" in the system
172-
And operation "GetSLOHistory" enabled
173170
And new "GetSLOHistory" request
174171
And request contains "slo_id" parameter from "slo.data[0].id"
175172
And request contains "from_ts" parameter with value {{ timestamp("now - 1d") }}

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export function createConfiguration(
112112
serverIndex: conf.serverIndex || 0,
113113
operationServerIndices: conf.operationServerIndices || {},
114114
unstableOperations: {
115-
"v1.getSLOHistory": false,
116115
"v1.searchSLO": false,
117116
"v2.listEvents": false,
118117
"v2.searchEvents": false,

packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,6 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto
300300
): Promise<RequestContext> {
301301
const _config = _options || this.configuration;
302302

303-
logger.warn("Using unstable operation 'getSLOHistory'");
304-
if (!_config.unstableOperations["v1.getSLOHistory"]) {
305-
throw new Error("Unstable operation 'getSLOHistory' is disabled");
306-
}
307-
308303
// verify required parameter 'sloId' is not null or undefined
309304
if (sloId === null || sloId === undefined) {
310305
throw new RequiredError(

0 commit comments

Comments
 (0)