list_service_level_objectives
async
¶
list_service_level_objectives(
*,
config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
key_attributes: Optional[Attributes] = None,
operation_name: Optional[OperationName] = None,
dependency_config: Optional[DependencyConfig] = None,
max_results: Optional[ListServiceLevelObjectivesMaxResults] = None,
next_token: Optional[NextToken] = None,
metric_source_types: Optional[MetricSourceTypes] = None,
include_linked_accounts: Optional[bool] = None,
slo_owner_aws_account_id: Optional[AwsAccountId] = None,
metric_source: Optional[MetricSource] = None,
) -> ListServiceLevelObjectivesOutput
Returns a list of SLOs created in this account.
Parameters:
-
key_attributes(Optional[Attributes], default:None) –You can use this optional field to specify which services you want to retrieve SLO information for.
This is a string-to-string map. It can include the following fields.
-
Typedesignates the type of object this is. -
ResourceTypespecifies the type of the resource. This field is used only when the value of theTypefield isResourceorAWS::Resource. -
Namespecifies the name of the object. This is used only if the value of theTypefield isService,RemoteService, orAWS::Service. -
Identifieridentifies the resource objects of this resource. This is used only if the value of theTypefield isResourceorAWS::Resource. -
Environmentspecifies the location where this object is hosted, or what it belongs to.
-
-
operation_name(Optional[OperationName], default:None) –The name of the operation that this SLO is associated with.
-
dependency_config(Optional[DependencyConfig], default:None) –Identifies the dependency using the
DependencyKeyAttributesandDependencyOperationName. -
max_results(Optional[ListServiceLevelObjectivesMaxResults], default:None) –The maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used.
-
next_token(Optional[NextToken], default:None) –Include this value, if it was returned by the previous operation, to get the next set of service level objectives.
-
metric_source_types(Optional[MetricSourceTypes], default:None) –Use this optional field to only include SLOs with the specified metric source types in the output. Supported types are:
-
Service operation
-
Service dependency
-
Service
-
CloudWatch metric
-
AppMonitor
-
Canary
-
-
include_linked_accounts(Optional[bool], default:None) –If you are using this operation in a monitoring account, specify
trueto include SLO from source accounts in the returned data.When you are monitoring an account, you can use Amazon Web Services account ID in
KeyAttributefilter for service source account andSloOwnerawsaccountIDfor SLO source account withIncludeLinkedAccountsto filter the returned data to only a single source account. -
slo_owner_aws_account_id(Optional[AwsAccountId], default:None) –SLO's Amazon Web Services account ID.
-
metric_source(Optional[MetricSource], default:None) –Identifies the metric source to filter SLOs by.
Raises:
-
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
2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 | |