語言

PublicationMonitor.ChangeMonitorThreshold 方法

定義

變更發行集的監視臨界值計量。

public:
 void ChangeMonitorThreshold(int metricId, bool enable, int thresholdValue, int shouldAlert);
public void ChangeMonitorThreshold(int metricId, bool enable, int thresholdValue, int shouldAlert);
member this.ChangeMonitorThreshold : int * bool * int * int -> unit
Public Sub ChangeMonitorThreshold (metricId As Integer, enable As Boolean, thresholdValue As Integer, shouldAlert As Integer)

參數

metricId
Int32

發表閾值指標的 ID 是否被更改?且可為以下其中一個值:

指標名稱

1

過期。 監察交易性刊物訂閱即將到期。

2

延遲。 監察交易刊物訂閱的績效。

4

合併過期。 監控合併出版物訂閱即將到期。

5

合併慢速持續。 監控低頻寬(撥號)連線上的合併同步持續時間。

6

合併快速持續時間。 監控高頻寬區域網路(LAN)連線上的合併同步持續時間。

7

合併快速速度。 監控高頻寬(LAN)連線上的合併同步速率。

8

合併慢速。 監控低頻寬(撥號)連線上的合併同步速率。

enable
Boolean

指定該指標在出版品中是否啟用或停用。

thresholdValue
Int32

發表閾值指標的新值。

shouldAlert
Int32

指定當達到發佈閾值指標時是否會產生警報。

備註

ChangeMonitorThreshold此方法僅能由db_owner成員呼叫,或在分發資料庫中 replmonitor 固定資料庫角色中呼叫。

呼叫 ChangeMonitorThreshold 等同於執行 sp_replmonitorchangepublicationthreshold(Transact-SQL)

適用於

另請參閱