Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from rdner/timer-interval
Browse files Browse the repository at this point in the history
Add `polling_interval` parameter to `PersistedIndexRequest`
  • Loading branch information
rdner committed Aug 8, 2022
2 parents af78e67 + 3a5eb55 commit ce5fac5
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 21 deletions.
8 changes: 8 additions & 0 deletions api/messages/persisted_index.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ syntax = "proto3";
option go_package = "github.com/elastic/elastic-agent-shipper-client/pkg/proto/messages";
package elastic.agent.shipper.v1.messages;

import "google/protobuf/duration.proto";

// A request for latest sequential event index that has been persisted to the
// disk or the outputs. This is only needed for inputs that must maintain their
// position in some persistent data sequence between restarts.
message PersistedIndexRequest {
// The interval for checking the persisted index value during the subscription.
// An update is not sent if the value is unchanged, so it's not guaranteed to receive
// an update after each interval but rather to receive an update on the changed value
// in `polling_interval` time at most.
// When the value is zero the response is sent only once and the stream is closed right after.
google.protobuf.Duration polling_interval = 1;
}

message PersistedIndexReply {
Expand Down
60 changes: 42 additions & 18 deletions pkg/proto/messages/persisted_index.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/proto/messages/publish.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/proto/messages/struct.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/proto/shipper.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce5fac5

Please sign in to comment.