Package io.kestra.jdbc.repository
Class AbstractJdbcLogRepository
java.lang.Object
io.kestra.jdbc.repository.AbstractJdbcRepository
io.kestra.jdbc.repository.AbstractJdbcLogRepository
- All Implemented Interfaces:
io.kestra.core.repositories.LogRepositoryInterface,io.kestra.core.repositories.SaveRepositoryInterface<io.kestra.core.models.executions.LogEntry>,JdbcIndexerInterface<io.kestra.core.models.executions.LogEntry>
public abstract class AbstractJdbcLogRepository
extends AbstractJdbcRepository
implements io.kestra.core.repositories.LogRepositoryInterface, JdbcIndexerInterface<io.kestra.core.models.executions.LogEntry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractJdbcRepository<io.kestra.core.models.executions.LogEntry> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJdbcLogRepository(AbstractJdbcRepository<io.kestra.core.models.executions.LogEntry> jdbcRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByQuery(String tenantId, String namespace, String flowId, String triggerId) voiddeleteByQuery(String tenantId, String executionId, String taskId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt) intdeleteByQuery(String tenantId, String namespace, String flowId, List<org.slf4j.event.Level> logLevels, ZonedDateTime startDate, ZonedDateTime endDate) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> find(io.micronaut.data.model.Pageable pageable, String query, String tenantId, String namespace, String flowId, String triggerId, org.slf4j.event.Level minLevel, ZonedDateTime startDate, ZonedDateTime endDate) List<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String namespace, String flowId, String executionId, org.slf4j.event.Level minLevel) List<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String executionId, org.slf4j.event.Level minLevel) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String executionId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String namespace, String flowId, String executionId, String taskId, org.slf4j.event.Level minLevel) List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String executionId, String taskId, org.slf4j.event.Level minLevel) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String executionId, String taskId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunId(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunId(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunIdAndAttempt(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt) io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunIdAndAttempt(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt, io.micronaut.data.model.Pageable pageable) protected abstract org.jooq.ConditionfindCondition(String query) protected org.jooq.ConditionlevelsCondition(List<org.slf4j.event.Level> levels) purge(io.kestra.core.models.executions.Execution execution) io.kestra.core.models.executions.LogEntrysave(io.kestra.core.models.executions.LogEntry log) io.kestra.core.models.executions.LogEntrysave(org.jooq.DSLContext dslContext, io.kestra.core.models.executions.LogEntry logEntry) List<io.kestra.core.models.executions.statistics.LogStatistics> statistics(String query, String tenantId, String namespace, String flowId, org.slf4j.event.Level minLevel, ZonedDateTime startDate, ZonedDateTime endDate, io.kestra.core.utils.DateUtils.GroupType groupBy) Methods inherited from class io.kestra.jdbc.repository.AbstractJdbcRepository
buildTenantCondition, defaultFilter, defaultFilter, defaultFilter, defaultFilter, field, field, groupByFields, groupByFields, groupByFields, groupByFields, weekFromTimestamp
-
Field Details
-
jdbcRepository
-
-
Constructor Details
-
AbstractJdbcLogRepository
public AbstractJdbcLogRepository(AbstractJdbcRepository<io.kestra.core.models.executions.LogEntry> jdbcRepository)
-
-
Method Details
-
findCondition
-
find
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> find(io.micronaut.data.model.Pageable pageable, @Nullable String query, @Nullable String tenantId, @Nullable String namespace, @Nullable String flowId, @Nullable String triggerId, @Nullable org.slf4j.event.Level minLevel, @Nullable ZonedDateTime startDate, @Nullable ZonedDateTime endDate) - Specified by:
findin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
statistics
public List<io.kestra.core.models.executions.statistics.LogStatistics> statistics(@Nullable String query, @Nullable String tenantId, @Nullable String namespace, @Nullable String flowId, @Nullable org.slf4j.event.Level minLevel, @Nullable ZonedDateTime startDate, @Nullable ZonedDateTime endDate, @Nullable io.kestra.core.utils.DateUtils.GroupType groupBy) - Specified by:
statisticsin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionId
public List<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String executionId, org.slf4j.event.Level minLevel) - Specified by:
findByExecutionIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionId
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String executionId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) - Specified by:
findByExecutionIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionId
public List<io.kestra.core.models.executions.LogEntry> findByExecutionId(String tenantId, String namespace, String flowId, String executionId, org.slf4j.event.Level minLevel) - Specified by:
findByExecutionIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskId
public List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String executionId, String taskId, org.slf4j.event.Level minLevel) - Specified by:
findByExecutionIdAndTaskIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskId
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String executionId, String taskId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) - Specified by:
findByExecutionIdAndTaskIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskId
public List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskId(String tenantId, String namespace, String flowId, String executionId, String taskId, org.slf4j.event.Level minLevel) - Specified by:
findByExecutionIdAndTaskIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskRunId
public List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunId(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel) - Specified by:
findByExecutionIdAndTaskRunIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskRunId
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunId(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, io.micronaut.data.model.Pageable pageable) - Specified by:
findByExecutionIdAndTaskRunIdin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskRunIdAndAttempt
public List<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunIdAndAttempt(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt) - Specified by:
findByExecutionIdAndTaskRunIdAndAttemptin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
findByExecutionIdAndTaskRunIdAndAttempt
public io.kestra.core.repositories.ArrayListTotal<io.kestra.core.models.executions.LogEntry> findByExecutionIdAndTaskRunIdAndAttempt(String tenantId, String executionId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt, io.micronaut.data.model.Pageable pageable) - Specified by:
findByExecutionIdAndTaskRunIdAndAttemptin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
save
public io.kestra.core.models.executions.LogEntry save(io.kestra.core.models.executions.LogEntry log) - Specified by:
savein interfaceio.kestra.core.repositories.LogRepositoryInterface- Specified by:
savein interfaceio.kestra.core.repositories.SaveRepositoryInterface<io.kestra.core.models.executions.LogEntry>
-
purge
- Specified by:
purgein interfaceio.kestra.core.repositories.LogRepositoryInterface
-
save
public io.kestra.core.models.executions.LogEntry save(org.jooq.DSLContext dslContext, io.kestra.core.models.executions.LogEntry logEntry) - Specified by:
savein interfaceJdbcIndexerInterface<io.kestra.core.models.executions.LogEntry>
-
deleteByQuery
public void deleteByQuery(String tenantId, String executionId, String taskId, String taskRunId, org.slf4j.event.Level minLevel, Integer attempt) - Specified by:
deleteByQueryin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
deleteByQuery
- Specified by:
deleteByQueryin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
deleteByQuery
public int deleteByQuery(String tenantId, String namespace, String flowId, List<org.slf4j.event.Level> logLevels, ZonedDateTime startDate, ZonedDateTime endDate) - Specified by:
deleteByQueryin interfaceio.kestra.core.repositories.LogRepositoryInterface
-
levelsCondition
-