public final class UpdateRequest extends java.lang.Object implements JsonPayload
| Constructor and Description |
|---|
UpdateRequest(com.netflix.servo.tag.TagList tags,
com.netflix.servo.Metric[] metricsToSend,
int numMetrics)
Create an UpdateRequest to be sent to atlas.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
toJson(com.fasterxml.jackson.core.JsonGenerator gen)
Serialize the current entity to JSON using the given generator.
|
java.lang.String |
toString() |
public UpdateRequest(com.netflix.servo.tag.TagList tags,
com.netflix.servo.Metric[] metricsToSend,
int numMetrics)
tags - common tags for all metrics in the request.metricsToSend - Array of metrics to send.numMetrics - How many metrics in the array metricsToSend should be sent. Note
that this value needs to be lower or equal to metricsToSend.lengthpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toJson(com.fasterxml.jackson.core.JsonGenerator gen)
throws java.io.IOException
JsonPayloadtoJson in interface JsonPayloadjava.io.IOException