xref: /unit/src/nxt_status.h (revision 2186:47d365005fab)
12185Svbart@nginx.com 
22185Svbart@nginx.com /*
32185Svbart@nginx.com  * Copyright (C) NGINX, Inc.
42185Svbart@nginx.com  */
52185Svbart@nginx.com 
62185Svbart@nginx.com #ifndef _NXT_STATUS_H_INCLUDED_
72185Svbart@nginx.com #define _NXT_STATUS_H_INCLUDED_
82185Svbart@nginx.com 
92185Svbart@nginx.com 
102185Svbart@nginx.com typedef struct {
112185Svbart@nginx.com     nxt_str_t         name;
122185Svbart@nginx.com     uint32_t          active_requests;
132185Svbart@nginx.com     uint32_t          pending_processes;
142185Svbart@nginx.com     uint32_t          processes;
152185Svbart@nginx.com     uint32_t          idle_processes;
162185Svbart@nginx.com } nxt_status_app_t;
172185Svbart@nginx.com 
182185Svbart@nginx.com 
192185Svbart@nginx.com typedef struct {
202185Svbart@nginx.com     uint64_t          accepted_conns;
212185Svbart@nginx.com     uint64_t          idle_conns;
222185Svbart@nginx.com     uint64_t          closed_conns;
23*2186Sz.hong@f5.com     uint64_t          requests;
242185Svbart@nginx.com 
252185Svbart@nginx.com     size_t            apps_count;
262185Svbart@nginx.com     nxt_status_app_t  apps[];
272185Svbart@nginx.com } nxt_status_report_t;
282185Svbart@nginx.com 
292185Svbart@nginx.com 
302185Svbart@nginx.com nxt_conf_value_t *nxt_status_get(nxt_status_report_t *report, nxt_mp_t *mp);
312185Svbart@nginx.com 
322185Svbart@nginx.com 
332185Svbart@nginx.com #endif /* _NXT_STATUS_H_INCLUDED_ */
34