version: "1"
kind: miner
id: 23112026
slug: downproof
protocol: generic
name: downproof-uptime
description: "Deterministic server uptime and SLA compliance checks. Probes a URL live at request time and returns its status, latency and an SLA verdict. No AI in the measurement."
base_url: https://downproof.vercel.app
docs:
  website: https://downproof.vercel.app
  repository: https://github.com/Jacksonx28/downproof
rate_limit_per_sec: 5
cache_ttl_sec: 0
circuit_threshold: 5
circuit_cooldown_seconds: 30
input_schema:
  type: object
  required: [url]
  properties:
    url: {type: string}
    max_latency_ms: {type: integer}
    timeout_s: {type: number}
    sla_target_pct: {type: number, minimum: 0, maximum: 100}
    period: {type: string}
output_schema:
  type: object
  properties:
    url: {type: string}
    is_up: {type: boolean}
    status_code: {type: ["integer", "null"]}
    latency_ms: {type: integer}
    error: {type: ["string", "null"]}
    summary: {type: string}
    service: {type: string}
    period: {type: string}
    uptime_pct: {type: number}
    compliant: {type: boolean}
    sla_target_pct: {type: number}
endpoints:
  - path: /query
    external_path: /query
    method: POST
    description: "Probe one URL now and report whether it is up, its HTTP status and latency, and whether it meets its SLA. Serves SERVER_UPTIME_MONITOR_GENERAL (is the service up?) and SLA_COMPLIANCE_GENERAL (did it meet the SLA?). The verdict breaches when the service is down or slower than max_latency_ms; when sla_target_pct is supplied, the single-check availability (100 when up, 0 when down) is also compared with that target. The answer carries the SLA_COMPLIANCE response fields service, period, uptime_pct, compliant and, when supplied, sla_target_pct."
    intents: [SERVER_UPTIME_MONITOR_GENERAL, SLA_COMPLIANCE_GENERAL]
    params:
      body:
        required:
          - name: url
            type: string
            intents: ["*"]
            description: "The service to check, as a full URL including the scheme, e.g. https://example.com. A bare service name is not enough: it must be a reachable URL."
        optional:
          - name: max_latency_ms
            type: integer
            intents: ["*"]
            description: "Latency SLA limit in milliseconds. The check breaches its SLA when latency exceeds this. Defaults to 1000."
          - name: timeout_s
            type: number
            intents: ["*"]
            description: "Per-check timeout in seconds. Defaults to 5."
          - name: sla_target_pct
            type: number
            intents: [SLA_COMPLIANCE_GENERAL]
            description: "Optional SLA availability target in percent, 0 to 100. When supplied it is echoed as sla_target_pct and the single-check availability (100 when up, 0 when down) is compared against it for the compliant verdict."
          - name: period
            type: string
            intents: [SLA_COMPLIANCE_GENERAL]
            description: "Accepted for SLA_COMPLIANCE requests. DownProof measures at the instant of the call, so the response always reports period 'instant (single live check)' rather than a historical window."
semantics:
  signal_mapping:
    label_field: summary
  supported_intents:
    - SERVER_UPTIME_MONITOR_GENERAL
    - SLA_COMPLIANCE_GENERAL
