PartialMonitoringObject::ScheduleMaintenanceMode Method (DateTime, DateTime, MaintenanceModeReason, String^)
System Center
Applies To: Operations Manager for System Center 2012
Schedules maintenance mode for this object.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: void ScheduleMaintenanceMode( DateTime startTime, DateTime scheduledEndTime, MaintenanceModeReason reason, String^ comments )
Parameters
- startTime
-
Type:
System::DateTime
The time, in DateTimeformat, to start maintenance mode
- scheduledEndTime
-
Type:
System::DateTime
The scheduled time, inDateTimeformat, to end maintenance mode
- reason
-
Type:
Microsoft.EnterpriseManagement.Monitoring::MaintenanceModeReason
The reason to start maintenance mode.
- comments
-
Type:
System::String^
Comments about starting maintenance mode.
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 property is reset
Show: