OperationMetricSpecificationDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. OperationMetricSpecificationDefinition
- com.
Implements
public final class OperationMetricSpecificationDefinition
implements JsonSerializable<OperationMetricSpecificationDefinition>
The definition of Azure Monitoring metric.
Constructor Summary
Constructor | Description |
---|---|
OperationMetricSpecificationDefinition() |
Creates an instance of Operation |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
aggregationType()
Get the aggregation |
String |
displayDescription()
Get the display |
String |
displayName()
Get the display |
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
String |
internalMetricName()
Get the internal |
String |
name()
Get the name property: Metric name. |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: Metric unit. |
void |
validate()
Validates the instance. |
Operation |
withAggregationType(String aggregationType)
Set the aggregation |
Operation |
withDisplayDescription(String displayDescription)
Set the display |
Operation |
withDisplayName(String displayName)
Set the display |
Operation |
withInternalMetricName(String internalMetricName)
Set the internal |
Operation |
withName(String name)
Set the name property: Metric name. |
Operation |
withUnit(String unit)
Set the unit property: Metric unit. |
Methods inherited from java.lang.Object
Constructor Details
OperationMetricSpecificationDefinition
public OperationMetricSpecificationDefinition()
Creates an instance of OperationMetricSpecificationDefinition class.
Method Details
aggregationType
public String aggregationType()
Get the aggregationType property: Metric aggregation type.
Returns:
displayDescription
public String displayDescription()
Get the displayDescription property: Metric description.
Returns:
displayName
public String displayName()
Get the displayName property: Metric display name.
Returns:
fromJson
public static OperationMetricSpecificationDefinition fromJson(JsonReader jsonReader)
Reads an instance of OperationMetricSpecificationDefinition from the JsonReader.
Parameters:
Returns:
Throws:
internalMetricName
public String internalMetricName()
Get the internalMetricName property: Internal metric name.
Returns:
name
public String name()
Get the name property: Metric name.
Returns:
toJson
unit
public String unit()
Get the unit property: Metric unit.
Returns:
validate
public void validate()
Validates the instance.
withAggregationType
public OperationMetricSpecificationDefinition withAggregationType(String aggregationType)
Set the aggregationType property: Metric aggregation type.
Parameters:
Returns:
withDisplayDescription
public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription)
Set the displayDescription property: Metric description.
Parameters:
Returns:
withDisplayName
public OperationMetricSpecificationDefinition withDisplayName(String displayName)
Set the displayName property: Metric display name.
Parameters:
Returns:
withInternalMetricName
public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName)
Set the internalMetricName property: Internal metric name.
Parameters:
Returns:
withName
public OperationMetricSpecificationDefinition withName(String name)
Set the name property: Metric name.
Parameters:
Returns:
withUnit
public OperationMetricSpecificationDefinition withUnit(String unit)
Set the unit property: Metric unit.
Parameters:
Returns:
Applies to
Azure SDK for Java