17 May 2018 - GetQueueTime and GetQueueStats additional fields
over 6 years ago by Encoding.com Product Team
Added Queue Size, Minimum Queue Time, and Maximum Queue Time.
Response:
- , , , and
<?xml version="1.0"?>
<response>
<size>[Queue Size]</size>
<minimum>[Minimum Queue Time]</minimum>
<minimumSeconds>[Minimum Queue Time in seconds]</minimumSeconds>
<maximum>[Maximum Queue Time]</maximum>
<maximumSeconds>[Maximum Queue Time in seconds]</maximumSeconds>
<average>[Average Queue Time]</average>
<averageSeconds>[Average Queue Time in seconds]</averageSeconds>
<media>
<id>[Media ID]</id>
<size>[Media Queue Size]</size>
<minimum>[Minimum Media Queue Time]</minimum>
<minimumSeconds>[Minimum Media Queue Time in seconds]</minimumSeconds>
<maximum>[Maximum Media Queue Time]</maximum>
<maximumSeconds>[Maximum Media Queue Time in seconds]</maximumSeconds>
<average>[Average Media Queue Time]</average>
<averageSeconds>[Average Media Queue Time in seconds]</averageSeconds>
<job>
<id>[Task IDs]</id>
<type>[Download|Encode]</type>
<status>[Task Status]</status>
<format>[Task Format]</format>
<overlimit>[yes|no]</overlimit>
<time>[Task Queue Time]</time>
<timeSeconds>[Task Queue Time in seconds]</timeSeconds>
</job>
</media>
<media>
<!-- Media list -->
</media>
</response>
{
"response": {
"size": "[Queue Size]",
"minimum": "[Minimum Queue Time]",
"minimumseconds": "[Minimum Queue Time in seconds]",
"maximum": "[Maximum Queue Time]",
"maximumseconds": "[Maximum Queue Time in seconds]",
"average": "[Average Queue Time]",
"averageseconds": "[Average Queue Time in seconds]",
"media": [
{
"id": "[Media ID]",
"size": "[Media Queue Size]",
"minimum": "[Minimum Media Queue Time]",
"minimumseconds": "[Minimum Media Queue Time in seconds]",
"maximum": "[Maximum Media Queue Time]",
"maximumseconds": "[Maximum Media Queue Time in seconds]",
"average": "[Average Media Queue Time]",
"averageseconds": "[Average Media Queue Time in seconds]",
"job": {
"id": "[Task IDs]",
"type": "[Download|Encode]",
"status": "[Task Status]",
"format": "[Task Format]",
"overlimit": "[yes|no]",
"time": "[Task Queue Time]",
"timeseconds": "[Task Queue Time in seconds]"
}
}
]
}
}
Response:
- If specified:
<?xml version="1.0"?>
<response>
<date_from>[Date Range Start]</date_from>
<date_to>[Date Range End]</date_to>
<media>
<id>[MediaID]</id>
<size>[Queue Size]</size>
<minimum>[Minimum Queue Time]</minimum>
<minimumSeconds>[Minimum Queue Time in seconds]</minimumSeconds>
<maximum>[Maximum Queue Time]</maximum>
<maximumSeconds>[Maximum Queue Time in seconds]</maximumSeconds>
<average>[Average Queue Time]</average>
<averageSeconds>[Average Queue Time in seconds]</averageSeconds>
</media>
<media> <!-- Media list --> </media>
</response>
{
"response": {
"date_from": "[Date Range Start]",
"date_to": "[Date Range End]",
"media": [
{
"id": "[MediaID]",
"size": "[Queue Size]",
"minimum": "[Minimum Queue Time]",
"minimumseconds": "[Minimum Queue Time in seconds]",
"maximum": "[Maximum Queue Time]",
"maximumseconds": "[Maximum Queue Time in seconds]",
"average": "[Average Queue Time]",
"averageseconds": "[Average Queue Time in seconds]"
}
]
}
}
- If not specified:
<?xml version="1.0"?>
<response>
<date_from>[Date Range Start]</date_from>
<date_to>[Date Range End]</date_to>
<media>
<id>[MediaIDs comma separated list]</id>
<size>[Queue Size]</size>
<minimum>[Minimum Queue Time]</minimum>
<minimumSeconds>[Minimum Queue Time in seconds]</minimumSeconds>
<maximum>[Maximum Queue Time]</maximum>
<maximumSeconds>[Maximum Queue Time in seconds]</maximumSeconds>
<average>[Average Queue Time]</average>
<averageSeconds>[Average Queue Time in seconds]</averageSeconds>
</media>
</response>
{
"response": {
"date_from": "[Date Range Start]",
"date_to": "[Date Range End]",
"media": {
"id": "[MediaIDs comma separated list]",
"size": "[Queue Size]",
"minimum": "[Minimum Queue Time]",
"minimumseconds": "[Minimum Queue Time in seconds]",
"maximum": "[Maximum Queue Time]",
"maximumseconds": "[Maximum Queue Time in seconds]",
"average": "[Average Queue Time]",
"averageseconds": "[Average Queue Time in seconds]"
}
}
}