diff --git a/packages/cp-frontend/src/containers/services/topology.js b/packages/cp-frontend/src/containers/services/topology.js index abc3b87e..f5bc4e34 100644 --- a/packages/cp-frontend/src/containers/services/topology.js +++ b/packages/cp-frontend/src/containers/services/topology.js @@ -5,7 +5,7 @@ import styled from 'styled-components'; import forceArray from 'force-array'; import unitcalc from 'unitcalc'; -import ServicesQuery from '@graphql/Services.gql'; +import ServicesQuery from '@graphql/ServicesTopology.gql'; import { processServicesForTopology } from '@root/state/selectors'; import { toggleServicesQuickActions } from '@root/state/actions'; import { withNotFound, GqlPaths } from '@containers/navigation'; diff --git a/packages/cp-frontend/src/graphql/ServicesTopology.gql b/packages/cp-frontend/src/graphql/ServicesTopology.gql new file mode 100644 index 00000000..5bc7d44f --- /dev/null +++ b/packages/cp-frontend/src/graphql/ServicesTopology.gql @@ -0,0 +1,26 @@ +#import "./DeploymentGroupInfo.gql" +#import "./ServiceInfo.gql" + +query Services($deploymentGroupSlug: String!) { + deploymentGroup(slug: $deploymentGroupSlug) { + ...DeploymentGroupInfo + services { + ...ServiceInfo + branches { + name + slug + instances { + id + status + healthy + } + } + connections + instances { + id + status + healthy + } + } + } +}