JobLogController

public struct JobLogController : RouteCollection
  • Declaration

    Swift

    public func boot(routes: RoutesBuilder) throws
  • Returns a JobDashboard with the data between the provided dates. The dates are passed as query parameters named from and to in ISO Format. e.g. ?from=2020-10-23T01:00:00Z&to=2020-10-23T09:00

    Declaration

    Swift

    public func dashboard(req: Request) throws -> EventLoopFuture<JobDashboard>
  • Retuns a paginated list of JobLogEntry that matches the JobListRequest parameters

    Declaration

    Swift

    public func list(req: Request) throws -> EventLoopFuture<Page<JobLogEntry>>