docs(endpoints): deprecate EdgeCheckinInterval [EE-5281] (#8864)

pull/8901/head
Chaim Lev-Ari 2 years ago committed by GitHub
parent 2383d243d5
commit d77a0887a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,8 +160,12 @@ func (payload *endpointCreatePayload) Validate(r *http.Request) error {
} }
payload.Gpus = gpus payload.Gpus = gpus
checkinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true) edgeCheckinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "EdgeCheckinInterval", true)
payload.EdgeCheckinInterval = checkinInterval if edgeCheckinInterval == 0 {
// deprecated CheckinInterval
edgeCheckinInterval, _ = request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
}
payload.EdgeCheckinInterval = edgeCheckinInterval
return nil return nil
} }

@ -211,7 +211,7 @@ async function createEnvironment(
PublicURL: options.publicUrl, PublicURL: options.publicUrl,
GroupID: groupId, GroupID: groupId,
TagIds: arrayToJson(tagIds), TagIds: arrayToJson(tagIds),
CheckinInterval: options.pollFrequency, EdgeCheckinInterval: options.pollFrequency,
}; };
const { tls, azure } = options; const { tls, azure } = options;

Loading…
Cancel
Save