Passa al contenuto principale

WebMonitoringAvailabilityChartResponse

Successful response with one WebMonitoringAvailabilityChart

errorintegerrequired

Always 0 in a successful response

Constant value: 0
messagestring | nullnullablerequired

Always null in a successful response

data objectrequired

Resource returned by the operation

web_monitoring_idintegerrequired

Id of the web monitoring (GET /api/v3/web-monitorings/{web_monitoring_id})

intervalstringrequired

Period covered by the chart, as an ISO 8601 duration: always PT1H, the last hour

Example: PT1H
unitstringrequired

Unit of the y values: always status, a code explained in legend

Example: status
legend objectrequired

Codes of the y values: 0 up, 1 down (HTTP 5xx), 2 warning (HTTP 4xx)

upintegerrequired
Example: 0
downintegerrequired
Example: 1
warningintegerrequired
Example: 2
points object[]required

Checks of the last hour, one point per check

  • Array [
  • xfloatrequired

    UNIX timestamp in milliseconds

    yintegerrequired

    Availability status code (0 up, 1 down, 2 warning)

  • ]
  • metarequired

    Always null: only the paginated lists have a meta

    Constant value: null
    WebMonitoringAvailabilityChartResponse
    {
    "error": 0,
    "message": "string",
    "data": {
    "web_monitoring_id": 0,
    "interval": "PT1H",
    "unit": "status",
    "legend": {
    "up": 0,
    "down": 1,
    "warning": 2
    },
    "points": [
    {
    "x": 0,
    "y": 0
    }
    ]
    }
    }