Skip to content

Commit

Permalink
using AgentActionType
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Mar 20, 2023
1 parent dea7425 commit 5f4436d
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions x-pack/plugins/fleet/common/types/models/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export type AgentActionType =
| 'CANCEL'
| 'FORCE_UNENROLL'
| 'UPDATE_TAGS'
| 'REQUEST_DIAGNOSTICS';
| 'REQUEST_DIAGNOSTICS'
| 'POLICY_CHANGE'
| 'INPUT_ACTION';

type FleetServerAgentComponentStatusTuple = typeof FleetServerAgentComponentStatuses;
export type FleetServerAgentComponentStatus = FleetServerAgentComponentStatusTuple[number];
Expand Down Expand Up @@ -152,18 +154,7 @@ export interface ActionStatus {
nbAgentsFailed: number;
version?: string;
startTime?: string;
type:
| 'POLICY_REASSIGN'
| 'UPGRADE'
| 'UNENROLL'
| 'FORCE_UNENROLL'
| 'UPDATE_TAGS'
| 'CANCEL'
| 'REQUEST_DIAGNOSTICS'
| 'SETTINGS'
| 'POLICY_CHANGE'
| 'INPUT_ACTION'
| string;
type: AgentActionType;
// how many agents were actioned by the user
nbAgentsActioned: number;
status: 'COMPLETE' | 'EXPIRED' | 'CANCELLED' | 'FAILED' | 'IN_PROGRESS' | 'ROLLOUT_PASSED';
Expand Down

0 comments on commit 5f4436d

Please sign in to comment.