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:
Juan Fernandez
2022-09-12 15:37:38 -04:00
committed by GitHub
parent 14d0499c4b
commit b60d535d4a
12 changed files with 231 additions and 1 deletions
+4
View File
@@ -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)
}