Skip to content

Commit db14ef3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9e54e3b0 of spec repo
1 parent ddf9f44 commit db14ef3

File tree

6 files changed

+6
-21
lines changed

6 files changed

+6
-21
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-20 09:07:43.391926",
8-
"spec_repo_commit": "148c906a"
7+
"regenerated": "2022-10-24 08:24:58.924675",
8+
"spec_repo_commit": "9e54e3b0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-10-20 09:07:43.404402",
13-
"spec_repo_commit": "148c906a"
12+
"regenerated": "2022-10-24 08:24:58.937204",
13+
"spec_repo_commit": "9e54e3b0"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25208,9 +25208,6 @@ paths:
2520825208
summary: Get an SLO's history
2520925209
tags:
2521025210
- Service Level Objectives
25211-
x-unstable: '**Note**: This endpoint is in public beta.
25212-
25213-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2521425211
/api/v1/synthetics/ci/batch/{batch_id}:
2521525212
get:
2521625213
description: Get a batch's updated details.

api/datadog/configuration.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ func NewConfiguration() *Configuration {
359359
},
360360
},
361361
unstableOperations: map[string]bool{
362-
"v1.GetSLOHistory": false,
363362
"v1.SearchSLO": false,
364363
"v2.ListEvents": false,
365364
"v2.SearchEvents": false,

api/datadogV1/api_service_level_objectives.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -910,13 +910,6 @@ func (a *ServiceLevelObjectivesApi) getSLOHistoryExecute(r apiGetSLOHistoryReque
910910
localVarReturnValue SLOHistoryResponse
911911
)
912912

913-
operationId := "v1.GetSLOHistory"
914-
if a.Client.Cfg.IsUnstableOperationEnabled(operationId) {
915-
_log.Printf("WARNING: Using unstable operation '%s'", operationId)
916-
} else {
917-
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)}
918-
}
919-
920913
localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "v1.ServiceLevelObjectivesApi.GetSLOHistory")
921914
if err != nil {
922915
return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ func main() {
1919

2020
ctx := datadog.NewDefaultContext(context.Background())
2121
configuration := datadog.NewConfiguration()
22-
configuration.SetUnstableOperationEnabled("v1.GetSLOHistory", true)
2322
apiClient := datadog.NewAPIClient(configuration)
2423
api := datadogV1.NewServiceLevelObjectivesApi(apiClient)
2524
resp, r, err := api.GetSLOHistory(ctx, SloData0ID, time.Now().AddDate(0, 0, -1).Unix(), time.Now().Unix(), *datadogV1.NewGetSLOHistoryOptionalParameters())

tests/scenarios/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") }}

0 commit comments

Comments
 (0)