joyent-portal/packages/cp-frontend/src/graphql/Services.gql
2017-08-30 10:20:05 +01:00

52 lines
951 B
GraphQL

#import "./DeploymentGroupInfo.gql"
#import "./ServiceInfo.gql"
query Services(
$deploymentGroupSlug: String!
$metricNames: [MetricName]!
$start: String!
$end: String!
) {
deploymentGroup(slug: $deploymentGroupSlug) {
...DeploymentGroupInfo
services {
...ServiceInfo
branches {
name
slug
instances {
id
status
healthy
metrics(names: $metricNames, start: $start, end: $end) {
instance
name
start
end
metrics {
time
value
}
}
}
}
connections
instances {
id
status
healthy
metrics(names: $metricNames, start: $start, end: $end) {
instance
name
start
end
metrics {
time
value
}
}
}
}
}
}