updown.io
    Preparing search index...

    Class ChecksAPI

    Index

    Constructors

    Methods

    • Show a single check.

      Parameters

      • token: string

        The check unique token

      • Optionalmetrics: boolean

        Include performance metrics (last hour only)

      Returns Promise<Check>

    • Get all the downtimes of a check.

      Parameters

      • token: string

        The check unique token

      • Optionalpage: number

        The page to fetch (100 per page)

      Returns Promise<Downtime[]>

    • Get detailed metrics about the check.

      Statistic are aggregated per hour which means you can't get more precise results than this. For example all requests performed between 5:00 and 5:59 will be reported at 5:00 in this API. The time range needs to be at least one hour to get data.

      Parameters

      • token: string

        The check unique token

      • Optionaloptions: MetricsOptions

        Metrics options

      Returns Promise<Metrics>

    • Set a new API URL.

      Parameters

      • newURL: string

        The new API url

      Returns void