Class StatisticsApi

java.lang.Object
com.veeroute.lss.account.api.StatisticsApi

public class StatisticsApi extends Object
  • Constructor Details

    • StatisticsApi

      public StatisticsApi()
    • StatisticsApi

      public StatisticsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • generateReportCall

      public okhttp3.Call generateReportCall(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType, ApiCallback _callback) throws ApiException
      Build call for generateReport
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Report created successfully -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateReport

      public byte[] generateReport(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType) throws ApiException
      Report creating Creating report with usage statistics. If the period is not specified, records are returned from the beginning of the month to the present day (excluding). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be the the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      Returns:
      byte[]
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Report created successfully -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateReportWithHttpInfo

      public ApiResponse<byte[]> generateReportWithHttpInfo(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType) throws ApiException
      Report creating Creating report with usage statistics. If the period is not specified, records are returned from the beginning of the month to the present day (excluding). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be the the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      Returns:
      ApiResponse<byte[]>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Report created successfully -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateReportAsync

      public okhttp3.Call generateReportAsync(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType, ApiCallback<byte[]> _callback) throws ApiException
      Report creating (asynchronously) Creating report with usage statistics. If the period is not specified, records are returned from the beginning of the month to the present day (excluding). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be the the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Report created successfully -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateStatisticsCall

      public okhttp3.Call generateStatisticsCall(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType, ApiCallback _callback) throws ApiException
      Build call for generateStatistics
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful execution -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      404 Not found -
      405 Method not allowed, check method (POST, GET, ...) -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateStatistics

      public UserStatistics generateStatistics(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType) throws ApiException
      Statistics for the period User statistics for the period. If the period is not specified, the statistics for the current month returns (from the beginning of the month to the present day). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be to the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      Returns:
      UserStatistics
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful execution -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      404 Not found -
      405 Method not allowed, check method (POST, GET, ...) -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateStatisticsWithHttpInfo

      public ApiResponse<UserStatistics> generateStatisticsWithHttpInfo(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType) throws ApiException
      Statistics for the period User statistics for the period. If the period is not specified, the statistics for the current month returns (from the beginning of the month to the present day). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be to the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      Returns:
      ApiResponse<UserStatistics>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful execution -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      404 Not found -
      405 Method not allowed, check method (POST, GET, ...) -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -
    • generateStatisticsAsync

      public okhttp3.Call generateStatisticsAsync(@Nullable LocalDate from, @Nullable LocalDate to, @Nullable Service service, @Nullable ProcessType processType, ApiCallback<UserStatistics> _callback) throws ApiException
      Statistics for the period (asynchronously) User statistics for the period. If the period is not specified, the statistics for the current month returns (from the beginning of the month to the present day). If no `from` datetime is specified, data are returned from the beginning of the month. If no `to` datetime is specified, data are returned be to the present day (excluding). Empty service and process type fields mean returning statistics for all services and process types.
      Parameters:
      from - Date `from` in the YYYY-MM-DD format. (optional)
      to - Date `to` (including) in the YYYY-MM-DD format. (optional)
      service - Service name. (optional)
      processType - Process type. (optional)
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details
      Response Details
      Status Code Description Response Headers
      200 Successful execution -
      400 Bad request - input data contains errors -
      401 Unauthorized - incorrect authorization details, token is missing or invalid -
      402 Payment Required -
      403 Forbidden - no permission to execute this operation -
      404 Not found -
      405 Method not allowed, check method (POST, GET, ...) -
      406 Client is unable to process a format of response, check headers -
      415 Unsupported media type, check headers -
      429 Too many requests -
      431 Request header fields too large -
      500 Internal server error -
      501 Not implemented -
      502 Bad gateway -
      503 Service unavailable -
      504 Gateway timeout -
      0 Service unavailable -