list_profile_times
async
¶
list_profile_times(
profiling_group_name: ProfilingGroupName,
start_time: Timestamp,
end_time: Timestamp,
period: AggregationPeriod,
*,
config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
order_by: Optional[OrderBy] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListProfileTimesResponse
Lists the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.
Parameters:
-
profiling_group_name(ProfilingGroupName) –The name of the profiling group.
-
start_time(Timestamp) –The start time of the time range from which to list the profiles.
-
end_time(Timestamp) –The end time of the time range from which to list the profiles.
-
period(AggregationPeriod) –The aggregation period. This specifies the period during which an aggregation profile collects posted agent profiles for a profiling group. There are 3 valid values.
-
P1D— 1 day -
PT1H— 1 hour -
PT5M— 5 minutes
-
-
order_by(Optional[OrderBy], default:None) –The order (ascending or descending by start time of the profile) to use when listing profiles. Defaults to
TIMESTAMP_DESCENDING. -
max_results(Optional[MaxResults], default:None) –The maximum number of profile time results returned by
ListProfileTimesin paginated output. When this parameter is used,ListProfileTimesonly returnsmaxResultsresults in a single page with anextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListProfileTimesrequest with the returnednextTokenvalue. -
next_token(Optional[PaginationToken], default:None) –The
nextTokenvalue returned from a previous paginatedListProfileTimesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue.This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
Raises:
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource specified in the request does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeguruprofiler/_services/async_code_guru_profiler.py
1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 | |