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
checkinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
payload.EdgeCheckinInterval = checkinInterval
edgeCheckinInterval, _ := request.RetrieveNumericMultiPartFormValue(r, "EdgeCheckinInterval", true)
if edgeCheckinInterval == 0 {
// deprecated CheckinInterval
edgeCheckinInterval, _ = request.RetrieveNumericMultiPartFormValue(r, "CheckinInterval", true)
}
payload.EdgeCheckinInterval = edgeCheckinInterval
return nil
}

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

Loading…
Cancel
Save