mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-19 20:46:40 +00:00
This patch completes part of the work in #20 by porting the code for faas-containerd in-tree. When tested, I was able to deploy and then remove figlet from the store on `x86_64`. In a follow-up PR, duplication will be removed where possible and consolidated with updated documentation. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
24 lines
769 B
Go
Generated
24 lines
769 B
Go
Generated
// Copyright (c) Alex Ellis 2017. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
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"`
|
|
}
|