plotErrorRateByHour | R Documentation |
Generates a stacked bar plot of http response code types (2xx Success, 3xx Redirect, 4xx User Error and 5xx System Error) by hour.
The x-axis is hours and the plot is limited to 24 axis labels (optimally this is one day) regardless of how many days are being reported. This ensures that the labels are readable.
plotErrorRateByHour(dataFrame)
dataFrame |
a transaction data frame created by |
Returns a ggplot2 plot. This function is intended to be wrapped in a call to plotSaveGG
Greg Hunt <greg@firmansyah.com>
logFileRead
logFileListRead
logFileName = logFileNamesGetLast(dataDirectory=datd,
directoryNames=c(".", "."),
fileNamePattern="*[.]log")[[1]]
cols = logFileFieldsGetIIS(logFileName)
logdf = logFileRead(logFileName, columnList=cols,
logTimeZone = "", timeFormat = "")
plotErrorRateByHour(logdf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.