Skip to content

Instantly share code, notes, and snippets.

@Pothulapati
Last active April 4, 2019 17:49
Show Gist options
  • Save Pothulapati/825e7e405fdb7bdb06ed10432181954c to your computer and use it in GitHub Desktop.
Save Pothulapati/825e7e405fdb7bdb06ed10432181954c to your computer and use it in GitHub Desktop.
type Resource {
name: String!
type: String
isLive: Bool
isReady: Bool
isMeshed: Bool
labels: [String]!
parent: Resource
children: [Resource]
incoming: [Resource]
outgoing: [Resource]
metrics: [Metrics]
}
type Metrics {
edge: Edge
time_window: String
success_count: Int
failure_count: Int
latency_ms_p50: Int
latency_ms_p95: Int
latency_ms_p99: Int
tls_request_count: Int
actual_success_count: Int
actual_failure_count: Int
}
type Edge {
from: Resource
to: Resource
}
type Exchange {
edge: Edge
request: Request
response: Response
}
type Traffic {
edge: Edge
request: Request
count: Int
best: Int
worst: Int
last: Int
success_rate: Int
}
type Request {
method: String
path: String
authority: String
}
type Response {
latency: Int
http_status: Int
grpc_status: Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment