Public Sub ScheduleMaintenanceMode ( _ startTime As DateTime, _ scheduledEndTime As DateTime, _ reason As MaintenanceModeReason, _ comments As String, _ traversalDepth As TraversalDepth _ )
public void ScheduleMaintenanceMode ( DateTime startTime, DateTime scheduledEndTime, MaintenanceModeReason reason, string comments, TraversalDepth traversalDepth )
public: void ScheduleMaintenanceMode ( DateTime startTime, DateTime scheduledEndTime, MaintenanceModeReason reason, String^ comments, TraversalDepth traversalDepth )
public void ScheduleMaintenanceMode ( DateTime startTime, DateTime scheduledEndTime, MaintenanceModeReason reason, String comments, TraversalDepth traversalDepth )
public function ScheduleMaintenanceMode ( startTime : DateTime, scheduledEndTime : DateTime, reason : MaintenanceModeReason, comments : String, traversalDepth : TraversalDepth )
The time, in DateTime format, to start maintenance mode.
The scheduled time, in DateTime format, to end maintenance mode.
The reason to start maintenance mode.
Comments about starting maintenance mode.
A value that specifies the scope of the returned results. A value of OneLevel includes only instances of the specified class in the scope of the returned results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.
When a monitoring object is in maintenance mode, the following features are temporarily suspended.
Rules and monitors
Notifications
Diagnostics and recoveries
State changes
New alerts
When maintenance mode starts or stops, by reaching the startTime or scheduledEndTime time, the MaintenanceModeLastModified is reset.