'Declaration
Public Enum SamplingType Inherits System.Enum
public enum SamplingType : System.Enum
'Declaration
Public Enum SamplingType Inherits System.Enum
public enum SamplingType : System.Enum
Member | Value | Description |
---|---|---|
IncrementalCount | 2 | Each sample is the incremental change in the value for display as this data point. |
IncrementalFraction | 3 | Each sample has the separate incremental changes to the numerator and denominator of the fraction for display as this data point. |
RawCount | 0 | Each sample is the raw value for display as this data point. |
RawFraction | 1 | Each sample has the raw numerator and denominator of a fraction for display as the value for this data point. |
TotalCount | 4 | Each sample is the cumulative total of display value data points. |
TotalFraction | 5 | Each sample has the separate cumulative totals of the numerators and denominators of fraction value data points. |
In many cases it is necessary to store raw facts that are translated into the final display value during the display process so that they work regardless of time resolution.
For example, to determine the percentage of processor time used for an activity, you need to know a time interval to look across (say per second, per hour, etc.), how many units of work were possible during that interval (time slices of the processor) and how many were used by the process. By specifying the TotalFraction type, the metric display system will automatically inspect the raw and baseline values then translate them into a percentage.
For more information on how to design sampled metrics including picking a Sampling Type, see Developer's Reference - Metrics - Designing Sampled Metrics.
This enumeration is conceptually similar to the Performance Counter Type enumeration provided by the runtime, but has been simplified for easier use.
System.Object
System.ValueType
System.Enum
Gibraltar.Agent.Metrics.SamplingType
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Gibraltar.Agent.Metrics Namespace
Metrics - Designing Sampled Metrics