@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Insight extends Object implements Serializable, Cloneable, StructuredPojo
Retrieves the list of performance issues which are identified.
Constructor and Description |
---|
Insight() |
Modifier and Type | Method and Description |
---|---|
Insight |
clone() |
boolean |
equals(Object obj) |
List<Data> |
getBaselineData()
Metric names and values from the timeframe used as baseline to generate the insight.
|
String |
getContext()
Indicates if the insight is causal or correlated insight.
|
String |
getDescription()
Description of the insight.
|
Date |
getEndTime()
The end time of the insight.
|
List<Data> |
getInsightData()
List of data objects containing metrics and references from the time range while generating the insight.
|
String |
getInsightId()
The unique identifier for the insight.
|
String |
getInsightType()
The type of insight.
|
List<Recommendation> |
getRecommendations()
List of recommendations for the insight.
|
String |
getSeverity()
The severity of the insight.
|
Date |
getStartTime()
The start time of the insight.
|
List<Insight> |
getSupportingInsights()
List of supporting insights that provide additional factors for the insight.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBaselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
void |
setContext(String context)
Indicates if the insight is causal or correlated insight.
|
void |
setDescription(String description)
Description of the insight.
|
void |
setEndTime(Date endTime)
The end time of the insight.
|
void |
setInsightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
void |
setInsightId(String insightId)
The unique identifier for the insight.
|
void |
setInsightType(String insightType)
The type of insight.
|
void |
setRecommendations(Collection<Recommendation> recommendations)
List of recommendations for the insight.
|
void |
setSeverity(String severity)
The severity of the insight.
|
void |
setStartTime(Date startTime)
The start time of the insight.
|
void |
setSupportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
String |
toString()
Returns a string representation of this object.
|
Insight |
withBaselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
Insight |
withBaselineData(Data... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
Insight |
withContext(ContextType context)
Indicates if the insight is causal or correlated insight.
|
Insight |
withContext(String context)
Indicates if the insight is causal or correlated insight.
|
Insight |
withDescription(String description)
Description of the insight.
|
Insight |
withEndTime(Date endTime)
The end time of the insight.
|
Insight |
withInsightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
Insight |
withInsightData(Data... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
Insight |
withInsightId(String insightId)
The unique identifier for the insight.
|
Insight |
withInsightType(String insightType)
The type of insight.
|
Insight |
withRecommendations(Collection<Recommendation> recommendations)
List of recommendations for the insight.
|
Insight |
withRecommendations(Recommendation... recommendations)
List of recommendations for the insight.
|
Insight |
withSeverity(Severity severity)
The severity of the insight.
|
Insight |
withSeverity(String severity)
The severity of the insight.
|
Insight |
withStartTime(Date startTime)
The start time of the insight.
|
Insight |
withSupportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
Insight |
withSupportingInsights(Insight... supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
public void setInsightId(String insightId)
The unique identifier for the insight. For example, insight-12345678901234567
.
insightId
- The unique identifier for the insight. For example, insight-12345678901234567
.public String getInsightId()
The unique identifier for the insight. For example, insight-12345678901234567
.
insight-12345678901234567
.public Insight withInsightId(String insightId)
The unique identifier for the insight. For example, insight-12345678901234567
.
insightId
- The unique identifier for the insight. For example, insight-12345678901234567
.public void setInsightType(String insightType)
The type of insight. For example, HighDBLoad
, HighCPU
, or DominatingSQLs
.
insightType
- The type of insight. For example, HighDBLoad
, HighCPU
, or
DominatingSQLs
.public String getInsightType()
The type of insight. For example, HighDBLoad
, HighCPU
, or DominatingSQLs
.
HighDBLoad
, HighCPU
, or
DominatingSQLs
.public Insight withInsightType(String insightType)
The type of insight. For example, HighDBLoad
, HighCPU
, or DominatingSQLs
.
insightType
- The type of insight. For example, HighDBLoad
, HighCPU
, or
DominatingSQLs
.public void setContext(String context)
Indicates if the insight is causal or correlated insight.
context
- Indicates if the insight is causal or correlated insight.ContextType
public String getContext()
Indicates if the insight is causal or correlated insight.
ContextType
public Insight withContext(String context)
Indicates if the insight is causal or correlated insight.
context
- Indicates if the insight is causal or correlated insight.ContextType
public Insight withContext(ContextType context)
Indicates if the insight is causal or correlated insight.
context
- Indicates if the insight is causal or correlated insight.ContextType
public void setStartTime(Date startTime)
The start time of the insight. For example, 2018-10-30T00:00:00Z
.
startTime
- The start time of the insight. For example, 2018-10-30T00:00:00Z
.public Date getStartTime()
The start time of the insight. For example, 2018-10-30T00:00:00Z
.
2018-10-30T00:00:00Z
.public Insight withStartTime(Date startTime)
The start time of the insight. For example, 2018-10-30T00:00:00Z
.
startTime
- The start time of the insight. For example, 2018-10-30T00:00:00Z
.public void setEndTime(Date endTime)
The end time of the insight. For example, 2018-10-30T00:00:00Z
.
endTime
- The end time of the insight. For example, 2018-10-30T00:00:00Z
.public Date getEndTime()
The end time of the insight. For example, 2018-10-30T00:00:00Z
.
2018-10-30T00:00:00Z
.public Insight withEndTime(Date endTime)
The end time of the insight. For example, 2018-10-30T00:00:00Z
.
endTime
- The end time of the insight. For example, 2018-10-30T00:00:00Z
.public void setSeverity(String severity)
The severity of the insight. The values are: Low
, Medium
, or High
.
severity
- The severity of the insight. The values are: Low
, Medium
, or High
.Severity
public String getSeverity()
The severity of the insight. The values are: Low
, Medium
, or High
.
Low
, Medium
, or High
.Severity
public Insight withSeverity(String severity)
The severity of the insight. The values are: Low
, Medium
, or High
.
severity
- The severity of the insight. The values are: Low
, Medium
, or High
.Severity
public Insight withSeverity(Severity severity)
The severity of the insight. The values are: Low
, Medium
, or High
.
severity
- The severity of the insight. The values are: Low
, Medium
, or High
.Severity
public List<Insight> getSupportingInsights()
List of supporting insights that provide additional factors for the insight.
public void setSupportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
supportingInsights
- List of supporting insights that provide additional factors for the insight.public Insight withSupportingInsights(Insight... supportingInsights)
List of supporting insights that provide additional factors for the insight.
NOTE: This method appends the values to the existing list (if any). Use
setSupportingInsights(java.util.Collection)
or withSupportingInsights(java.util.Collection)
if
you want to override the existing values.
supportingInsights
- List of supporting insights that provide additional factors for the insight.public Insight withSupportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
supportingInsights
- List of supporting insights that provide additional factors for the insight.public void setDescription(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
.
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
.public String getDescription()
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 Insight withDescription(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
.
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
.public List<Recommendation> getRecommendations()
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
.
Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id
.public void setRecommendations(Collection<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
.
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
.public Insight withRecommendations(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
.
NOTE: This method appends the values to the existing list (if any). Use
setRecommendations(java.util.Collection)
or withRecommendations(java.util.Collection)
if you
want to override the existing values.
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
.public Insight withRecommendations(Collection<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
.
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
.public List<Data> getInsightData()
List of data objects containing metrics and references from the time range while generating the insight.
public void setInsightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
insightData
- List of data objects containing metrics and references from the time range while generating the insight.public Insight withInsightData(Data... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
NOTE: This method appends the values to the existing list (if any). Use
setInsightData(java.util.Collection)
or withInsightData(java.util.Collection)
if you want to
override the existing values.
insightData
- List of data objects containing metrics and references from the time range while generating the insight.public Insight withInsightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
insightData
- List of data objects containing metrics and references from the time range while generating the insight.public List<Data> getBaselineData()
Metric names and values from the timeframe used as baseline to generate the insight.
public void setBaselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
baselineData
- Metric names and values from the timeframe used as baseline to generate the insight.public Insight withBaselineData(Data... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
NOTE: This method appends the values to the existing list (if any). Use
setBaselineData(java.util.Collection)
or withBaselineData(java.util.Collection)
if you want to
override the existing values.
baselineData
- Metric names and values from the timeframe used as baseline to generate the insight.public Insight withBaselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
baselineData
- Metric names and values from the timeframe used as baseline to generate the insight.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.