Skip to content

Commit dc59ebf

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 42c21a14 of spec repo
1 parent a2e1514 commit dc59ebf

File tree

3 files changed

+34
-18
lines changed

3 files changed

+34
-18
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-12-27 15:08:58.029685",
8-
"spec_repo_commit": "61dc4c3e"
7+
"regenerated": "2023-12-28 18:23:04.254561",
8+
"spec_repo_commit": "42c21a14"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-12-27 15:08:58.050720",
13-
"spec_repo_commit": "61dc4c3e"
12+
"regenerated": "2023-12-28 18:23:04.302664",
13+
"spec_repo_commit": "42c21a14"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

+23-7
Original file line numberDiff line numberDiff line change
@@ -22984,7 +22984,9 @@ paths:
2298422984
x-codegen-request-body-name: body
2298522985
/api/v1/downtime:
2298622986
get:
22987-
description: Get all scheduled downtimes.
22987+
deprecated: true
22988+
description: Get all scheduled downtimes. **Note:** This endpoint has been deprecated.
22989+
Please use v2 endpoints.
2298822990
operationId: ListDowntimes
2298922991
parameters:
2299022992
- description: Only return downtimes that are active when the request is made.
@@ -23025,7 +23027,9 @@ paths:
2302523027
tags:
2302623028
- Downtimes
2302723029
post:
23028-
description: Schedule a downtime.
23030+
deprecated: true
23031+
description: Schedule a downtime. **Note:** This endpoint has been deprecated.
23032+
Please use v2 endpoints.
2302923033
operationId: CreateDowntime
2303023034
requestBody:
2303123035
content:
@@ -23066,7 +23070,11 @@ paths:
2306623070
x-codegen-request-body-name: body
2306723071
/api/v1/downtime/cancel/by_scope:
2306823072
post:
23069-
description: Delete all downtimes that match the scope of `X`.
23073+
deprecated: true
23074+
description: Delete all downtimes that match the scope of `X`. **Note:** This
23075+
only interacts with Downtimes created using v1 endpoints. This endpoint has
23076+
been deprecated and will not be replaced. Please use v2 endpoints to find
23077+
and cancel downtimes.
2307023078
operationId: CancelDowntimesByScope
2307123079
requestBody:
2307223080
content:
@@ -23113,7 +23121,9 @@ paths:
2311323121
x-codegen-request-body-name: body
2311423122
/api/v1/downtime/{downtime_id}:
2311523123
delete:
23116-
description: Cancel a downtime.
23124+
deprecated: true
23125+
description: Cancel a downtime. **Note:** This endpoint has been deprecated.
23126+
Please use v2 endpoints.
2311723127
operationId: CancelDowntime
2311823128
parameters:
2311923129
- description: ID of the downtime to cancel.
@@ -23150,7 +23160,9 @@ paths:
2315023160
tags:
2315123161
- Downtimes
2315223162
get:
23153-
description: Get downtime detail by `downtime_id`.
23163+
deprecated: true
23164+
description: Get downtime detail by `downtime_id`. **Note:** This endpoint has
23165+
been deprecated. Please use v2 endpoints.
2315423166
operationId: GetDowntime
2315523167
parameters:
2315623168
- description: ID of the downtime to fetch.
@@ -23191,7 +23203,9 @@ paths:
2319123203
tags:
2319223204
- Downtimes
2319323205
put:
23194-
description: Update a single downtime by `downtime_id`.
23206+
deprecated: true
23207+
description: Update a single downtime by `downtime_id`. **Note:** This endpoint
23208+
has been deprecated. Please use v2 endpoints.
2319523209
operationId: UpdateDowntime
2319623210
parameters:
2319723211
- description: ID of the downtime to update.
@@ -27176,7 +27190,9 @@ paths:
2717627190
x-codegen-request-body-name: body
2717727191
/api/v1/monitor/{monitor_id}/downtimes:
2717827192
get:
27179-
description: Get all active downtimes for the specified monitor.
27193+
deprecated: true
27194+
description: Get all active v1 downtimes for the specified monitor. **Note:**
27195+
This endpoint has been deprecated. Please use v2 endpoints.
2718027196
operationId: ListMonitorDowntimes
2718127197
parameters:
2718227198
- description: The id of the monitor

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ export class DowntimesApi {
807807
}
808808

809809
/**
810-
* Cancel a downtime.
810+
* Cancel a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
811811
* @param param The request object
812812
*/
813813
public cancelDowntime(
@@ -828,7 +828,7 @@ export class DowntimesApi {
828828
}
829829

830830
/**
831-
* Delete all downtimes that match the scope of `X`.
831+
* Delete all downtimes that match the scope of `X`. **Note:** This only interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes.
832832
* @param param The request object
833833
*/
834834
public cancelDowntimesByScope(
@@ -849,7 +849,7 @@ export class DowntimesApi {
849849
}
850850

851851
/**
852-
* Schedule a downtime.
852+
* Schedule a downtime. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
853853
* @param param The request object
854854
*/
855855
public createDowntime(
@@ -870,7 +870,7 @@ export class DowntimesApi {
870870
}
871871

872872
/**
873-
* Get downtime detail by `downtime_id`.
873+
* Get downtime detail by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
874874
* @param param The request object
875875
*/
876876
public getDowntime(
@@ -891,7 +891,7 @@ export class DowntimesApi {
891891
}
892892

893893
/**
894-
* Get all scheduled downtimes.
894+
* Get all scheduled downtimes. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
895895
* @param param The request object
896896
*/
897897
public listDowntimes(
@@ -913,7 +913,7 @@ export class DowntimesApi {
913913
}
914914

915915
/**
916-
* Get all active downtimes for the specified monitor.
916+
* Get all active v1 downtimes for the specified monitor. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
917917
* @param param The request object
918918
*/
919919
public listMonitorDowntimes(
@@ -934,7 +934,7 @@ export class DowntimesApi {
934934
}
935935

936936
/**
937-
* Update a single downtime by `downtime_id`.
937+
* Update a single downtime by `downtime_id`. **Note:** This endpoint has been deprecated. Please use v2 endpoints.
938938
* @param param The request object
939939
*/
940940
public updateDowntime(

0 commit comments

Comments
 (0)