Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicHitStats ¶
type ExtendedHitStats ¶
type ExtendedHitStats struct { BasicHitStats ResponsesWritten int64 `json:"responses_written"` BytesWritten int64 `json:"bytes_written"` }
type HealthCheckStats ¶
type NginxPlus ¶
type NginxPlus struct { Urls []string `toml:"urls"` ResponseTimeout config.Duration `toml:"response_timeout"` tls.ClientConfig // contains filtered or unexported fields }
func (*NginxPlus) SampleConfig ¶
type ResponseStats ¶
type Status ¶
type Status struct { Version int `json:"version"` NginxVersion string `json:"nginx_version"` Address string `json:"address"` Generation *int `json:"generation"` // added in version 5 LoadTimestamp *int64 `json:"load_timestamp"` // added in version 2 Timestamp int64 `json:"timestamp"` Pid *int `json:"pid"` // added in version 6 Processes *struct { Respawned *int `json:"respawned"` } `json:"processes"` Connections struct { Accepted int64 `json:"accepted"` Dropped int64 `json:"dropped"` Active int64 `json:"active"` Idle int64 `json:"idle"` } `json:"connections"` Ssl *struct { Handshakes int64 `json:"handshakes"` HandshakesFailed int64 `json:"handshakes_failed"` SessionReuses int64 `json:"session_reuses"` } `json:"ssl"` Requests struct { Total int64 `json:"total"` Current int `json:"current"` } `json:"requests"` ServerZones map[string]struct { Processing int `json:"processing"` Requests int64 `json:"requests"` Responses ResponseStats `json:"responses"` Discarded *int64 `json:"discarded"` // added in version 6 Received int64 `json:"received"` Sent int64 `json:"sent"` } `json:"server_zones"` Upstreams map[string]struct { Peers []struct { ID *int `json:"id"` // added in version 3 Server string `json:"server"` Backup bool `json:"backup"` Weight int `json:"weight"` State string `json:"state"` Active int `json:"active"` Keepalive *int `json:"keepalive"` // removed in version 5 MaxConns *int `json:"max_conns"` // added in version 3 Requests int64 `json:"requests"` Responses ResponseStats `json:"responses"` Sent int64 `json:"sent"` Received int64 `json:"received"` Fails int64 `json:"fails"` Unavail int64 `json:"unavail"` HealthChecks HealthCheckStats `json:"health_checks"` Downtime int64 `json:"downtime"` Downstart int64 `json:"downstart"` Selected *int64 `json:"selected"` // added in version 4 HeaderTime *int64 `json:"header_time"` // added in version 5 ResponseTime *int64 `json:"response_time"` // added in version 5 } `json:"peers"` Keepalive int `json:"keepalive"` Zombies int `json:"zombies"` // added in version 6 Queue *struct { Size int `json:"size"` MaxSize int `json:"max_size"` Overflows int64 `json:"overflows"` } `json:"queue"` } `json:"upstreams"` Caches map[string]struct { Size int64 `json:"size"` MaxSize int64 `json:"max_size"` Cold bool `json:"cold"` Hit BasicHitStats `json:"hit"` Stale BasicHitStats `json:"stale"` Updating BasicHitStats `json:"updating"` Revalidated *BasicHitStats `json:"revalidated"` // added in version 3 Miss ExtendedHitStats `json:"miss"` Expired ExtendedHitStats `json:"expired"` Bypass ExtendedHitStats `json:"bypass"` } `json:"caches"` Stream struct { ServerZones map[string]struct { Processing int `json:"processing"` Connections int `json:"connections"` Sessions *ResponseStats `json:"sessions"` Discarded *int64 `json:"discarded"` // added in version 7 Received int64 `json:"received"` Sent int64 `json:"sent"` } `json:"server_zones"` Upstreams map[string]struct { Peers []struct { ID int `json:"id"` Server string `json:"server"` Backup bool `json:"backup"` Weight int `json:"weight"` State string `json:"state"` Active int `json:"active"` Connections int64 `json:"connections"` ConnectTime *int `json:"connect_time"` FirstByteTime *int `json:"first_byte_time"` ResponseTime *int `json:"response_time"` Sent int64 `json:"sent"` Received int64 `json:"received"` Fails int64 `json:"fails"` Unavail int64 `json:"unavail"` HealthChecks HealthCheckStats `json:"health_checks"` Downtime int64 `json:"downtime"` Downstart int64 `json:"downstart"` Selected int64 `json:"selected"` } `json:"peers"` Zombies int `json:"zombies"` } `json:"upstreams"` } `json:"stream"` }
Click to show internal directories.
Click to hide internal directories.