blob: 676346fa0f76bd8dbeba29dd8a563c47ea6f663c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// SPDX-License-Identifier: GPL-3.0-or-later
package httpcheck
type metrics struct {
Status status `stm:""`
InState int `stm:"in_state"`
ResponseTime int `stm:"time"`
ResponseLength int `stm:"length"`
}
type status struct {
Success bool `stm:"success"` // No error on request, body reading and checking its content
Timeout bool `stm:"timeout"`
Redirect bool `stm:"redirect"`
BadContent bool `stm:"bad_content"`
BadStatusCode bool `stm:"bad_status"`
BadHeader bool `stm:"bad_header"`
NoConnection bool `stm:"no_connection"` // All other errors basically
}
|