Class PerfMonSample
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.PerfMonSample
-
public final class PerfMonSample extends Object
Performance monitor sample in a set.
-
-
Constructor Summary
Constructors Constructor Description PerfMonSample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringinstanceName()Get the instanceName property: Name of the server on which the measurement is made.OffsetDateTimetime()Get the time property: Point in time for which counter was measured.voidvalidate()Validates the instance.Doublevalue()Get the value property: Value of counter at a certain time.PerfMonSamplewithInstanceName(String instanceName)Set the instanceName property: Name of the server on which the measurement is made.PerfMonSamplewithTime(OffsetDateTime time)Set the time property: Point in time for which counter was measured.PerfMonSamplewithValue(Double value)Set the value property: Value of counter at a certain time.
-
-
-
Method Detail
-
time
public OffsetDateTime time()
Get the time property: Point in time for which counter was measured.- Returns:
- the time value.
-
withTime
public PerfMonSample withTime(OffsetDateTime time)
Set the time property: Point in time for which counter was measured.- Parameters:
time- the time value to set.- Returns:
- the PerfMonSample object itself.
-
instanceName
public String instanceName()
Get the instanceName property: Name of the server on which the measurement is made.- Returns:
- the instanceName value.
-
withInstanceName
public PerfMonSample withInstanceName(String instanceName)
Set the instanceName property: Name of the server on which the measurement is made.- Parameters:
instanceName- the instanceName value to set.- Returns:
- the PerfMonSample object itself.
-
value
public Double value()
Get the value property: Value of counter at a certain time.- Returns:
- the value value.
-
withValue
public PerfMonSample withValue(Double value)
Set the value property: Value of counter at a certain time.- Parameters:
value- the value value to set.- Returns:
- the PerfMonSample object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-