PartialMonitoringObject.ScheduleMaintenanceMode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Schedules maintenance mode for this object.
Overloads
ScheduleMaintenanceMode(DateTime, DateTime, MaintenanceModeReason, String, TraversalDepth) |
Schedules maintenance mode for this object. |
ScheduleMaintenanceMode(DateTime, DateTime, MaintenanceModeReason, String) |
Schedules maintenance mode for this object. |
Remarks
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
ScheduleMaintenanceMode(DateTime, DateTime, MaintenanceModeReason, String, TraversalDepth)
Schedules maintenance mode for this object.
public:
void ScheduleMaintenanceMode(DateTime startTime, DateTime scheduledEndTime, Microsoft::EnterpriseManagement::Monitoring::MaintenanceModeReason reason, System::String ^ comments, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public void ScheduleMaintenanceMode (DateTime startTime, DateTime scheduledEndTime, Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason reason, string comments, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.ScheduleMaintenanceMode : DateTime * DateTime * Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason * string * Microsoft.EnterpriseManagement.Common.TraversalDepth -> unit
Public Sub ScheduleMaintenanceMode (startTime As DateTime, scheduledEndTime As DateTime, reason As MaintenanceModeReason, comments As String, traversalDepth As TraversalDepth)
Parameters
- startTime
- DateTime
The start time.
- scheduledEndTime
- DateTime
The scheduled end time.
- reason
- MaintenanceModeReason
The reason.
- comments
- String
Any comments.
- traversalDepth
- TraversalDepth
Whether or not to schedule this maintenance mode window recursively down the containment hierarchy.
Remarks
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 [ScheduleMaintenanceMode Method (DateTime, DateTime, MaintenanceModeReason, String,]() property is reset
See also
Applies to
ScheduleMaintenanceMode(DateTime, DateTime, MaintenanceModeReason, String)
Schedules maintenance mode for this object.
public:
void ScheduleMaintenanceMode(DateTime startTime, DateTime scheduledEndTime, Microsoft::EnterpriseManagement::Monitoring::MaintenanceModeReason reason, System::String ^ comments);
public void ScheduleMaintenanceMode (DateTime startTime, DateTime scheduledEndTime, Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason reason, string comments);
member this.ScheduleMaintenanceMode : DateTime * DateTime * Microsoft.EnterpriseManagement.Monitoring.MaintenanceModeReason * string -> unit
Public Sub ScheduleMaintenanceMode (startTime As DateTime, scheduledEndTime As DateTime, reason As MaintenanceModeReason, comments As String)
Parameters
- startTime
- DateTime
The start time.
- scheduledEndTime
- DateTime
The scheduled end time.
- reason
- MaintenanceModeReason
The reason.
- comments
- String
Any comments.
Remarks
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 [ScheduleMaintenanceMode Method (DateTime, DateTime, MaintenanceModeReason,]() property is reset