@Generated(value="software.amazon.awssdk:codegen") public final class Insight extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Insight.Builder,Insight>
Retrieves the list of performance issues which are identified.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Insight.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<Data> |
baselineData()
Metric names and values from the timeframe used as baseline to generate the insight.
|
static Insight.Builder |
builder() |
ContextType |
context()
Indicates if the insight is causal or correlated insight.
|
String |
contextAsString()
Indicates if the insight is causal or correlated insight.
|
String |
description()
Description of the insight.
|
Instant |
endTime()
The end time of the insight.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBaselineData()
For responses, this returns true if the service returned a value for the BaselineData property.
|
int |
hashCode() |
boolean |
hasInsightData()
For responses, this returns true if the service returned a value for the InsightData property.
|
boolean |
hasRecommendations()
For responses, this returns true if the service returned a value for the Recommendations property.
|
boolean |
hasSupportingInsights()
For responses, this returns true if the service returned a value for the SupportingInsights property.
|
List<Data> |
insightData()
List of data objects containing metrics and references from the time range while generating the insight.
|
String |
insightId()
The unique identifier for the insight.
|
String |
insightType()
The type of insight.
|
List<Recommendation> |
recommendations()
List of recommendations for the insight.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Insight.Builder> |
serializableBuilderClass() |
Severity |
severity()
The severity of the insight.
|
String |
severityAsString()
The severity of the insight.
|
Instant |
startTime()
The start time of the insight.
|
List<Insight> |
supportingInsights()
List of supporting insights that provide additional factors for the insight.
|
Insight.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String insightId()
The unique identifier for the insight. For example, insight-12345678901234567.
insight-12345678901234567.public final String insightType()
The type of insight. For example, HighDBLoad, HighCPU, or DominatingSQLs.
HighDBLoad, HighCPU, or
DominatingSQLs.public final ContextType context()
Indicates if the insight is causal or correlated insight.
If the service returns an enum value that is not available in the current SDK version, context will
return ContextType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
contextAsString().
ContextTypepublic final String contextAsString()
Indicates if the insight is causal or correlated insight.
If the service returns an enum value that is not available in the current SDK version, context will
return ContextType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
contextAsString().
ContextTypepublic final Instant startTime()
The start time of the insight. For example, 2018-10-30T00:00:00Z.
2018-10-30T00:00:00Z.public final Instant endTime()
The end time of the insight. For example, 2018-10-30T00:00:00Z.
2018-10-30T00:00:00Z.public final Severity severity()
The severity of the insight. The values are: Low, Medium, or High.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Low, Medium, or High.Severitypublic final String severityAsString()
The severity of the insight. The values are: Low, Medium, or High.
If the service returns an enum value that is not available in the current SDK version, severity will
return Severity.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
severityAsString().
Low, Medium, or High.Severitypublic final boolean hasSupportingInsights()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Insight> supportingInsights()
List of supporting insights that provide additional factors for the insight.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSupportingInsights() method.
public final String description()
Description of the insight. For example:
A high severity Insight found between 02:00 to 02:30, where there was an unusually high DB load 600x above baseline. Likely performance impact
.
A high severity Insight found between 02:00 to 02:30, where there was an unusually high DB load 600x above baseline. Likely performance impact
.public final boolean hasRecommendations()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Recommendation> recommendations()
List of recommendations for the insight. For example,
Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRecommendations() method.
Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id
.public final boolean hasInsightData()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Data> insightData()
List of data objects containing metrics and references from the time range while generating the insight.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInsightData() method.
public final boolean hasBaselineData()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<Data> baselineData()
Metric names and values from the timeframe used as baseline to generate the insight.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBaselineData() method.
public Insight.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Insight.Builder,Insight>public static Insight.Builder builder()
public static Class<? extends Insight.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.