Skip to content

Commit

Permalink
Add error message in log request (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Jun 2, 2022
1 parent 86a6863 commit 6f23bf5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions log.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

# The list of logs
type Logs {
# When this field is not empty, frontend should display it in UI
errorReason: String

logs: [Log!]!
}

Expand Down
9 changes: 8 additions & 1 deletion ondemand-pod-log.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ input OndemandContainergQueryCondition {
serviceInstanceId: ID
}

type PodContainers {
# When this field is not empty, frontend should display it in UI
errorReason: String

containers: [String!]!
}

extend type Query {
listContainers(condition: OndemandContainergQueryCondition): [String!]!
listContainers(condition: OndemandContainergQueryCondition): PodContainers
ondemandPodLogs(condition: OndemandLogQueryCondition): Logs
}

0 comments on commit 6f23bf5

Please sign in to comment.