Interface PermissionRequestStatusDurationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PermissionRequestStatusDurationModel,,Long> org.springframework.data.jpa.repository.JpaRepository<PermissionRequestStatusDurationModel,,Long> org.springframework.data.repository.ListCrudRepository<PermissionRequestStatusDurationModel,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<PermissionRequestStatusDurationModel,,Long> org.springframework.data.repository.PagingAndSortingRepository<PermissionRequestStatusDurationModel,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<PermissionRequestStatusDurationModel>,org.springframework.data.repository.Repository<PermissionRequestStatusDurationModel,Long>
@Repository
public interface PermissionRequestStatusDurationRepository
extends org.springframework.data.jpa.repository.JpaRepository<PermissionRequestStatusDurationModel,Long>
-
Method Summary
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
getMedianDurationMilliseconds
@Query(value="SELECT percentile_cont(0.5) WITHIN GROUP (ORDER BY duration_milliseconds)\nFROM metric.permission_request_status_duration\nWHERE permission_request_status = :status AND\n data_need_type = :dataNeedType AND\n region_connector_id = :regionConnectorId AND\n permission_administrator_id = :permissionAdministratorId AND\n country_code = :countryCode\n", nativeQuery=true) double getMedianDurationMilliseconds(@Param("status") String status, @Param("dataNeedType") String dataNeedType, @Param("permissionAdministratorId") String permissionAdministratorId, @Param("regionConnectorId") String regionConnectorId, @Param("countryCode") String countryCode)
-