public HttpMonitorCheck(
     HttpMonitorCheckId id,
     HttpMonitorId httpMonitorId,
     HttpRequest request,
     HttpRequestTiming requestTiming,
     HttpResponse response = null,
     string errorMessage   = null)
 {
     Id            = id ?? throw new ArgumentNullException(nameof(id));
     HttpMonitorId = httpMonitorId ?? throw new ArgumentNullException(nameof(httpMonitorId));
     Request       = request ?? throw new ArgumentNullException(nameof(request));
     RequestTiming = requestTiming ?? throw new ArgumentNullException(nameof(requestTiming));
     Response      = response;
     ErrorMessage  = errorMessage;
 }
 public CheckHttpEndpoint CreateCheckHttpEndpoint(HttpMonitorCheckId httpMonitorCheckId)
 {
     return(new CheckHttpEndpoint(httpMonitorCheckId, Id, Request));
 }