{
"method": "ThresholdSv1.GetThreshold",
"params": [{
"Tenant": "cgrates.org",
"ID": "THD_ACNT_1002"
}]
}{
"id": null,
"result": {
"Tenant": "cgrates.org",
"ID": "THD_ACNT_1002",
"Hits": 0,
"Snooze": "0001-01-01T00:00:00Z"
},
"error": null
}{
"method":"ThresholdSv1.ProcessEvent",
"params":[
{
"ThresholdIDs":[
"THD_ACNT_1002"],
"Tenant":"cgrates.org",
"ID":"c6b75b5a-4654-4582-9940-740cc7874c1c",
"Context":null,
"Time":null,
"Event":{
"Account": "1002",
"BalanceID": "data",
"EventSource": "AccountS",
"EventType": "StatUpdate",
"Units": 100000000.0
}}
],
"id":8
}{
"method": "ThresholdSv1.GetThreshold",
"params": [{
"Tenant": "cgrates.org",
"ID": "THD_ACNT_1002"
}]
}{
"id": null,
"result": {
"Tenant": "cgrates.org",
"ID": "THD_ACNT_1002",
"Hits": 1,
"Snooze": "2018-08-12T07:02:38.2015689Z"
},
"error": null
}#Tenant[0],ID[1],FilterType[2],FilterFieldName[3],FilterFieldValues[4],ActivationInterval[5]
cgrates.org,FLTR_ACNT_BALANCE,*string,EventType,BalanceUpdate,2014-07-29T15:00:00Z#Tenant[0],Id[1],FilterIDs[2],ActivationInterval[3],MaxHits[4],MinHits[5],MinSleep[6],Blocker[7],Weight[8],ActionIDs[9],Async[10]
cgrates.org,THD_ACNT_BALANCE,FLTR_ACNT_BALANCE,2014-07-29T15:00:00Z,-1,1,1s,false,10,ACT_LOG_WARNING,false{
"method":"ApierV1.AddBalance",
"params":[
{
"Tenant":"cgrates.org",
"Account":"1002",
"BalanceType":"*monetary",
"Value":0.1,
"ExpiryTime":"",
"RatingSubject":"",
"DestinationId":"",
"Weight":666,
"SharedGroup":"",
"Overwrite":false,
"BalanceId":"data"
}],
"id":0
}#Tenant[0],Id[1],FilterIDs[2],ActivationInterval[3],MaxHits[4],MinHits[5],MinSleep[6],Blocker[7],Weight[8],ActionIDs[9],Async[10]
cgrates.org,THD_ACNT_BALANCE,FLTR_ACNT_BALANCE,2014-07-29T15:00:00Z,-1,1,1s,false,10,ACT_LOG_WARNING,false#Tenant[0],ID[1],FilterType[2],FilterFieldName[3],FilterFieldValues[4],ActivationInterval[5]
cgrates.org,FLTR_ACNT_BALANCE,*string,EventType,BalanceUpdate,2014-07-29T15:00:00Z
cgrates.org,FLTR_ACNT_BALANCE,*string,BalanceID,data,2014-07-29T15:00:00Z{
"method":"ApierV1.AddBalance",
"params":[
{
"Tenant":"cgrates.org",
"Account":"1002",
"BalanceType":"*monetary",
"Value":0.1,
"ExpiryTime":"",
"RatingSubject":"",
"DestinationId":"",
"Weight":666,
"SharedGroup":"",
"Overwrite":false,
"BalanceID":"data"
}],
"id":0
}root@841b62cecdc1:/# ngrep -t -W byline port 2012 -d lo
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip or ip6) and ( port 2012 )
#
T 2018/08/12 13:01:00.200483 127.0.0.1:55796 -> 127.0.0.1:2012 [AP]
{"method":"PubSubV1.Publish","params":[{"ActionIds":"","EventName":"ACTION_TRIGGER_FIRED","Id":"","Uuid":""}],"id":267}
#
T 2018/08/12 13:01:00.200708 127.0.0.1:2012 -> 127.0.0.1:55796 [AP]
{"id":267,"result":"OK","error":null}{
"method":"ThresholdSv1.ProcessEvent",
"params":[
{
"ThresholdIDs":[
"Context":null,
"Time":null,
"Event":{
"Account": "1002",
"Value":1,
"BalanceID":"data",
"EventType":"BalanceUpdate"
}}
],
"id":8
}
T 2018/08/12 13:02:48.127283 127.0.0.1:55796 -> 127.0.0.1:2012 [AP]
{"method":"PubSubV1.Publish","params":[{"ActionIds":"ACT_LOG_WARNING","EventName":"ACTION_TRIGGER_FIRED","Id":"","Uuid":"35579b08-38b2-4a60-b8c0-964cb5bbd53e"}],"id":268}
#
T 2018/08/12 13:02:48.127438 127.0.0.1:2012 -> 127.0.0.1:55796 [AP]
{"id":268,"result":"OK","error":null}
{
"method":"ApierV1.AddBalance",
"params":[
{
"Tenant":"cgrates.org",
"Account":"1002",
"BalanceType":"*monetary",
"Value":0.1,
"ExpiryTime":"",
"RatingSubject":"",
"DestinationId":"",
"Weight":666,
"SharedGroup":"",
"Overwrite":false,
"BalanceID":"data"
}],
"id":0
}root@841b62cecdc1:/# ngrep -t -W byline port 2012 -d lo
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip or ip6) and ( port 2012 )
#
T 2018/08/12 13:01:00.200483 127.0.0.1:55796 -> 127.0.0.1:2012 [AP]
{"method":"PubSubV1.Publish","params":[{"ActionIds":"","EventName":"ACTION_TRIGGER_FIRED","Id":"","Uuid":""}],"id":267}
#
T 2018/08/12 13:01:00.200708 127.0.0.1:2012 -> 127.0.0.1:55796 [AP]
{"id":267,"result":"OK","error":null}To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/21d94c36-e31a-4aad-816e-4ba0bccba8ac%40googlegroups.com.