Skip to content

Commit

Permalink
chore: Updating OpenAPI client (#3918)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar authored Jun 25, 2024
1 parent d3de50e commit d96d212
Show file tree
Hide file tree
Showing 10 changed files with 511 additions and 20 deletions.
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

0 comments on commit d96d212

Please sign in to comment.