Interface ApprovalStatsService


public interface ApprovalStatsService
Service providing methods to retrieve usage data from specific approval
  • Method Details

    • getMaximumTimeElapsedForApproval

      Long getMaximumTimeElapsedForApproval(ApprovalStatsFilter filter) throws WorkflowException
      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

      Long getMinimumTimeElapsedForApproval(ApprovalStatsFilter filter) throws WorkflowException
      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

      Double getAverageTimeElapsedForApproval(ApprovalStatsFilter filter) throws WorkflowException
      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

      Long getMaximumTimeAssigneeTookToApprove(ApprovalStatsFilter filter) throws WorkflowException
      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

      Long getMinimumTimeAssigneeTookToApprove(ApprovalStatsFilter filter) throws WorkflowException
      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

      Double getAverageTimeAssigneeTookToApprove(ApprovalStatsFilter filter) throws WorkflowException
      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