passengermetrics

package
v0.0.0-...-63d5413 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PassengerCollection

type PassengerCollection struct {
	RawOutput     []byte
	ParsedOutput  *PassengerData
	PassengerPath string
}

func (*PassengerCollection) ParseRawOutput

func (p *PassengerCollection) ParseRawOutput() error

func (*PassengerCollection) RunPassengerStatus

func (p *PassengerCollection) RunPassengerStatus() error

type PassengerData

type PassengerData struct {
	PassengerVersion string    `xml:"passenger_version"`
	ProcessCount     int       `xml:"process_count"`
	QueueLength      int       `xml:"get_wait_list_size"`
	Processes        []Process `xml:"supergroups>supergroup>group>processes>process"`
}

type Process

type Process struct {
	PID       int    `xml:"pid"`
	Processed int    `xml:"processed"`
	RSS       int    `xml:"rss"`
	Uptime    string `xml:"uptime"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL