ServerUsageInner Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.ServerUsageInner

Implements

public final class ServerUsageInner
implements JsonSerializable<ServerUsageInner>

Represents server metrics.

Constructor Summary

Constructor Description
ServerUsageInner()

Creates an instance of ServerUsageInner class.

Method Summary

Modifier and Type Method and Description
Double currentValue()

Get the currentValue property: The current value of the metric.

String displayName()

Get the displayName property: The metric display name.

static ServerUsageInner fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageInner from the JsonReader.

Double limit()

Get the limit property: The current limit of the metric.

String name()

Get the name property: Name of the server usage metric.

OffsetDateTime nextResetTime()

Get the nextResetTime property: The next reset time for the metric (ISO8601 format).

String resourceName()

Get the resourceName property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: The units of the metric.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ServerUsageInner

public ServerUsageInner()

Creates an instance of ServerUsageInner class.

Method Details

currentValue

public Double currentValue()

Get the currentValue property: The current value of the metric.

Returns:

the currentValue value.

displayName

public String displayName()

Get the displayName property: The metric display name.

Returns:

the displayName value.

fromJson

public static ServerUsageInner fromJson(JsonReader jsonReader)

Reads an instance of ServerUsageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerUsageInner 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 ServerUsageInner.

limit

public Double limit()

Get the limit property: The current limit of the metric.

Returns:

the limit value.

name

public String name()

Get the name property: Name of the server usage metric.

Returns:

the name value.

nextResetTime

public OffsetDateTime nextResetTime()

Get the nextResetTime property: The next reset time for the metric (ISO8601 format).

Returns:

the nextResetTime value.

resourceName

public String resourceName()

Get the resourceName property: The name of the resource.

Returns:

the resourceName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The units of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to