Implement ProcessStoredEvents API

This commit is contained in:
ionutboangiu
2023-11-15 11:31:20 -05:00
committed by Dan Christian Bogos
parent e218ca06a8
commit f5d69cb41b
6 changed files with 63 additions and 36 deletions

View File

@@ -85,7 +85,7 @@ func GetUniqueCDRID(cgrEv *utils.CGREvent) string {
return utils.UUIDSha1Prefix()
}
func NewCGREventFromCDR(cdr *CDR) *utils.CGREvent {
func (cdr *CDR) CGREvent() *utils.CGREvent {
return &utils.CGREvent{
Tenant: cdr.Tenant,
ID: utils.Sha1(),
@@ -107,3 +107,9 @@ func checkNestedFields(elem string, values []string) bool {
return false
}
type CDRFilters struct {
Tenant string
FilterIDs []string
APIOpts map[string]interface{}
}