Skip to content

Commit

Permalink
added events handler in graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
vijeyash1 committed Feb 19, 2024
1 parent ec9505e commit c751564
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 16 deletions.
200 changes: 200 additions & 0 deletions graphqlserver/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions graphqlserver/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 19 additions & 16 deletions graphqlserver/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ type Query {
allClusterDeprecatedAPIsCounts: [ClusterAPIsCount!]!
allClusterDeletedAPIsCounts: [ClusterAPIsCount!]!
allClusterNamespaceResourceCounts: [ClusterNamespaceResourceCount!]!
eventsByClusterAndNamespace(clusterName: String!, namespace: String!): [Event!]!
}
type Event {
ClusterName: String
Id: String
EventTime: String
OpType: String
Name: String
Namespace: String
Kind: String
Message: String
Reason: String
Host: String
Event: String
ImageName: String
FirstTime: String
LastTime: String
ExpiryDate: String
}

type Namespace {
Expand Down Expand Up @@ -210,22 +228,7 @@ type Resource {
eventTime: String!
}

type Event {
ClusterName: String
Id: String
EventTime: String
OpType: String
Name: String
Namespace: String
Kind: String
Message: String
Reason: String
Host: String
Event: String
FirstTime: String
LastTime: String
ExpiryDate: String
}


type Rakkess {
ClusterName: String
Expand Down
37 changes: 37 additions & 0 deletions graphqlserver/graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c751564

Please sign in to comment.