Package com.bytedesk.core.gray_release
Interface GrayReleaseRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<GrayReleaseMetrics,
,Long> org.springframework.data.jpa.repository.JpaRepository<GrayReleaseMetrics,
,Long> org.springframework.data.repository.ListCrudRepository<GrayReleaseMetrics,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<GrayReleaseMetrics,
,Long> org.springframework.data.repository.PagingAndSortingRepository<GrayReleaseMetrics,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<GrayReleaseMetrics>
,org.springframework.data.repository.Repository<GrayReleaseMetrics,
Long>
@Repository
public interface GrayReleaseRepository
extends org.springframework.data.jpa.repository.JpaRepository<GrayReleaseMetrics,Long>
-
Method Summary
Modifier and TypeMethodDescriptionlong
countByFeatureAndTimestampBetween
(String feature, LocalDateTime start, LocalDateTime end) long
countSuccessByFeatureAndTimestampBetween
(String feature, LocalDateTime start, LocalDateTime end) long
countUniqueUsersByFeatureAndTimestampBetween
(String feature, LocalDateTime start, LocalDateTime end) findByFeatureAndTimestampBetween
(String feature, LocalDateTime start, LocalDateTime end) findFirstByUserUidAndFeatureOrderByTimestampDesc
(String userUid, String feature) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByFeatureAndTimestampBetween
List<GrayReleaseMetrics> findByFeatureAndTimestampBetween(String feature, LocalDateTime start, LocalDateTime end) -
findFirstByUserUidAndFeatureOrderByTimestampDesc
-
countByFeatureAndTimestampBetween
@Query("SELECT COUNT(m) FROM GrayReleaseMetrics m WHERE m.feature = ?1 AND m.timestamp BETWEEN ?2 AND ?3") long countByFeatureAndTimestampBetween(String feature, LocalDateTime start, LocalDateTime end) -
countSuccessByFeatureAndTimestampBetween
@Query("SELECT COUNT(m) FROM GrayReleaseMetrics m WHERE m.feature = ?1 AND m.success = true AND m.timestamp BETWEEN ?2 AND ?3") long countSuccessByFeatureAndTimestampBetween(String feature, LocalDateTime start, LocalDateTime end) -
countUniqueUsersByFeatureAndTimestampBetween
@Query("SELECT COUNT(DISTINCT m.userUid) FROM GrayReleaseMetrics m WHERE m.feature = ?1 AND m.timestamp BETWEEN ?2 AND ?3") long countUniqueUsersByFeatureAndTimestampBetween(String feature, LocalDateTime start, LocalDateTime end)
-