Stats

Struct Stats 

Source
pub struct Stats {
Show 49 fields pub current_jobs_urgent: u32, pub current_jobs_ready: u32, pub current_jobs_reserved: u32, pub current_jobs_delayed: u32, pub current_jobs_buried: u32, pub cmd_put: u32, pub cmd_peek: u32, pub cmd_peek_ready: u32, pub cmd_peek_delayed: u32, pub cmd_peek_buried: u32, pub cmd_reserve: u32, pub cmd_use: u32, pub cmd_watch: u32, pub cmd_ignore: u32, pub cmd_delete: u32, pub cmd_release: u32, pub cmd_bury: u32, pub cmd_kick: u32, pub cmd_stats: u32, pub cmd_stats_job: u32, pub cmd_stats_tube: u32, pub cmd_list_tubes: u32, pub cmd_list_tube_used: u32, pub cmd_list_tubes_watched: u32, pub cmd_pause_tube: u32, pub job_timeouts: u32, pub total_jobs: u32, pub max_job_size: u32, pub current_tubes: u32, pub current_connections: u32, pub current_producers: u32, pub current_workers: u32, pub current_waiting: u32, pub total_connections: u32, pub pid: u32, pub version: String, pub rusage_utime: f32, pub rusage_stime: f32, pub uptime: Duration, pub binlog_oldest_index: usize, pub binlog_current_index: usize, pub binlog_max_size: usize, pub binlog_records_written: u32, pub binlog_records_migrated: u32, pub draining: bool, pub id: String, pub hostname: String, pub os: Option<String>, pub platform: Option<String>,
}

Fields§

§current_jobs_urgent: u32

“current-jobs-urgent” is the number of ready jobs with priority < 1024.

§current_jobs_ready: u32

“current-jobs-ready” is the number of jobs in the ready queue.

§current_jobs_reserved: u32

“current-jobs-reserved” is the number of jobs reserved by all clients.

§current_jobs_delayed: u32

“current-jobs-delayed” is the number of delayed jobs.

§current_jobs_buried: u32

“current-jobs-buried” is the number of buried jobs.

§cmd_put: u32

“cmd-put” is the cumulative number of put commands.

§cmd_peek: u32

“cmd-peek” is the cumulative number of peek commands.

§cmd_peek_ready: u32

“cmd-peek-ready” is the cumulative number of peek-ready commands.

§cmd_peek_delayed: u32

“cmd-peek-delayed” is the cumulative number of peek-delayed commands.

§cmd_peek_buried: u32

“cmd-peek-buried” is the cumulative number of peek-buried commands.

§cmd_reserve: u32

“cmd-reserve” is the cumulative number of reserve commands.

§cmd_use: u32

“cmd-use” is the cumulative number of use commands.

§cmd_watch: u32

“cmd-watch” is the cumulative number of watch commands.

§cmd_ignore: u32

“cmd-ignore” is the cumulative number of ignore commands.

§cmd_delete: u32

“cmd-delete” is the cumulative number of delete commands.

§cmd_release: u32

“cmd-release” is the cumulative number of release commands.

§cmd_bury: u32

“cmd-bury” is the cumulative number of bury commands.

§cmd_kick: u32

“cmd-kick” is the cumulative number of kick commands.

§cmd_stats: u32

“cmd-stats” is the cumulative number of stats commands.

§cmd_stats_job: u32

“cmd-stats-job” is the cumulative number of stats-job commands.

§cmd_stats_tube: u32

“cmd-stats-tube” is the cumulative number of stats-tube commands.

§cmd_list_tubes: u32

“cmd-list-tubes” is the cumulative number of list-tubes commands.

§cmd_list_tube_used: u32

“cmd-list-tube-used” is the cumulative number of list-tube-used commands.

§cmd_list_tubes_watched: u32

“cmd-list-tubes-watched” is the cumulative number of list-tubes-watched commands.

§cmd_pause_tube: u32

“cmd-pause-tube” is the cumulative number of pause-tube commands.

§job_timeouts: u32

“job-timeouts” is the cumulative count of times a job has timed out.

§total_jobs: u32

“total-jobs” is the cumulative count of jobs created.

§max_job_size: u32

“max-job-size” is the maximum number of bytes in a job.

§current_tubes: u32

“current-tubes” is the number of currently-existing tubes.

§current_connections: u32

“current-connections” is the number of currently open connections.

§current_producers: u32

“current-producers” is the number of open connections that have each issued at least one put command.

§current_workers: u32

“current-workers” is the number of open connections that have each issued at least one reserve command.

§current_waiting: u32

“current-waiting” is the number of open connections that have issued a reserve command but not yet received a response.

§total_connections: u32

“total-connections” is the cumulative count of connections.

§pid: u32

“pid” is the process id of the server.

§version: String

“version” is the version string of the server.

§rusage_utime: f32

“rusage-utime” is the cumulative user CPU time of this process in seconds and microseconds.

§rusage_stime: f32

“rusage-stime” is the cumulative system CPU time of this process in seconds and microseconds.

§uptime: Duration

“uptime” is the number of seconds since this server process started running.

§binlog_oldest_index: usize

“binlog-oldest-index” is the index of the oldest binlog file needed to store the current jobs.

§binlog_current_index: usize

“binlog-current-index” is the index of the current binlog file being written to. If binlog is not active this value will be 0.

§binlog_max_size: usize

“binlog-max-size” is the maximum size in bytes a binlog file is allowed to get before a new binlog file is opened.

§binlog_records_written: u32

“binlog-records-written” is the cumulative number of records written to the binlog.

§binlog_records_migrated: u32

“binlog-records-migrated” is the cumulative number of records written as part of compaction.

§draining: bool

“draining” is set to “true” if the server is in drain mode, “false” otherwise.

§id: String

“id” is a random id string for this server process, generated every time beanstalkd process starts.

§hostname: String

“hostname” is the hostname of the machine as determined by uname.

§os: Option<String>

“os” is the OS version as determined by uname

§platform: Option<String>

“platform” is the machine architecture as determined by uname

Trait Implementations§

Source§

impl Debug for Stats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Stats

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Stats

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,