@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class Metric extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Details of a metric which is part of this metric extension
Note: Objects should always be created or deserialized using the Metric.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Metric.Builder
, which maintain a
set of all explicitly set fields called Metric.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Metric.Builder |
static class |
Metric.DataType
Data type of value of this metric
|
static class |
Metric.MetricCategory
Metric category
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Metric(String name,
String displayName,
Boolean isDimension,
String computeExpression,
Metric.DataType dataType,
Boolean isHidden,
Metric.MetricCategory metricCategory,
String unit)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Metric.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getComputeExpression()
Compute Expression to calculate the value of this metric
|
Metric.DataType |
getDataType()
Data type of value of this metric
|
String |
getDisplayName()
Display name of the metric.
|
Boolean |
getIsDimension()
Current metric need to be included as dimension or not
|
Boolean |
getIsHidden()
Flag to marks whether a metric has to be uploaded or not.
|
Metric.MetricCategory |
getMetricCategory()
Metric category
|
String |
getName()
Name of the metric.
|
String |
getUnit()
Unit of metric value
|
int |
hashCode() |
Metric.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"name","displayName","isDimension","computeExpression","dataType","isHidden","metricCategory","unit"}) public Metric(String name, String displayName, Boolean isDimension, String computeExpression, Metric.DataType dataType, Boolean isHidden, Metric.MetricCategory metricCategory, String unit)
public static Metric.Builder builder()
Create a new builder.
public Metric.Builder toBuilder()
public String getName()
Name of the metric.
public String getDisplayName()
Display name of the metric.
public Boolean getIsDimension()
Current metric need to be included as dimension or not
public String getComputeExpression()
Compute Expression to calculate the value of this metric
public Metric.DataType getDataType()
Data type of value of this metric
public Boolean getIsHidden()
Flag to marks whether a metric has to be uploaded or not. When isHidden = false -> Metric is uploaded, isHidden = true -> Metric is NOT uploaded
public Metric.MetricCategory getMetricCategory()
Metric category
public String getUnit()
Unit of metric value
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.