mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 08:25:03 +00:00
26 lines
768 B
Go
26 lines
768 B
Go
// License: OpenFaaS Community Edition (CE) EULA
|
|
// Copyright (c) 2017,2019-2024 OpenFaaS Author(s)
|
|
|
|
// Copyright (c) Alex Ellis 2017. All rights reserved.
|
|
|
|
package requests
|
|
|
|
// PrometheusInnerAlertLabel PrometheusInnerAlertLabel
|
|
type PrometheusInnerAlertLabel struct {
|
|
AlertName string `json:"alertname"`
|
|
FunctionName string `json:"function_name"`
|
|
}
|
|
|
|
// PrometheusInnerAlert PrometheusInnerAlert
|
|
type PrometheusInnerAlert struct {
|
|
Status string `json:"status"`
|
|
Labels PrometheusInnerAlertLabel `json:"labels"`
|
|
}
|
|
|
|
// PrometheusAlert as produced by AlertManager
|
|
type PrometheusAlert struct {
|
|
Status string `json:"status"`
|
|
Receiver string `json:"receiver"`
|
|
Alerts []PrometheusInnerAlert `json:"alerts"`
|
|
}
|