File size: 703 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
extend type Service {
"""
alertStats returns aggregated statistics about alerts for this service.
"""
alertStats(input: ServiceAlertStatsOptions): AlertStats!
"""
alertsByStatus returns the number of alerts in each status for this service.
"""
alertsByStatus: AlertsByStatus!
}
type AlertsByStatus {
acked: Int!
unacked: Int!
closed: Int!
}
input ServiceAlertStatsOptions {
start: ISOTimestamp
end: ISOTimestamp
tsOptions: TimeSeriesOptions
}
"""
AlertStats returns aggregated statistics about alerts.
"""
type AlertStats {
avgAckSec: [TimeSeriesBucket!]!
avgCloseSec: [TimeSeriesBucket!]!
alertCount: [TimeSeriesBucket!]!
escalatedCount: [TimeSeriesBucket!]!
}
|