Package com.oracle.bmc.recovery.model
Class MetricsSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.recovery.model.MetricsSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public final class MetricsSummary 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 theMetricsSummary.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 theMetricsSummary.Builder
, which maintain a set of all explicitly set fields calledMetricsSummary.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricsSummary.Builder
-
Constructor Summary
Constructors Constructor Description MetricsSummary(Float backupSpaceUsedInGBs, Float backupSpaceEstimateInGBs, Float unprotectedWindowInSeconds, Float dbSizeInGBs, Boolean isRedoLogsEnabled, Float retentionPeriodInDays, Float currentRetentionPeriodInSeconds, Float minimumRecoveryNeededInDays)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricsSummary.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()
MetricsSummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
MetricsSummary
@Deprecated @ConstructorProperties({"backupSpaceUsedInGBs","backupSpaceEstimateInGBs","unprotectedWindowInSeconds","dbSizeInGBs","isRedoLogsEnabled","retentionPeriodInDays","currentRetentionPeriodInSeconds","minimumRecoveryNeededInDays"}) public MetricsSummary(Float backupSpaceUsedInGBs, Float backupSpaceEstimateInGBs, Float unprotectedWindowInSeconds, Float dbSizeInGBs, Boolean isRedoLogsEnabled, Float retentionPeriodInDays, Float currentRetentionPeriodInSeconds, Float minimumRecoveryNeededInDays)
Deprecated.
-
-
Method Detail
-
builder
public static MetricsSummary.Builder builder()
Create a new builder.
-
toBuilder
public MetricsSummary.Builder toBuilder()
-
getBackupSpaceUsedInGBs
public Float getBackupSpaceUsedInGBs()
Backup storage space, in gigabytes, utilized by the protected database.Oracle charges for the total storage used.
- Returns:
- the value
-
getBackupSpaceEstimateInGBs
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.- Returns:
- the value
-
getUnprotectedWindowInSeconds
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.
- Returns:
- the value
-
getDbSizeInGBs
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.
- Returns:
- the value
-
getIsRedoLogsEnabled
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.
- Returns:
- the value
-
getRetentionPeriodInDays
public Float getRetentionPeriodInDays()
The maximum number of days to retain backups for a protected database.- Returns:
- the value
-
getCurrentRetentionPeriodInSeconds
public Float getCurrentRetentionPeriodInSeconds()
Number of seconds backups are currently retained for this database.- Returns:
- the value
-
getMinimumRecoveryNeededInDays
public Float getMinimumRecoveryNeededInDays()
Number of days of redo/archive to be applied to recover database.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-