Partager via


Classe MonitorThreshold

Represents a threshold metric used when monitoring a publication.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Replication.MonitorThreshold

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class MonitorThreshold
'Utilisation
Dim instance As MonitorThreshold
public sealed class MonitorThreshold
public ref class MonitorThreshold sealed
[<SealedAttribute>]
type MonitorThreshold =  class end
public final class MonitorThreshold

Le type MonitorThreshold expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique MonitorThreshold Creates a new instance of the MonitorThreshold class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Enabled Gets or sets whether the threshold is enabled.
Propriété publique MetricId Gets or sets the ID value that uniquely identifies the threshold metric.
Propriété publique MetricTitle Gets or sets the name of the threshold metric.
Propriété publique ShouldAlert Gets or sets whether an alert is generated when the metric exceeds the threshold.
Propriété publique UserData Gets or sets an object that allows users to attach their own data to this object.
Propriété publique Value Gets or sets the threshold value.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

The following metric names are supported.

MetricID

MetricTitle

Description

1

expiration

Monitors for imminent expiration of subscriptions to transactional publications.

2

latency

Monitors for the performance of subscriptions to transactional publications.

4

mergeexpiration

Monitors for imminent expiration of subscriptions to merge publications.

5

mergeslowrunduration

Monitors the duration of merge synchronizations over low-bandwidth (dialup) connections.

6

mergefastrunduration

Monitors the duration of merge synchronizations over high-bandwidth (LAN) connections.

7

mergefastrunspeed

Monitors the synchronization rate of merge synchronizations over high-bandwidth (LAN) connections.

8

mergeslowrunspeed

Monitors the synchronization rate of merge synchronizations over low-bandwidth (dialup) connections.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Replication

EnumMonitorThresholds

PublicationMonitor

Autres ressources

Surveiller la réplication par programme (programmation RMO)