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 Details

    • 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, or DominatingSQLs.

      Parameters:
      insightType - The type of insight. For example, HighDBLoad, HighCPU, or DominatingSQLs.
      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:
    • 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:
    • 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, or High.

      Parameters:
      severity - The severity of the insight. The values are: Low, Medium, or High.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      Insight.Builder severity(Severity severity)

      The severity of the insight. The values are: Low, Medium, or High.

      Parameters:
      severity - The severity of the insight. The values are: Low, Medium, or High.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Insight.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<Insight>).

      Parameters:
      supportingInsights - a consumer that will call methods on Insight.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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, Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id .

      This is a convenience method that creates an instance of the 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<Recommendation>).

      Parameters:
      recommendations - a consumer that will call methods on Recommendation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Data.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<Data>).

      Parameters:
      insightData - a consumer that will call methods on Data.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Data.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<Data>).

      Parameters:
      baselineData - a consumer that will call methods on Data.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: