| Constructor and Description |
|---|
ReportingService(java.net.URI uri,
java.lang.String token,
long reportingServiceLogSuppressTimeSeconds)
Constructor for ReportingService.
|
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
getEventReportingUrl(java.net.URI server)
For a given URI generate a properly formatted URL suitable
for sending events to either proxies or a Wavefront service.
|
static java.net.URL |
getReportingUrl(java.net.URI server,
java.lang.String format)
For a given URI generate a properly formatted URL suitable
for sending data to either proxies or a Wavefront service.
|
int |
send(java.lang.String format,
java.io.InputStream stream)
send.
|
int |
sendEvent(java.io.InputStream stream)
sendEvent.
|
public ReportingService(java.net.URI uri,
@Nullable
java.lang.String token,
long reportingServiceLogSuppressTimeSeconds)
Constructor for ReportingService.
uri - a URI objecttoken - a String objectreportingServiceLogSuppressTimeSeconds - a longpublic int send(java.lang.String format,
java.io.InputStream stream)
send.
public int sendEvent(java.io.InputStream stream)
sendEvent.
public static java.net.URL getReportingUrl(java.net.URI server,
java.lang.String format)
throws java.net.MalformedURLException
server - a server to report toformat - the format of data to sendjava.net.MalformedURLException - throws an Exceptionpublic static java.net.URL getEventReportingUrl(java.net.URI server)
throws java.net.MalformedURLException
server - a server to report tojava.net.MalformedURLException - throws an ExceptionCopyright © 2023. All rights reserved.