Interface AlertStateInfo.Builder

  • Method Details

    • value

      Current flat state.

      Parameters:
      value - Current flat state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • value

      Current flat state.

      Parameters:
      value - Current flat state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • transitionedAt

      AlertStateInfo.Builder transitionedAt(Instant transitionedAt)

      When the alert transitioned to its current state.

      Parameters:
      transitionedAt - When the alert transitioned to its current state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contributorSummary

      AlertStateInfo.Builder contributorSummary(ContributorSummary contributorSummary)

      Counts of contributors currently breaching each severity threshold. Present only when contributor-level tracking is active; absent until the first contributor breaches a WARNING or CRITICAL threshold.

      Parameters:
      contributorSummary - Counts of contributors currently breaching each severity threshold. Present only when contributor-level tracking is active; absent until the first contributor breaches a WARNING or CRITICAL threshold.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contributorSummary

      default AlertStateInfo.Builder contributorSummary(Consumer<ContributorSummary.Builder> contributorSummary)

      Counts of contributors currently breaching each severity threshold. Present only when contributor-level tracking is active; absent until the first contributor breaches a WARNING or CRITICAL threshold.

      This is a convenience method that creates an instance of the ContributorSummary.Builder avoiding the need to create one manually via ContributorSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to contributorSummary(ContributorSummary).

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

      Structured detail about why the alert is in its current state.

      Parameters:
      data - Structured detail about why the alert is in its current state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • data

      Structured detail about why the alert is in its current state.

      This is a convenience method that creates an instance of the AlertStateData.Builder avoiding the need to create one manually via AlertStateData.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to data(AlertStateData).

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