Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SamplingType Enumeration

In This Topic
    SamplingType Enumeration
    In This Topic
    Determines what the raw data for a given sampled metric is, and how it has to be processed to produce final data point values for display.
    Syntax
    'Declaration
     
    
    Public Enum SamplingType 
       Inherits System.Enum
    public enum SamplingType : System.Enum 
    Members
    MemberValueDescription
    IncrementalCount2Each sample is the incremental change in the value for display as this data point.
    IncrementalFraction3Each sample has the separate incremental changes to the numerator and denominator of the fraction for display as this data point.
    RawCount0Each sample is the raw value for display as this data point.
    RawFraction1Each sample has the raw numerator and denominator of a fraction for display as the value for this data point.
    TotalCount4Each sample is the cumulative total of display value data points.
    TotalFraction5Each sample has the separate cumulative totals of the numerators and denominators of fraction value data points.
    Remarks

    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.

    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Gibraltar.Agent.Metrics.SamplingType

    Requirements

    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

    See Also

    Reference

    Gibraltar.Agent.Metrics Namespace

    Developer's Reference

    Metrics - Designing Sampled Metrics

    Related Classes

    SampledMetricDefinition Class
    SampledMetric Class