Package com.oracle.bmc.opsi.model
Class SqlStatistics
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.opsi.model.SqlStatistics
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class SqlStatistics extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Performance statistics for the SQL.
Note: Objects should always be created or deserialized using theSqlStatistics.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 theSqlStatistics.Builder
, which maintain a set of all explicitly set fields calledSqlStatistics.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
SqlStatistics.Builder
-
Constructor Summary
Constructors Constructor Description SqlStatistics(Double databaseTimeInSec, Double executionsPerHour, Long executionsCount, Double cpuTimeInSec, Double ioTimeInSec, Double inefficientWaitTimeInSec, Double responseTimeInSec, Long planCount, Double variability, Double averageActiveSessions, Double databaseTimePct, Double inefficiencyInPct, Double changeInCpuTimeInPct, Double changeInIoTimeInPct, Double changeInInefficientWaitTimeInPct, Double changeInResponseTimeInPct, Double changeInAverageActiveSessionsInPct, Double changeInExecutionsPerHourInPct, Double changeInInefficiencyInPct)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlStatistics.Builder
builder()
Create a new builder.boolean
equals(Object o)
Double
getAverageActiveSessions()
Average Active Sessions represent the average active sessions at a point in time.Double
getChangeInAverageActiveSessionsInPct()
Percent change in Average Active Sessions based on linear regressionDouble
getChangeInCpuTimeInPct()
Percent change in CPU Time based on linear regressionDouble
getChangeInExecutionsPerHourInPct()
Percent change in Executions per hour based on linear regressionDouble
getChangeInInefficiencyInPct()
Percent change in Inefficiency based on linear regressionDouble
getChangeInInefficientWaitTimeInPct()
Percent change in Inefficient Wait Time based on linear regressionDouble
getChangeInIoTimeInPct()
Percent change in IO Time based on linear regressionDouble
getChangeInResponseTimeInPct()
Percent change in Response Time based on linear regressionDouble
getCpuTimeInSec()
CPU Time in secondsDouble
getDatabaseTimeInSec()
Database Time in secondsDouble
getDatabaseTimePct()
Percentage of Database TimeLong
getExecutionsCount()
Total number of executionsDouble
getExecutionsPerHour()
Number of executions per hourDouble
getInefficiencyInPct()
Percentage of Inefficiency.Double
getInefficientWaitTimeInSec()
Inefficient Wait Time in secondsDouble
getIoTimeInSec()
I/O Time in secondsLong
getPlanCount()
Number of SQL execution plans used by the SQLDouble
getResponseTimeInSec()
Response time is the average elaspsed time per execution.Double
getVariability()
Variability is the ratio of the standard deviation in response time to the mean of response time of the SQLint
hashCode()
SqlStatistics.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
SqlStatistics
@Deprecated @ConstructorProperties({"databaseTimeInSec","executionsPerHour","executionsCount","cpuTimeInSec","ioTimeInSec","inefficientWaitTimeInSec","responseTimeInSec","planCount","variability","averageActiveSessions","databaseTimePct","inefficiencyInPct","changeInCpuTimeInPct","changeInIoTimeInPct","changeInInefficientWaitTimeInPct","changeInResponseTimeInPct","changeInAverageActiveSessionsInPct","changeInExecutionsPerHourInPct","changeInInefficiencyInPct"}) public SqlStatistics(Double databaseTimeInSec, Double executionsPerHour, Long executionsCount, Double cpuTimeInSec, Double ioTimeInSec, Double inefficientWaitTimeInSec, Double responseTimeInSec, Long planCount, Double variability, Double averageActiveSessions, Double databaseTimePct, Double inefficiencyInPct, Double changeInCpuTimeInPct, Double changeInIoTimeInPct, Double changeInInefficientWaitTimeInPct, Double changeInResponseTimeInPct, Double changeInAverageActiveSessionsInPct, Double changeInExecutionsPerHourInPct, Double changeInInefficiencyInPct)
Deprecated.
-
-
Method Detail
-
builder
public static SqlStatistics.Builder builder()
Create a new builder.
-
toBuilder
public SqlStatistics.Builder toBuilder()
-
getDatabaseTimeInSec
public Double getDatabaseTimeInSec()
Database Time in seconds- Returns:
- the value
-
getExecutionsPerHour
public Double getExecutionsPerHour()
Number of executions per hour- Returns:
- the value
-
getExecutionsCount
public Long getExecutionsCount()
Total number of executions- Returns:
- the value
-
getCpuTimeInSec
public Double getCpuTimeInSec()
CPU Time in seconds- Returns:
- the value
-
getIoTimeInSec
public Double getIoTimeInSec()
I/O Time in seconds- Returns:
- the value
-
getInefficientWaitTimeInSec
public Double getInefficientWaitTimeInSec()
Inefficient Wait Time in seconds- Returns:
- the value
-
getResponseTimeInSec
public Double getResponseTimeInSec()
Response time is the average elaspsed time per execution.It is the ratio of Total Database Time to the number of executions
- Returns:
- the value
-
getPlanCount
public Long getPlanCount()
Number of SQL execution plans used by the SQL- Returns:
- the value
-
getVariability
public Double getVariability()
Variability is the ratio of the standard deviation in response time to the mean of response time of the SQL- Returns:
- the value
-
getAverageActiveSessions
public Double getAverageActiveSessions()
Average Active Sessions represent the average active sessions at a point in time.It is the number of sessions that are either working or waiting.
- Returns:
- the value
-
getDatabaseTimePct
public Double getDatabaseTimePct()
Percentage of Database Time- Returns:
- the value
-
getInefficiencyInPct
public Double getInefficiencyInPct()
Percentage of Inefficiency.It is calculated by Total Database Time divided by Total Wait Time
- Returns:
- the value
-
getChangeInCpuTimeInPct
public Double getChangeInCpuTimeInPct()
Percent change in CPU Time based on linear regression- Returns:
- the value
-
getChangeInIoTimeInPct
public Double getChangeInIoTimeInPct()
Percent change in IO Time based on linear regression- Returns:
- the value
-
getChangeInInefficientWaitTimeInPct
public Double getChangeInInefficientWaitTimeInPct()
Percent change in Inefficient Wait Time based on linear regression- Returns:
- the value
-
getChangeInResponseTimeInPct
public Double getChangeInResponseTimeInPct()
Percent change in Response Time based on linear regression- Returns:
- the value
-
getChangeInAverageActiveSessionsInPct
public Double getChangeInAverageActiveSessionsInPct()
Percent change in Average Active Sessions based on linear regression- Returns:
- the value
-
getChangeInExecutionsPerHourInPct
public Double getChangeInExecutionsPerHourInPct()
Percent change in Executions per hour based on linear regression- Returns:
- the value
-
getChangeInInefficiencyInPct
public Double getChangeInInefficiencyInPct()
Percent change in Inefficiency based on linear regression- 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
-
-