Feature 7084: Add new EE endpoint for Fleet Desktop (#7530)
Added new EE endpoint, that is meant to be used by Fleet Desktop only. The new endpoint will return the number of failed policies.
This commit is contained in:
@@ -9,3 +9,7 @@ import (
|
||||
func (svc *Service) ListDevicePolicies(ctx context.Context, host *fleet.Host) ([]*fleet.HostPolicy, error) {
|
||||
return svc.ds.ListPoliciesForHost(ctx, host)
|
||||
}
|
||||
|
||||
func (svc *Service) FailingPoliciesCount(ctx context.Context, host *fleet.Host) (uint, error) {
|
||||
return svc.ds.FailingPoliciesCount(ctx, host)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user