Java Code Examples for com.signalfx.metrics.protobuf.SignalFxProtocolBuffers#Event
The following examples show how to use
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers#Event .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractHttpEventProtobufReceiverConnection.java From signalfx-java with Apache License 2.0 | 6 votes |
@Override public void addEvents(String auth, List<SignalFxProtocolBuffers.Event> events) throws SignalFxMetricsException { if (events.isEmpty()) { return; } try { CloseableHttpResponse resp = null; try { resp = postToEndpoint(auth, getEntityForVersion(events), getEndpointForAddEvents(), false); checkHttpResponse(resp); } finally { if (resp != null) { resp.close(); } } } catch (IOException e) { throw new SignalFxMetricsException("Exception posting to addEvents", e); } }
Example 2
Source File: AggregateMetricSender.java From signalfx-java with Apache License 2.0 | 5 votes |
private SessionImpl() { toBeRegisteredMetricPairs = new HashMap<String, com.signalfx.metrics.protobuf .SignalFxProtocolBuffers.MetricType>(); pointsToFlush = new ArrayList<SignalFxProtocolBuffers.DataPoint>(); eventsToFlush = new ArrayList<SignalFxProtocolBuffers.Event>(); }
Example 3
Source File: AggregateMetricSender.java From signalfx-java with Apache License 2.0 | 4 votes |
@Override public Session setEvent(SignalFxProtocolBuffers.Event event) { eventsToFlush.add(event); return this; }
Example 4
Source File: HttpEventProtobufReceiverConnectionV2.java From signalfx-java with Apache License 2.0 | 4 votes |
@Override protected HttpEntity getEntityForVersion(List<SignalFxProtocolBuffers.Event> events) { byte[] bodyBytes = SignalFxProtocolBuffers.EventUploadMessage.newBuilder() .addAllEvents(events).build().toByteArray(); return new ByteArrayEntity(bodyBytes, PROTO_TYPE); }
Example 5
Source File: AbstractHttpEventProtobufReceiverConnection.java From signalfx-java with Apache License 2.0 | 4 votes |
protected abstract HttpEntity getEntityForVersion( List<SignalFxProtocolBuffers.Event> events);
Example 6
Source File: EventReceiver.java From signalfx-java with Apache License 2.0 | 4 votes |
void addEvents(String auth, List<SignalFxProtocolBuffers.Event> events) throws SignalFxMetricsException;
Example 7
Source File: AggregateMetricSender.java From signalfx-java with Apache License 2.0 | votes |
Session setEvent(SignalFxProtocolBuffers.Event event);