Skip to content

Commit

Permalink
fix: use map
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Oct 4, 2024
1 parent 544d96f commit 6573083
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 6573083

Please sign in to comment.