@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class MetricExtension extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Detailed information of the Metric Extension resource
Note: Objects should always be created or deserialized using the MetricExtension.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 MetricExtension.Builder
, which maintain a
set of all explicitly set fields called MetricExtension.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 |
MetricExtension.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
MetricExtension(String id,
String name,
String displayName,
String description,
String resourceType,
String compartmentId,
String tenantId,
String collectionMethod,
MetricExtensionLifeCycleDetails status,
MetricExtensionLifeCycleStates lifecycleState,
String createdBy,
String lastUpdatedBy,
Date timeCreated,
Date timeUpdated,
String collectionRecurrences,
List<Metric> metricList,
MetricExtensionQueryProperties queryProperties,
List<EnabledResourceDetails> enabledOnResources,
Integer enabledOnResourcesCount,
String resourceUri)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MetricExtension.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCollectionMethod()
Collection Method Metric Extension applies
|
String |
getCollectionRecurrences()
Schedule of metric extension should use RFC 5545 format -> recur-rule-part =
“FREQ”;“INTERVAL” where FREQ rule part identifies the type of recurrence rule.
|
String |
getCompartmentId()
Compartment Identifier
OCID
|
String |
getCreatedBy()
Created by user
|
String |
getDescription()
Description of the metric extension.
|
String |
getDisplayName()
Metric Extension resource display name
|
List<EnabledResourceDetails> |
getEnabledOnResources()
List of resource objects on which this metric extension is enabled.
|
Integer |
getEnabledOnResourcesCount()
Count of resources on which this metric extension is enabled.
|
String |
getId()
The OCID of Metric
Extension resource
|
String |
getLastUpdatedBy()
Last updated by user
|
MetricExtensionLifeCycleStates |
getLifecycleState()
The current lifecycle state of the metric extension
|
List<Metric> |
getMetricList()
List of metrics which are part of this metric extension
|
String |
getName()
Metric Extension resource name
|
MetricExtensionQueryProperties |
getQueryProperties() |
String |
getResourceType()
Resource type to which Metric Extension applies
|
String |
getResourceUri()
The URI path that the user can do a GET on to access the metric extension metadata
|
MetricExtensionLifeCycleDetails |
getStatus()
The current status of the metric extension i.e.
|
String |
getTenantId()
Tenant Identifier
OCID
|
Date |
getTimeCreated()
Metric Extension creation time.
|
Date |
getTimeUpdated()
Metric Extension update time.
|
int |
hashCode() |
MetricExtension.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","name","displayName","description","resourceType","compartmentId","tenantId","collectionMethod","status","lifecycleState","createdBy","lastUpdatedBy","timeCreated","timeUpdated","collectionRecurrences","metricList","queryProperties","enabledOnResources","enabledOnResourcesCount","resourceUri"}) public MetricExtension(String id, String name, String displayName, String description, String resourceType, String compartmentId, String tenantId, String collectionMethod, MetricExtensionLifeCycleDetails status, MetricExtensionLifeCycleStates lifecycleState, String createdBy, String lastUpdatedBy, Date timeCreated, Date timeUpdated, String collectionRecurrences, List<Metric> metricList, MetricExtensionQueryProperties queryProperties, List<EnabledResourceDetails> enabledOnResources, Integer enabledOnResourcesCount, String resourceUri)
public static MetricExtension.Builder builder()
Create a new builder.
public MetricExtension.Builder toBuilder()
public String getName()
Metric Extension resource name
public String getDisplayName()
Metric Extension resource display name
public String getDescription()
Description of the metric extension.
public String getResourceType()
Resource type to which Metric Extension applies
public String getCollectionMethod()
Collection Method Metric Extension applies
public MetricExtensionLifeCycleDetails getStatus()
The current status of the metric extension i.e. whether it is Draft or Published
public MetricExtensionLifeCycleStates getLifecycleState()
The current lifecycle state of the metric extension
public String getCreatedBy()
Created by user
public String getLastUpdatedBy()
Last updated by user
public Date getTimeCreated()
Metric Extension creation time. An RFC3339 formatted datetime string.
public Date getTimeUpdated()
Metric Extension update time. An RFC3339 formatted datetime string.
public String getCollectionRecurrences()
Schedule of metric extension should use RFC 5545 format -> recur-rule-part = “FREQ”;“INTERVAL” where FREQ rule part identifies the type of recurrence rule. Valid values are “MINUTELY”,“HOURLY”,“DAILY” to specify repeating events based on an interval of a minute, an hour and a day or more. Example- FREQ=DAILY;INTERVAL=1
public List<Metric> getMetricList()
List of metrics which are part of this metric extension
public MetricExtensionQueryProperties getQueryProperties()
public List<EnabledResourceDetails> getEnabledOnResources()
List of resource objects on which this metric extension is enabled.
public Integer getEnabledOnResourcesCount()
Count of resources on which this metric extension is enabled.
public String getResourceUri()
The URI path that the user can do a GET on to access the metric extension metadata
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.