MM-25404: Add GetHealthScore metric for the cluster (#14767)
* MM-25404: Add GetHealthScore metric for the cluster This PR adds the necessary function to the cluster interface so that they can be called from App code. * Add mocks * Remove fakeapp Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
64d12c08e9
Коммит
3cf05efdd9
@@ -21,6 +21,10 @@ func (c *FakeClusterInterface) RegisterClusterMessageHandler(event string, crm e
|
||||
c.clusterMessageHandler = crm
|
||||
}
|
||||
|
||||
func (c *FakeClusterInterface) HealthScore() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (c *FakeClusterInterface) GetClusterId() string { return "" }
|
||||
|
||||
func (c *FakeClusterInterface) IsLeader() bool { return false }
|
||||
|
||||
Ссылка в новой задаче
Block a user