-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.graphql
60 lines (56 loc) · 1.44 KB
/
schema.graphql
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
type Job {
"Unique ID for the job (generated)"
jobID: Int!
"Cron expression used for scheduling e.g. '0 * * * *'"
cronExp: String!
"Root directory to run the command"
rootDir: String!
"Terminal-based command"
cmd: String!
"Command arguments"
args: [String]
"Tags for easier job retrieval"
tags: [String]
"Last scheduled execution time (human friendly)"
lastScheduledRun: String
"Next scheduled execution time (human friendly)"
nextScheduledRun: String
"Last forced execution time (human friendly)"
lastForcedRun: String
"Last scheduled execution time (seconds)"
lastScheduledTime: Int
"Next scheduled execution time (seconds)"
nextScheduledTime: Int
"Last forced execution time (seconds)"
lastForcedTime: Int
}
type Query {
"Retrieve list of scheduled jobs"
jobs(input: JobsInput): [Job]!
}
input JobsInput {
"Return job with unique jobID"
jobID: Int
"Return all jobs which match at least one of the tags"
tags: [String]
}
input AddJobInput {
"Cron expression for scheduling e.g. '0 * * * *'"
cronExp: String!
"Root directory to run the command"
rootDir: String!
"Terminal-based command"
cmd: String!
"Command arguments"
args: [String]
"Tags for easier job retrieval"
tags: [String]
}
type Mutation {
"Add a new scheduled job"
addJob(input: AddJobInput!): Job!
"Remove a scheduled job"
removeJob(JobID: Int!): Job!
"Immediately run a scheduled job"
runJob(JobID: Int!): Job!
}