public class Event extends EventData<Event>
EventFactory
or
LibHoney
. See HoneyClient
's class documentation for the "Event Validation" rules, and further
descriptions exist on the Options
and LibHoney
classes.
The metadata that can be set on Event is not sent to Honeycomb. It will be passed back to any registered
ResponseObserver
s and may be useful for clients that implement response handling and want to, for instance,
match up the Response with the original source of an Event.
This class is mutable and not threadsafe.
Modifier and Type | Method | Description |
---|---|---|
protected Event |
getSelf() |
|
void |
send() |
Send this event - subject to sampling.
|
void |
sendPresampled() |
Send this event - bypassing sampling.
|
Event |
setSampleRate(int sampleRate) |
|
String |
toString() |
addField, addFields, addMetadata, addMetadata, getApiHost, getDataset, getFields, getMetadata, getSampleRate, getTimestamp, getWriteKey, setApiHost, setDataset, setTimestamp, setWriteKey
public void send()
IllegalArgumentException
- if client-side validation fails, see HoneyClient
's class
documentation for the "Event Validation" rules.public void sendPresampled()
IllegalArgumentException
- if client-side validation fails, see HoneyClient
's class
documentation for the "Event Validation" rules.public Event setSampleRate(int sampleRate)
setSampleRate
in class EventData<Event>
sampleRate
- to set.Options.Builder.setSampleRate(int)
Copyright © 2018 Honeycomb. All rights reserved.