@Generated(value="org.immutables.processor.ProxyProcessor") public final class ValueMetric extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ValueMetric.Builder
Builds instances of type
ValueMetric. |
| Modifier and Type | Method and Description |
|---|---|
static ValueMetric.Builder |
builder()
Creates a builder for
ValueMetric. |
boolean |
equals(Object another)
This instance is equal to all instances of
ValueMetric that have equal attribute values. |
static ValueMetric |
from(org.cloudfoundry.dropsonde.events.ValueMetric dropsonde) |
String |
getName()
The name of the metric.
|
String |
getUnit()
The unit of the metric.
|
int |
hashCode()
Computes a hash code from attributes:
name, unit, value. |
String |
toString()
Prints the immutable value
ValueMetric with attribute values. |
Double |
value()
The value at the time of event emission
|
public String getName()
public String getUnit()
public Double value()
public boolean equals(Object another)
ValueMetric that have equal attribute values.public int hashCode()
name, unit, value.public String toString()
ValueMetric with attribute values.public static ValueMetric.Builder builder()
ValueMetric.
ValueMetric.builder()
.name(String) // required name
.unit(String) // required unit
.value(Double) // required value
.build();
public static ValueMetric from(org.cloudfoundry.dropsonde.events.ValueMetric dropsonde)
Copyright © 2020. All rights reserved.