Description Usage Arguments Value Examples
View source: R/measure_timeout.R
measure_timeout()
measures timeout errors that continuously occurs N
times or more. N = 1
is equivalent to measure_all_timeout()
.
1 2 3 | measure_all_timeout(log_df)
measure_timeout(log_df, N = 2L)
|
log_df |
A |
N |
Threshold of continuous errors to be considered as fatal. |
A data frame with following columns:
address: (chr) IPv4 addresses that suffered timeout.
start: (dttm) When server started to timeout.
end: (dttm) When server resumed or NA
if not resumed.
n_timeout: (int) Number of timeout before resume.
data.frame
1 2 3 4 5 6 7 8 | log_df <- data.frame(
timestamp = lubridate::ymd_hms(20200101000000 + seq(5)),
address = "192.168.1.1/24",
ping = c(1, NA, 1, NA, NA)
)
measure_timeout(log_df, N = 1L) # equivalent to measure_all_timeout(log)
measure_timeout(log_df, N = 2L)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.