// Copyright 2015 CodeIgnition. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.

package policy

import "time"

// Event data that will be sent by policy handlers
type Event struct {
	Time   time.Time
	Policy Policy
	Data   map[string]interface{} // Data may include status, stats, etc.
}

// Copyright 2015 CodeIgnition. All rights reserved.
// Use of this source code is governed by a BSD
// license that can be found in the LICENSE file.

package policy

import "time"

// Event data that will be sent by policy handlers
type Event struct {
	Time       time.Time
	PolicyName string      `bson:"policy_name"`
	AgentUID   string      `bson:"agent_uid"`
	Data       interface{} // Data may include status, stats, etc.
}

Change the Event to not include complete Policy
Change the Event to not include complete Policy

As the number of events sent will be high, having a complete
Policy in the Event is pointless. Just keep PolicyName and
AgentUID as they are the only useful info
