Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(analytics): Backend updates for Application dashboard CRUD v2 #2889

Merged
1 change: 0 additions & 1 deletion litmus-portal/graphql-server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ require (
go.mongodb.org/mongo-driver v1.3.5
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect
golang.org/x/tools v0.0.0-20200428211428-0c9eba77bc32
gopkg.in/src-d/go-git.v4 v4.13.1
gopkg.in/yaml.v2 v2.3.0
k8s.io/apimachinery v0.18.6
Expand Down
3 changes: 1 addition & 2 deletions litmus-portal/graphql-server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@ github.com/litmuschaos/chaos-operator v0.0.0-20210224131102-ca6a465ed348/go.mod
github.com/litmuschaos/chaos-scheduler v0.0.0-20210607090343-9952190ad032 h1:Nza94oOqOsao8eFWC19iFviS8XsxS2eVk7Q0a9WDKBE=
github.com/litmuschaos/chaos-scheduler v0.0.0-20210607090343-9952190ad032/go.mod h1:7EO6kbZKeJGKzkchgQepCxywvqNFNvNHW0G+u9923AY=
github.com/litmuschaos/elves v0.0.0-20201107015738-552d74669e3c/go.mod h1:DsbHGNUq/78NZozWVVI9Q6eBei4I+JjlkkD5aibJ3MQ=
github.com/litmuschaos/litmus v0.0.0-20210610061227-c0d001df3f33 h1:TdJzS++HpQWypGHPXyUGSQzN7K5eajy9/K34UQLVSBw=
github.com/litmuschaos/litmus v0.0.0-20210610070956-555e651c89ea h1:nWDzJZvpiJc37yKO456Cv9TRukS5PoeO/pSmRtxVb6A=
github.com/litmuschaos/litmus v0.0.0-20210614060828-454347e15c01 h1:UAkWlQRwDcP/MWlJiMZ20vWWc+fmVVK8hAxjd8DpjAA=
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
github.com/lpabon/godbc v0.1.1/go.mod h1:Jo9QV0cf3U6jZABgiJ2skINAXb9j8m51r07g4KI92ZA=
github.com/lucas-clemente/aes12 v0.0.0-20171027163421-cd47fb39b79f/go.mod h1:JpH9J1c9oX6otFSgdUHwUBUizmKlrMjxWnIAjff4m04=
Expand Down
51 changes: 45 additions & 6 deletions litmus-portal/graphql-server/graph/analytics.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ type DSResponse {
input createDBInput {
ds_id: String!
db_name: String!
db_type: String!
db_type_name: String!
db_type_id: String!
db_information: String
chaos_event_query_template: String!
chaos_verdict_query_template: String!
application_metadata_map: [applicationMetadata]
panel_groups: [panelGroup]!
end_time: String!
start_time: String!
Expand All @@ -43,20 +48,37 @@ input createDBInput {
refresh_rate: String!
}

input updataDBInput {
input applicationMetadata {
namespace: String!
applications: [resource]
}

input resource {
kind: String!
names: [String]
}

input updateDBInput {
db_id: String!
ds_id: String!
db_name: String!
db_type: String!
db_type_name: String!
db_type_id: String!
db_information: String
chaos_event_query_template: String!
chaos_verdict_query_template: String!
application_metadata_map: [applicationMetadata]
panel_groups: [updatePanelGroupInput]!
end_time: String!
start_time: String!
cluster_id: ID!
refresh_rate: String!
panel_groups: [updatePanelGroupInput]!
}

input updatePanelGroupInput {
panel_group_name: String!
panel_group_id: String!
panels: [panel]
}

input panelGroup {
Expand All @@ -72,6 +94,7 @@ input panel {
x_axis_down: String
unit: String
panel_group_id: String
created_at: String
prom_queries: [promQuery]
panel_options: panelOption
panel_name: String!
Expand Down Expand Up @@ -162,11 +185,16 @@ type option {
name: String!
}

type listDashboardReponse {
type listDashboardResponse {
ds_id: String!
db_id: String!
db_name: String!
db_type: String!
db_type_id: String!
db_type_name: String!
db_information: String
chaos_event_query_template: String!
chaos_verdict_query_template: String!
application_metadata_map: [applicationMetadataResponse]
cluster_name: String
ds_name: String
ds_type: String
Expand All @@ -180,6 +208,16 @@ type listDashboardReponse {
updated_at: String
}

type applicationMetadataResponse {
namespace: String!
applications: [resourceResponse]
}

type resourceResponse {
kind: String!
names: [String]
}

type panelGroupResponse {
panels: [panelResponse]
panel_group_name: String!
Expand All @@ -195,6 +233,7 @@ type panelResponse {
prom_queries: [promQueryResponse]
panel_options: panelOptionResponse
panel_name: String
created_at: String
}

type panelOptionResponse {
Expand Down
Loading