- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Metadata for the metrics.
-
Constructor Summary
Constructors
Creates an instance of ResourceMetricDefinitionInner class.
-
Method Summary
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of ResourceMetricDefinitionInner from the JsonReader.
Get the id property: Fully qualified resource Id for the resource.
Get the metricAvailabilities property: List of time grains supported for the metric together with retention
period.
Get the name property: The name of the resource.
Get the primaryAggregationType property: Primary aggregation type.
Get the properties property: Resource metric definition properties.
Get the resourceUri property: Resource URI.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
Get the type property: The type of the resource.
Get the unit property: Unit of the metric.
void
Set the kind property: Kind of resource.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ResourceMetricDefinitionInner
public ResourceMetricDefinitionInner()
Creates an instance of ResourceMetricDefinitionInner class.
-
Method Details
-
type
Get the type property: The type of the resource.
- Overrides:
type
in class ProxyOnlyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.
- Overrides:
name
in class ProxyOnlyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.
- Overrides:
id
in class ProxyOnlyResource
- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.
- Overrides:
withKind
in class ProxyOnlyResource
- Parameters:
kind
- the kind value to set.
- Returns:
- the ProxyOnlyResource object itself.
-
unit
Get the unit property: Unit of the metric.
- Returns:
- the unit value.
-
primaryAggregationType
public String primaryAggregationType()
Get the primaryAggregationType property: Primary aggregation type.
- Returns:
- the primaryAggregationType value.
-
metricAvailabilities
Get the metricAvailabilities property: List of time grains supported for the metric together with retention
period.
- Returns:
- the metricAvailabilities value.
-
resourceUri
Get the resourceUri property: Resource URI.
- Returns:
- the resourceUri value.
-
properties
Get the properties property: Resource metric definition properties.
- Returns:
- the properties value.
-
-
toJson
public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter)
throws IOException
- Specified by:
toJson
in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in class ProxyOnlyResource
- Throws:
IOException
-
fromJson
Reads an instance of ResourceMetricDefinitionInner from the JsonReader.
- Parameters:
jsonReader
- The JsonReader being read.
- Returns:
- An instance of ResourceMetricDefinitionInner if the JsonReader was pointing to an instance of it, or null
if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.
IOException
- If an error occurs while reading the ResourceMetricDefinitionInner.