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
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.5.1.dev2",
"regenerated": "2021-11-12 16:34:52.402019",
"spec_repo_commit": "cbb6f12"
"regenerated": "2021-11-12 17:41:39.581734",
"spec_repo_commit": "2b850b7"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-12 16:34:52.421921",
"spec_repo_commit": "cbb6f12"
"regenerated": "2021-11-12 17:41:39.606008",
"spec_repo_commit": "2b850b7"
}
}
}
53 changes: 53 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11075,6 +11075,17 @@ components:
format: double
type: number
type: object
SyntheticsTriggerBody:
description: Object describing the synthetics tests to trigger.
properties:
tests:
description: Individual synthetics test.
items:
$ref: '#/components/schemas/SyntheticsTriggerTest'
type: array
required:
- tests
type: object
SyntheticsTriggerCITestLocation:
description: Synthetics location.
properties:
Expand Down Expand Up @@ -11125,6 +11136,18 @@ components:
type: string
type: array
type: object
SyntheticsTriggerTest:
description: Test configuration for Synthetics
properties:
metadata:
$ref: '#/components/schemas/SyntheticsCIBatchMetadata'
public_id:
description: The public ID of the Synthetics test to trigger.
example: aaa-aaa-aaa
type: string
required:
- public_id
type: object
SyntheticsUpdateTestPauseStatusPayload:
description: Object to start or pause an existing Synthetic test.
properties:
Expand Down Expand Up @@ -22683,6 +22706,36 @@ paths:
x-menu-order: 14
x-undo:
type: idempotent
/api/v1/synthetics/tests/trigger:
post:
description: Trigger a set of Synthetics tests.
operationId: TriggerTests
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerBody'
description: The identifiers of the tests to trigger.
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerCITestsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
summary: Trigger some Synthetics tests
tags:
- Synthetics
x-codegen-request-body-name: body
x-undo:
type: safe
/api/v1/synthetics/tests/trigger/ci:
post:
description: Trigger a set of Synthetics tests for continuous integration.
Expand Down
4 changes: 4 additions & 0 deletions api/v1/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,11 @@ docs/SyntheticsTestRequest.md
docs/SyntheticsTestRequestCertificate.md
docs/SyntheticsTestRequestCertificateItem.md
docs/SyntheticsTiming.md
docs/SyntheticsTriggerBody.md
docs/SyntheticsTriggerCITestLocation.md
docs/SyntheticsTriggerCITestRunResult.md
docs/SyntheticsTriggerCITestsResponse.md
docs/SyntheticsTriggerTest.md
docs/SyntheticsUpdateTestPauseStatusPayload.md
docs/SyntheticsVariableParser.md
docs/SyntheticsWarningType.md
Expand Down Expand Up @@ -1178,9 +1180,11 @@ model_synthetics_test_request.go
model_synthetics_test_request_certificate.go
model_synthetics_test_request_certificate_item.go
model_synthetics_timing.go
model_synthetics_trigger_body.go
model_synthetics_trigger_ci_test_location.go
model_synthetics_trigger_ci_test_run_result.go
model_synthetics_trigger_ci_tests_response.go
model_synthetics_trigger_test_.go
model_synthetics_update_test_pause_status_payload.go
model_synthetics_variable_parser.go
model_synthetics_warning_type.go
Expand Down
3 changes: 3 additions & 0 deletions api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ Class | Method | HTTP request | Description
*SyntheticsApi* | [**ListLocations**](docs/SyntheticsApi.md#listlocations) | **Get** /api/v1/synthetics/locations | Get all locations (public and private)
*SyntheticsApi* | [**ListTests**](docs/SyntheticsApi.md#listtests) | **Get** /api/v1/synthetics/tests | Get the list of all tests
*SyntheticsApi* | [**TriggerCITests**](docs/SyntheticsApi.md#triggercitests) | **Post** /api/v1/synthetics/tests/trigger/ci | Trigger tests from CI/CD pipelines
*SyntheticsApi* | [**TriggerTests**](docs/SyntheticsApi.md#triggertests) | **Post** /api/v1/synthetics/tests/trigger | Trigger some Synthetics tests
*SyntheticsApi* | [**UpdateAPITest**](docs/SyntheticsApi.md#updateapitest) | **Put** /api/v1/synthetics/tests/api/{public_id} | Edit an API test
*SyntheticsApi* | [**UpdateBrowserTest**](docs/SyntheticsApi.md#updatebrowsertest) | **Put** /api/v1/synthetics/tests/browser/{public_id} | Edit a browser test
*SyntheticsApi* | [**UpdatePrivateLocation**](docs/SyntheticsApi.md#updateprivatelocation) | **Put** /api/v1/synthetics/private-locations/{location_id} | Edit a private location
Expand Down Expand Up @@ -760,9 +761,11 @@ Class | Method | HTTP request | Description
- [SyntheticsTestRequestCertificate](docs/SyntheticsTestRequestCertificate.md)
- [SyntheticsTestRequestCertificateItem](docs/SyntheticsTestRequestCertificateItem.md)
- [SyntheticsTiming](docs/SyntheticsTiming.md)
- [SyntheticsTriggerBody](docs/SyntheticsTriggerBody.md)
- [SyntheticsTriggerCITestLocation](docs/SyntheticsTriggerCITestLocation.md)
- [SyntheticsTriggerCITestRunResult](docs/SyntheticsTriggerCITestRunResult.md)
- [SyntheticsTriggerCITestsResponse](docs/SyntheticsTriggerCITestsResponse.md)
- [SyntheticsTriggerTest](docs/SyntheticsTriggerTest.md)
- [SyntheticsUpdateTestPauseStatusPayload](docs/SyntheticsUpdateTestPauseStatusPayload.md)
- [SyntheticsVariableParser](docs/SyntheticsVariableParser.md)
- [SyntheticsWarningType](docs/SyntheticsWarningType.md)
Expand Down
86 changes: 86 additions & 0 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8078,6 +8078,36 @@ paths:
x-menu-order: 14
x-undo:
type: idempotent
/api/v1/synthetics/tests/trigger:
post:
description: Trigger a set of Synthetics tests.
operationId: TriggerTests
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerBody'
description: The identifiers of the tests to trigger.
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/SyntheticsTriggerCITestsResponse'
description: OK
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
summary: Trigger some Synthetics tests
tags:
- Synthetics
x-codegen-request-body-name: body
x-undo:
type: safe
/api/v1/synthetics/tests/trigger/ci:
post:
description: Trigger a set of Synthetics tests for continuous integration.
Expand Down Expand Up @@ -25124,6 +25154,39 @@ components:
format: double
type: number
type: object
SyntheticsTriggerBody:
description: Object describing the synthetics tests to trigger.
example:
tests:
- metadata:
git:
commitSha: commitSha
branch: branch
ci:
pipeline:
url: url
provider:
name: name
public_id: aaa-aaa-aaa
- metadata:
git:
commitSha: commitSha
branch: branch
ci:
pipeline:
url: url
provider:
name: name
public_id: aaa-aaa-aaa
properties:
tests:
description: Individual synthetics test.
items:
$ref: '#/components/schemas/SyntheticsTriggerTest'
type: array
required:
- tests
type: object
SyntheticsTriggerCITestLocation:
description: Synthetics location.
example:
Expand Down Expand Up @@ -25201,6 +25264,29 @@ components:
type: string
type: array
type: object
SyntheticsTriggerTest:
description: Test configuration for Synthetics
example:
metadata:
git:
commitSha: commitSha
branch: branch
ci:
pipeline:
url: url
provider:
name: name
public_id: aaa-aaa-aaa
properties:
metadata:
$ref: '#/components/schemas/SyntheticsCIBatchMetadata'
public_id:
description: The public ID of the Synthetics test to trigger.
example: aaa-aaa-aaa
type: string
required:
- public_id
type: object
SyntheticsUpdateTestPauseStatusPayload:
description: Object to start or pause an existing Synthetic test.
example:
Expand Down
145 changes: 145 additions & 0 deletions api/v1/datadog/api_synthetics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading