From 5c1b76c92fea08060f69c0ef89ee19d7a38db838 Mon Sep 17 00:00:00 2001 From: JUDIT GRESKOVITS Date: Fri, 21 Jul 2017 14:24:07 +0100 Subject: [PATCH] feat(cp-gql-mock-server): Add more examples of deployment groups --- .../cp-gql-mock-server/src/complex-data.json | 2050 +++++++++++++++++ packages/cp-gql-mock-server/src/cp-data.json | 232 ++ packages/cp-gql-mock-server/src/data.json | 184 +- packages/cp-gql-mock-server/src/resolvers.js | 20 +- packages/cp-gql-mock-server/src/wp-data.json | 173 ++ yarn.lock | 4 +- 6 files changed, 2470 insertions(+), 193 deletions(-) create mode 100644 packages/cp-gql-mock-server/src/complex-data.json create mode 100644 packages/cp-gql-mock-server/src/cp-data.json create mode 100644 packages/cp-gql-mock-server/src/wp-data.json diff --git a/packages/cp-gql-mock-server/src/complex-data.json b/packages/cp-gql-mock-server/src/complex-data.json new file mode 100644 index 00000000..1ace9882 --- /dev/null +++ b/packages/cp-gql-mock-server/src/complex-data.json @@ -0,0 +1,2050 @@ +{ + "deploymentGroup": { + "id": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "name": "Complex Microservices", + "slug": "complex-microservices", + "status": "ACTIVE" + }, + "services": [ + { + "id": "242607", + "slug": "accountservice", + "name": "AccountService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "729002", + "slug": "addressservice", + "name": "AddressService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "488529", + "slug": "bloomreachservice", + "name": "BloomreachService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "909294", + "slug": "cartservice", + "name": "CartService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "856966", + "slug": "extra service reported by containerpilot: cartservice-https", + "name": "Extra service reported by ContainerPilot: CartService-HTTPS", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "956482", + "slug": "cctokenizationclientservice", + "name": "CCTokenizationClientService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "913200", + "slug": "checkoutservice", + "name": "CheckoutService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "466915", + "slug": "colorswatchservice", + "name": "ColorSwatchService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "638975", + "slug": "emailmarketingservice", + "name": "EmailMarketingService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "706935", + "slug": "favoriteservice", + "name": "FavoriteService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "287366", + "slug": "findinstoreservice", + "name": "FindInStoreService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "927558", + "slug": "fitpredictorservice", + "name": "FitpredictorService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "535349", + "slug": "hidefromcatalogservice", + "name": "HidefromcatalogService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "284889", + "slug": "internationalcheckoutservice", + "name": "InternationalCheckoutService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "674952", + "slug": "internationalposervice", + "name": "InternationalPOService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "855926", + "slug": "internationalshippingservice", + "name": "InternationalShippingService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "10433", + "slug": "inventoryservice", + "name": "InventoryService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "227269", + "slug": "localizationservice", + "name": "LocalizationService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "207752", + "slug": "moreaccountservice", + "name": "MoreAccountService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "380820", + "slug": "navigationservice", + "name": "NavigationService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "869876", + "slug": "ordercreationjob", + "name": "OrderCreationJob", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "880882", + "slug": "orderservice", + "name": "OrderService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "134052", + "slug": "orderservice", + "name": "OrderService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "201374", + "slug": "paymentmethodservice", + "name": "PaymentMethodService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "198108", + "slug": "paymentservice", + "name": "PaymentService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "185292", + "slug": "paymentservice", + "name": "PaymentService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "678590", + "slug": "priceservice", + "name": "PriceService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "419819", + "slug": "privatesaleservice", + "name": "PrivatesaleService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "194381", + "slug": "productarrayservice", + "name": "ProductArrayService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "317244", + "slug": "productdetailservice", + "name": "ProductDetailService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "922095", + "slug": "productservice", + "name": "ProductService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "147698", + "slug": "profileservice", + "name": "ProfileService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "300275", + "slug": "promoservice", + "name": "PromoService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "660331", + "slug": "promotionservice", + "name": "PromotionService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "421766", + "slug": "questionanswerservice", + "name": "QuestionanswerService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "750289", + "slug": "redbaloonservice", + "name": "RedBaloonService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "959890", + "slug": "extra service reported by containerpilot: redbaloonservice-https", + "name": "Extra service reported by ContainerPilot: RedBaloonService-HTTPS", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "356524", + "slug": "reviewsservice", + "name": "ReviewsService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "502691", + "slug": "searchfacetsservice", + "name": "SearchFacetsService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "323973", + "slug": "searchindexservice", + "name": "SearchIndexService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "52512", + "slug": "shoprunnerservice", + "name": "ShopRunnerService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "416078", + "slug": "taxservice", + "name": "TaxService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "365023", + "slug": "toggleservice", + "name": "ToggleService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "998776", + "slug": "useraccountservice", + "name": "UserAccountService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "668748", + "slug": "userauthenticationservice", + "name": "UserAuthenticationService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "52483", + "slug": "waitlistoverlayservice", + "name": "WaitlistOverlayService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "primary-mongodb" + ] + }, + { + "id": "846583", + "slug": "waitlistservice", + "name": "WaitlistService", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "primary-consul", + "slug": "consul", + "name": "Consul", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + }, + { + "id": "primary-nginx", + "slug": "nginx", + "name": "Nginx", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null, + "connections": [ + "242607", + "729002", + "488529", + "909294", + "856966", + "956482", + "913200", + "466915", + "638975", + "706935", + "287366", + "927558", + "535349", + "284889", + "674952", + "855926", + "10433", + "227269", + "207752", + "380820", + "869876", + "880882", + "134052", + "201374", + "198108", + "185292", + "678590", + "419819", + "194381", + "317244", + "922095", + "147698", + "300275", + "660331", + "421766", + "750289", + "959890", + "356524", + "502691", + "323973", + "52512", + "416078", + "365023", + "998776", + "668748", + "52483", + "846583", + "primary-consul" + ] + }, + { + "id": "primary-mongodb", + "slug": "mongodb", + "name": "MongoDB", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "status": null + } + ], + "instances": [ + { + "id": "instance-242607-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "242607", + "name": "instance-AccountService-0" + }, + { + "id": "instance-242607-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "242607", + "name": "instance-AccountService-1" + }, + { + "id": "instance-242607-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "242607", + "name": "instance-AccountService-2" + }, + { + "id": "instance-729002-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "729002", + "name": "instance-AddressService-0" + }, + { + "id": "instance-729002-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "729002", + "name": "instance-AddressService-1" + }, + { + "id": "instance-729002-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "729002", + "name": "instance-AddressService-2" + }, + { + "id": "instance-729002-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "729002", + "name": "instance-AddressService-3" + }, + { + "id": "instance-729002-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "729002", + "name": "instance-AddressService-4" + }, + { + "id": "instance-488529-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "488529", + "name": "instance-BloomreachService-0" + }, + { + "id": "instance-488529-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "488529", + "name": "instance-BloomreachService-1" + }, + { + "id": "instance-488529-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "488529", + "name": "instance-BloomreachService-2" + }, + { + "id": "instance-488529-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "488529", + "name": "instance-BloomreachService-3" + }, + { + "id": "instance-909294-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "909294", + "name": "instance-CartService-0" + }, + { + "id": "instance-909294-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "909294", + "name": "instance-CartService-1" + }, + { + "id": "instance-909294-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "909294", + "name": "instance-CartService-2" + }, + { + "id": "instance-909294-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "909294", + "name": "instance-CartService-3" + }, + { + "id": "instance-909294-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "909294", + "name": "instance-CartService-4" + }, + { + "id": "instance-856966-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "856966", + "name": "instance-Extra service reported by ContainerPilot: CartService-HTTPS-0" + }, + { + "id": "instance-856966-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "856966", + "name": "instance-Extra service reported by ContainerPilot: CartService-HTTPS-1" + }, + { + "id": "instance-856966-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "856966", + "name": "instance-Extra service reported by ContainerPilot: CartService-HTTPS-2" + }, + { + "id": "instance-856966-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "856966", + "name": "instance-Extra service reported by ContainerPilot: CartService-HTTPS-3" + }, + { + "id": "instance-956482-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "956482", + "name": "instance-CCTokenizationClientService-0" + }, + { + "id": "instance-956482-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "956482", + "name": "instance-CCTokenizationClientService-1" + }, + { + "id": "instance-956482-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "956482", + "name": "instance-CCTokenizationClientService-2" + }, + { + "id": "instance-913200-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "913200", + "name": "instance-CheckoutService-0" + }, + { + "id": "instance-913200-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "913200", + "name": "instance-CheckoutService-1" + }, + { + "id": "instance-913200-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "913200", + "name": "instance-CheckoutService-2" + }, + { + "id": "instance-466915-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "466915", + "name": "instance-ColorSwatchService-0" + }, + { + "id": "instance-466915-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "466915", + "name": "instance-ColorSwatchService-1" + }, + { + "id": "instance-466915-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "466915", + "name": "instance-ColorSwatchService-2" + }, + { + "id": "instance-466915-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "466915", + "name": "instance-ColorSwatchService-3" + }, + { + "id": "instance-466915-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "466915", + "name": "instance-ColorSwatchService-4" + }, + { + "id": "instance-638975-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "638975", + "name": "instance-EmailMarketingService-0" + }, + { + "id": "instance-638975-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "638975", + "name": "instance-EmailMarketingService-1" + }, + { + "id": "instance-638975-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "638975", + "name": "instance-EmailMarketingService-2" + }, + { + "id": "instance-706935-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "706935", + "name": "instance-FavoriteService-0" + }, + { + "id": "instance-706935-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "706935", + "name": "instance-FavoriteService-1" + }, + { + "id": "instance-706935-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "706935", + "name": "instance-FavoriteService-2" + }, + { + "id": "instance-706935-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "706935", + "name": "instance-FavoriteService-3" + }, + { + "id": "instance-706935-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "706935", + "name": "instance-FavoriteService-4" + }, + { + "id": "instance-287366-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "287366", + "name": "instance-FindInStoreService-0" + }, + { + "id": "instance-287366-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "287366", + "name": "instance-FindInStoreService-1" + }, + { + "id": "instance-287366-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "287366", + "name": "instance-FindInStoreService-2" + }, + { + "id": "instance-927558-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "927558", + "name": "instance-FitpredictorService-0" + }, + { + "id": "instance-927558-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "927558", + "name": "instance-FitpredictorService-1" + }, + { + "id": "instance-927558-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "927558", + "name": "instance-FitpredictorService-2" + }, + { + "id": "instance-927558-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "927558", + "name": "instance-FitpredictorService-3" + }, + { + "id": "instance-535349-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "535349", + "name": "instance-HidefromcatalogService-0" + }, + { + "id": "instance-535349-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "535349", + "name": "instance-HidefromcatalogService-1" + }, + { + "id": "instance-535349-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "535349", + "name": "instance-HidefromcatalogService-2" + }, + { + "id": "instance-535349-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "535349", + "name": "instance-HidefromcatalogService-3" + }, + { + "id": "instance-284889-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "284889", + "name": "instance-InternationalCheckoutService-0" + }, + { + "id": "instance-284889-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "284889", + "name": "instance-InternationalCheckoutService-1" + }, + { + "id": "instance-284889-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "284889", + "name": "instance-InternationalCheckoutService-2" + }, + { + "id": "instance-284889-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "284889", + "name": "instance-InternationalCheckoutService-3" + }, + { + "id": "instance-284889-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "284889", + "name": "instance-InternationalCheckoutService-4" + }, + { + "id": "instance-674952-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "674952", + "name": "instance-InternationalPOService-0" + }, + { + "id": "instance-674952-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "674952", + "name": "instance-InternationalPOService-1" + }, + { + "id": "instance-674952-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "674952", + "name": "instance-InternationalPOService-2" + }, + { + "id": "instance-674952-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "674952", + "name": "instance-InternationalPOService-3" + }, + { + "id": "instance-855926-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "855926", + "name": "instance-InternationalShippingService-0" + }, + { + "id": "instance-855926-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "855926", + "name": "instance-InternationalShippingService-1" + }, + { + "id": "instance-855926-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "855926", + "name": "instance-InternationalShippingService-2" + }, + { + "id": "instance-855926-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "855926", + "name": "instance-InternationalShippingService-3" + }, + { + "id": "instance-10433-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "10433", + "name": "instance-InventoryService-0" + }, + { + "id": "instance-10433-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "10433", + "name": "instance-InventoryService-1" + }, + { + "id": "instance-10433-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "10433", + "name": "instance-InventoryService-2" + }, + { + "id": "instance-10433-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "10433", + "name": "instance-InventoryService-3" + }, + { + "id": "instance-227269-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "227269", + "name": "instance-LocalizationService-0" + }, + { + "id": "instance-227269-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "227269", + "name": "instance-LocalizationService-1" + }, + { + "id": "instance-227269-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "227269", + "name": "instance-LocalizationService-2" + }, + { + "id": "instance-227269-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "227269", + "name": "instance-LocalizationService-3" + }, + { + "id": "instance-207752-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "207752", + "name": "instance-MoreAccountService-0" + }, + { + "id": "instance-207752-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "207752", + "name": "instance-MoreAccountService-1" + }, + { + "id": "instance-207752-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "207752", + "name": "instance-MoreAccountService-2" + }, + { + "id": "instance-207752-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "207752", + "name": "instance-MoreAccountService-3" + }, + { + "id": "instance-207752-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "207752", + "name": "instance-MoreAccountService-4" + }, + { + "id": "instance-380820-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "380820", + "name": "instance-NavigationService-0" + }, + { + "id": "instance-380820-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "380820", + "name": "instance-NavigationService-1" + }, + { + "id": "instance-380820-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "380820", + "name": "instance-NavigationService-2" + }, + { + "id": "instance-380820-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "380820", + "name": "instance-NavigationService-3" + }, + { + "id": "instance-380820-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "380820", + "name": "instance-NavigationService-4" + }, + { + "id": "instance-869876-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "869876", + "name": "instance-OrderCreationJob-0" + }, + { + "id": "instance-869876-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "869876", + "name": "instance-OrderCreationJob-1" + }, + { + "id": "instance-869876-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "869876", + "name": "instance-OrderCreationJob-2" + }, + { + "id": "instance-869876-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "869876", + "name": "instance-OrderCreationJob-3" + }, + { + "id": "instance-869876-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "869876", + "name": "instance-OrderCreationJob-4" + }, + { + "id": "instance-880882-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "880882", + "name": "instance-OrderService-0" + }, + { + "id": "instance-880882-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "880882", + "name": "instance-OrderService-1" + }, + { + "id": "instance-880882-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "880882", + "name": "instance-OrderService-2" + }, + { + "id": "instance-134052-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "134052", + "name": "instance-OrderService-0" + }, + { + "id": "instance-134052-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "134052", + "name": "instance-OrderService-1" + }, + { + "id": "instance-134052-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "134052", + "name": "instance-OrderService-2" + }, + { + "id": "instance-134052-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "134052", + "name": "instance-OrderService-3" + }, + { + "id": "instance-201374-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "201374", + "name": "instance-PaymentMethodService-0" + }, + { + "id": "instance-201374-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "201374", + "name": "instance-PaymentMethodService-1" + }, + { + "id": "instance-201374-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "201374", + "name": "instance-PaymentMethodService-2" + }, + { + "id": "instance-201374-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "201374", + "name": "instance-PaymentMethodService-3" + }, + { + "id": "instance-201374-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "201374", + "name": "instance-PaymentMethodService-4" + }, + { + "id": "instance-198108-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "198108", + "name": "instance-PaymentService-0" + }, + { + "id": "instance-198108-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "198108", + "name": "instance-PaymentService-1" + }, + { + "id": "instance-198108-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "198108", + "name": "instance-PaymentService-2" + }, + { + "id": "instance-198108-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "198108", + "name": "instance-PaymentService-3" + }, + { + "id": "instance-185292-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "185292", + "name": "instance-PaymentService-0" + }, + { + "id": "instance-185292-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "185292", + "name": "instance-PaymentService-1" + }, + { + "id": "instance-185292-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "185292", + "name": "instance-PaymentService-2" + }, + { + "id": "instance-185292-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "185292", + "name": "instance-PaymentService-3" + }, + { + "id": "instance-678590-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "678590", + "name": "instance-PriceService-0" + }, + { + "id": "instance-678590-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "678590", + "name": "instance-PriceService-1" + }, + { + "id": "instance-678590-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "678590", + "name": "instance-PriceService-2" + }, + { + "id": "instance-678590-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "678590", + "name": "instance-PriceService-3" + }, + { + "id": "instance-419819-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "419819", + "name": "instance-PrivatesaleService-0" + }, + { + "id": "instance-419819-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "419819", + "name": "instance-PrivatesaleService-1" + }, + { + "id": "instance-419819-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "419819", + "name": "instance-PrivatesaleService-2" + }, + { + "id": "instance-419819-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "419819", + "name": "instance-PrivatesaleService-3" + }, + { + "id": "instance-194381-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "194381", + "name": "instance-ProductArrayService-0" + }, + { + "id": "instance-194381-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "194381", + "name": "instance-ProductArrayService-1" + }, + { + "id": "instance-194381-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "194381", + "name": "instance-ProductArrayService-2" + }, + { + "id": "instance-194381-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "194381", + "name": "instance-ProductArrayService-3" + }, + { + "id": "instance-194381-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "194381", + "name": "instance-ProductArrayService-4" + }, + { + "id": "instance-317244-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "317244", + "name": "instance-ProductDetailService-0" + }, + { + "id": "instance-317244-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "317244", + "name": "instance-ProductDetailService-1" + }, + { + "id": "instance-317244-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "317244", + "name": "instance-ProductDetailService-2" + }, + { + "id": "instance-317244-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "317244", + "name": "instance-ProductDetailService-3" + }, + { + "id": "instance-317244-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "317244", + "name": "instance-ProductDetailService-4" + }, + { + "id": "instance-922095-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "922095", + "name": "instance-ProductService-0" + }, + { + "id": "instance-922095-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "922095", + "name": "instance-ProductService-1" + }, + { + "id": "instance-922095-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "922095", + "name": "instance-ProductService-2" + }, + { + "id": "instance-147698-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "147698", + "name": "instance-ProfileService-0" + }, + { + "id": "instance-147698-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "147698", + "name": "instance-ProfileService-1" + }, + { + "id": "instance-147698-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "147698", + "name": "instance-ProfileService-2" + }, + { + "id": "instance-147698-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "147698", + "name": "instance-ProfileService-3" + }, + { + "id": "instance-300275-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "300275", + "name": "instance-PromoService-0" + }, + { + "id": "instance-300275-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "300275", + "name": "instance-PromoService-1" + }, + { + "id": "instance-300275-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "300275", + "name": "instance-PromoService-2" + }, + { + "id": "instance-660331-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "660331", + "name": "instance-PromotionService-0" + }, + { + "id": "instance-660331-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "660331", + "name": "instance-PromotionService-1" + }, + { + "id": "instance-660331-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "660331", + "name": "instance-PromotionService-2" + }, + { + "id": "instance-660331-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "660331", + "name": "instance-PromotionService-3" + }, + { + "id": "instance-660331-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "660331", + "name": "instance-PromotionService-4" + }, + { + "id": "instance-421766-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "421766", + "name": "instance-QuestionanswerService-0" + }, + { + "id": "instance-421766-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "421766", + "name": "instance-QuestionanswerService-1" + }, + { + "id": "instance-421766-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "421766", + "name": "instance-QuestionanswerService-2" + }, + { + "id": "instance-421766-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "421766", + "name": "instance-QuestionanswerService-3" + }, + { + "id": "instance-750289-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "750289", + "name": "instance-RedBaloonService-0" + }, + { + "id": "instance-750289-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "750289", + "name": "instance-RedBaloonService-1" + }, + { + "id": "instance-750289-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "750289", + "name": "instance-RedBaloonService-2" + }, + { + "id": "instance-959890-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "959890", + "name": "instance-Extra service reported by ContainerPilot: RedBaloonService-HTTPS-0" + }, + { + "id": "instance-959890-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "959890", + "name": "instance-Extra service reported by ContainerPilot: RedBaloonService-HTTPS-1" + }, + { + "id": "instance-959890-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "959890", + "name": "instance-Extra service reported by ContainerPilot: RedBaloonService-HTTPS-2" + }, + { + "id": "instance-959890-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "959890", + "name": "instance-Extra service reported by ContainerPilot: RedBaloonService-HTTPS-3" + }, + { + "id": "instance-959890-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "959890", + "name": "instance-Extra service reported by ContainerPilot: RedBaloonService-HTTPS-4" + }, + { + "id": "instance-356524-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "356524", + "name": "instance-ReviewsService-0" + }, + { + "id": "instance-356524-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "356524", + "name": "instance-ReviewsService-1" + }, + { + "id": "instance-356524-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "356524", + "name": "instance-ReviewsService-2" + }, + { + "id": "instance-356524-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "356524", + "name": "instance-ReviewsService-3" + }, + { + "id": "instance-356524-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "356524", + "name": "instance-ReviewsService-4" + }, + { + "id": "instance-502691-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "502691", + "name": "instance-SearchFacetsService-0" + }, + { + "id": "instance-502691-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "502691", + "name": "instance-SearchFacetsService-1" + }, + { + "id": "instance-502691-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "502691", + "name": "instance-SearchFacetsService-2" + }, + { + "id": "instance-323973-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "323973", + "name": "instance-SearchIndexService-0" + }, + { + "id": "instance-323973-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "323973", + "name": "instance-SearchIndexService-1" + }, + { + "id": "instance-323973-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "323973", + "name": "instance-SearchIndexService-2" + }, + { + "id": "instance-323973-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "323973", + "name": "instance-SearchIndexService-3" + }, + { + "id": "instance-52512-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52512", + "name": "instance-ShopRunnerService-0" + }, + { + "id": "instance-52512-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52512", + "name": "instance-ShopRunnerService-1" + }, + { + "id": "instance-52512-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52512", + "name": "instance-ShopRunnerService-2" + }, + { + "id": "instance-52512-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52512", + "name": "instance-ShopRunnerService-3" + }, + { + "id": "instance-52512-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52512", + "name": "instance-ShopRunnerService-4" + }, + { + "id": "instance-416078-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "416078", + "name": "instance-TaxService-0" + }, + { + "id": "instance-416078-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "416078", + "name": "instance-TaxService-1" + }, + { + "id": "instance-416078-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "416078", + "name": "instance-TaxService-2" + }, + { + "id": "instance-416078-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "416078", + "name": "instance-TaxService-3" + }, + { + "id": "instance-416078-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "416078", + "name": "instance-TaxService-4" + }, + { + "id": "instance-365023-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "365023", + "name": "instance-ToggleService-0" + }, + { + "id": "instance-365023-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "365023", + "name": "instance-ToggleService-1" + }, + { + "id": "instance-365023-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "365023", + "name": "instance-ToggleService-2" + }, + { + "id": "instance-365023-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "365023", + "name": "instance-ToggleService-3" + }, + { + "id": "instance-998776-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "998776", + "name": "instance-UserAccountService-0" + }, + { + "id": "instance-998776-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "998776", + "name": "instance-UserAccountService-1" + }, + { + "id": "instance-998776-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "998776", + "name": "instance-UserAccountService-2" + }, + { + "id": "instance-998776-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "998776", + "name": "instance-UserAccountService-3" + }, + { + "id": "instance-668748-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "668748", + "name": "instance-UserAuthenticationService-0" + }, + { + "id": "instance-668748-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "668748", + "name": "instance-UserAuthenticationService-1" + }, + { + "id": "instance-668748-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "668748", + "name": "instance-UserAuthenticationService-2" + }, + { + "id": "instance-668748-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "668748", + "name": "instance-UserAuthenticationService-3" + }, + { + "id": "instance-52483-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52483", + "name": "instance-WaitlistOverlayService-0" + }, + { + "id": "instance-52483-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52483", + "name": "instance-WaitlistOverlayService-1" + }, + { + "id": "instance-52483-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "52483", + "name": "instance-WaitlistOverlayService-2" + }, + { + "id": "instance-846583-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "846583", + "name": "instance-WaitlistService-0" + }, + { + "id": "instance-846583-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "846583", + "name": "instance-WaitlistService-1" + }, + { + "id": "instance-846583-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "846583", + "name": "instance-WaitlistService-2" + }, + { + "id": "instance-846583-3", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "846583", + "name": "instance-WaitlistService-3" + }, + { + "id": "instance-846583-4", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "846583", + "name": "instance-WaitlistService-4" + }, + { + "id": "instance-primary-consul-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-consul", + "name": "instance-Consul-0" + }, + { + "id": "instance-primary-consul-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-consul", + "name": "instance-Consul-1" + }, + { + "id": "instance-primary-consul-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-consul", + "name": "instance-Consul-2" + }, + { + "id": "instance-primary-nginx-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-nginx", + "name": "instance-Nginx-0" + }, + { + "id": "instance-primary-mongodb-0", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-mongodb", + "name": "instance-MongoDB-0" + }, + { + "id": "instance-primary-mongodb-1", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-mongodb", + "name": "instance-MongoDB-1" + }, + { + "id": "instance-primary-mongodb-2", + "status": "RUNNING", + "healthy": "UNKNOWN", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639", + "serviceId": "primary-mongodb", + "name": "instance-MongoDB-2" + } + ] +} diff --git a/packages/cp-gql-mock-server/src/cp-data.json b/packages/cp-gql-mock-server/src/cp-data.json new file mode 100644 index 00000000..217708c0 --- /dev/null +++ b/packages/cp-gql-mock-server/src/cp-data.json @@ -0,0 +1,232 @@ +{ + "deploymentGroup": { + "id": "24b16df5-7553-45d9-ab7f-62d541764b67", + "name": "cpexample", + "slug": "cpexample", + "imported": true, + "status": "ACTIVE", + "__typename": "DeploymentGroup" + }, + "services": [ + { + "id": "af6a5cd2-291f-490b-bf3b-141b010635db", + "name": "frontend", + "slug": "frontend", + "status": null, + "__typename": "Service", + "branches": [], + "connections": [ + "aea06a05-830a-46d3-bdc1-9dcba97303de" + ], + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67" + }, + { + "id": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql", + "slug": "mysql", + "status": null, + "__typename": "Service", + "branches": [ + { + "name": "mysql-primary", + "slug": "mysql-primary", + "instances": [ + "1188dfa0-efac-4142-8a6d-615841dc04e7" + ], + "__typename": "Service", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "id": "mysql-primary-mysql-primary" + }, + { + "name": "mysql", + "slug": "mysql", + "instances": [ + "0d757833-7912-4777-81ce-f302c653cfda", + "3ec9132f-9093-4644-a2fd-a9749d0011ca", + "6e460ff1-7bc3-4c9b-b093-f37b1134f37b", + "991cbab5-b773-4651-b5b9-b95c299cf50f" + ], + "__typename": "Service", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "id": "mysql-mysql" + } + ], + "connections": [], + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67" + }, + { + "id": "908b64d9-070b-4c9a-b7d8-757ec3c9c7f4", + "name": "producer", + "slug": "producer", + "status": null, + "__typename": "Service", + "branches": [], + "connections": [ + "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1" + ], + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67" + }, + { + "id": "aea06a05-830a-46d3-bdc1-9dcba97303de", + "name": "api", + "slug": "api", + "status": null, + "__typename": "Service", + "branches": [], + "connections": [ + "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "908b64d9-070b-4c9a-b7d8-757ec3c9c7f4" + ], + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67" + }, + { + "id": "e30c9c43-5af6-4adb-b3cd-8c383d911a0a", + "name": "consul", + "slug": "consul", + "status": null, + "__typename": "Service", + "branches": [], + "connections": [], + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67" + } + ], + "instances": [ + { + "id": "f1fb3c1d-9e0e-4538-b2ad-1124bce2459e", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "af6a5cd2-291f-490b-bf3b-141b010635db", + "name": "frontend-0" + }, + { + "id": "c5c7ae33-cfe1-43cc-9e9b-6f453de3888d", + "status": "FAILED", + "healthy": "UNAVAILABLE", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "af6a5cd2-291f-490b-bf3b-141b010635db", + "name": "frontend-1" + }, + { + "id": "1188dfa0-efac-4142-8a6d-615841dc04e7", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-primary-0" + }, + { + "id": "0d757833-7912-4777-81ce-f302c653cfda", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-0" + }, + { + "id": "3ec9132f-9093-4644-a2fd-a9749d0011ca", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-1" + }, + { + "id": "6e460ff1-7bc3-4c9b-b093-f37b1134f37b", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-2" + }, + { + "id": "991cbab5-b773-4651-b5b9-b95c299cf50f", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-3" + }, + { + "id": "0d757833-7912-4777-81ce-f302c653cfda", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-0" + }, + { + "id": "1188dfa0-efac-4142-8a6d-615841dc04e7", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-1" + }, + { + "id": "6e460ff1-7bc3-4c9b-b093-f37b1134f37b", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-2" + }, + { + "id": "3ec9132f-9093-4644-a2fd-a9749d0011ca", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-3" + }, + { + "id": "991cbab5-b773-4651-b5b9-b95c299cf50f", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "2c872d69-25d1-46e9-84d8-dcc89ea0d5a1", + "name": "mysql-4" + }, + { + "id": "1e3dc868-8738-41b3-a70f-ea332823429c", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "908b64d9-070b-4c9a-b7d8-757ec3c9c7f4", + "name": "producer-0" + }, + { + "id": "2ddf4ce0-0cc6-4df9-ac0e-7518e9fff19e", + "status": "RUNNING", + "healthy": "UNKNOWN", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "aea06a05-830a-46d3-bdc1-9dcba97303de", + "name": "api-0" + }, + { + "id": "c9698959-eaa2-4b32-9333-fc2591702cf7", + "status": "RUNNING", + "healthy": "UNAVAILABLE", + "__typename": "Instance", + "deploymentGroupId": "24b16df5-7553-45d9-ab7f-62d541764b67", + "serviceId": "e30c9c43-5af6-4adb-b3cd-8c383d911a0a", + "name": "consul-0" + } + ] +} diff --git a/packages/cp-gql-mock-server/src/data.json b/packages/cp-gql-mock-server/src/data.json index d3a879e7..42d5ca50 100644 --- a/packages/cp-gql-mock-server/src/data.json +++ b/packages/cp-gql-mock-server/src/data.json @@ -11,187 +11,5 @@ "lastName": "Greskovits", "email": "name@email.com" } - }, - "deploymentGroups": [ - { - "id": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "slug": "warp-records-blog", - "name": "WarpRecords Blog" - }, - { - "id": "9fcb374d-a267-4c2a-9d9c-ba469b804639", - "slug": "forest-foundation-testing", - "name": "Forest Foundation Testing" - }, - { - "id": "ac2c2498-e865-4ee3-9e26-8c75a81cbe25", - "slug": "forest-foundation-production", - "name": "Forest Foundation Production" - } - ], - "services": [ - { - "id": "081a792c-47e0-4439-924b-2efa9788ae9e", - "slug": "nginx", - "name": "Nginx", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "connections": [ - "be227788-74f1-4e5b-a85f-b5c71cbae8d8" - ] - }, - { - "id": "be227788-74f1-4e5b-a85f-b5c71cbae8d8", - "slug": "wordpress", - "name": "Wordpress", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "connections": [ - "6a0eee76-c019-413b-9d5f-44712b55b993", - "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "4ee4103e-1a52-4099-a48e-01588f597c70" - ] - }, - { - "id": "6a0eee76-c019-413b-9d5f-44712b55b993", - "slug": "nfs", - "name": "NFS", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" - }, - { - "id": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "slug": "memcached", - "name": "Memcached", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" - }, - { - "id": "4ee4103e-1a52-4099-a48e-01588f597c70", - "slug": "percona", - "name": "Percona", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "branches": [{ - "id": "dmklaskdls", - "slug": "percona", - "name": "Percona", - "instances": ["c3ec7633-a02b-4615-86a0-9e6faeaae94b"] - }, { - "id": "dmklaskdls", - "slug": "percona-primary", - "name": "percona-primary", - "instances": ["c2b5fec2-31e2-41a7-b7fc-cd0bb1822e76"] - }] - }, - { - "id": "97c68055-db88-45c9-ad49-f26da4264777", - "slug": "consul", - "name": "Consul", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" - }, - { - "id": "primary-consul", - "slug": "consul", - "name": "Consul", - "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" - }, - { - "id": "primary-nginx", - "slug": "nginx", - "name": "Nginx", - "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" - }, - { - "id": "primary-mongodb", - "slug": "mongodb", - "name": "MongoDB", - "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" - } - ], - "instances": [ - { - "id": "309ecd9f-ac03-474b-aff7-4bd2e743296c", - "name": "wordpress_01", - "serviceId": "be227788-74f1-4e5b-a85f-b5c71cbae8d8", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "0db6db53-de6f-4378-839e-5d5b452fbaf2", - "name": "nfs_01", - "serviceId": "6a0eee76-c019-413b-9d5f-44712b55b993", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "250c8a6c-7d02-49a9-8abd-e1c22773041d", - "name": "consul", - "serviceId": "97c68055-db88-45c9-ad49-f26da4264777", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "UNHEALTHY" - }, - { - "id": "2c921f3a-8bc3-4f57-9cd7-789ebae72061", - "name": "memcache_01", - "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "68d3046e-8e34-4f5d-a0e5-db3795a250fd", - "name": "memcache_02", - "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "2ea99763-3b44-4179-8393-d66d94961051", - "name": "memcache_03", - "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "25f6bc62-63b8-4959-908e-1f6d7ff6341d", - "name": "memcache_04", - "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "8be01042-0281-4a77-a357-25979e87bf3d", - "name": "memcache_05", - "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "3d652e9d-73e8-4a6f-8171-84fa83740662", - "name": "nginx", - "serviceId": "081a792c-47e0-4439-924b-2efa9788ae9e", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - }, - { - "id": "c3ec7633-a02b-4615-86a0-9e6faeaae94b", - "name": "percona-primary", - "serviceId": "4ee4103e-1a52-4099-a48e-01588f597c70", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "UNHEALTHY" - }, - { - "id": "c2b5fec2-31e2-41a7-b7fc-cd0bb1822e76", - "name": "percona-secondary", - "serviceId": "4ee4103e-1a52-4099-a48e-01588f597c70", - "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", - "status": "RUNNING", - "healthy": "HEALTHY" - } - ] + } } diff --git a/packages/cp-gql-mock-server/src/resolvers.js b/packages/cp-gql-mock-server/src/resolvers.js index abd4742e..fa390d72 100644 --- a/packages/cp-gql-mock-server/src/resolvers.js +++ b/packages/cp-gql-mock-server/src/resolvers.js @@ -9,14 +9,19 @@ const random = require('lodash.random'); const uniq = require('lodash.uniq'); const yaml = require('js-yaml'); +const wpData = require('./wp-data.json'); +const cpData = require('./cp-data.json'); +const complexData = require('./complex-data.json'); + const { datacenter, - portal, - deploymentGroups, - services, - instances + portal } = require('./data.json'); +const deploymentGroups = [wpData.deploymentGroup, cpData.deploymentGroup, complexData.deploymentGroup]; +const services = wpData.services.concat(cpData.services).concat(complexData.services); +const instances = wpData.instances.concat(cpData.instances).concat(complexData.instances); + const find = (query = {}) => item => Object.keys(query).every(key => item[key] === query[key]); @@ -39,12 +44,12 @@ const getUnfilteredServices = query => { instances: instancesResolver(service), branches: (service.branches || []).map(service => Object.assign({}, service, { - instances: () => - Promise.resolve( + instances: () => { + return Promise.resolve( flatten( service.instances.map(id => instances.filter(find({ id }))) ) - ) + )} }) ) }); @@ -73,7 +78,6 @@ const getServices = query => { ({ status }) => ['DELETED', 'EXITED'].indexOf(status) < 0 ) ); - // get all the serviceIds of the available instances // and then get the servcies with those ids return uniq( diff --git a/packages/cp-gql-mock-server/src/wp-data.json b/packages/cp-gql-mock-server/src/wp-data.json new file mode 100644 index 00000000..046e099d --- /dev/null +++ b/packages/cp-gql-mock-server/src/wp-data.json @@ -0,0 +1,173 @@ +{ + "deploymentGroup": + { + "id": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "slug": "wordpress-blog-example", + "name": "Wordpress Blog Example" + }, + "services": [ + { + "id": "081a792c-47e0-4439-924b-2efa9788ae9e", + "slug": "nginx", + "name": "Nginx", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "connections": [ + "be227788-74f1-4e5b-a85f-b5c71cbae8d8" + ] + }, + { + "id": "be227788-74f1-4e5b-a85f-b5c71cbae8d8", + "slug": "wordpress", + "name": "Wordpress", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "connections": [ + "6a0eee76-c019-413b-9d5f-44712b55b993", + "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "4ee4103e-1a52-4099-a48e-01588f597c70" + ] + }, + { + "id": "6a0eee76-c019-413b-9d5f-44712b55b993", + "slug": "nfs", + "name": "NFS", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" + }, + { + "id": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "slug": "memcached", + "name": "Memcached", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" + }, + { + "id": "4ee4103e-1a52-4099-a48e-01588f597c70", + "slug": "percona", + "name": "Percona", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "branches": [{ + "id": "dmklaskdls", + "slug": "percona", + "name": "Percona", + "instances": ["c3ec7633-a02b-4615-86a0-9e6faeaae94b"] + }, { + "id": "dmklaskdls", + "slug": "percona-primary", + "name": "percona-primary", + "instances": ["c2b5fec2-31e2-41a7-b7fc-cd0bb1822e76"] + }] + }, + { + "id": "97c68055-db88-45c9-ad49-f26da4264777", + "slug": "consul", + "name": "Consul", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401" + }, + { + "id": "primary-consul", + "slug": "consul", + "name": "Consul", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" + }, + { + "id": "primary-nginx", + "slug": "nginx", + "name": "Nginx", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" + }, + { + "id": "primary-mongodb", + "slug": "mongodb", + "name": "MongoDB", + "deploymentGroupId": "9fcb374d-a267-4c2a-9d9c-ba469b804639" + } + ], + "instances": [ + { + "id": "309ecd9f-ac03-474b-aff7-4bd2e743296c", + "name": "wordpress_01", + "serviceId": "be227788-74f1-4e5b-a85f-b5c71cbae8d8", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "0db6db53-de6f-4378-839e-5d5b452fbaf2", + "name": "nfs_01", + "serviceId": "6a0eee76-c019-413b-9d5f-44712b55b993", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "250c8a6c-7d02-49a9-8abd-e1c22773041d", + "name": "consul", + "serviceId": "97c68055-db88-45c9-ad49-f26da4264777", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "UNHEALTHY" + }, + { + "id": "2c921f3a-8bc3-4f57-9cd7-789ebae72061", + "name": "memcache_01", + "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "68d3046e-8e34-4f5d-a0e5-db3795a250fd", + "name": "memcache_02", + "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "2ea99763-3b44-4179-8393-d66d94961051", + "name": "memcache_03", + "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "25f6bc62-63b8-4959-908e-1f6d7ff6341d", + "name": "memcache_04", + "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "8be01042-0281-4a77-a357-25979e87bf3d", + "name": "memcache_05", + "serviceId": "6d31aff4-de1e-4042-a983-fbd23d5c530c", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "3d652e9d-73e8-4a6f-8171-84fa83740662", + "name": "nginx", + "serviceId": "081a792c-47e0-4439-924b-2efa9788ae9e", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + }, + { + "id": "c3ec7633-a02b-4615-86a0-9e6faeaae94b", + "name": "percona-primary", + "serviceId": "4ee4103e-1a52-4099-a48e-01588f597c70", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "UNHEALTHY" + }, + { + "id": "c2b5fec2-31e2-41a7-b7fc-cd0bb1822e76", + "name": "percona-secondary", + "serviceId": "4ee4103e-1a52-4099-a48e-01588f597c70", + "deploymentGroupId": "e0ea0c02-55cc-45fe-8064-3e5176a59401", + "status": "RUNNING", + "healthy": "HEALTHY" + } + ] +} diff --git a/yarn.lock b/yarn.lock index 609327d0..44fc80cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3723,11 +3723,11 @@ extsprintf@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" -extsprintf@1.2.0: +extsprintf@1.2.0, extsprintf@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.2.0.tgz#5ad946c22f5b32ba7f8cd7426711c6e8a3fc2529" -extsprintf@1.3.0, extsprintf@^1.2.0: +extsprintf@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"