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>
public interface GrayReleaseRepository
extends org.springframework.data.jpa.repository.JpaRepository<GrayReleaseMetrics,Long>
-
Method Summary
Modifier and TypeMethodDescriptionlongcountByFeatureAndTimestampBetween(String feature, ZonedDateTime start, ZonedDateTime end) longcountSuccessByFeatureAndTimestampBetween(String feature, ZonedDateTime start, ZonedDateTime end) longcountUniqueUsersByFeatureAndTimestampBetween(String feature, ZonedDateTime start, ZonedDateTime end) findByFeatureAndTimestampBetween(String feature, ZonedDateTime start, ZonedDateTime end) findFirstByUserUidAndFeatureOrderByTimestampDesc(String userUid, String feature) 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
-
findByFeatureAndTimestampBetween
List<GrayReleaseMetrics> findByFeatureAndTimestampBetween(String feature, ZonedDateTime start, ZonedDateTime 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, ZonedDateTime start, ZonedDateTime 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, ZonedDateTime start, ZonedDateTime 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, ZonedDateTime start, ZonedDateTime end)
-