public static class HttpTransport.HttpRequest extends Object implements Transport.Request
| Modifier and Type | Field and Description |
|---|---|
protected Serializer |
serializer |
protected HttpTransport |
transport |
| Constructor and Description |
|---|
HttpRequest(HttpTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCounter(DatadogCounter counter)
Add a counter to the request
|
void |
addGauge(DatadogGauge gauge)
Add a gauge
|
void |
send()
Send the request to datadog
|
protected final Serializer serializer
protected final HttpTransport transport
public HttpRequest(HttpTransport transport) throws IOException
IOExceptionpublic void addGauge(DatadogGauge gauge) throws IOException
Transport.RequestaddGauge in interface Transport.RequestIOExceptionpublic void addCounter(DatadogCounter counter) throws IOException
Transport.RequestaddCounter in interface Transport.RequestIOExceptionpublic void send()
throws Exception
Transport.Requestsend in interface Transport.RequestExceptionCopyright © 2018. All rights reserved.