mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
improve CoreSv1.Status API with more detailed metrics
- add new metrics (off by default) - add Debug boolean option for full metric details - add Timezone option for 'running_since' field - update default metrics shown and their constants - remove utils.GetStartTime(), now use process metrics
This commit is contained in:
committed by
Dan Christian Bogos
parent
98f770c61b
commit
62c30ab539
@@ -31,15 +31,6 @@ import (
|
||||
"github.com/google/go-cmp/cmp"
|
||||
)
|
||||
|
||||
func TestGetStartTime(t *testing.T) {
|
||||
startCGRateSTime = time.Date(2020, time.April, 18, 23, 0, 0, 0, time.UTC)
|
||||
eOut := startCGRateSTime.Format(time.UnixDate)
|
||||
rcv := GetStartTime()
|
||||
if !reflect.DeepEqual(eOut, rcv) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", eOut, rcv)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFirstNonEmpty(t *testing.T) {
|
||||
//only check with an empty string
|
||||
rcv := FirstNonEmpty(EmptyString)
|
||||
|
||||
Reference in New Issue
Block a user