Skip to content
Draft
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
241 changes: 230 additions & 11 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ type Application implements ActivityLogger & Node & Workload {
imageVulnerabilityHistory(
"""Get vulnerability summary from given date until today."""
from: Date!
): ImageVulnerabilityHistory!
): ImageVulnerabilityHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""List of ingresses for the application."""
ingresses: [Ingress!]!
Expand Down Expand Up @@ -959,7 +959,7 @@ type Application implements ActivityLogger & Node & Workload {
): ValkeyConnection!

"""Get the mean time to fix history for an application."""
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory!
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")
}

"""Authentication integrations for the application."""
Expand Down Expand Up @@ -1111,6 +1111,11 @@ type ApplicationInstanceEdge {

enum ApplicationInstanceState {
FAILING

"""
The instance is waiting to be placed on a server, for example because there is not enough CPU or memory available.
"""
PENDING
RUNNING
STARTING
TERMINATED
Expand Down Expand Up @@ -1138,7 +1143,8 @@ type ApplicationInstanceStatus {
message: String!

"""
Whether the container is passing its readiness check and can receive traffic.
Whether the instance is passing its readiness check and can receive traffic.
An instance does not receive traffic while a component added by the platform is failing.
"""
ready: Boolean!
state: ApplicationInstanceState!
Expand Down Expand Up @@ -1251,6 +1257,40 @@ type ApplicationRestartedActivityLogEntry implements ActivityLogEntry & Node {
teamSlug: Slug!
}

"""
An issue raised when a new version of an application is not being rolled out.
"""
type ApplicationRolloutStuckIssue implements Issue & Node {
"""Unique identifier for this issue."""
id: ID!

"""A human-readable description of the issue."""
message: String!

"""Why the rollout is stuck."""
reason: ApplicationRolloutStuckReason!

"""The severity of the issue."""
severity: Severity!

"""The team environment where the issue was detected."""
teamEnvironment: TeamEnvironment!

"""The workload whose rollout is stuck."""
workload: Workload!
}

"""Why a rollout of a new application version is stuck."""
enum ApplicationRolloutStuckReason {
"""
Instances of the new version could not be created, for example because of a quota or a platform policy.
"""
INSTANCE_CREATION_FAILED

"""The new version did not become ready within the allowed time."""
TIMED_OUT
}

type ApplicationScaledActivityLogEntry implements ActivityLogEntry & Node {
"""
The identity of the actor who performed the action. The value is either the name of a service account, or the email address of a user.
Expand Down Expand Up @@ -1298,10 +1338,53 @@ type ApplicationScaling {
"""The minimum number of application instances."""
minInstances: Int!

"""
The current state of automatic scaling for the application.
Null if automatic scaling is not set up for the application in the environment.
"""
status: ApplicationScalingStatus

"""Scaling strategies for the application."""
strategies: [ScalingStrategy!]!
}

"""The state of automatic scaling for an application."""
enum ApplicationScalingState {
"""Automatic scaling is working as expected."""
ACTIVE

"""
Automatic scaling is turned off because the application has been scaled down to zero instances.
"""
DISABLED

"""The application needs more instances than the configured maximum."""
LIMITED_BY_MAXIMUM

"""
The metrics used for automatic scaling cannot be read, so the number of instances is not adjusted.
"""
METRICS_UNAVAILABLE

"""The platform is currently unable to change the number of instances."""
UNABLE_TO_SCALE
}

"""The current state of automatic scaling for an application."""
type ApplicationScalingStatus {
"""The number of instances currently running."""
currentInstances: Int!

"""The number of instances that automatic scaling wants to run."""
desiredInstances: Int!

"""A user-friendly description of the current state."""
message: String!

"""The state of automatic scaling."""
state: ApplicationScalingState!
}

