Skip to main content

sessions_statistics_aggregations

Creates, updates, deletes, gets or lists a sessions_statistics_aggregations resource.

Overview

Namesessions_statistics_aggregations
TypeResource
Idaws.deadline.sessions_statistics_aggregations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aggregation_end_timestring (date-time)The end time for the aggregation.
aggregation_start_timestring (date-time)The start time for the aggregation.
cost_in_usdobjectHow the statistics should appear in USD. Options include: minimum, maximum, average or sum.
countintegerThe number of instances in a list of statistics.
fleet_idstringThe fleet ID. (pattern: <code>fleet-[0-9a-f]{32}</code>)
instance_typestringThe type of instance.
job_idstringThe job ID. (pattern: <code>job-[0-9a-f]{32}</code>)
job_namestringThe job name.
license_productstringThe licensed product.
queue_idstringThe queue ID. (pattern: <code>queue-[0-9a-f]{32}</code>)
runtime_in_secondsobjectThe total aggregated runtime.
usage_typestringThe type of usage for the statistics. (COMPUTE, LICENSE, PERSISTENT_VOLUME)
user_idstringThe user ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sessions_statistics_aggregationselectfarm_id, aggregationId, regionnextToken, maxResultsGets a set of statistics for queues or farms. Before you can call the GetSessionStatisticsAggregation operation, you must first call the StartSessionsStatisticsAggregation operation. Statistics are available for 1 hour after you call the StartSessionsStatisticsAggregation operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aggregationIdstringThe identifier returned by the StartSessionsStatisticsAggregation operation that identifies the aggregated statistics.
farm_idstringThe identifier of the farm to include in the statistics. This should be the same as the farm ID used in the call to the StartSessionsStatisticsAggregation operation.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.
nextTokenstringThe token for the next set of results, or null to start from the beginning.

SELECT examples

Gets a set of statistics for queues or farms. Before you can call the GetSessionStatisticsAggregation operation, you must first call the StartSessionsStatisticsAggregation operation. Statistics are available for 1 hour after you call the StartSessionsStatisticsAggregation operation.

SELECT
aggregation_end_time,
aggregation_start_time,
cost_in_usd,
count,
fleet_id,
instance_type,
job_id,
job_name,
license_product,
queue_id,
runtime_in_seconds,
usage_type,
user_id
FROM aws.deadline.sessions_statistics_aggregations
WHERE farm_id = '{{ farm_id }}' -- required
AND aggregationId = '{{ aggregationId }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;