public class EndpointStats
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
{
"id": "ZP1oVevzLGu4CBORMXKKke",
"name": "Service1",
"version": "0.0.1",
"endpoints": [{
"name": "SortEndpointAscending",
"subject": "sort.ascending",
"queue_group": "q",
"num_requests": 1,
"processing_time": 538900,
"average_processing_time": 538900,
"started": "2023-08-15T13:51:41.318000000Z"
}
{
"name": "SortEndpointDescending",
"subject": "sort.descending",
"num_requests": 1,
"processing_time": 88400,
"average_processing_time": 88400,
"started": "2023-08-15T13:51:41.318000000Z"
}
{
"name": "EchoEndpoint",
"subject": "echo",
"num_requests": 5,
"processing_time": 1931600,
"average_processing_time": 386320,
"data": {
"idata": 2,
"sdata": "s-996409223"
},
"started": "2023-08-15T13:51:41.318000000Z"
}
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getAverageProcessingTime()
Average processing time is the total processing time divided by the num requests
|
io.nats.client.support.JsonValue |
getData()
A field that can be customized with any data as returned by stats handler
|
java.lang.String |
getDataAsJson()
The json representation of the custom data.
|
java.lang.String |
getLastError()
If set, the last error triggered by the endpoint
|
java.lang.String |
getName()
Get the name of the Endpoint
|
long |
getNumErrors()
Number of errors that the endpoint has raised
|
long |
getNumRequests()
The number of requests received by the endpoint
|
long |
getProcessingTime()
Total processing time for the endpoint
|
java.lang.String |
getQueueGroup()
Get the queueGroup of the Endpoint
|
java.time.ZonedDateTime |
getStarted()
Get the time the endpoint was started (or restarted)
|
java.lang.String |
getSubject()
Get the subject of the Endpoint
|
int |
hashCode() |
@NonNull java.lang.String |
toJson() |
java.lang.String |
toString() |
public @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic java.lang.String getName()
public java.lang.String getSubject()
public java.lang.String getQueueGroup()
public long getNumRequests()
public long getNumErrors()
public long getProcessingTime()
public long getAverageProcessingTime()
public java.lang.String getLastError()
public io.nats.client.support.JsonValue getData()
public java.lang.String getDataAsJson()
public java.time.ZonedDateTime getStarted()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object