-
Notifications
You must be signed in to change notification settings - Fork 1
/
scheduler-api.yaml
120 lines (119 loc) · 2.99 KB
/
scheduler-api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
openapi: 3.0.1
info:
version: 1.0.0
title: appNG Scheduler REST API
description: The REST API for appNG Scheduler
contact:
name: appNG developer team
email: matthias.mueller@appng.org
url: https://github.com/appNG/appng-scheduler
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0
security:
- bearerAuth: []
paths:
"/jobState/{application}/{job}":
get:
tags:
- Scheduler
operationId: getJobState
parameters:
- in: path
name: application
description: the site to call
required: true
schema:
type: string
- in: path
name: job
description: the application to call
required: true
schema:
type: string
- in: query
name: pageSize
description: site of the page
required: false
schema:
type: integer
- in: query
name: records
description: the ID of the page
required: true
schema:
type: boolean
responses:
"200":
description: datasource response
content:
application/json:
schema:
$ref: "#/components/schemas/jobState"
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
schemas:
jobState:
type: object
properties:
site:
type: string
description: name of the site
application:
type: string
description: name of the application
job:
type: string
description: name of the job
thresholdWarn:
type: integer
description: the waring treshold
thresholdError:
type: integer
description: the error treshold
totalRecords:
type: integer
description: total number of records
state:
type: string
enum: [OK, WARN, ERROR, UNDEFINED]
timeunit:
type: string
enum: [MINUTE, HOUR, DAY, WEEK, MONTH, YEAR]
startedAfter:
type: string
format: date-time
description: the date after that the records started
records:
type: array
items:
$ref: "#/components/schemas/jobRecord"
jobRecord:
type: object
properties:
id:
type: integer
description: the ID
start:
type: string
format: date-time
description: start date
end:
type: string
format: date-time
description: end date
duration:
type: integer
description: duration in milliseconds
runOnce:
type: boolean
description: run once flag
stacktrace:
type: string
description: the stacktrace
state:
type: string
enum: [OK, ERROR]