Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Updating OpenAPI client #3918

Merged
merged 1 commit into from
Jun 25, 2024
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
46 changes: 44 additions & 2 deletions api/monitors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ components:
$ref: "./testsuites.yaml#/components/schemas/TestSuite"
variableSetId:
type: string
tokenId:
type: string
schedule:
$ref: "#/components/schemas/Schedule"
alerts:
Expand All @@ -78,7 +80,7 @@ components:
type: object
properties:
runs:
type: integer
type: integer
lastState:
type: string
lastRunTime:
Expand All @@ -90,6 +92,8 @@ components:
properties:
cron:
type: string
timeZone:
type: string

Alert:
type: object
Expand Down Expand Up @@ -158,6 +162,8 @@ components:
enum:
- MANUAL
- SCHEDULED
lastError:
type: string
state:
type: string
enum: [CREATED, EXECUTING, FINISHED, FAILED]
Expand Down Expand Up @@ -199,6 +205,10 @@ components:
type: string
webhook:
$ref: "#/components/schemas/WebhookResult"
type:
type: string
enum:
- webhook

WebhookResult:
type: object
Expand All @@ -214,11 +224,23 @@ components:
$ref: "./http.yaml#/components/schemas/HTTPHeader"
body:
type: string
method:
type: string
enum:
- GET
- POST
- PUT
- DELETE
- PATCH
- HEAD
- OPTIONS
response:
type: object
properties:
status:
statusCode:
type: integer
status:
type: string
body:
type: string
headers:
Expand All @@ -227,3 +249,23 @@ components:
$ref: "./http.yaml#/components/schemas/HTTPHeader"
error:
type: string

RunMonitorInformation:
type: object
properties:
metadata:
type: object
nullable: true
additionalProperties:
type: string
runGroupId:
type: string
runType:
type: string
enum:
- SCHEDULED
- MANUAL
variables:
type: array
items:
$ref: "./variableSets.yaml#/components/schemas/VariableSetValue"
2 changes: 1 addition & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ paths:
content:
application/json:
schema:
$ref: "./tests.yaml#/components/schemas/RunInformation"
$ref: "./monitors.yaml#/components/schemas/RunMonitorInformation"
responses:
200:
description: successful operation
Expand Down
14 changes: 7 additions & 7 deletions cli/openapi/api_api.go

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

36 changes: 36 additions & 0 deletions cli/openapi/model_alert_result.go

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

36 changes: 36 additions & 0 deletions cli/openapi/model_monitor.go

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

36 changes: 36 additions & 0 deletions cli/openapi/model_monitor_run.go

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

Loading
Loading