update_service_level_objective
async
¶
update_service_level_objective(
id: ServiceLevelObjectiveId,
*,
config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
description: Optional[ServiceLevelObjectiveDescription] = None,
sli_config: Optional[ServiceLevelIndicatorConfig] = None,
request_based_sli_config: Optional[RequestBasedServiceLevelIndicatorConfig] = None,
goal: Optional[Goal] = None,
burn_rate_configurations: Optional[BurnRateConfigurations] = None,
auto_investigation_enabled: Optional[bool] = None,
) -> UpdateServiceLevelObjectiveOutput
Updates an existing service level objective (SLO). If you omit parameters, the previous values of those parameters are retained.
You cannot change from a period-based SLO to a request-based SLO, or change from a request-based SLO to a period-based SLO.
Parameters:
-
id(ServiceLevelObjectiveId) –The Amazon Resource Name (ARN) or name of the service level objective that you want to update.
-
description(Optional[ServiceLevelObjectiveDescription], default:None) –An optional description for the SLO.
-
sli_config(Optional[ServiceLevelIndicatorConfig], default:None) –If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor.
-
request_based_sli_config(Optional[RequestBasedServiceLevelIndicatorConfig], default:None) –If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor.
You can't specify both
SliConfigandRequestBasedSliConfigin the same operation. -
goal(Optional[Goal], default:None) –A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.
-
burn_rate_configurations(Optional[BurnRateConfigurations], default:None) –Use this array to create burn rates for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.
-
auto_investigation_enabled(Optional[bool], default:None) –Indicates whether DevOps Agent will automatically investigate this SLO when it is breached
Raises:
-
ResourceNotFoundException–Resource not found.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–The resource is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_application_signals/_services/async_application_signals.py
2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 | |