2016-11-28 05:13:15 +00:00
|
|
|
package events
|
|
|
|
|
2016-11-28 07:34:24 +00:00
|
|
|
//Collector Install Event
|
2016-11-28 05:20:54 +00:00
|
|
|
type CollectorInstallEvent struct {
|
2016-11-28 07:34:24 +00:00
|
|
|
Version string
|
2016-11-28 05:13:15 +00:00
|
|
|
}
|
|
|
|
|
2016-11-28 07:34:24 +00:00
|
|
|
func (e CollectorInstallEvent) GetUrl() string {
|
2016-11-28 05:13:15 +00:00
|
|
|
return COLLECTOR_INSTALL
|
|
|
|
}
|
|
|
|
|
2016-11-28 07:34:24 +00:00
|
|
|
func NewInstallEvent(ver string) *CollectorInstallEvent {
|
|
|
|
return &CollectorInstallEvent{
|
|
|
|
Version: ver,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Collector Initialize Event : to do
|
|
|
|
type CollectorInitEvent struct {
|
|
|
|
OS string
|
|
|
|
Conf string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e CollectorInitEvent) GetUrl() string {
|
|
|
|
return COLLECTOR_INIT
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCollectorInitEvent(os, conf string) *CollectorInitEvent {
|
|
|
|
return &CollectorInitEvent{
|
|
|
|
OS: os,
|
|
|
|
Conf: conf,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Collector Start Event
|
|
|
|
type CollectorStartEvent struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e CollectorStartEvent) GetUrl() string {
|
|
|
|
return COLLECTOR_START
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCollectorStartEvent(message string) *CollectorStartEvent {
|
|
|
|
return &CollectorStartEvent{}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Collector Stop Event
|
|
|
|
type CollectorStopEvent struct {
|
|
|
|
Reason string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e CollectorStopEvent) GetUrl() string {
|
|
|
|
return COLLECTOR_STOP
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewCollectorStopEvent(reason string) *CollectorStopEvent {
|
|
|
|
return &CollectorStopEvent{
|
|
|
|
Reason: reason,
|
|
|
|
}
|
2016-11-28 05:13:15 +00:00
|
|
|
}
|