mirror of
https://github.com/openfaas/faas.git
synced 2025-06-22 23:03:24 +00:00
Unmarshall the service name
This commit is contained in:
@ -22,7 +22,18 @@ type AlexaRequestBody struct {
|
||||
Request AlexaRequest `json:"request"`
|
||||
}
|
||||
|
||||
type PrometheusAlert struct {
|
||||
Status string `json:"status"`
|
||||
Receiver string `json:"receiver"`
|
||||
type PrometheusInnerAlertLabel struct {
|
||||
AlertName string `json:"alertname"`
|
||||
FunctionName string `json:"function_name"`
|
||||
}
|
||||
|
||||
type PrometheusInnerAlert struct {
|
||||
Status string `json:"status"`
|
||||
Labels PrometheusInnerAlertLabel `json:"labels"`
|
||||
}
|
||||
|
||||
type PrometheusAlert struct {
|
||||
Status string `json:"status"`
|
||||
Receiver string `json:"receiver"`
|
||||
Alerts []PrometheusInnerAlert `json:"alerts"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user