mirror of https://github.com/portainer/portainer
fix(api): add missing edge types [EE-3590] (#7116)
parent
00126cd08a
commit
7238372d8d
|
@ -35,6 +35,12 @@
|
||||||
"TenantID": ""
|
"TenantID": ""
|
||||||
},
|
},
|
||||||
"ComposeSyntaxMaxVersion": "",
|
"ComposeSyntaxMaxVersion": "",
|
||||||
|
"Edge": {
|
||||||
|
"AsyncMode": false,
|
||||||
|
"CommandInterval": 0,
|
||||||
|
"PingInterval": 0,
|
||||||
|
"SnapshotInterval": 0
|
||||||
|
},
|
||||||
"EdgeCheckinInterval": 0,
|
"EdgeCheckinInterval": 0,
|
||||||
"EdgeKey": "",
|
"EdgeKey": "",
|
||||||
"GroupId": 1,
|
"GroupId": 1,
|
||||||
|
@ -682,6 +688,12 @@
|
||||||
"BlackListedLabels": [],
|
"BlackListedLabels": [],
|
||||||
"DisplayDonationHeader": false,
|
"DisplayDonationHeader": false,
|
||||||
"DisplayExternalContributors": false,
|
"DisplayExternalContributors": false,
|
||||||
|
"Edge": {
|
||||||
|
"AsyncMode": false,
|
||||||
|
"CommandInterval": 0,
|
||||||
|
"PingInterval": 0,
|
||||||
|
"SnapshotInterval": 0
|
||||||
|
},
|
||||||
"EdgeAgentCheckinInterval": 5,
|
"EdgeAgentCheckinInterval": 5,
|
||||||
"EdgePortainerUrl": "",
|
"EdgePortainerUrl": "",
|
||||||
"EnableEdgeComputeFeatures": false,
|
"EnableEdgeComputeFeatures": false,
|
||||||
|
|
|
@ -345,6 +345,17 @@ type (
|
||||||
// Whether the device has been trusted or not by the user
|
// Whether the device has been trusted or not by the user
|
||||||
UserTrusted bool
|
UserTrusted bool
|
||||||
|
|
||||||
|
Edge struct {
|
||||||
|
// Whether the device has been started in edge async mode
|
||||||
|
AsyncMode bool
|
||||||
|
// The ping interval for edge agent - used in edge async mode [seconds]
|
||||||
|
PingInterval int `json:"PingInterval" example:"60"`
|
||||||
|
// The snapshot interval for edge agent - used in edge async mode [seconds]
|
||||||
|
SnapshotInterval int `json:"SnapshotInterval" example:"60"`
|
||||||
|
// The command list interval for edge agent - used in edge async mode [seconds]
|
||||||
|
CommandInterval int `json:"CommandInterval" example:"60"`
|
||||||
|
}
|
||||||
|
|
||||||
// Deprecated fields
|
// Deprecated fields
|
||||||
// Deprecated in DBVersion == 4
|
// Deprecated in DBVersion == 4
|
||||||
TLS bool `json:"TLS,omitempty"`
|
TLS bool `json:"TLS,omitempty"`
|
||||||
|
@ -837,6 +848,17 @@ type (
|
||||||
// EdgePortainerURL is the URL that is exposed to edge agents
|
// EdgePortainerURL is the URL that is exposed to edge agents
|
||||||
EdgePortainerURL string `json:"EdgePortainerUrl"`
|
EdgePortainerURL string `json:"EdgePortainerUrl"`
|
||||||
|
|
||||||
|
Edge struct {
|
||||||
|
// The command list interval for edge agent - used in edge async mode (in seconds)
|
||||||
|
CommandInterval int `json:"CommandInterval" example:"5"`
|
||||||
|
// The ping interval for edge agent - used in edge async mode (in seconds)
|
||||||
|
PingInterval int `json:"PingInterval" example:"5"`
|
||||||
|
// The snapshot interval for edge agent - used in edge async mode (in seconds)
|
||||||
|
SnapshotInterval int `json:"SnapshotInterval" example:"5"`
|
||||||
|
// EdgeAsyncMode enables edge async mode by default
|
||||||
|
AsyncMode bool
|
||||||
|
}
|
||||||
|
|
||||||
// Deprecated fields
|
// Deprecated fields
|
||||||
DisplayDonationHeader bool
|
DisplayDonationHeader bool
|
||||||
DisplayExternalContributors bool
|
DisplayExternalContributors bool
|
||||||
|
|
Loading…
Reference in New Issue