DeadlineCloud / Client / get_sessions_statistics_aggregation
get_sessions_statistics_aggregation#
- DeadlineCloud.Client.get_sessions_statistics_aggregation(**kwargs)#
Gets a set of statistics for queues or farms. Before you can call the
GetSessionStatisticsAggregationoperation, you must first call theStartSessionsStatisticsAggregationoperation. Statistics are available for 1 hour after you call theStartSessionsStatisticsAggregationoperation.See also: AWS API Documentation
Request Syntax
response = client.get_sessions_statistics_aggregation( aggregationId='string', farmId='string', maxResults=123, nextToken='string' )
- Parameters:
aggregationId (string) –
[REQUIRED]
The identifier returned by the
StartSessionsStatisticsAggregationoperation that identifies the aggregated statistics.farmId (string) –
[REQUIRED]
The identifier of the farm to include in the statistics. This should be the same as the farm ID used in the call to the
StartSessionsStatisticsAggregationoperation.maxResults (integer) – The maximum number of results to return. Use this parameter with
NextTokento get results as a set of sequential pages.nextToken (string) – The token for the next set of results, or
nullto start from the beginning.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'statistics': [ { 'aggregationEndTime': datetime(2015, 1, 1), 'aggregationStartTime': datetime(2015, 1, 1), 'costInUsd': { 'avg': 123.0, 'max': 123.0, 'min': 123.0, 'sum': 123.0 }, 'count': 123, 'fleetId': 'string', 'instanceType': 'string', 'jobId': 'string', 'jobName': 'string', 'licenseProduct': 'string', 'queueId': 'string', 'runtimeInSeconds': { 'avg': 123.0, 'max': 123.0, 'min': 123.0, 'sum': 123.0 }, 'usageType': 'COMPUTE'|'LICENSE', 'userId': 'string' }, ], 'status': 'IN_PROGRESS'|'TIMEOUT'|'FAILED'|'COMPLETED', 'statusMessage': 'string' }
Response Structure
(dict) –
nextToken (string) –
If Deadline Cloud returns
nextToken, then there are more results available. The value ofnextTokenis a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, thennextTokenis set tonull. Each pagination token expires after 24 hours. If you provide a token that isn’t valid, then you receive an HTTP 400ValidationExceptionerror.statistics (list) –
The statistics for the specified fleets or queues.
(dict) –
A list of statistics for a session.
aggregationEndTime (datetime) –
The end time for the aggregation.
aggregationStartTime (datetime) –
The start time for the aggregation.
costInUsd (dict) –
How the statistics should appear in USD. Options include: minimum, maximum, average or sum.
avg (float) –
The average of the usage statistics.
max (float) –
The maximum among the usage statistics.
min (float) –
The minimum of the usage statistics.
sum (float) –
The sum of the usage statistics.
count (integer) –
The number of instances in a list of statistics.
fleetId (string) –
The fleet ID.
instanceType (string) –
The type of instance.
jobId (string) –
The job ID.
jobName (string) –
The job name.
licenseProduct (string) –
The licensed product.
queueId (string) –
The queue ID.
runtimeInSeconds (dict) –
The total aggregated runtime.
avg (float) –
The average of the usage statistics.
max (float) –
The maximum among the usage statistics.
min (float) –
The minimum of the usage statistics.
sum (float) –
The sum of the usage statistics.
usageType (string) –
The type of usage for the statistics.
userId (string) –
The user ID.
status (string) –
The status of the aggregated results.
statusMessage (string) –
A message that describes the status.
Exceptions
DeadlineCloud.Client.exceptions.AccessDeniedExceptionDeadlineCloud.Client.exceptions.InternalServerErrorExceptionDeadlineCloud.Client.exceptions.ResourceNotFoundExceptionDeadlineCloud.Client.exceptions.ThrottlingExceptionDeadlineCloud.Client.exceptions.ValidationException