Class WidgetsHelper
- Namespace
- Dynamicweb.Dashboard.Widgets
- Assembly
- Dynamicweb.Core.dll
Contains some helpers methods for easy work with log event widgets
public static class WidgetsHelper
- Inheritance
-
WidgetsHelper
- Inherited Members
Fields
DurationFilterOptionIds
public static readonly Dictionary<TimePeriodUnit, string> DurationFilterOptionIds
Field Value
LogLevelFilterOptionIds
public static readonly Dictionary<LogLevel, string> LogLevelFilterOptionIds
Field Value
Methods
GetLogCategories(List<ParameterOption>)
Get log event categories
public static void GetLogCategories(List<ParameterOption> options)
Parameters
options
List<ParameterOption>
GetLogEventTimePeriod(List<ParameterOption>)
Gets time periods.
public static void GetLogEventTimePeriod(List<ParameterOption> options)
Parameters
options
List<ParameterOption>
GetLogEvents(string, string, TimePeriodUnit)
Get log events
public static IEnumerable<LogEvent> GetLogEvents(string eventLevel, string category, TimePeriodUnit timePeriod)
Parameters
eventLevel
stringcategory
stringtimePeriod
TimePeriodUnit
Returns
GetLogEvents(string, string, TimePeriodUnit, string, int)
Get log events
public static IEnumerable<LogEvent> GetLogEvents(string eventLevel, string category, TimePeriodUnit timePeriod, string orderBy, int top)
Parameters
eventLevel
stringcategory
stringtimePeriod
TimePeriodUnitorderBy
stringtop
int
Returns
GetLogEvents(string, string, DateTime)
Get log events
public static IEnumerable<LogEvent> GetLogEvents(string eventLevel, string category, DateTime startTime)
Parameters
Returns
GetLogEvents(string, string, DateTime, string, int)
Get log events
public static IEnumerable<LogEvent> GetLogEvents(string eventLevel, string category, DateTime startTime, string orderBy, int top)
Parameters
Returns
GetLogLevelOptions(List<ParameterOption>)
Get log level options
public static void GetLogLevelOptions(List<ParameterOption> options)
Parameters
options
List<ParameterOption>
GetScheduledTasks(string, TimePeriodUnit, bool)
public static IList<Task> GetScheduledTasks(string taskId, TimePeriodUnit timePeriod, bool includeOverdueTasks = false)
Parameters
taskId
stringtimePeriod
TimePeriodUnitincludeOverdueTasks
bool
Returns
GetStartTimeFromPeriod(TimePeriodUnit)
Get start time by period
public static DateTime GetStartTimeFromPeriod(TimePeriodUnit timePeriod)
Parameters
timePeriod
TimePeriodUnit
Returns
GetTasks(List<ParameterOption>)
public static void GetTasks(List<ParameterOption> options)
Parameters
options
List<ParameterOption>
ParseCategoryAndAction(string)
public static Tuple<string, string> ParseCategoryAndAction(string categoryParameter)
Parameters
categoryParameter
string
Returns
TaskIsActive(Task)
public static bool TaskIsActive(Task task)
Parameters
task
Task