2016-11-28 05:15:31 +00:00
|
|
|
package events
|
2016-11-28 05:44:02 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
DEAFULT = "http://localhost:8080"
|
|
|
|
DISCOVERY_START = "/_api/collector/event/discovery/status/start"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DiscoveryStartEvent struct {
|
|
|
|
Message string
|
|
|
|
Zone int64
|
|
|
|
}
|
|
|
|
|
|
|
|
func (i DiscoveryStartEvent) GetUrl() string {
|
|
|
|
return DEAFULT + DISCOVERY_START
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewDiscoveryStartEvent(message string, cidr int64) *DiscoveryStartEvent {
|
|
|
|
return &DiscoveryStartEvent{Message: message, Zone: cidr}
|
|
|
|
}
|