@Generated(value="OracleSDKGenerator", comments="API Version: 20230515") public final class RequestSummarizedMetricDataDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The request details for retrieving aggregated data. Use the query and optional properties to
filter the returned results.
Note: Objects should always be created or deserialized using the RequestSummarizedMetricDataDetails.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 RequestSummarizedMetricDataDetails.Builder
, which maintain a
set of all explicitly set fields called RequestSummarizedMetricDataDetails.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 |
RequestSummarizedMetricDataDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
RequestSummarizedMetricDataDetails(String namespaceName,
String metricName,
String compartmentId,
Map<String,DimensionValue> dimensions,
Date startTime,
Date endTime)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static RequestSummarizedMetricDataDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the compartment to use for authorization to read metrics.
|
Map<String,DimensionValue> |
getDimensions()
Qualifiers to use when searching for metric data.
|
Date |
getEndTime()
The end of the sampled time range to use when searching for metric data points.
|
String |
getMetricName()
The name of a metric for retrieving aggregated data.
|
String |
getNamespaceName()
The source service or application to use when searching for metric data points to aggregate.
|
Date |
getStartTime()
The beginning of the sampled time range to use when searching for metric data points.
|
int |
hashCode() |
RequestSummarizedMetricDataDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"namespaceName","metricName","compartmentId","dimensions","startTime","endTime"}) public RequestSummarizedMetricDataDetails(String namespaceName, String metricName, String compartmentId, Map<String,DimensionValue> dimensions, Date startTime, Date endTime)
public static RequestSummarizedMetricDataDetails.Builder builder()
Create a new builder.
public RequestSummarizedMetricDataDetails.Builder toBuilder()
public String getNamespaceName()
The source service or application to use when searching for metric data points to aggregate.
For a list of valid namespaces, see listNamespaces
.
public String getMetricName()
The name of a metric for retrieving aggregated data. For a list of valid metrics for a given
namespace, see listMetricProperties
.
public String getCompartmentId()
The OCID of the compartment to use for authorization to read metrics. To use the root compartment, provide the tenancyId.
public Map<String,DimensionValue> getDimensions()
Qualifiers to use when searching for metric data. For a list of valid dimensions for a given
metric, see listMetricProperties
.
public Date getStartTime()
The beginning of the sampled time range to use when searching for metric data points. Format is defined by RFC3339. The response includes metric data points for the sampled time. Example 2019-02-01T02:02:29.600Z
public Date getEndTime()
The end of the sampled time range to use when searching for metric data points. Format is defined by RFC3339. The response excludes metric data points for sampled time. Example 2019-02-01T02:02:29.600Z
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.