mirror of
https://github.com/datarhei/core.git
synced 2025-10-30 19:06:24 +08:00
27 lines
376 B
GraphQL
27 lines
376 B
GraphQL
extend type Query {
|
|
metrics(query: MetricsInput!): Metrics!
|
|
}
|
|
|
|
input MetricsInput {
|
|
timerange_seconds: Int
|
|
interval_seconds: Int
|
|
metrics: [MetricInput!]!
|
|
}
|
|
|
|
input MetricInput {
|
|
name: String!
|
|
labels: Map
|
|
}
|
|
|
|
type Metrics {
|
|
timerange_seconds: Int
|
|
interval_seconds: Int
|
|
metrics: [Metric!]!
|
|
}
|
|
|
|
type Metric {
|
|
name: String!
|
|
labels: Map
|
|
values: [MetricsResponseValue!]!
|
|
}
|