edgexfoundry/go-mod-core-contracts

Define the min and max range for the edgex-dto-duration validate tag

Closed this issue ยท 1 comments

๐Ÿš€ Feature Request

Relevant Package [REQUIRED]

This feature request is for core-metadata and support-scheduler or other DTO struct with the edgex-dto-duration tag defined.

Description [REQUIRED]

This issue is a spin off from edgexfoundry/edgex-go#4586.

The Interval field with value is a duration string (ex. 1s, 10h, ...) from AutoEvent and Interval DTOs should be set with a minimum duration value to avoid the EdgeX service abnormal behavior in some circumstances (such as CPU increases) as discussed in edgexfoundry/edgex-go#4586.

Closing this issue as the solution in edgexfoundry/edgex-go#4586 will be showing the waring log message to indicate the Interval is smaller than the suggested value but still can be created, instead of adding in the validate tag to prevent the creation per discussion.