All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.descope.sdk.mgmt.AuditService Maven / Gradle / Ivy

The newest version!
package com.descope.sdk.mgmt;

import com.descope.exception.DescopeException;
import com.descope.model.audit.AuditCreateRequest;
import com.descope.model.audit.AuditSearchRequest;
import com.descope.model.audit.AuditSearchResponse;

/** Provides audit records search capabilities. */
public interface AuditService {
  /**
   * Search the audit trail and retrieve audit records based on the given filter. All filter fields
   * are optional and audit may search up to 30 days of history.
   *
   * @param request request is optional, and if provided, all attributes within it are optional.
   * @return {@link AuditSearchResponse}
   * @throws DescopeException If there occurs any exception, a subtype of this exception will be thrown.
   */
  AuditSearchResponse search(AuditSearchRequest request) throws DescopeException;

  /**
   * Create an audit event.
   *
   * @param request the parameters for the event
   * @throws DescopeException If there occurs any exception, a subtype of this exception will be thrown.
   */
  void createEvent(AuditCreateRequest request) throws DescopeException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy