Interface ServiceLevelObjectiveBudgetReport.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceLevelObjectiveBudgetReport.Builder,
,ServiceLevelObjectiveBudgetReport> SdkBuilder<ServiceLevelObjectiveBudgetReport.Builder,
,ServiceLevelObjectiveBudgetReport> SdkPojo
- Enclosing class:
ServiceLevelObjectiveBudgetReport
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the SLO that this report is for.attainment
(Double attainment) A number between 0 and 100 that represents the success percentage of your application compared to the goal set by the SLO.budgetRequestsRemaining
(Integer budgetRequestsRemaining) This field is displayed only for request-based SLOs.budgetSecondsRemaining
(Integer budgetSecondsRemaining) The budget amount remaining before the SLO status becomesBREACHING
, at the time specified in theTimestemp
parameter of the request.budgetStatus
(String budgetStatus) The status of this SLO, as it relates to the error budget for the entire time interval.budgetStatus
(ServiceLevelObjectiveBudgetStatus budgetStatus) The status of this SLO, as it relates to the error budget for the entire time interval.evaluationType
(String evaluationType) Displays whether this budget report is for a period-based SLO or a request-based SLO.evaluationType
(EvaluationType evaluationType) Displays whether this budget report is for a period-based SLO or a request-based SLO.goal
(Consumer<Goal.Builder> goal) Sets the value of the Goal property for this object.Sets the value of the Goal property for this object.The name of the SLO that this report is for.requestBasedSli
(Consumer<RequestBasedServiceLevelIndicator.Builder> requestBasedSli) Sets the value of the RequestBasedSli property for this object.requestBasedSli
(RequestBasedServiceLevelIndicator requestBasedSli) Sets the value of the RequestBasedSli property for this object.A structure that contains information about the performance metric that this SLO monitors.sli
(ServiceLevelIndicator sli) A structure that contains information about the performance metric that this SLO monitors.totalBudgetRequests
(Integer totalBudgetRequests) This field is displayed only for request-based SLOs.totalBudgetSeconds
(Integer totalBudgetSeconds) The total number of seconds in the error budget for the interval.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, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The ARN of the SLO that this report is for.
- Parameters:
arn
- The ARN of the SLO that this report is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the SLO that this report is for.
- Parameters:
name
- The name of the SLO that this report is for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationType
Displays whether this budget report is for a period-based SLO or a request-based SLO.
- Parameters:
evaluationType
- Displays whether this budget report is for a period-based SLO or a request-based SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluationType
Displays whether this budget report is for a period-based SLO or a request-based SLO.
- Parameters:
evaluationType
- Displays whether this budget report is for a period-based SLO or a request-based SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
budgetStatus
The status of this SLO, as it relates to the error budget for the entire time interval.
-
OK
means that the SLO had remaining budget above the warning threshold, as of the time that you specified inTimeStamp
. -
WARNING
means that the SLO's remaining budget was below the warning threshold, as of the time that you specified inTimeStamp
. -
BREACHED
means that the SLO's budget was exhausted, as of the time that you specified inTimeStamp
. -
INSUFFICIENT_DATA
means that the specified start and end times were before the SLO was created, or that attainment data is missing.
- Parameters:
budgetStatus
- The status of this SLO, as it relates to the error budget for the entire time interval.-
OK
means that the SLO had remaining budget above the warning threshold, as of the time that you specified inTimeStamp
. -
WARNING
means that the SLO's remaining budget was below the warning threshold, as of the time that you specified inTimeStamp
. -
BREACHED
means that the SLO's budget was exhausted, as of the time that you specified inTimeStamp
. -
INSUFFICIENT_DATA
means that the specified start and end times were before the SLO was created, or that attainment data is missing.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
budgetStatus
ServiceLevelObjectiveBudgetReport.Builder budgetStatus(ServiceLevelObjectiveBudgetStatus budgetStatus) The status of this SLO, as it relates to the error budget for the entire time interval.
-
OK
means that the SLO had remaining budget above the warning threshold, as of the time that you specified inTimeStamp
. -
WARNING
means that the SLO's remaining budget was below the warning threshold, as of the time that you specified inTimeStamp
. -
BREACHED
means that the SLO's budget was exhausted, as of the time that you specified inTimeStamp
. -
INSUFFICIENT_DATA
means that the specified start and end times were before the SLO was created, or that attainment data is missing.
- Parameters:
budgetStatus
- The status of this SLO, as it relates to the error budget for the entire time interval.-
OK
means that the SLO had remaining budget above the warning threshold, as of the time that you specified inTimeStamp
. -
WARNING
means that the SLO's remaining budget was below the warning threshold, as of the time that you specified inTimeStamp
. -
BREACHED
means that the SLO's budget was exhausted, as of the time that you specified inTimeStamp
. -
INSUFFICIENT_DATA
means that the specified start and end times were before the SLO was created, or that attainment data is missing.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
attainment
A number between 0 and 100 that represents the success percentage of your application compared to the goal set by the SLO.
If this is a period-based SLO, the number is the percentage of time periods that the service has attained the SLO's attainment goal, as of the time of the request.
If this is a request-based SLO, the number is the number of successful requests divided by the number of total requests, multiplied by 100, during the time range that you specified in your request.
- Parameters:
attainment
- A number between 0 and 100 that represents the success percentage of your application compared to the goal set by the SLO.If this is a period-based SLO, the number is the percentage of time periods that the service has attained the SLO's attainment goal, as of the time of the request.
If this is a request-based SLO, the number is the number of successful requests divided by the number of total requests, multiplied by 100, during the time range that you specified in your request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalBudgetSeconds
The total number of seconds in the error budget for the interval. This field is included only if the SLO is a period-based SLO.
- Parameters:
totalBudgetSeconds
- The total number of seconds in the error budget for the interval. This field is included only if the SLO is a period-based SLO.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetSecondsRemaining
The budget amount remaining before the SLO status becomes
BREACHING
, at the time specified in theTimestemp
parameter of the request. If this value is negative, then the SLO is already inBREACHING
status.This field is included only if the SLO is a period-based SLO.
- Parameters:
budgetSecondsRemaining
- The budget amount remaining before the SLO status becomesBREACHING
, at the time specified in theTimestemp
parameter of the request. If this value is negative, then the SLO is already inBREACHING
status.This field is included only if the SLO is a period-based SLO.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalBudgetRequests
This field is displayed only for request-based SLOs. It displays the total number of failed requests that can be tolerated during the time range between the start of the interval and the time stamp supplied in the budget report request. It is based on the total number of requests that occurred, and the percentage specified in the attainment goal. If the number of failed requests matches this number or is higher, then this SLO is currently breaching.
This number can go up and down between reports with different time stamps, based on both how many total requests occur.
- Parameters:
totalBudgetRequests
- This field is displayed only for request-based SLOs. It displays the total number of failed requests that can be tolerated during the time range between the start of the interval and the time stamp supplied in the budget report request. It is based on the total number of requests that occurred, and the percentage specified in the attainment goal. If the number of failed requests matches this number or is higher, then this SLO is currently breaching.This number can go up and down between reports with different time stamps, based on both how many total requests occur.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
budgetRequestsRemaining
This field is displayed only for request-based SLOs. It displays the number of failed requests that can be tolerated before any more successful requests occur, and still have the application meet its SLO goal.
This number can go up and down between different reports, based on both how many successful requests and how many failed requests occur in that time.
- Parameters:
budgetRequestsRemaining
- This field is displayed only for request-based SLOs. It displays the number of failed requests that can be tolerated before any more successful requests occur, and still have the application meet its SLO goal.This number can go up and down between different reports, based on both how many successful requests and how many failed requests occur in that time.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sli
A structure that contains information about the performance metric that this SLO monitors.
- Parameters:
sli
- A structure that contains information about the performance metric that this SLO monitors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sli
A structure that contains information about the performance metric that this SLO monitors.
This is a convenience method that creates an instance of theServiceLevelIndicator.Builder
avoiding the need to create one manually viaServiceLevelIndicator.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosli(ServiceLevelIndicator)
.- Parameters:
sli
- a consumer that will call methods onServiceLevelIndicator.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestBasedSli
ServiceLevelObjectiveBudgetReport.Builder requestBasedSli(RequestBasedServiceLevelIndicator requestBasedSli) Sets the value of the RequestBasedSli property for this object.- Parameters:
requestBasedSli
- The new value for the RequestBasedSli property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestBasedSli
default ServiceLevelObjectiveBudgetReport.Builder requestBasedSli(Consumer<RequestBasedServiceLevelIndicator.Builder> requestBasedSli) Sets the value of the RequestBasedSli property for this object. This is a convenience method that creates an instance of theRequestBasedServiceLevelIndicator.Builder
avoiding the need to create one manually viaRequestBasedServiceLevelIndicator.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torequestBasedSli(RequestBasedServiceLevelIndicator)
.- Parameters:
requestBasedSli
- a consumer that will call methods onRequestBasedServiceLevelIndicator.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
goal
Sets the value of the Goal property for this object.- Parameters:
goal
- The new value for the Goal property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
goal
Sets the value of the Goal property for this object. This is a convenience method that creates an instance of theGoal.Builder
avoiding the need to create one manually viaGoal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togoal(Goal)
.- Parameters:
goal
- a consumer that will call methods onGoal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-