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

Expiration。 トランザクション パブリケーションへのサブスクリプションに期限が迫っていないかを監視します。

2

Latency。 トランザクション パブリケーションへのサブスクリプションのパフォーマンスを監視します。

4

Mergeexpiration。 マージ パブリケーションへのサブスクリプションに期限が迫っていないかを監視します。

5

Mergeslowrunduration。 低帯域 (ダイヤルアップ) 接続でのマージ同期の期間を監視します。

6

Mergefastrunduration。 高帯域ローカル エリア ネットワーク (LAN) 接続でのマージ同期の期間を監視します。

7

Mergefastrunspeed。 高帯域 (LAN) 接続でのマージ同期の同期率を監視します。

8

Mergeslowrunspeed。 低帯域 (ダイヤルアップ) 接続でのマージ同期の同期率を監視します。

enable
Boolean

パブリケーションに対して基準を有効にするか無効にするかを指定します。

thresholdValue
Int32

パブリケーションしきい値の新しい値です。

shouldAlert
Int32

パブリケーションしきい値に達した場合に警告が生成されるかどうかを指定します。

注釈

メソッドは ChangeMonitorThreshold 、ディストリビューション データベース内のdb_ownerまたは replmonitor 固定データベース ロールのメンバーによってのみ呼び出すことができます。

の呼び出し ChangeMonitorThreshold は、 sp_replmonitorchangepublicationthreshold (Transact-SQL) の実行と同じです。

適用対象

こちらもご覧ください