Package com.oracle.bmc.opsi.model
Class SqlBucket
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.opsi.model.SqlBucket
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class SqlBucket extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSql bucket type object.
 Note: Objects should always be created or deserialized using theSqlBucket.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 theSqlBucket.Builder, which maintain a set of all explicitly set fields calledSqlBucket.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 SummaryNested Classes Modifier and Type Class Description static classSqlBucket.Builder
 - 
Constructor SummaryConstructors Constructor Description SqlBucket(Float version, String databaseType, Date timeCollected, String sqlIdentifier, Long planHash, String bucketId, Integer executionsCount, Float cpuTimeInSec, Float ioTimeInSec, Float otherWaitTimeInSec, Float totalTimeInSec)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlBucket.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetBucketId()SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min Example: “<= 3 secs”FloatgetCpuTimeInSec()Total CPU time Example: 1046StringgetDatabaseType()Ops Insights internal representation of the database type.IntegergetExecutionsCount()Total number of executions Example: 60FloatgetIoTimeInSec()Total IO time Example: 5810FloatgetOtherWaitTimeInSec()Total other wait time Example: 24061LonggetPlanHash()Plan hash value for the SQL Execution PlanStringgetSqlIdentifier()Unique SQL_ID for a SQL Statement.DategetTimeCollected()Collection timestamp Example: “2020-03-31T00:00:00.000Z”FloatgetTotalTimeInSec()Total time Example: 30917FloatgetVersion()Version Example: 1inthashCode()SqlBucket.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
SqlBucket@Deprecated @ConstructorProperties({"version","databaseType","timeCollected","sqlIdentifier","planHash","bucketId","executionsCount","cpuTimeInSec","ioTimeInSec","otherWaitTimeInSec","totalTimeInSec"}) public SqlBucket(Float version, String databaseType, Date timeCollected, String sqlIdentifier, Long planHash, String bucketId, Integer executionsCount, Float cpuTimeInSec, Float ioTimeInSec, Float otherWaitTimeInSec, Float totalTimeInSec) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static SqlBucket.Builder builder() Create a new builder.
 - 
toBuilderpublic SqlBucket.Builder toBuilder() 
 - 
getVersionpublic Float getVersion() Version Example: 1- Returns:
- the value
 
 - 
getDatabaseTypepublic String getDatabaseType() Ops Insights internal representation of the database type.- Returns:
- the value
 
 - 
getTimeCollectedpublic Date getTimeCollected() Collection timestamp Example: “2020-03-31T00:00:00.000Z”- Returns:
- the value
 
 - 
getSqlIdentifierpublic String getSqlIdentifier() Unique SQL_ID for a SQL Statement.- Returns:
- the value
 
 - 
getPlanHashpublic Long getPlanHash() Plan hash value for the SQL Execution Plan- Returns:
- the value
 
 - 
getBucketIdpublic String getBucketId() SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min Example: “<= 3 secs”- Returns:
- the value
 
 - 
getExecutionsCountpublic Integer getExecutionsCount() Total number of executions Example: 60- Returns:
- the value
 
 - 
getCpuTimeInSecpublic Float getCpuTimeInSec() Total CPU time Example: 1046- Returns:
- the value
 
 - 
getIoTimeInSecpublic Float getIoTimeInSec() Total IO time Example: 5810- Returns:
- the value
 
 - 
getOtherWaitTimeInSecpublic Float getOtherWaitTimeInSec() Total other wait time Example: 24061- Returns:
- the value
 
 - 
getTotalTimeInSecpublic Float getTotalTimeInSec() Total time Example: 30917- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-