batch_get_frame_metric_data
async
¶
batch_get_frame_metric_data(
profiling_group_name: ProfilingGroupName,
*,
config_overrides: Optional[AsyncCodeGuruProfilerClientConfig] = None,
start_time: Optional[Timestamp] = None,
end_time: Optional[Timestamp] = None,
period: Optional[Period] = None,
target_resolution: Optional[AggregationPeriod] = None,
frame_metrics: Optional[FrameMetrics] = None,
) -> BatchGetFrameMetricDataResponse
Returns the time series of values for a requested list of frame metrics from a time period.
Parameters:
-
profiling_group_name(ProfilingGroupName) –The name of the profiling group associated with the the frame metrics used to return the time series values.
-
start_time(Optional[Timestamp], default:None) –The start time of the time period for the frame metrics used to return the time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
-
end_time(Optional[Timestamp], default:None) –The end time of the time period for the returned time series values. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
-
period(Optional[Period], default:None) –The duration of the frame metrics used to return the time series values. Specify using the ISO 8601 format. The maximum period duration is one day (
PT24HorP1D). -
target_resolution(Optional[AggregationPeriod], default:None) –The requested resolution of time steps for the returned time series of values. If the requested target resolution is not available due to data not being retained we provide a best effort result by falling back to the most granular available resolution after the target resolution. There are 3 valid values.
-
P1D— 1 day -
PT1H— 1 hour -
PT5M— 5 minutes
-
-
frame_metrics(Optional[FrameMetrics], default:None) –The details of the metrics that are used to request a time series of values. The metric includes the name of the frame, the aggregation type to calculate the metric value for the frame, and the thread states to use to get the count for the metric value of the frame.
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.