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.ExplicitlySetBmcModel
Sql 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 Summary
Nested Classes Modifier and Type Class Description static class
SqlBucket.Builder
-
Constructor Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlBucket.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getBucketId()
SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min Example: “<= 3 secs”Float
getCpuTimeInSec()
Total CPU time Example: 1046String
getDatabaseType()
Ops Insights internal representation of the database type.Integer
getExecutionsCount()
Total number of executions Example: 60Float
getIoTimeInSec()
Total IO time Example: 5810Float
getOtherWaitTimeInSec()
Total other wait time Example: 24061Long
getPlanHash()
Plan hash value for the SQL Execution PlanString
getSqlIdentifier()
Unique SQL_ID for a SQL Statement.Date
getTimeCollected()
Collection timestamp Example: “2020-03-31T00:00:00.000Z”Float
getTotalTimeInSec()
Total time Example: 30917Float
getVersion()
Version Example: 1int
hashCode()
SqlBucket.Builder
toBuilder()
String
toString()
String
toString(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
-
builder
public static SqlBucket.Builder builder()
Create a new builder.
-
toBuilder
public SqlBucket.Builder toBuilder()
-
getVersion
public Float getVersion()
Version Example: 1- Returns:
- the value
-
getDatabaseType
public String getDatabaseType()
Ops Insights internal representation of the database type.- Returns:
- the value
-
getTimeCollected
public Date getTimeCollected()
Collection timestamp Example: “2020-03-31T00:00:00.000Z”- Returns:
- the value
-
getSqlIdentifier
public String getSqlIdentifier()
Unique SQL_ID for a SQL Statement.- Returns:
- the value
-
getPlanHash
public Long getPlanHash()
Plan hash value for the SQL Execution Plan- Returns:
- the value
-
getBucketId
public 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
-
getExecutionsCount
public Integer getExecutionsCount()
Total number of executions Example: 60- Returns:
- the value
-
getCpuTimeInSec
public Float getCpuTimeInSec()
Total CPU time Example: 1046- Returns:
- the value
-
getIoTimeInSec
public Float getIoTimeInSec()
Total IO time Example: 5810- Returns:
- the value
-
getOtherWaitTimeInSec
public Float getOtherWaitTimeInSec()
Total other wait time Example: 24061- Returns:
- the value
-
getTotalTimeInSec
public Float getTotalTimeInSec()
Total time Example: 30917- 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
-
-