Interface ApprovalStatsService
public interface ApprovalStatsService
Service providing methods to retrieve usage data from specific approval
-
Method Summary
Modifier and TypeMethodDescriptionReturns the average time an assignee took to approve an approval.Retrieves the average elapsed time of the provided filter's approvalReturns the highest time an assignee took to approve an approval.Retrieves the highest elapsed time of the provided filter's approvalReturns the shortest time an assignee took to approve an approval.Retrieves the shortest elapsed time of the provided filter's approval
-
Method Details
-
getMaximumTimeElapsedForApproval
Retrieves the highest elapsed time of the provided filter's approval- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the maximum elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided- Since:
- 7.2
-
getMinimumTimeElapsedForApproval
Retrieves the shortest elapsed time of the provided filter's approval- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the minimum elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided- Since:
- 7.2
-
getAverageTimeElapsedForApproval
Retrieves the average elapsed time of the provided filter's approval- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the average elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided- Since:
- 7.2
-
getMaximumTimeAssigneeTookToApprove
Returns the highest time an assignee took to approve an approval.- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the highest elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided or if given assignee does not exist or is not valid- Since:
- 7.2
-
getMinimumTimeAssigneeTookToApprove
Returns the shortest time an assignee took to approve an approval.- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the shortest elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided or if given assignee does not exist or is not valid- Since:
- 7.2
-
getAverageTimeAssigneeTookToApprove
Returns the average time an assignee took to approve an approval.- Parameters:
filter
-ApprovalStatsFilter
- Returns:
- the average elapsed time in milliseconds since UNIX epoch for the provided filter approval.
- Throws:
WorkflowException
- if user has no admin permission over the provided space keys or if user has no global permission if space keys are not provided or if given assignee does not exist or is not valid- Since:
- 7.2
-