@Generated(value="OracleSDKGenerator", comments="API Version: 20210201") public final class MetricGroup extends Config
A metric group defines a set of metrics to collect from a span. It uses a span filter to specify
which spans to process. The set is then published to a namespace, which is a product level
subdivision of metrics.
Note: Objects should always be created or deserialized using the MetricGroup.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 MetricGroup.Builder
, which maintain a
set of all explicitly set fields called ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
MetricGroup.Builder |
Constructor and Description |
---|
MetricGroup(String id,
Date timeCreated,
Date timeUpdated,
String createdBy,
String updatedBy,
String etag,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
String displayName,
String filterId,
String namespace,
List<Dimension> dimensions,
List<Metric> metrics)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MetricGroup.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<Dimension> |
getDimensions()
A list of dimensions for the metric.
|
String |
getDisplayName()
The name by which a configuration entity is displayed to the end user.
|
String |
getFilterId()
The OCID of a Span
Filter.
|
List<Metric> |
getMetrics()
The list of metrics in this group.
|
String |
getNamespace()
The namespace to which the metrics are published.
|
int |
hashCode() |
MetricGroup.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getCreatedBy, getDefinedTags, getEtag, getFreeformTags, getId, getTimeCreated, getTimeUpdated, getUpdatedBy
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public MetricGroup(String id, Date timeCreated, Date timeUpdated, String createdBy, String updatedBy, String etag, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String displayName, String filterId, String namespace, List<Dimension> dimensions, List<Metric> metrics)
public static MetricGroup.Builder builder()
Create a new builder.
public MetricGroup.Builder toBuilder()
public String getDisplayName()
The name by which a configuration entity is displayed to the end user.
public String getFilterId()
The OCID of a Span Filter. The filterId is mandatory for the creation of MetricGroups. A filterId is generated when a Span Filter is created.
public String getNamespace()
The namespace to which the metrics are published. It must be one of several predefined namespaces.
public List<Dimension> getDimensions()
A list of dimensions for the metric. This variable should not be used.
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
Copyright © 2016–2023. All rights reserved.