Skip to content

Commit 35bb90d

Browse files
authored
update agent policy schema to include overrides functionality
You can use this setting to override custom settings which aren't available in fleet UI. For eg. https://www.elastic.co/guide/en/fleet/current/enable-custom-policy-settings.html and https://support.elastic.dev/knowledge/view/06b69893 This will make things much easier for elastic/elastic-agent#5648
1 parent d95aa61 commit 35bb90d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kibana/fleet.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ type AgentPolicy struct {
7878
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
7979
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
8080
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
81+
Overrides []map[string]interface{} `json:"overrides,omitempty"`
8182
IsProtected bool `json:"is_protected"`
8283
}
8384

@@ -110,6 +111,7 @@ type AgentPolicyUpdateRequest struct {
110111
UnenrollTimeout int `json:"unenroll_timeout,omitempty"`
111112
InactivityTImeout int `json:"inactivity_timeout,omitempty"`
112113
AgentFeatures []map[string]interface{} `json:"agent_features,omitempty"`
114+
Overrides []map[string]interface{} `json:"overrides,omitempty"`
113115
IsProtected *bool `json:"is_protected,omitempty"` // Optional bool for compatibility with the older pre 8.9.0 stack
114116
}
115117

0 commit comments

Comments
 (0)