start_sessions_statistics_aggregation
async
¶
start_sessions_statistics_aggregation(
farm_id: FarmId,
resource_ids: SessionsStatisticsResources,
start_time: Timestamp,
end_time: Timestamp,
group_by: UsageGroupBy,
statistics: UsageStatistics,
*,
config_overrides: Optional[AsyncdeadlineClientConfig] = None,
timezone: Optional[Timezone] = None,
period: Optional[Period] = None,
) -> StartSessionsStatisticsAggregationResponse
Starts an asynchronous request for getting aggregated statistics about queues and farms. Get the statistics using the GetSessionsStatisticsAggregation operation. You can only have one running aggregation for your Deadline Cloud farm. Call the GetSessionsStatisticsAggregation operation and check the status field to see if an aggregation is running. Statistics are available for 1 hour after you call the StartSessionsStatisticsAggregation operation.
Parameters:
-
farm_id(FarmId) –The identifier of the farm that contains queues or fleets to return statistics for.
-
resource_ids(SessionsStatisticsResources) –A list of fleet IDs or queue IDs to gather statistics for.
-
start_time(Timestamp) –The Linux timestamp of the date and time that the statistics start.
-
end_time(Timestamp) –The Linux timestamp of the date and time that the statistics end.
-
timezone(Optional[Timezone], default:None) –The time zone to use for the statistics. Use UTC notation such as "UTC+8."
-
period(Optional[Period], default:None) –The period to aggregate the statistics.
-
group_by(UsageGroupBy) –The field to use to group the statistics.
-
statistics(UsageStatistics) –One to four statistics to return.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerErrorException–Deadline Cloud can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_deadline/_services/async_deadline.py
2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 | |