| Modifier and Type | Method and Description |
|---|---|
Event |
build() |
Event.Builder |
withAggregationKey(String aggregationKey) |
Event.Builder |
withAlertType(Event.AlertType alertType) |
Event.Builder |
withDate(Date date) |
Event.Builder |
withDate(long millisSinceEpoch) |
Event.Builder |
withHostname(String hostname) |
Event.Builder |
withPriority(Event.Priority priority) |
Event.Builder |
withSourceTypeName(String sourceTypeName) |
Event.Builder |
withText(String text) |
Event.Builder |
withTitle(String title) |
public Event build()
public Event.Builder withTitle(String title)
title - Event title ; mandatorypublic Event.Builder withText(String text)
text - Event text ; supports line breaks ; mandatorypublic Event.Builder withDate(Date date)
date - Assign a timestamp to the event ; Default: none (Default is the current Unix epoch timestamp when not sent)public Event.Builder withDate(long millisSinceEpoch)
millisSinceEpoch - Assign a timestamp to the event ; Default: none (Default is the current Unix epoch timestamp when not sent)public Event.Builder withHostname(String hostname)
hostname - Assign a hostname to the event ; Default: nonepublic Event.Builder withAggregationKey(String aggregationKey)
aggregationKey - Assign an aggregation key to the event, to group it with some others ; Default: nonepublic Event.Builder withPriority(Event.Priority priority)
priority - Can be "normal" or "low" ; Default: "normal"public Event.Builder withSourceTypeName(String sourceTypeName)
sourceTypeName - Assign a source type to the event ; Default: nonepublic Event.Builder withAlertType(Event.AlertType alertType)
alertType - Can be "error", "warning", "info" or "success" ; Default: "info"Copyright © 2019. All rights reserved.