Skip to content

Commit 4bdc9b4

Browse files
authored
REPL: Initial GraphQL Schema (#4214)
1 parent 875ce0f commit 4bdc9b4

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
extend type Query {
2+
"""
3+
Information about the running Alloy instance.
4+
"""
5+
alloy: Alloy!
6+
}
7+
8+
"""
9+
Represents build and runtime information for an Alloy instance.
10+
Contains version control and build environment details.
11+
"""
12+
type Alloy {
13+
"The git branch from which this build was created"
14+
branch: String!
15+
16+
"The timestamp of when this build was created"
17+
buildDate: String!
18+
19+
"The user account that initiated this build"
20+
buildUser: String!
21+
22+
"Whether the Alloy instance is up and running"
23+
isReady: Boolean!
24+
25+
"The git commit hash from which this build was created"
26+
revision: String!
27+
28+
"The semantic version of this Alloy build"
29+
version: String!
30+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Base GraphQL schema
2+
# Root types that other schemas extend
3+
4+
type Query
5+
# type Mutation
6+
7+
scalar Time
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
extend type Query {
2+
"""
3+
All components running in Alloy.
4+
"""
5+
components: [Component!]!
6+
7+
"""
8+
Component by ID.
9+
"""
10+
component(id: ID!): Component
11+
}
12+
13+
type Component {
14+
"Health status of the component."
15+
health: Health!
16+
17+
"Fully-qualified ID of the component."
18+
id: ID!
19+
20+
"Name of the component."
21+
name: String!
22+
}
23+
24+
"""
25+
Health status of the component.
26+
"""
27+
type Health {
28+
"Message of the health status."
29+
message: String!
30+
31+
"Last updated time of the health status."
32+
lastUpdated: Time!
33+
}

0 commit comments

Comments
 (0)