Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add some rmr library stats into metrics
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
types.go
diff --git
a/pkg/xapp/types.go
b/pkg/xapp/types.go
index
c9fe1ec
..
6ae981a
100755
(executable)
--- a/
pkg/xapp/types.go
+++ b/
pkg/xapp/types.go
@@
-29,7
+29,8
@@
type RMRClient struct {
ready int
wg sync.WaitGroup
mux sync.Mutex
ready int
wg sync.WaitGroup
mux sync.Mutex
- stat map[string]Counter
+ statc map[string]Counter
+ statg map[string]Gauge
consumers []MessageConsumer
readyCb ReadyCB
readyCbParams interface{}
consumers []MessageConsumer
readyCb ReadyCB
readyCbParams interface{}
@@
-82,6
+83,13
@@
type PortData struct {
MaxRetryOnFailure int
}
MaxRetryOnFailure int
}
+type SymptomDataParams struct {
+ Timeout uint64
+ FromTime uint64
+ ToTime uint64
+ importantOnly bool
+}
+
// @todo: read these from config or somewhere else
const (
SERVICE_HTTP = "SERVICE_%s_%s_HTTP_PORT"
// @todo: read these from config or somewhere else
const (
SERVICE_HTTP = "SERVICE_%s_%s_HTTP_PORT"