api for getting alert states

This commit is contained in:
Łukasz Magiera
2021-08-26 15:44:45 +02:00
parent 81b1dd12f8
commit 5366821144
4 changed files with 46 additions and 0 deletions
+5
View File
@@ -5,6 +5,7 @@ import (
"fmt"
apitypes "github.com/filecoin-project/lotus/api/types"
"github.com/filecoin-project/lotus/journal/alerting"
"github.com/google/uuid"
@@ -33,6 +34,10 @@ type Common interface {
LogList(context.Context) ([]string, error) //perm:write
LogSetLevel(context.Context, string, string) error //perm:write
// LogAlerts returns list of all, active and inactive alerts tracked by the
// node
LogAlerts(ctx context.Context) ([]alerting.Alert, error)
// MethodGroup: Common
// Version provides information about API provider