Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.04 KB | None | 0 0
  1. //// BEFORE ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. root@DebianDev:/usr/local/goapps/bin# cgr-console 'accounts Tenant="cgrates.org" AccountIds=["1001"]'[
  3. {
  4. "ID": "cgrates.org:1001",
  5. "BalanceMap": {
  6. "*data": [
  7. {
  8. "Uuid": "3d22daf6-7cde-4ba3-9859-62f22656f641",
  9. "ID": "",
  10. "Value": 102400,
  11. "Directions": {
  12. "*out": true
  13. },
  14. "ExpirationDate": "0001-01-01T00:00:00Z",
  15. "Weight": 10,
  16. "DestinationIDs": {},
  17. "RatingSubject": "",
  18. "Categories": {},
  19. "SharedGroups": {},
  20. "Timings": null,
  21. "TimingIDs": {},
  22. "Disabled": false,
  23. "Factor": null,
  24. "Blocker": false
  25. }
  26. ],
  27. "*monetary": [
  28. {
  29. "Uuid": "afd02789-6a1a-4971-ade9-5cc015a18623",
  30. "ID": "",
  31. "Value": 5,
  32. "Directions": {
  33. "*out": true
  34. },
  35. "ExpirationDate": "0001-01-01T00:00:00Z",
  36. "Weight": 20,
  37. "DestinationIDs": {},
  38. "RatingSubject": "",
  39. "Categories": {},
  40. "SharedGroups": {},
  41. "Timings": null,
  42. "TimingIDs": {},
  43. "Disabled": false,
  44. "Factor": null,
  45. "Blocker": false
  46. },
  47. {
  48. "Uuid": "6d5c9c18-9ae5-4c3f-86d9-fe55fc721630",
  49. "ID": "",
  50. "Value": 5,
  51. "Directions": {
  52. "*out": true
  53. },
  54. "ExpirationDate": "0001-01-01T00:00:00Z",
  55. "Weight": 10,
  56. "DestinationIDs": {},
  57. "RatingSubject": "",
  58. "Categories": {},
  59. "SharedGroups": {
  60. "SHARED_A": true
  61. },
  62. "Timings": null,
  63. "TimingIDs": {},
  64. "Disabled": false,
  65. "Factor": null,
  66. "Blocker": false
  67. }
  68. ],
  69. "*voice": [
  70. {
  71. "Uuid": "a77eeeed-b54c-45b9-9cba-bcba85f25e08",
  72. "ID": "",
  73. "Value": 90,
  74. "Directions": {
  75. "*out": true
  76. },
  77. "ExpirationDate": "0001-01-01T00:00:00Z",
  78. "Weight": 20,
  79. "DestinationIDs": {
  80. "DST_1002": true
  81. },
  82. "RatingSubject": "SPECIAL_1002",
  83. "Categories": {},
  84. "SharedGroups": {},
  85. "Timings": null,
  86. "TimingIDs": {},
  87. "Disabled": false,
  88. "Factor": null,
  89. "Blocker": false
  90. },
  91. {
  92. "Uuid": "653f38e3-cbfe-4423-8281-cd006ebc88f9",
  93. "ID": "",
  94. "Value": 120,
  95. "Directions": {
  96. "*out": true
  97. },
  98. "ExpirationDate": "0001-01-01T00:00:00Z",
  99. "Weight": 20,
  100. "DestinationIDs": {
  101. "DST_1003": true
  102. },
  103. "RatingSubject": "",
  104. "Categories": {},
  105. "SharedGroups": {},
  106. "Timings": null,
  107. "TimingIDs": {},
  108. "Disabled": false,
  109. "Factor": null,
  110. "Blocker": false
  111. }
  112. ]
  113. },
  114. "UnitCounters": {
  115. "*monetary": [
  116. {
  117. "CounterType": "*event",
  118. "Counters": [
  119. {
  120. "Value": 0,
  121. "Filter": {
  122. "Uuid": null,
  123. "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  124. "Type": "*monetary",
  125. "Value": null,
  126. "Directions": {
  127. "*out": true
  128. },
  129. "ExpirationDate": null,
  130. "Weight": null,
  131. "DestinationIDs": {
  132. "FS_USERS": true
  133. },
  134. "RatingSubject": null,
  135. "Categories": null,
  136. "SharedGroups": null,
  137. "TimingIDs": null,
  138. "Timings": null,
  139. "Disabled": null,
  140. "Factor": null,
  141. "Blocker": null
  142. }
  143. }
  144. ]
  145. }
  146. ]
  147. },
  148. "ActionTriggers": [
  149. {
  150. "ID": "STANDARD_TRIGGERS",
  151. "UniqueID": "9e8ecd20-27a8-406f-906b-b3c96a41c7ad",
  152. "ThresholdType": "*min_balance",
  153. "ThresholdValue": 2,
  154. "Recurrent": false,
  155. "MinSleep": 0,
  156. "ExpirationDate": "0001-01-01T00:00:00Z",
  157. "ActivationDate": "0001-01-01T00:00:00Z",
  158. "Balance": {
  159. "Uuid": null,
  160. "ID": null,
  161. "Type": "*monetary",
  162. "Value": null,
  163. "Directions": {
  164. "*out": true
  165. },
  166. "ExpirationDate": null,
  167. "Weight": null,
  168. "DestinationIDs": null,
  169. "RatingSubject": null,
  170. "Categories": null,
  171. "SharedGroups": null,
  172. "TimingIDs": null,
  173. "Timings": null,
  174. "Disabled": null,
  175. "Factor": null,
  176. "Blocker": null
  177. },
  178. "Weight": 10,
  179. "ActionsID": "LOG_WARNING",
  180. "MinQueuedItems": 0,
  181. "Executed": false,
  182. "LastExecutionTime": "0001-01-01T00:00:00Z"
  183. },
  184. {
  185. "ID": "STANDARD_TRIGGERS",
  186. "UniqueID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  187. "ThresholdType": "*max_event_counter",
  188. "ThresholdValue": 5,
  189. "Recurrent": false,
  190. "MinSleep": 0,
  191. "ExpirationDate": "0001-01-01T00:00:00Z",
  192. "ActivationDate": "0001-01-01T00:00:00Z",
  193. "Balance": {
  194. "Uuid": null,
  195. "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  196. "Type": "*monetary",
  197. "Value": null,
  198. "Directions": {
  199. "*out": true
  200. },
  201. "ExpirationDate": null,
  202. "Weight": null,
  203. "DestinationIDs": {
  204. "FS_USERS": true
  205. },
  206. "RatingSubject": null,
  207. "Categories": null,
  208. "SharedGroups": null,
  209. "TimingIDs": null,
  210. "Timings": null,
  211. "Disabled": null,
  212. "Factor": null,
  213. "Blocker": null
  214. },
  215. "Weight": 10,
  216. "ActionsID": "LOG_WARNING",
  217. "MinQueuedItems": 0,
  218. "Executed": false,
  219. "LastExecutionTime": "0001-01-01T00:00:00Z"
  220. },
  221. {
  222. "ID": "STANDARD_TRIGGERS",
  223. "UniqueID": "9ddbe164-cea6-48df-bbd9-d282176f3c8b",
  224. "ThresholdType": "*max_balance",
  225. "ThresholdValue": 20,
  226. "Recurrent": false,
  227. "MinSleep": 0,
  228. "ExpirationDate": "0001-01-01T00:00:00Z",
  229. "ActivationDate": "0001-01-01T00:00:00Z",
  230. "Balance": {
  231. "Uuid": null,
  232. "ID": null,
  233. "Type": "*monetary",
  234. "Value": null,
  235. "Directions": {
  236. "*out": true
  237. },
  238. "ExpirationDate": null,
  239. "Weight": null,
  240. "DestinationIDs": null,
  241. "RatingSubject": null,
  242. "Categories": null,
  243. "SharedGroups": null,
  244. "TimingIDs": null,
  245. "Timings": null,
  246. "Disabled": null,
  247. "Factor": null,
  248. "Blocker": null
  249. },
  250. "Weight": 10,
  251. "ActionsID": "LOG_WARNING",
  252. "MinQueuedItems": 0,
  253. "Executed": false,
  254. "LastExecutionTime": "0001-01-01T00:00:00Z"
  255. },
  256. {
  257. "ID": "STANDARD_TRIGGERS",
  258. "UniqueID": "ae2d5591-2311-4d14-81c4-01fbd4f147f3",
  259. "ThresholdType": "*max_balance",
  260. "ThresholdValue": 100,
  261. "Recurrent": false,
  262. "MinSleep": 0,
  263. "ExpirationDate": "0001-01-01T00:00:00Z",
  264. "ActivationDate": "0001-01-01T00:00:00Z",
  265. "Balance": {
  266. "Uuid": null,
  267. "ID": null,
  268. "Type": "*monetary",
  269. "Value": null,
  270. "Directions": {
  271. "*out": true
  272. },
  273. "ExpirationDate": null,
  274. "Weight": null,
  275. "DestinationIDs": null,
  276. "RatingSubject": null,
  277. "Categories": null,
  278. "SharedGroups": null,
  279. "TimingIDs": null,
  280. "Timings": null,
  281. "Disabled": null,
  282. "Factor": null,
  283. "Blocker": null
  284. },
  285. "Weight": 10,
  286. "ActionsID": "DISABLE_AND_LOG",
  287. "MinQueuedItems": 0,
  288. "Executed": false,
  289. "LastExecutionTime": "0001-01-01T00:00:00Z"
  290. }
  291. ],
  292. "AllowNegative": false,
  293. "Disabled": false
  294. }
  295. ]
  296.  
  297. /// AFTER /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  298. root@DebianDev:/usr/local/goapps/bin# cgr-console 'accounts Tenant="cgrates.org" AccountIds=["1001"]'
  299. [
  300. {
  301. "ID": "cgrates.org:1001",
  302. "BalanceMap": {
  303. "*data": [
  304. {
  305. "Uuid": "3d22daf6-7cde-4ba3-9859-62f22656f641",
  306. "ID": "",
  307. "Value": 102400,
  308. "Directions": {
  309. "*out": true
  310. },
  311. "ExpirationDate": "0001-01-01T00:00:00Z",
  312. "Weight": 10,
  313. "DestinationIDs": {},
  314. "RatingSubject": "",
  315. "Categories": {},
  316. "SharedGroups": {},
  317. "Timings": null,
  318. "TimingIDs": {},
  319. "Disabled": false,
  320. "Factor": null,
  321. "Blocker": false
  322. }
  323. ],
  324. "*monetary": [
  325. {
  326. "Uuid": "afd02789-6a1a-4971-ade9-5cc015a18623",
  327. "ID": "",
  328. "Value": 5,
  329. "Directions": {
  330. "*out": true
  331. },
  332. "ExpirationDate": "0001-01-01T00:00:00Z",
  333. "Weight": 20,
  334. "DestinationIDs": {},
  335. "RatingSubject": "",
  336. "Categories": {},
  337. "SharedGroups": {},
  338. "Timings": null,
  339. "TimingIDs": {},
  340. "Disabled": false,
  341. "Factor": null,
  342. "Blocker": false
  343. },
  344. {
  345. "Uuid": "6d5c9c18-9ae5-4c3f-86d9-fe55fc721630",
  346. "ID": "",
  347. "Value": 5,
  348. "Directions": {
  349. "*out": true
  350. },
  351. "ExpirationDate": "0001-01-01T00:00:00Z",
  352. "Weight": 10,
  353. "DestinationIDs": {},
  354. "RatingSubject": "",
  355. "Categories": {},
  356. "SharedGroups": {
  357. "SHARED_A": true
  358. },
  359. "Timings": null,
  360. "TimingIDs": {},
  361. "Disabled": false,
  362. "Factor": null,
  363. "Blocker": false
  364. }
  365. ],
  366. "*voice": [
  367. {
  368. "Uuid": "a77eeeed-b54c-45b9-9cba-bcba85f25e08",
  369. "ID": "",
  370. "Value": 90000000000,
  371. "Directions": {
  372. "*out": true
  373. },
  374. "ExpirationDate": "0001-01-01T00:00:00Z",
  375. "Weight": 20,
  376. "DestinationIDs": {
  377. "DST_1002": true
  378. },
  379. "RatingSubject": "SPECIAL_1002",
  380. "Categories": {},
  381. "SharedGroups": {},
  382. "Timings": null,
  383. "TimingIDs": {},
  384. "Disabled": false,
  385. "Factor": null,
  386. "Blocker": false
  387. },
  388. {
  389. "Uuid": "653f38e3-cbfe-4423-8281-cd006ebc88f9",
  390. "ID": "",
  391. "Value": 120000000000,
  392. "Directions": {
  393. "*out": true
  394. },
  395. "ExpirationDate": "0001-01-01T00:00:00Z",
  396. "Weight": 20,
  397. "DestinationIDs": {
  398. "DST_1003": true
  399. },
  400. "RatingSubject": "",
  401. "Categories": {},
  402. "SharedGroups": {},
  403. "Timings": null,
  404. "TimingIDs": {},
  405. "Disabled": false,
  406. "Factor": null,
  407. "Blocker": false
  408. }
  409. ]
  410. },
  411. "UnitCounters": {
  412. "*monetary": [
  413. {
  414. "CounterType": "*event",
  415. "Counters": [
  416. {
  417. "Value": 0,
  418. "Filter": {
  419. "Uuid": null,
  420. "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  421. "Type": "*monetary",
  422. "Value": null,
  423. "Directions": {
  424. "*out": true
  425. },
  426. "ExpirationDate": null,
  427. "Weight": null,
  428. "DestinationIDs": {
  429. "FS_USERS": true
  430. },
  431. "RatingSubject": null,
  432. "Categories": null,
  433. "SharedGroups": null,
  434. "TimingIDs": null,
  435. "Timings": null,
  436. "Disabled": null,
  437. "Factor": null,
  438. "Blocker": null
  439. }
  440. }
  441. ]
  442. }
  443. ]
  444. },
  445. "ActionTriggers": [
  446. {
  447. "ID": "STANDARD_TRIGGERS",
  448. "UniqueID": "9e8ecd20-27a8-406f-906b-b3c96a41c7ad",
  449. "ThresholdType": "*min_balance",
  450. "ThresholdValue": 2,
  451. "Recurrent": false,
  452. "MinSleep": 0,
  453. "ExpirationDate": "0001-01-01T00:00:00Z",
  454. "ActivationDate": "0001-01-01T00:00:00Z",
  455. "Balance": {
  456. "Uuid": null,
  457. "ID": null,
  458. "Type": "*monetary",
  459. "Value": null,
  460. "Directions": {
  461. "*out": true
  462. },
  463. "ExpirationDate": null,
  464. "Weight": null,
  465. "DestinationIDs": null,
  466. "RatingSubject": null,
  467. "Categories": null,
  468. "SharedGroups": null,
  469. "TimingIDs": null,
  470. "Timings": null,
  471. "Disabled": null,
  472. "Factor": null,
  473. "Blocker": null
  474. },
  475. "Weight": 10,
  476. "ActionsID": "LOG_WARNING",
  477. "MinQueuedItems": 0,
  478. "Executed": false,
  479. "LastExecutionTime": "0001-01-01T00:00:00Z"
  480. },
  481. {
  482. "ID": "STANDARD_TRIGGERS",
  483. "UniqueID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  484. "ThresholdType": "*max_event_counter",
  485. "ThresholdValue": 5,
  486. "Recurrent": false,
  487. "MinSleep": 0,
  488. "ExpirationDate": "0001-01-01T00:00:00Z",
  489. "ActivationDate": "0001-01-01T00:00:00Z",
  490. "Balance": {
  491. "Uuid": null,
  492. "ID": "fe4a12d1-82ce-4fa9-ba35-d5032fa3bf09",
  493. "Type": "*monetary",
  494. "Value": null,
  495. "Directions": {
  496. "*out": true
  497. },
  498. "ExpirationDate": null,
  499. "Weight": null,
  500. "DestinationIDs": {
  501. "FS_USERS": true
  502. },
  503. "RatingSubject": null,
  504. "Categories": null,
  505. "SharedGroups": null,
  506. "TimingIDs": null,
  507. "Timings": null,
  508. "Disabled": null,
  509. "Factor": null,
  510. "Blocker": null
  511. },
  512. "Weight": 10,
  513. "ActionsID": "LOG_WARNING",
  514. "MinQueuedItems": 0,
  515. "Executed": false,
  516. "LastExecutionTime": "0001-01-01T00:00:00Z"
  517. },
  518. {
  519. "ID": "STANDARD_TRIGGERS",
  520. "UniqueID": "9ddbe164-cea6-48df-bbd9-d282176f3c8b",
  521. "ThresholdType": "*max_balance",
  522. "ThresholdValue": 20,
  523. "Recurrent": false,
  524. "MinSleep": 0,
  525. "ExpirationDate": "0001-01-01T00:00:00Z",
  526. "ActivationDate": "0001-01-01T00:00:00Z",
  527. "Balance": {
  528. "Uuid": null,
  529. "ID": null,
  530. "Type": "*monetary",
  531. "Value": null,
  532. "Directions": {
  533. "*out": true
  534. },
  535. "ExpirationDate": null,
  536. "Weight": null,
  537. "DestinationIDs": null,
  538. "RatingSubject": null,
  539. "Categories": null,
  540. "SharedGroups": null,
  541. "TimingIDs": null,
  542. "Timings": null,
  543. "Disabled": null,
  544. "Factor": null,
  545. "Blocker": null
  546. },
  547. "Weight": 10,
  548. "ActionsID": "LOG_WARNING",
  549. "MinQueuedItems": 0,
  550. "Executed": false,
  551. "LastExecutionTime": "0001-01-01T00:00:00Z"
  552. },
  553. {
  554. "ID": "STANDARD_TRIGGERS",
  555. "UniqueID": "ae2d5591-2311-4d14-81c4-01fbd4f147f3",
  556. "ThresholdType": "*max_balance",
  557. "ThresholdValue": 100,
  558. "Recurrent": false,
  559. "MinSleep": 0,
  560. "ExpirationDate": "0001-01-01T00:00:00Z",
  561. "ActivationDate": "0001-01-01T00:00:00Z",
  562. "Balance": {
  563. "Uuid": null,
  564. "ID": null,
  565. "Type": "*monetary",
  566. "Value": null,
  567. "Directions": {
  568. "*out": true
  569. },
  570. "ExpirationDate": null,
  571. "Weight": null,
  572. "DestinationIDs": null,
  573. "RatingSubject": null,
  574. "Categories": null,
  575. "SharedGroups": null,
  576. "TimingIDs": null,
  577. "Timings": null,
  578. "Disabled": null,
  579. "Factor": null,
  580. "Blocker": null
  581. },
  582. "Weight": 10,
  583. "ActionsID": "DISABLE_AND_LOG",
  584. "MinQueuedItems": 0,
  585. "Executed": false,
  586. "LastExecutionTime": "0001-01-01T00:00:00Z"
  587. }
  588. ],
  589. "AllowNegative": false,
  590. "Disabled": false
  591. }
  592. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement