Interface Insight.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Insight.Builder,Insight>,SdkBuilder<Insight.Builder,Insight>,SdkPojo
- Enclosing class:
- Insight
public static interface Insight.Builder extends SdkPojo, CopyableBuilder<Insight.Builder,Insight>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Insight.BuilderbaselineData(Collection<Data> baselineData)Metric names and values from the timeframe used as baseline to generate the insight.Insight.BuilderbaselineData(Consumer<Data.Builder>... baselineData)Metric names and values from the timeframe used as baseline to generate the insight.Insight.BuilderbaselineData(Data... baselineData)Metric names and values from the timeframe used as baseline to generate the insight.Insight.Buildercontext(String context)Indicates if the insight is causal or correlated insight.Insight.Buildercontext(ContextType context)Indicates if the insight is causal or correlated insight.Insight.Builderdescription(String description)Description of the insight.Insight.BuilderendTime(Instant endTime)The end time of the insight.Insight.BuilderinsightData(Collection<Data> insightData)List of data objects containing metrics and references from the time range while generating the insight.Insight.BuilderinsightData(Consumer<Data.Builder>... insightData)List of data objects containing metrics and references from the time range while generating the insight.Insight.BuilderinsightData(Data... insightData)List of data objects containing metrics and references from the time range while generating the insight.Insight.BuilderinsightId(String insightId)The unique identifier for the insight.Insight.BuilderinsightType(String insightType)The type of insight.Insight.Builderrecommendations(Collection<Recommendation> recommendations)List of recommendations for the insight.Insight.Builderrecommendations(Consumer<Recommendation.Builder>... recommendations)List of recommendations for the insight.Insight.Builderrecommendations(Recommendation... recommendations)List of recommendations for the insight.Insight.Builderseverity(String severity)The severity of the insight.Insight.Builderseverity(Severity severity)The severity of the insight.Insight.BuilderstartTime(Instant startTime)The start time of the insight.Insight.BuildersupportingInsights(Collection<Insight> supportingInsights)List of supporting insights that provide additional factors for the insight.Insight.BuildersupportingInsights(Consumer<Insight.Builder>... supportingInsights)List of supporting insights that provide additional factors for the insight.Insight.BuildersupportingInsights(Insight... supportingInsights)List of supporting insights that provide additional factors for the insight.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
insightId
Insight.Builder insightId(String insightId)
The unique identifier for the insight. For example,
insight-12345678901234567.- Parameters:
insightId- The unique identifier for the insight. For example,insight-12345678901234567.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightType
Insight.Builder insightType(String insightType)
The type of insight. For example,
HighDBLoad,HighCPU, orDominatingSQLs.- Parameters:
insightType- The type of insight. For example,HighDBLoad,HighCPU, orDominatingSQLs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
Insight.Builder context(String context)
Indicates if the insight is causal or correlated insight.
- Parameters:
context- Indicates if the insight is causal or correlated insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContextType,ContextType
-
context
Insight.Builder context(ContextType context)
Indicates if the insight is causal or correlated insight.
- Parameters:
context- Indicates if the insight is causal or correlated insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContextType,ContextType
-
startTime
Insight.Builder startTime(Instant startTime)
The start time of the insight. For example,
2018-10-30T00:00:00Z.- Parameters:
startTime- The start time of the insight. For example,2018-10-30T00:00:00Z.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
Insight.Builder endTime(Instant endTime)
The end time of the insight. For example,
2018-10-30T00:00:00Z.- Parameters:
endTime- The end time of the insight. For example,2018-10-30T00:00:00Z.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
Insight.Builder severity(String severity)
The severity of the insight. The values are:
Low,Medium, orHigh.
-
severity
Insight.Builder severity(Severity severity)
The severity of the insight. The values are:
Low,Medium, orHigh.
-
supportingInsights
Insight.Builder supportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
- Parameters:
supportingInsights- List of supporting insights that provide additional factors for the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportingInsights
Insight.Builder supportingInsights(Insight... supportingInsights)
List of supporting insights that provide additional factors for the insight.
- Parameters:
supportingInsights- List of supporting insights that provide additional factors for the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportingInsights
Insight.Builder supportingInsights(Consumer<Insight.Builder>... supportingInsights)
List of supporting insights that provide additional factors for the insight.
This is a convenience method that creates an instance of theInsight.Builderavoiding the need to create one manually viaInsight.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#supportingInsights(List.) - Parameters:
supportingInsights- a consumer that will call methods onInsight.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#supportingInsights(java.util.Collection)
-
description
Insight.Builder description(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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendations
Insight.Builder recommendations(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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendations
Insight.Builder recommendations(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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendations
Insight.Builder recommendations(Consumer<Recommendation.Builder>... recommendations)
List of recommendations for the insight. For example,
This is a convenience method that creates an instance of theInvestigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id.Recommendation.Builderavoiding the need to create one manually viaRecommendation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#recommendations(List.) - Parameters:
recommendations- a consumer that will call methods onRecommendation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#recommendations(java.util.Collection)
-
insightData
Insight.Builder insightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
- Parameters:
insightData- List of data objects containing metrics and references from the time range while generating the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightData
Insight.Builder insightData(Data... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
- Parameters:
insightData- List of data objects containing metrics and references from the time range while generating the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightData
Insight.Builder insightData(Consumer<Data.Builder>... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
This is a convenience method that creates an instance of theData.Builderavoiding the need to create one manually viaData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#insightData(List).- Parameters:
insightData- a consumer that will call methods onData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#insightData(java.util.Collection)
-
baselineData
Insight.Builder baselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
- Parameters:
baselineData- Metric names and values from the timeframe used as baseline to generate the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineData
Insight.Builder baselineData(Data... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
- Parameters:
baselineData- Metric names and values from the timeframe used as baseline to generate the insight.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
baselineData
Insight.Builder baselineData(Consumer<Data.Builder>... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
This is a convenience method that creates an instance of theData.Builderavoiding the need to create one manually viaData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#baselineData(List).- Parameters:
baselineData- a consumer that will call methods onData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#baselineData(java.util.Collection)
-
-