measure_overload: Measure overload

Description Usage Arguments Value Examples

View source: R/measure_overload.R

Description

Summarize the overload conditions when rolling mean of ping exceeds the limit. If a window contains timeout, it is not considered as overload regardless of any finite values within the window. Note that no-response is discarded instead of being treated as timeout by measure_timeout().

Usage

1
measure_overload(log_df, m = 2L, t = 10, N = 1L)

Arguments

log_df

A data.frame that records the log.

m

A window size of rolling mean of ping time.

t

Upper limit of rolling mean of ping time.

N

Threshold of continuous errors to be considered as fatal.

Value

A data frame with following columns:

data.frame

Examples

1
2
3
4
5
6
7
log_df <- data.frame(
  timestamp = lubridate::ymd_hms(20200101000000 + seq(6)),
  address = "192.168.1.1/24",
  ping = c(1, 10, NA, 10, 10, NA)
)
measure_overload(log_df, m = 1L, t = 10)
measure_overload(log_df, m = 2L, t = 10)

atusy/pingAnalysis documentation built on Jan. 3, 2022, 12:47 p.m.