refactor: enhanced trigger interval (#269)

* fix: improve interval precision

* chore: better name

* chore: add /opt/include to proto include

* remove empty line
This commit is contained in:
fys
2025-08-18 10:58:28 +08:00
committed by GitHub
parent 16836d454c
commit 4ce7e9a3ff
9 changed files with 1048 additions and 510 deletions
+4 -2
View File
@@ -16,6 +16,7 @@ syntax = "proto3";
package greptime.v1;
import "google/protobuf/duration.proto";
import "greptime/v1/common.proto";
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1";
@@ -351,8 +352,9 @@ message CreateTriggerExpr {
map<string, string> labels = 6;
// The user-defined annotations.
map<string, string> annotations = 7;
// The execution interval for sql query in seconds.
uint64 interval = 8;
google.protobuf.Duration interval = 8;
// The raw interval expression, e.g., '1 minute'::INTERVAL.
string raw_interval_expr = 9;
}
// The notification channel for trigger.