homebridge-prometheus-exporter/src/http.ts
2022-11-07 22:31:17 +01:00

14 lines
395 B
TypeScript

import { HttpResponse } from './adapters/http/api'
import { Metric } from './metrics'
import { Logger } from 'homebridge'
export interface HttpServer {
port: number
debug: boolean
log: Logger
onRequest(): HttpResponse | undefined
onMetrics(): HttpResponse
onNotFound(): HttpResponse
onError(error: unknown): HttpResponse
updateMetrics(metrics: Metric[]): void
}