{"modulePath":"github.com/netdata/go.d.plugin","version":"v0.58.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package phpdaemon\n\n## Types\n\n```go\ntype Chart = module.Chart\n```\nChart is an alias for module.Chart\n\n```go\ntype Charts = module.Charts\n```\nCharts is an alias for module.Charts\n\n```go\ntype Config struct {\n\tweb.HTTP `yaml:\",inline\"`\n}\n```\nConfig is the PHPDaemon module configuration.\n\n```go\ntype Dims = module.Dims\n```\nDims is an alias for module.Dims\n\n```go\ntype FullStatus struct {\n\tWorkerState `stm:\"\"`\n\tUptime      *int64 `stm:\"uptime\"`\n}\n```\nFullStatus FullStatus.\n\n```go\ntype PHPDaemon struct {\n\tmodule.Base\n\tConfig `yaml:\",inline\"`\n\t// contains filtered or unexported fields\n}\n```\nPHPDaemon PHPDaemon module.\n\n```go\nfunc New() *PHPDaemon\n```\nNew creates PHPDaemon with default values.\n\n```go\nfunc (p PHPDaemon) Charts() *Charts\n```\nCharts creates Charts.\n\n```go\nfunc (p *PHPDaemon) Check() bool\n```\nCheck makes check.\n\n```go\nfunc (PHPDaemon) Cleanup()\n```\nCleanup makes cleanup.\n\n```go\nfunc (p *PHPDaemon) Collect() map[string]int64\n```\nCollect collects metrics.\n\n```go\nfunc (p *PHPDaemon) Init() bool\n```\nInit makes initialization.\n\n```go\ntype WorkerState struct {\n\t// Alive is sum of Idle, Busy and Reloading\n\tAlive    int64 `stm:\"alive\"`\n\tShutdown int64 `stm:\"shutdown\"`\n\n\t// Idle that the worker is not in the middle of execution valuable callback (e.g. request) at this moment of time.\n\t// It does not mean that worker not have any pending operations.\n\t// Idle is sum of Preinit, Init and Initialized.\n\tIdle int64 `stm:\"idle\"`\n\t// Busy means that the worker is in the middle of execution valuable callback.\n\tBusy      int64 `stm:\"busy\"`\n\tReloading int64 `stm:\"reloading\"`\n\n\tPreinit int64 `stm:\"preinit\"`\n\t// Init means that worker is starting right now.\n\tInit int64 `stm:\"init\"`\n\t// Initialized means that the worker is in Idle state.\n\tInitialized int64 `stm:\"initialized\"`\n}\n```\nWorkerState represents phpdaemon worker state.\n\n","path":"github.com/netdata/go.d.plugin/modules/phpdaemon","name":"phpdaemon","synopsis":"","isRedistributable":true}
