[−][src]Struct cannyls::metrics::DeviceMetrics
Device
のメトリクス.
Methods
impl DeviceMetrics
[src]
pub fn status(&self) -> DeviceStatus
[src]
pub fn enqueued_commands(&self) -> &DeviceCommandCounter
[src]
デバイスのキューに挿入されたコマンドの数.
Prometheus
cannyls_device_enqueued_commands_total { command="put" } = <COUNTER>
cannyls_device_enqueued_commands_total { command="get" } = <COUNTER>
cannyls_device_enqueued_commands_total { command="head" } = <COUNTER>
cannyls_device_enqueued_commands_total { command="delete" } = <COUNTER>
cannyls_device_enqueued_commands_total { command="list" } = <COUNTER>
cannyls_device_enqueued_commands_total { command="stop" } = <COUNTER>
pub fn dequeued_commands(&self) -> &DeviceCommandCounter
[src]
デバイスのキューから取り出されたコマンドの数.
Prometheus
cannyls_device_dequeued_commands_total { command="put" } = <COUNTER>
cannyls_device_dequeued_commands_total { command="get" } = <COUNTER>
cannyls_device_dequeued_commands_total { command="head" } = <COUNTER>
cannyls_device_dequeued_commands_total { command="delete" } = <COUNTER>
cannyls_device_dequeued_commands_total { command="list" } = <COUNTER>
cannyls_device_dequeued_commands_total { command="stop" } = <COUNTER>
pub fn failed_commands(&self) -> &DeviceCommandCounter
[src]
実行に失敗したコマンドの数.
Prometheus
cannyls_device_failed_commands_total { command="put" } = <COUNTER>
cannyls_device_failed_commands_total { command="get" } = <COUNTER>
cannyls_device_failed_commands_total { command="head" } = <COUNTER>
cannyls_device_failed_commands_total { command="delete" } = <COUNTER>
cannyls_device_failed_commands_total { command="list" } = <COUNTER>
cannyls_device_failed_commands_total { command="stop" } = <COUNTER>
pub fn busy_commands(&self) -> &DeviceCommandCounter
[src]
デバイスが忙しくて実行を諦めたコマンドの数.
Prometheus
cannyls_device_busy_commands_total { command="put" } = <COUNTER>
cannyls_device_busy_commands_total { command="get" } = <COUNTER>
cannyls_device_busy_commands_total { command="head" } = <COUNTER>
cannyls_device_busy_commands_total { command="delete" } = <COUNTER>
cannyls_device_busy_commands_total { command="list" } = <COUNTER>
cannyls_device_busy_commands_total { command="stop" } = <COUNTER>
pub fn side_jobs(&self) -> u64
[src]
pub fn queue_len(&self) -> usize
[src]
デバイスキューの長さ(i.e., 実行待ちのコマンド数).
Prometheus
sum(cannyls_device_enqueued_commands_total - cannyls_device_dequeued_commands_total)
pub fn storage(&self) -> Option<&StorageMetrics>
[src]
ストレージのメトリクスを返す.
デバイスの状態がRunning
以外の場合にはNone
が返る.
Trait Implementations
impl Clone for DeviceMetrics
[src]
fn clone(&self) -> DeviceMetrics
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeviceMetrics
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceMetrics
impl Send for DeviceMetrics
impl Sync for DeviceMetrics
impl Unpin for DeviceMetrics
impl UnwindSafe for DeviceMetrics
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,