-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(management): implement support for reporting input health includ…
…ing multiple streams
- Loading branch information
1 parent
75397eb
commit c6294b7
Showing
14 changed files
with
1,061 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package status | ||
|
||
// Status describes the current status of the beat. | ||
type Status int | ||
|
||
//go:generate stringer -type=Status | ||
const ( | ||
// Unknown is initial status when none has been reported. | ||
Unknown Status = iota | ||
// Starting is status describing application is starting. | ||
Starting | ||
// Configuring is status describing application is configuring. | ||
Configuring | ||
// Running is status describing application is running. | ||
Running | ||
// Degraded is status describing application is degraded. | ||
Degraded | ||
// Failed is status describing application is failed. This status should | ||
// only be used in the case the beat should stop running as the failure | ||
// cannot be recovered. | ||
Failed | ||
// Stopping is status describing application is stopping. | ||
Stopping | ||
// Stopped is status describing application is stopped. | ||
Stopped | ||
) | ||
|
||
// StatusReporter provides a method to update current status of a unit. | ||
type StatusReporter interface { | ||
// UpdateStatus updates the status of the unit. | ||
UpdateStatus(status Status, msg string) | ||
} | ||
|
||
// WithStatusReporter provides a method to set a status reporter | ||
type WithStatusReporter interface { | ||
// SetStatusReporter sets the status reporter | ||
SetStatusReporter(reporter StatusReporter) | ||
} |
2 changes: 1 addition & 1 deletion
2
libbeat/management/status_string.go → libbeat/management/status/status_string.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.