Skip to content

Commit

Permalink
Merge branch 'datadog-api-spec/generated/2493' of github.com:DataDog/…
Browse files Browse the repository at this point in the history
…datadog-api-client-python into datadog-api-spec/generated/2493
  • Loading branch information
HantingZhang2 committed Nov 20, 2023
2 parents 04d2125 + fa88f9a commit 5374839
Show file tree
Hide file tree
Showing 141 changed files with 5,074 additions and 301 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-13 14:39:35.904481",
"spec_repo_commit": "29549399"
"regenerated": "2023-11-17 14:38:56.578081",
"spec_repo_commit": "739ef84a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-13 14:39:35.920139",
"spec_repo_commit": "29549399"
"regenerated": "2023-11-17 14:38:56.593623",
"spec_repo_commit": "739ef84a"
}
}
}
110 changes: 107 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14705,6 +14705,55 @@ components:
type:
$ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
type: object
SyntheticsPatchTestBody:
description: Wrapper around an array of [JSON Patch](https://jsonpatch.com)
operations to perform on the test
properties:
data:
description: Array of [JSON Patch](https://jsonpatch.com) operations to
perform on the test
example:
- op: replace
path: /name
value: New test name
- op: remove
path: /config/assertions/0
items:
$ref: '#/components/schemas/SyntheticsPatchTestOperation'
type: array
type: object
SyntheticsPatchTestOperation:
description: A single [JSON Patch](https://jsonpatch.com) operation to perform
on the test
properties:
op:
$ref: '#/components/schemas/SyntheticsPatchTestOperationName'
path:
description: The path to the value to modify
example: /name
type: string
value:
description: A value to use in a [JSON Patch](https://jsonpatch.com) operation
example: New Test Name
type: object
SyntheticsPatchTestOperationName:
description: The operation to perform
enum:
- add
- remove
- replace
- move
- copy
- test
example: replace
type: string
x-enum-varnames:
- ADD
- REMOVE
- REPLACE
- MOVE
- COPY
- TEST
SyntheticsPlayingTab:
description: Navigate between different tabs for your browser test.
enum:
Expand Down Expand Up @@ -21249,7 +21298,7 @@ components:
an organization. Mute and unmute hosts. The ability to write monitors
is not required to set downtimes.
monitors_read: View monitors.
monitors_write: Edit, mute, and delete individual monitors.
monitors_write: Edit and delete individual monitors.
security_monitoring_filters_read: Read Security Filters.
security_monitoring_filters_write: Create, edit, and delete Security Filters.
security_monitoring_findings_read: View CSPM Findings.
Expand Down Expand Up @@ -23435,7 +23484,8 @@ paths:
- Snapshots
/api/v1/host/{host_name}/mute:
post:
description: Mute a host.
description: Mute a host. **Note:** This creates a [Downtime V2](https://docs.datadoghq.com/api/latest/downtimes/#schedule-a-downtime)
for the host.
operationId: MuteHost
parameters:
- description: Name of the host to mute.
Expand Down Expand Up @@ -29650,7 +29700,7 @@ paths:
description: Edit the configuration of a Synthetic browser test.
operationId: UpdateBrowserTest
parameters:
- description: The public ID of the test to get details from.
- description: The public ID of the test to edit.
in: path
name: public_id
required: true
Expand Down Expand Up @@ -29989,6 +30039,60 @@ paths:
summary: Get a test configuration
tags:
- Synthetics
patch:
description: Patch the configuration of a Synthetic test with partial data.
operationId: PatchTest
parameters:
- description: The public ID of the test to patch.
in: path
name: public_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsPatchTestBody'
description: '[JSON Patch](https://jsonpatch.com/) compliant list of operations'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTestDetails'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: '- JSON format is wrong

- Updating sub-type is forbidden'
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: '- Synthetic Monitoring is not activated for the user

- Test is not owned by the user

- Test can''t be found'
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
summary: Patch a Synthetic test
tags:
- Synthetics
x-codegen-request-body-name: body
/api/v1/synthetics/tests/{public_id}/results:
get:
description: Get the last 150 test results summaries for a given Synthetic API
Expand Down
Loading

0 comments on commit 5374839

Please sign in to comment.