package probe // Config defines a network probe task sent from hub to agent. type Config struct { // ID is the stable network_probes record ID generated by the hub. ID string `cbor:"0,keyasint"` Target string `cbor:"1,keyasint"` Protocol string `cbor:"2,keyasint"` // "icmp", "tcp", or "http" Port uint16 `cbor:"3,keyasint,omitempty"` Interval uint16 `cbor:"4,keyasint"` // seconds } // Result holds aggregated probe results for a single target. // // 0: avg response in ms // // 1: average response over the last hour in ms // // 2: min response over the last hour in ms // // 3: max response over the last hour in ms // // 4: packet loss percentage over the last hour (0-100) type Result []float64