Skip to content

Commit

Permalink
[fix] Update fleet agent policy (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana authored Oct 4, 2024
1 parent 35bb90d commit 196dace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kibana/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type AgentPolicy struct {
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
Overrides []map[string]interface{} `json:"overrides,omitempty"`
Overrides map[string]interface{} `json:"overrides,omitempty"`
IsProtected bool `json:"is_protected"`
}

Expand Down Expand Up @@ -111,7 +111,7 @@ type AgentPolicyUpdateRequest struct {
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
Overrides []map[string]interface{} `json:"overrides,omitempty"`
Overrides map[string]interface{} `json:"overrides,omitempty"`
IsProtected *bool `json:"is_protected,omitempty"` // Optional bool for compatibility with the older pre 8.9.0 stack
}

Expand Down

0 comments on commit 196dace

Please sign in to comment.