github.com/netdata/go.d.plugin@v0.58.1/modules/httpcheck/metrics.go (about)

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