Fetch RIC active alarms via O1
[ric-plt/o1.git] / agent / pkg / sbi / types.go
index c15b725..ae522bb 100755 (executable)
@@ -23,13 +23,13 @@ import (
        "time"
 
        apimodel "gerrit.oran-osc.org/r/ric-plt/o1mediator/pkg/appmgrmodel"
+       "github.com/prometheus/alertmanager/api/v2/client/alert"
 )
 
 type SBIClient struct {
-       host    string
-       baseUrl string
-       prot    []string
-       timeout time.Duration
+       appmgrAddr   string
+       alertmgrAddr string
+       timeout          time.Duration
 }
 
 type SBIClientInterface interface {
@@ -40,4 +40,8 @@ type SBIClientInterface interface {
 
        BuildXappConfig(name, namespace string, configData interface{}) *apimodel.XAppConfig
        ModifyXappConfig(xappConfig *apimodel.XAppConfig) error
+
+       GetAllPodStatus(namespace string) ([]PodStatus, error)
+
+       GetAlerts() (*alert.GetAlertsOK, error)
 }