PerfMonSet Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.PerfMonSet

Implements

public final class PerfMonSet
implements JsonSerializable<PerfMonSet>

Metric information.

Constructor Summary

Constructor Description
PerfMonSet()

Creates an instance of PerfMonSet class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the period.

static PerfMonSet fromJson(JsonReader jsonReader)

Reads an instance of PerfMonSet from the JsonReader.

String name()

Get the name property: Unique key name of the counter.

OffsetDateTime startTime()

Get the startTime property: Start time of the period.

String timeGrain()

Get the timeGrain property: Presented time grain.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<PerfMonSample> values()

Get the values property: Collection of workers that are active during this time.

PerfMonSet withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

PerfMonSet withName(String name)

Set the name property: Unique key name of the counter.

PerfMonSet withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

PerfMonSet withTimeGrain(String timeGrain)

Set the timeGrain property: Presented time grain.

PerfMonSet withValues(List<PerfMonSample> values)

Set the values property: Collection of workers that are active during this time.

Methods inherited from java.lang.Object

Constructor Details

PerfMonSet

public PerfMonSet()

Creates an instance of PerfMonSet class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the period.

Returns:

the endTime value.

fromJson

public static PerfMonSet fromJson(JsonReader jsonReader)

Reads an instance of PerfMonSet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PerfMonSet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PerfMonSet.

name

public String name()

Get the name property: Unique key name of the counter.

Returns:

the name value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the period.

Returns:

the startTime value.

timeGrain

public String timeGrain()

Get the timeGrain property: Presented time grain.

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

values

public List values()

Get the values property: Collection of workers that are active during this time.

Returns:

the values value.

withEndTime

public PerfMonSet withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

Parameters:

endTime - the endTime value to set.

Returns:

the PerfMonSet object itself.

withName

public PerfMonSet withName(String name)

Set the name property: Unique key name of the counter.

Parameters:

name - the name value to set.

Returns:

the PerfMonSet object itself.

withStartTime

public PerfMonSet withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

Parameters:

startTime - the startTime value to set.

Returns:

the PerfMonSet object itself.

withTimeGrain

public PerfMonSet withTimeGrain(String timeGrain)

Set the timeGrain property: Presented time grain.

Parameters:

timeGrain - the timeGrain value to set.

Returns:

the PerfMonSet object itself.

withValues

public PerfMonSet withValues(List values)

Set the values property: Collection of workers that are active during this time.

Parameters:

values - the values value to set.

Returns:

the PerfMonSet object itself.

Applies to