PerfMonSample Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. PerfMonSample
- com.
Implements
public final class PerfMonSample
implements JsonSerializable<PerfMonSample>
Performance monitor sample in a set.
Constructor Summary
Constructor | Description |
---|---|
PerfMonSample() |
Creates an instance of Perf |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Perf |
fromJson(JsonReader jsonReader)
Reads an instance of Perf |
String |
instanceName()
Get the instance |
Offset |
time()
Get the time property: Point in time for which counter was measured. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Double |
value()
Get the value property: Value of counter at a certain time. |
Perf |
withInstanceName(String instanceName)
Set the instance |
Perf |
withTime(OffsetDateTime time)
Set the time property: Point in time for which counter was measured. |
Perf |
withValue(Double value)
Set the value property: Value of counter at a certain time. |
Methods inherited from java.lang.Object
Constructor Details
PerfMonSample
public PerfMonSample()
Creates an instance of PerfMonSample class.
Method Details
fromJson
public static PerfMonSample fromJson(JsonReader jsonReader)
Reads an instance of PerfMonSample from the JsonReader.
Parameters:
Returns:
Throws:
instanceName
public String instanceName()
Get the instanceName property: Name of the server on which the measurement is made.
Returns:
time
public OffsetDateTime time()
Get the time property: Point in time for which counter was measured.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public Double value()
Get the value property: Value of counter at a certain time.
Returns:
withInstanceName
public PerfMonSample withInstanceName(String instanceName)
Set the instanceName property: Name of the server on which the measurement is made.
Parameters:
Returns:
withTime
public PerfMonSample withTime(OffsetDateTime time)
Set the time property: Point in time for which counter was measured.
Parameters:
Returns:
withValue
public PerfMonSample withValue(Double value)
Set the value property: Value of counter at a certain time.
Parameters:
Returns:
Applies to
Azure SDK for Java