@Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public final class Metrics extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Backup performance and storage utilization metrics for the protected database.
Note: Objects should always be created or deserialized using the Metrics.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 Metrics.Builder
, which maintain a
set of all explicitly set fields called Metrics.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 |
Metrics.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Metrics(Float backupSpaceUsedInGBs,
Float backupSpaceEstimateInGBs,
Float unprotectedWindowInSeconds,
Float dbSizeInGBs,
Boolean isRedoLogsEnabled,
Float retentionPeriodInDays,
Float currentRetentionPeriodInSeconds,
Float minimumRecoveryNeededInDays)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Metrics.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Float |
getBackupSpaceEstimateInGBs()
The estimated backup storage space, in gigabytes, required to meet the recovery window goal,
including foot print and backups for the protected database.
|
Float |
getBackupSpaceUsedInGBs()
Backup storage space, in gigabytes, utilized by the protected database.
|
Float |
getCurrentRetentionPeriodInSeconds()
Number of seconds backups are currently retained for this database.
|
Float |
getDbSizeInGBs()
The estimated space, in gigabytes, consumed by the protected database.
|
Boolean |
getIsRedoLogsEnabled()
The value TRUE indicates that the protected database is configured to use Real-time data
protection, and redo-data is sent from the protected database to Recovery Service.
|
Float |
getMinimumRecoveryNeededInDays()
Number of days of redo/archive to be applied to recover database.
|
Float |
getRetentionPeriodInDays()
The maximum number of days to retain backups for a protected database.
|
Float |
getUnprotectedWindowInSeconds()
This is the time window when there is data loss exposure.
|
int |
hashCode() |
Metrics.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"backupSpaceUsedInGBs","backupSpaceEstimateInGBs","unprotectedWindowInSeconds","dbSizeInGBs","isRedoLogsEnabled","retentionPeriodInDays","currentRetentionPeriodInSeconds","minimumRecoveryNeededInDays"}) public Metrics(Float backupSpaceUsedInGBs, Float backupSpaceEstimateInGBs, Float unprotectedWindowInSeconds, Float dbSizeInGBs, Boolean isRedoLogsEnabled, Float retentionPeriodInDays, Float currentRetentionPeriodInSeconds, Float minimumRecoveryNeededInDays)
public static Metrics.Builder builder()
Create a new builder.
public Metrics.Builder toBuilder()
public Float getBackupSpaceUsedInGBs()
Backup storage space, in gigabytes, utilized by the protected database. Oracle charges for the total storage used.
public Float getBackupSpaceEstimateInGBs()
The estimated backup storage space, in gigabytes, required to meet the recovery window goal, including foot print and backups for the protected database.
public Float getUnprotectedWindowInSeconds()
This is the time window when there is data loss exposure. The point after which recovery is impossible unless additional redo is available. This is the time we received the last backup or last redo-log shipped.
public Float getDbSizeInGBs()
The estimated space, in gigabytes, consumed by the protected database. The database size is based on the size of the data files in the catalog, and does not include archive logs.
public Boolean getIsRedoLogsEnabled()
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
public Float getRetentionPeriodInDays()
The maximum number of days to retain backups for a protected database.
public Float getCurrentRetentionPeriodInSeconds()
Number of seconds backups are currently retained for this database.
public Float getMinimumRecoveryNeededInDays()
Number of days of redo/archive to be applied to recover database.
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.