PublicationMonitor.ChangeMonitorThreshold Method (Int32, Boolean, Int32, Int32)
Changes the monitoring threshold metric for a publication.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
public void ChangeMonitorThreshold( int metricId, bool enable, int thresholdValue, int shouldAlert )
Is the ID of the publication threshold metric being changed and can be one of these values:
Expiration. Monitors for imminent expiration of subscriptions to transactional publications.
Latency. Monitors for the performance of subscriptions to transactional publications.
Mergeexpiration. Monitors for imminent expiration of subscriptions to merge publications.
Mergeslowrunduration. Monitors the duration of merge synchronizations over low-bandwidth (dial-up) connections.
Mergefastrunduration. Monitors the duration of merge synchronizations over high-bandwidth local area network (LAN) connections.
Mergefastrunspeed. Monitors the synchronization rate of merge synchronizations over high-bandwidth (LAN) connections.
Mergeslowrunspeed. Monitors the synchronization rate of merge synchronizations over low-bandwidth (dial-up) connections.
Specifies whether the metric is enabled or disabled on the publication.
New value for the publication threshold metric.
Specifies whether or not an alert is generated when the publication threshold metric is reached.
Themethod can only be called by members of the db_owner or replmonitor fixed database roles in the distribution database.