Skip to content

Commit

Permalink
Use unique SleeperScheduleRule
Browse files Browse the repository at this point in the history
  • Loading branch information
kr565370 committed Apr 24, 2024
1 parent 1ee9093 commit ebc8445
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import static sleeper.configuration.properties.instance.CdkDefinedInstanceProperty.PARTITION_SPLITTING_CLOUDWATCH_RULE;
import static sleeper.configuration.properties.instance.CdkDefinedInstanceProperty.QUERY_WARM_LAMBDA_CLOUDWATCH_RULE;
import static sleeper.configuration.properties.instance.CdkDefinedInstanceProperty.TABLE_METRICS_RULE;
import static sleeper.configuration.properties.instance.CdkDefinedInstanceProperty.TRANSACTION_LOG_SNAPSHOT_CREATION_RULE;
import static sleeper.configuration.properties.instance.CommonProperty.ID;

public class SleeperScheduleRule {
Expand All @@ -58,7 +59,10 @@ public class SleeperScheduleRule {
public static final SleeperScheduleRule TABLE_METRICS = add(TABLE_METRICS_RULE, "%s-MetricsPublishRule");
// Rule that triggers the query lambdas to keep warm
public static final SleeperScheduleRule QUERY_WARM_LAMBDA = add(
QUERY_WARM_LAMBDA_CLOUDWATCH_RULE, "%s-QueryWarmLambdaRule");
QUERY_WARM_LAMBDA_CLOUDWATCH_RULE, "%s-QueryWarmLambdaRule");
// Rule that triggers transaction log snapshot creation
public static final SleeperScheduleRule TRANSACTION_LOG_SNAPSHOT_CREATION = add(
TRANSACTION_LOG_SNAPSHOT_CREATION_RULE, "%s-TransactionLogSnapshotCreationRule");

private final InstanceProperty property;
private final String nameFormat;
Expand Down

0 comments on commit ebc8445

Please sign in to comment.