@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public final class DatabaseUsageMetrics extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The list of aggregated metrics for Managed Databases in the fleet.
Note: Objects should always be created or deserialized using the DatabaseUsageMetrics.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 DatabaseUsageMetrics.Builder
, which maintain a
set of all explicitly set fields called DatabaseUsageMetrics.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 |
DatabaseUsageMetrics.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DatabaseUsageMetrics(String dbId,
String compartmentId,
DatabaseType databaseType,
DatabaseSubType databaseSubType,
DeploymentType deploymentType,
String databaseVersion,
WorkloadType workloadType,
String databaseName,
String databaseContainerId,
String databaseId,
String primaryDbId,
String primaryDbUniqueName,
String dbUniqueName,
DbRole dbRole,
List<FleetMetricDefinition> metrics)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseUsageMetrics.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
The OCID of the
compartment where the Managed Database resides.
|
String |
getDatabaseContainerId()
The OCID of the
parent Container Database, in the case of a Pluggable Database.
|
String |
getDatabaseId()
The Database id of the Managed Database.
|
String |
getDatabaseName()
The display name of the Managed Database.
|
DatabaseSubType |
getDatabaseSubType()
The subtype of the Oracle Database.
|
DatabaseType |
getDatabaseType()
The type of Oracle Database installation.
|
String |
getDatabaseVersion()
The Oracle Database version.
|
String |
getDbId()
The OCID of the
Managed Database.
|
DbRole |
getDbRole()
The Database role of the Managed Database.
|
String |
getDbUniqueName()
The Database unique name of the Managed Database.
|
DeploymentType |
getDeploymentType()
The infrastructure used to deploy the Oracle Database.
|
List<FleetMetricDefinition> |
getMetrics()
A list of the database health metrics like CPU, Storage, and Memory.
|
String |
getPrimaryDbId()
The Primary Database id of the Managed Database.
|
String |
getPrimaryDbUniqueName()
The Primary Database unique name of the Managed Database.
|
WorkloadType |
getWorkloadType()
The workload type of the Autonomous Database.
|
int |
hashCode() |
DatabaseUsageMetrics.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"dbId","compartmentId","databaseType","databaseSubType","deploymentType","databaseVersion","workloadType","databaseName","databaseContainerId","databaseId","primaryDbId","primaryDbUniqueName","dbUniqueName","dbRole","metrics"}) public DatabaseUsageMetrics(String dbId, String compartmentId, DatabaseType databaseType, DatabaseSubType databaseSubType, DeploymentType deploymentType, String databaseVersion, WorkloadType workloadType, String databaseName, String databaseContainerId, String databaseId, String primaryDbId, String primaryDbUniqueName, String dbUniqueName, DbRole dbRole, List<FleetMetricDefinition> metrics)
public static DatabaseUsageMetrics.Builder builder()
Create a new builder.
public DatabaseUsageMetrics.Builder toBuilder()
public String getCompartmentId()
The OCID of the compartment where the Managed Database resides.
public DatabaseType getDatabaseType()
The type of Oracle Database installation.
public DatabaseSubType getDatabaseSubType()
The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
public DeploymentType getDeploymentType()
The infrastructure used to deploy the Oracle Database.
public String getDatabaseVersion()
The Oracle Database version.
public WorkloadType getWorkloadType()
The workload type of the Autonomous Database.
public String getDatabaseName()
The display name of the Managed Database.
public String getDatabaseContainerId()
The OCID of the parent Container Database, in the case of a Pluggable Database.
public String getDatabaseId()
The Database id of the Managed Database. Every database had its own id and that value is captured here.
public String getPrimaryDbId()
The Primary Database id of the Managed Database.
public String getPrimaryDbUniqueName()
The Primary Database unique name of the Managed Database.
public String getDbUniqueName()
The Database unique name of the Managed Database.
public DbRole getDbRole()
The Database role of the Managed Database.
public List<FleetMetricDefinition> getMetrics()
A list of the database health metrics like CPU, Storage, and Memory.
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.