public final class PerfMonSample extends Object
| Constructor and Description |
|---|
PerfMonSample() |
| Modifier and Type | Method and Description |
|---|---|
String |
instanceName()
Get the instanceName property: Name of the server on which the measurement is made.
|
OffsetDateTime |
time()
Get the time property: Point in time for which counter was measured.
|
void |
validate()
Validates the instance.
|
Double |
value()
Get the value property: Value of counter at a certain time.
|
PerfMonSample |
withInstanceName(String instanceName)
Set the instanceName property: Name of the server on which the measurement is made.
|
PerfMonSample |
withTime(OffsetDateTime time)
Set the time property: Point in time for which counter was measured.
|
PerfMonSample |
withValue(Double value)
Set the value property: Value of counter at a certain time.
|
public OffsetDateTime time()
public PerfMonSample withTime(OffsetDateTime time)
time - the time value to set.public String instanceName()
public PerfMonSample withInstanceName(String instanceName)
instanceName - the instanceName value to set.public Double value()
public PerfMonSample withValue(Double value)
value - the value value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.