Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / SampledMetric Class / OnCalculateValues Method
The interval to bias to.The interval to bias to.
The number of intervals to have between each value exactly.The number of intervals to have between each value exactly.
The exact date and time desired to start the value set.The exact date and time desired to start the value set.
The exact end date and time to not exceed.The exact end date and time to not exceed.

In This Topic
    OnCalculateValues Method (SampledMetric)
    In This Topic
    Determines what specific samples to use and then calculates the effective values for each sample, returning the results in the provided new metric value set Determines what specific samples to use and then calculates the effective values for each sample, returning the results in the provided new metric value set
    Syntax
    'Declaration
     
    
    Protected Overrides Function OnCalculateValues( _
       ByVal interval As MetricSampleInterval, _
       ByVal intervals As Integer, _
       ByVal startDateTime As DateTimeOffset, _
       ByVal endDateTime As DateTimeOffset _
    ) As MetricValueCollection
    protected override MetricValueCollection OnCalculateValues( 
       MetricSampleInterval interval,
       int intervals,
       DateTimeOffset startDateTime,
       DateTimeOffset endDateTime
    )

    Parameters

    interval
    The interval to bias to.The interval to bias to.
    intervals
    The number of intervals to have between each value exactly.The number of intervals to have between each value exactly.
    startDateTime
    The exact date and time desired to start the value set.The exact date and time desired to start the value set.
    endDateTime
    The exact end date and time to not exceed.The exact end date and time to not exceed.

    Return Value

    A new metric value set with all calculated values.A new metric value set with all calculated values.
    Remarks

    Data covering the provided start and end date will be returned when possible with the goal being that the first metric value returned will coincide with the start date, and the last sample will be less than or equal to the end date. Even if there are raw samples available coincident with the start date it may not be possible to provide a metric value for that date due to the need to have multiple samples to calculate most metrics.

    When there are no samples available an empty collection should be returned. In this case the start and end date may be outside the range of the session.

    Data covering the provided start and end date will be returned when possible with the goal being that the first metric value returned will coincide with the start date, and the last sample will be less than or equal to the end date. Even if there are raw samples available coincident with the start date it may not be possible to provide a metric value for that date due to the need to have multiple samples to calculate most metrics.
    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