list_experiments
¶
list_experiments(
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
experiment_type: Optional[ExperimentType] = None,
target_service_name: Optional[str] = None,
created_after: Optional[datetime] = None,
created_before: Optional[datetime] = None,
) -> ListExperimentsOutput
Lists the experiments in the caller's account. Returns a summary for each experiment, newest first. Results can be filtered by experiment type, target service name, and creation time. An experiment is returned only when it matches every specified filter. Use GetExperiment to retrieve a single experiment's full detail. To find experiments by tag, use the Resource Groups Tagging API.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of experiments to return in one page, from 1 to 100. Defaults to 50.
-
next_token(Optional[NextToken], default:None) –A token to retrieve the next page of results.
-
experiment_type(Optional[ExperimentType], default:None) –Filter by experiment type.
-
target_service_name(Optional[str], default:None) –Filter by target service name.
-
created_after(Optional[datetime], default:None) –Returns only experiments created after this time.
-
created_before(Optional[datetime], default:None) –Returns only experiments created before this time.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List DATASET experiments The following example lists the DATASET experiments. One experiment matches, and there are no more pages. Payloads are shown as JSON; on the wire they are CBOR-encoded.
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 | |