Skip to content

Commit

Permalink
fix: add missing reserved words
Browse files Browse the repository at this point in the history
  • Loading branch information
varas committed Nov 17, 2020
1 parent 08b6176 commit e790392
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions pkg/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,33 @@ const AttributesPrefix = "attr."

// reservedFields reserved event keys, in lowercase for case insensitive comparison.
var reservedFields = map[string]struct{}{
"": {},
"timestamp": {},
"eventytype": {},
"entityid": {},
"entityguid": {},
"entitykey": {},
"entityname": {},
"hostname": {},
"fullhostname": {},
"displayname": {},
"agentname": {},
"corecount": {},
"": {},
"timestamp": {},
"eventytype": {},
"entityid": {},
"entityguid": {},
"entitykey": {},
"entityname": {},
"hostname": {},
"fullhostname": {},
"displayname": {},
"agentname": {},
"corecount": {},
"agentversion": {},
"kernelversion": {},
"operatingsystem": {},
"windowsplatform": {},
"windowsfamily": {},
"windowsversion": {},
"instancetype": {},
"system/ram": {},
"transformmemorytobytes": {},
"processorcount": {},
"installedmemorymegabytes": {},
"awsregion": {},
"regionname": {},
"zone": {},
"regionid": {},
}

// IsReserved returns true when field name is a reserved key.
Expand Down

0 comments on commit e790392

Please sign in to comment.