public static interface Insight.Builder extends SdkPojo, CopyableBuilder<Insight.Builder,Insight>
| Modifier and Type | Method and Description |
|---|---|
Insight.Builder |
baselineData(Collection<Data> baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
Insight.Builder |
baselineData(Consumer<Data.Builder>... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
Insight.Builder |
baselineData(Data... baselineData)
Metric names and values from the timeframe used as baseline to generate the insight.
|
Insight.Builder |
context(ContextType context)
Indicates if the insight is causal or correlated insight.
|
Insight.Builder |
context(String context)
Indicates if the insight is causal or correlated insight.
|
Insight.Builder |
description(String description)
Description of the insight.
|
Insight.Builder |
endTime(Instant endTime)
The end time of the insight.
|
Insight.Builder |
insightData(Collection<Data> insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
Insight.Builder |
insightData(Consumer<Data.Builder>... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
Insight.Builder |
insightData(Data... insightData)
List of data objects containing metrics and references from the time range while generating the insight.
|
Insight.Builder |
insightId(String insightId)
The unique identifier for the insight.
|
Insight.Builder |
insightType(String insightType)
The type of insight.
|
Insight.Builder |
recommendations(Collection<Recommendation> recommendations)
List of recommendations for the insight.
|
Insight.Builder |
recommendations(Consumer<Recommendation.Builder>... recommendations)
List of recommendations for the insight.
|
Insight.Builder |
recommendations(Recommendation... recommendations)
List of recommendations for the insight.
|
Insight.Builder |
severity(Severity severity)
The severity of the insight.
|
Insight.Builder |
severity(String severity)
The severity of the insight.
|
Insight.Builder |
startTime(Instant startTime)
The start time of the insight.
|
Insight.Builder |
supportingInsights(Collection<Insight> supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
Insight.Builder |
supportingInsights(Consumer<Insight.Builder>... supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
Insight.Builder |
supportingInsights(Insight... supportingInsights)
List of supporting insights that provide additional factors for the insight.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInsight.Builder insightId(String insightId)
The unique identifier for the insight. For example, insight-12345678901234567.
insightId - The unique identifier for the insight. For example, insight-12345678901234567.Insight.Builder insightType(String insightType)
The type of insight. For example, HighDBLoad, HighCPU, or
DominatingSQLs.
insightType - The type of insight. For example, HighDBLoad, HighCPU, or
DominatingSQLs.Insight.Builder context(String context)
Indicates if the insight is causal or correlated insight.
context - Indicates if the insight is causal or correlated insight.ContextType,
ContextTypeInsight.Builder context(ContextType context)
Indicates if the insight is causal or correlated insight.
context - Indicates if the insight is causal or correlated insight.ContextType,
ContextTypeInsight.Builder startTime(Instant 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.Insight.Builder endTime(Instant 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.Insight.Builder severity(String severity)
The severity of the insight. The values are: Low, Medium, or High.
Insight.Builder severity(Severity severity)
The severity of the insight. The values are: Low, Medium, or High.
Insight.Builder supportingInsights(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.Insight.Builder supportingInsights(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.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.Builder avoiding the need to create one manually via
Insight.builder().
When the Consumer completes, SdkBuilder.build()
is called immediately and its result is passed to #supportingInsights(List.
supportingInsights - a consumer that will call methods on Insight.Builder#supportingInsights(java.util.Collection) 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
.
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
.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
.
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
.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
.
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
.Insight.Builder recommendations(Consumer<Recommendation.Builder>... 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
.
Recommendation.Builder avoiding the need to create one
manually via Recommendation.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #recommendations(List.
recommendations - a consumer that will call methods on
Recommendation.Builder#recommendations(java.util.Collection) Insight.Builder insightData(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.Insight.Builder insightData(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.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.Builder avoiding the need to create one manually via
Data.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #insightData(List).
insightData - a consumer that will call methods on Data.Builder#insightData(java.util.Collection)Insight.Builder baselineData(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.Insight.Builder baselineData(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.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.Builder avoiding the need to create one manually via
Data.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #baselineData(List).
baselineData - a consumer that will call methods on Data.Builder#baselineData(java.util.Collection)Copyright © 2023. All rights reserved.