Skip to main content

Uptime

GET 

/project/:id/uptime

Return uptimes by days

Request

Path Parameters

    id stringrequired

    A unique project ID

    Example: 5e9602e7a39e5a46428b457f

Query Parameters

    start stringrequired

    Period start date in ISO8601 format

    Example: 2022-10-31T00:00:00.000+01:00
    end string

    Period end date in ISO8601 format (default now)

    Example: 2022-10-31T00:00:00.000+01:00

Responses

Response times

Schema

    from date-time
    Example: 2022-11-25T00:00:00+01:00
    to date-time
    Example: 2022-12-01T14:10:08+01:00
    daysCount int32

    Number of days in the period

    Example: 6
    isUptimeEnabled boolean

    Is uptime enabled for this project

    Example: true

    uptime

    object

    Uptime for the whole period

    up number
    Example: 97.856313311777
    down number
    Example: 1.2870556603245
    timeout number
    Example: 0.85663102789809

    uptimeByDays

    object[]

    Uptime by days (can be empty if uptime data is not available)

  • Array [

  • date date-time
    Example: 2022-11-25T00:00:00+01:00
    up number
    Example: 99.853140098274
    down number
    Example: 0.14685990172585
    timeout int32
    Example: 0
  • ]