package models import "time" // LogPolicyGroup grants one exact stream-label scope on one source to multiple users. type LogPolicyGroup struct { ID uint `json:"id"` Name string `json:"name"` SourceID uint `json:"sourceId"` Labels map[string]string `json:"labels"` UserIDs []uint `json:"userIds"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` } func (g *LogPolicyGroup) Sanitized() map[string]interface{} { return map[string]interface{}{ "id": g.ID, "name": g.Name, "sourceId": g.SourceID, "labels": g.Labels, "userIds": g.UserIDs, "createdAt": g.CreatedAt, "updatedAt": g.UpdatedAt, } }