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)

適用対象

こちらもご覧ください