enum ApplicationState {
"""The application is not running."""
NOT_RUNNING
Expand Down Expand Up @@ -4201,6 +4284,9 @@ type IssueTeamFacetItem {
enum IssueType {
"""Raised when an application is stuck in a restart loop."""
APPLICATION_RESTART_LOOP

"""Raised when a new version of an application is not being rolled out."""
APPLICATION_ROLLOUT_STUCK
DEPRECATED_INGRESS
DEPRECATED_REGISTRY

Expand Down Expand Up @@ -4352,7 +4438,7 @@ type Job implements ActivityLogger & Node & Workload {
imageVulnerabilityHistory(
"""Get vulnerability summary from given date until today."""
from: Date!
): ImageVulnerabilityHistory!
): ImageVulnerabilityHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""Issues that affect the job."""
issues(
Expand Down Expand Up @@ -4500,7 +4586,7 @@ type Job implements ActivityLogger & Node & Workload {
): ValkeyConnection!

"""Get the mean time to fix history for a job."""
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory!
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")
}

union JobAuthIntegrations = EntraIDAuthIntegration | MaskinportenAuthIntegration
Expand Down Expand Up @@ -4751,11 +4837,23 @@ type JobRunEdge {
}

type JobRunInstance implements Node {
"""The time the job run instance was created."""
created: Time!

"""The globally unique ID of the job run instance."""
id: ID!

"""The container image of the job run instance."""
image: ContainerImage!

"""The name of the job run instance."""
name: String!

"""The number of times the job run instance has been restarted."""
restarts: Int!

"""The current status of the job run instance."""
status: JobRunInstanceStatus!
}

type JobRunInstanceConnection {
Expand All @@ -4777,6 +4875,57 @@ type JobRunInstanceEdge {
node: JobRunInstance!
}

"""The state of a job run instance."""
enum JobRunInstanceState {
"""
The job run instance has a problem that prevents it from running or completing successfully.
"""
FAILING

"""
The job run instance is waiting to be placed on a server, for example because there is not enough CPU or memory available.
"""
PENDING

"""The job run instance is running."""
RUNNING

"""The job run instance is starting."""
STARTING

"""The job run instance completed successfully."""
SUCCEEDED

"""The state of the job run instance is unknown."""
UNKNOWN
}

"""The status of a job run instance."""
type JobRunInstanceStatus {
"""
The exit code from the last termination of the job run instance, if applicable.
"""
lastExitCode: Int

"""
The reason the job run instance last terminated, if applicable.
This is populated even when the instance is currently running, to help debug restarts.
"""
lastExitReason: String

"""
The timestamp of the last termination of the job run instance, if applicable.
This is populated even when the instance is currently running, to help debug restarts.
"""
lastExitTimestamp: Time

"""A user-friendly description of the current state."""
message: String!

"""The current state of the job run instance."""
state: JobRunInstanceState!
}

enum JobRunState {
"""Job run is failed."""
FAILED
Expand Down Expand Up @@ -7219,7 +7368,7 @@ type Query {
imageVulnerabilityHistory(
"""Get vulnerability summary from given date until today."""
from: Date!
): ImageVulnerabilityHistory!
): ImageVulnerabilityHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""
Issues across teams in the tenant, ordered by severity unless otherwise specified.
Expand Down Expand Up @@ -7423,7 +7572,7 @@ type Query {
): UserConnection!

"""Get the mean time to fix history for all teams."""
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory!
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""List per-workload vulnerability summaries across all teams."""
vulnerabilitySummaries(
Expand Down Expand Up @@ -9888,7 +10037,7 @@ type Team implements ActivityLogger & Node {
imageVulnerabilityHistory(
"""Get vulnerability summary from given date until today."""
from: Date!
): ImageVulnerabilityHistory!
): ImageVulnerabilityHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""Overall inventory of resources for the team."""
inventoryCounts: TeamInventoryCounts!
Expand Down Expand Up @@ -10172,7 +10321,7 @@ type Team implements ActivityLogger & Node {
viewerIsOwner: Boolean!

"""Get the mean time to fix history for a team."""
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory!
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""Fetch vulnerability summaries for workloads in the team."""
vulnerabilitySummaries(
Expand Down Expand Up @@ -13781,7 +13930,7 @@ interface Workload implements ActivityLogger & Node {
imageVulnerabilityHistory(
"""Get vulnerability summary from given date until today."""
from: Date!
): ImageVulnerabilityHistory!
): ImageVulnerabilityHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")

"""Issues that affect the workload."""
issues(
Expand Down Expand Up @@ -13904,7 +14053,7 @@ interface Workload implements ActivityLogger & Node {
): ValkeyConnection!

"""Get the mean time to fix history for a workload."""
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory!
vulnerabilityFixHistory(from: Date!): VulnerabilityFixHistory! @deprecated(reason: "No longer used by Console. Retained for compatibility while consumer usage is assessed.")
}

"""Workload connection."""
Expand Down Expand Up @@ -14330,6 +14479,76 @@ type WorkloadVulnerabilitySummaryEdge {
node: WorkloadVulnerabilitySummary!
}

"""
A problem detected while running the workload.
Repeated occurrences of the same problem are combined into a single event.
"""
type WorkloadWarningEvent implements Node & WorkloadEvent {
"""Number of times the problem has been observed."""
count: Int!

"""When the problem was first observed."""
firstSeenAt: Time!

"""Unique event identifier."""
id: ID!

"""
Name of the affected instance, if the problem concerns a single instance.
"""
instance: String

"""The kind of problem."""
kind: WorkloadWarningEventKind!

"""Description of the problem."""
message: String!

"""When the problem was last observed."""
triggeredAt: Time!
}

"""The kind of problem reported by a warning event."""
enum WorkloadWarningEventKind {
"""The instance keeps crashing and is restarted with increasing delay."""
CRASH_LOOP

"""A readiness, liveness or startup check failed."""
HEALTH_CHECK_FAILED

"""The container image could not be downloaded."""
IMAGE_PULL_FAILED

"""
New instances could not be created, for example because of a quota or a platform policy.
"""
INSTANCE_CREATION_FAILED

"""
The instance was stopped by the platform, for example to free up resources.
"""
INSTANCE_STOPPED

"""Files or storage could not be mounted into the instance."""
MOUNT_FAILED

"""
No server with enough available resources was found to run the instance.
"""
PLACEMENT_FAILED

"""A job run failed permanently."""
RUN_FAILED

"""Automatic scaling is unable to adjust the number of instances."""
SCALING_FAILED

"""
The instance could not be started, for example because of missing configuration.
"""
START_FAILED
}

"""A workload affected by a specific vulnerability."""
type WorkloadWithVulnerability implements Node {
"""The globally unique ID of the workload vulnerability node."""
Expand Down
Loading