Click or drag to resize

RequestLogMonitor Class

A sheduled task that monitors the xot_request_log for errors (where xot_request_log.error_message is non-null and emails alerts to the email addresses specified on the task.
Inheritance Hierarchy
SystemObject
  NetQuarryScheduledHandler
    NetQuarry.Core.ScheduledTasksRequestLogMonitor

Namespace:  NetQuarry.Core.ScheduledTasks
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class RequestLogMonitor : ScheduledHandler

The RequestLogMonitor type exposes the following members.

Constructors
  NameDescription
Public methodRequestLogMonitor
Initializes a new instance of the RequestLogMonitor class
Top
Properties
  NameDescription
Public propertyApplication
Returns the application object
(Inherited from ScheduledHandler.)
Public propertyIsServiceStopped
Returns true if the service has stopped. Services should check the value of this property to ensure smooth shutdown of the service.
(Inherited from ScheduledHandler.)
Public propertyProperties
Returns the object's configuration properties
(Inherited from ScheduledHandler.)
Public propertyRunDays
Returns the days that this task should run
(Inherited from ScheduledHandler.)
Public propertyTaskID
The ID of the task as used in xmt_scheduled_tasks and xot_task_history.
(Inherited from ScheduledHandler.)
Public propertyTaskState
The task state data, from xot_task_history.task_state. This state belongs to the task itself and can be used by the task as it sees fit. The latest value of the state is provided to the task, when run, via this property, and any updated value is retrieved from this property and persisted back to xot_task_history.task_state when the tasks completes.

For example, this state could be used to store the sequence number of the last item processed so that on the next iteration of the task processing could begin from the next sequence number.

(Inherited from ScheduledHandler.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExec
Executes a command.
(Inherited from ScheduledHandler.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnExec
The main entry point for the task.
(Overrides ScheduledHandlerOnExec(Int32, Object).)
Protected methodSendMail
Send the alert email.
Public methodStatic memberSendNotification
Sends a custom email notification to the RequestLogMonitor mailing list. Note that the entire method body is wrapped in a try/catch block so no error will ever be thrown. Any caught error will be logged to the devlog, but WILL NOT be logged to the request log.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also