Code Review
/
ric-plt
/
o1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fetch RIC active alarms via O1
[ric-plt/o1.git]
/
agent
/
pkg
/
sbi
/
types.go
diff --git
a/agent/pkg/sbi/types.go
b/agent/pkg/sbi/types.go
index
454bbbf
..
ae522bb
100755
(executable)
--- a/
agent/pkg/sbi/types.go
+++ b/
agent/pkg/sbi/types.go
@@
-23,13
+23,13
@@
import (
"time"
apimodel "gerrit.oran-osc.org/r/ric-plt/o1mediator/pkg/appmgrmodel"
"time"
apimodel "gerrit.oran-osc.org/r/ric-plt/o1mediator/pkg/appmgrmodel"
+ "github.com/prometheus/alertmanager/api/v2/client/alert"
)
type SBIClient struct {
)
type SBIClient struct {
- host string
- baseUrl string
- prot []string
- timeout time.Duration
+ appmgrAddr string
+ alertmgrAddr string
+ timeout time.Duration
}
type SBIClientInterface interface {
}
type SBIClientInterface interface {
@@
-42,4
+42,6
@@
type SBIClientInterface interface {
ModifyXappConfig(xappConfig *apimodel.XAppConfig) error
GetAllPodStatus(namespace string) ([]PodStatus, error)
ModifyXappConfig(xappConfig *apimodel.XAppConfig) error
GetAllPodStatus(namespace string) ([]PodStatus, error)
+
+ GetAlerts() (*alert.GetAlertsOK, error)
}
}