App.Metrics.Abstractions
Gets the currently elapsed time from when the instance has been created
The elapsed.
Apdex allows us to measure an apdex score which is a ratio of
the number of satisfied and tolerating requests to the total requests made. Each satisfied request counts as one
request, while each tolerating request counts as half a satisfied request.
Apdex tracks three response counts, counts based on samples measured by the chosen
reservoir.
Gets or sets a value indicating whether to allow the app to warmup before calcaulting.
If set to true allows the service to warmup before starting to calculate the apdex,
the score will intitially be 1 until enough samples have been recorded.
true if [allow warmup]; otherwise, false.
Gets or sets the apdex t seconds.
Satisfied, Tolerated and Frustrated request counts are calculated as follows using a user value of T seconds.
-
Satisfied: T or less
-
Tolerated: Greater than T or less than 4T
-
Frustrated: Greater than 4 T
The apdex T seconds used in calculating the score on the samples collected.
The value reported by an Apdex Metric
Apdex allows us to measure an apdex score which is a ratio of
the number of satisfied and tolerating requests to the total requests made. Each satisfied request counts as one
request, while each tolerating request counts as half a satisfied request.
Apdex tracks three response counts, counts based on samples measured by the chosen
reservoir.
Satisfied, Tolerated and Frustrated request counts are calculated as follows using a user value of T seconds.
-
Satisfied: T or less
-
Tolerated: Greater than T or less than 4T
-
Frustrated: Greater than 4 T
App.Metrics.IResetableMetric
This is part of advanced timer API. Use Timer.NewContext() by default.
Returns the current time in nanoseconds for computing elapsed time.
value representing the current time in nanoseconds.
This is part of advanced timer API. Use Apdex.NewContext() by default.
Manually ends timing an action.
value representing the current time in nanoseconds.
Creates a new disposable instance and records the time it takes until the instance is disposed.
using(apdex.NewContext())
{
ExecuteMethodThatNeedsMonitoring();
}
A disposable instance that will record the time passed until disposed.
This is part of advanced apdex API. Use Apdex.NewContext() by default.
Manually start timing an action.
value representing the current time in nanoseconds.
This is part of advanced apdex API. Use Apdex.NewContext() by default.
Manually record timer value use to calculate the apdex score.
The value representing the manually measured time.
Runs the and records the time it took allowing us to calculate an apdex score.
Action to run and record time for.
Runs the returning the result and records the time it took allowing us to calculate an
apdex score.
Type of the value returned by the action
Action to run and record time for.
The result of the
Provides access to a adpex metric implementation.
App.Metrics.Core.Interfaces.IApdex
App.Metrics.Data.Interfaces.IMetricValueProvider{ApdexValue}
System.IDisposable
Provides access to an ApdexProvider Implementation responsible for sampling measured duration to calculate an apdex
score
Gets a snapshot including the number of satisfied, tolerating, frustrating
requests, the apdex score and the number of samples used to calculate the result.
if set to true [reset reservoir].
The apdex snapshot
Reset all values, in addition to the underlying reservoir.
Update the chosen reservoir with a new sample.
The value.
Provides access to the API allowing Apdex Metrics to be measured/recorded.
Records a which measures the time taken to process an action, samples data and procuded
an apdex score.
The settings of the apdex metric that is being measured
The action to measure.
Records a which measures the time taken to process an action, samples data and procuded
an apdex score.
The settings of the apdex metric that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The action to measure.
Records a which measures the time taken to process an action, samples data and procuded
an apdex score.
The settings of the apdex metric that is being measured
A disposable context, when disposed records the time token to process the using block
Records a which measures the time taken to process an action, samples data and procuded
an apdex score.
The settings of the apdex metric that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A disposable context, when disposed records the time token to process the using block
Samples with weight of less than 10% of average should be discarded when rescaling
Configuration of an that will be measured
The value reported by a Histogram Metric
Combines the value of the histogram with the defined unit for the value.
A Histogram measures the distribution of values in a stream of data: e.g., the number of results returned by a
search.
Provides access to a histgram metric implementation, allows custom
histograms to be implemented
Provides access to the API allowing Histogram Metrics to be measured/recorded.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The value to be added to the histogram.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The value to be added to the histogram.
Instantiates an instance of a
The details of the histogram that is being measured
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The type of to instantiate
The details of the that is being measured
The function used to build the histogram metric.
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The details of the histogram that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The type of to instantiate
The details of the that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The function used to build the histogram metric.
A new instance of an or the existing registered instance of the histogram
Gets or sets the duration unit used for visualization which defaults to Milliseconds
The duration unit.
Gets or sets the rate unit used for visualization which defaults to Minutes
The rate unit.
The value reported by a Timer Metric
Combines the value of the timer with the defined unit and the time units for rate and duration.
Provides access to a timer metric implementation, allows custom timers to be implemented
Provides access to the API allowing BucketTimer Metrics to be measured/recorded.
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The action to measure.
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The action to measure.
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The action to measure.
The user value to track where a Min, Max and Last duration is recorded.
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The action to measure.
The user value to track where a Min, Max and Last duration is recorded.
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The user value to track where a Min, Max and Last duration is recorded.
A disposable context, when disposed records the time token to process the using block
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
The user value to track where a Min, Max and Last duration is recorded.
A disposable context, when disposed records the time token to process the using block
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
A disposable context, when disposed records the time token to process the using block
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
Records a which measures the time taken to process an action using a BucketTimer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the BucketTimer that is being measured
A disposable context, when disposed records the time token to process the using block
Gets the where App Metrics is configured.
Uses the specifed as one of the available formatters when reporting environment information.
Multiple formatters can be used, in which case the will be set to the first configured formatter.
An instance used to format environment information when reporting.
An that can be used to further configure App Metrics.
Uses the specifed as one of the available formatters when reporting environment information.
Multiple formatters can be used, in which case the will be set to the first configured formatter.
An type used to format environment information when reporting.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
An interface for configuring App Metrics services and options.
Builder for configuring the used to globally filter specific metrics when reporting.
Builder for configuring core App Metrics options.
Builder for configuring environment information output formatting for reporting.
Multiple formatters can be used, in which case the will
be set to the first configured formatter.
Builder for configuring metrics output formatting for reporting.
Multiple formatters can be used, in which case the
will be set to the first configured formatter.
Builder for configuring the default reservoir sampling using an . Reservoir sampling
is used on specific metrics types. By default is set to "DefaultForwardDecayingReservoir".
Builder for configuring the used for specific metrics types which requiring timing.
Builds an with the services configured via an .
An with services configured via an .
Gets the where App Metrics is configured.
Uses the specifed to time specific s. e.g. .
A single should be configured. The last configured will be used.
An instance used for timing. e.g. "StopwatchClock"
An that can be used to further configure App Metrics.
Uses the specifed to time specific s. e.g. .
A single should be configured. The last configured will be used.
An type used for timing. e.g. "StopwatchClock"
An that can be used to further configure App Metrics.
Uses the "StopwatchClock" to time specific s. e.g. .
A single should be configured. The last configured will be used.
An that can be used to further configure App Metrics.
Uses the "SystemClock" to time specific s. e.g. .
A single should be configured. The last configured will be used.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
Uses the specifed instance for App Metrics core configuration.
An instance used to configure core App Metrics options.
An that can be used to further configure App Metrics.
Uses the specifed key value pairs to configure an instance for App Metrics core
configuration.
Keys match the s property names.
Key value pairs for configuring App Metrics
An that can be used to further configure App Metrics.
Uses the specifed key value pairs to configure an instance for App Metrics core
configuration.
Keys match the s property names. Any make key will override the
value configured.
An instance used to configure core App Metrics options.
Key value pairs for configuring App Metrics
An that can be used to further configure App Metrics.
Uses the specifed key value pairs to configure an instance for App Metrics core
configuration.
Keys match the s property names. Any make key will override the
value configured.
An setup action used to configure core App Metrics options.
An that can be used to further configure App Metrics.
Merges the specifed instance with any previously configured options.
An instance used to configure core App Metrics options.
An that can be used to further configure App Metrics.
Merges the specifed instance with any previously configured options.
An used to configure core App Metrics options.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
Filters metrics the specified context. Metrics can be grouped using a context label. The default context label used
can be configured on .
The context label to filter by.
An that can be used to further configure App Metrics.
Filters metrics the specified tag key value pair. When fetched only metrics with a matching key and value will be returned.
The tag key value pair to filter by.
An that can be used to further configure App Metrics.
Filters metrics the specified tag key. When fetched only metrics with a matching tag key.
The tag to filter by.
An that can be used to further configure App Metrics.
Filters metrisc the specified s.
The s to include when fetching metrics.
An that can be used to further configure App Metrics.
Uses the specifed to ftiler metrics when their values are fetched.
A single should be configured. The last configured
will be used.
An instance used for filtering metrics.
An that can be used to further configure App Metrics.
Uses the specifed setup to ftiler metrics when their values
are fetched.
An instance used for filtering metrics.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
Uses the specifed as one of the available formatters when reporting
metric values.
Multiple formatters can be used, in which case the
will be set to the first configured formatter.
An instance used to format metric values when reporting.
An that can be used to further configure App Metrics.
Uses the specifed as one of the available formatters when reporting
metric values.
Multiple formatters can be used, in which case the
will be set to the first configured formatter.
The metric fields to write as well as thier names.
An type used to format metric values
when reporting.
An that can be used to further configure App Metrics.
Uses the specifed as one of the available formatters when reporting
metric values.
Multiple formatters can be used, in which case the
will be set to the first configured formatter.
An instance used to format metric values when reporting.
If [true] replaces matching formatter type with the formatter instance, otherwise the
existing formatter instance of matching type.
An that can be used to further configure App Metrics.
Uses the specifed as one of the available formatters when reporting
metric values.
Multiple formatters can be used, in which case the
will be set to the first configured formatter.
An type used to format metric values
when reporting.
If [true] replaces matching formatter type with the formatter instance, otherwise the
existing formatter instance of matching type.
The metric fields to write as well as thier names.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
Reports metrics using the specifed .
An instance used to report metric values.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An instance used to filter metrics for this
.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An instance used to format metrics for this
.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An instance used to filter metrics for this
.
The interval used if intended to schedule metrics reporting.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An instance used to format metrics for this
.
An instance used to filter metrics for this
.
The interval used if intended to schedule metrics reporting.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
An instance used to format metrics for this
.
The interval used if intended to schedule metrics reporting.
An that can be used to further configure App Metrics.
Reports metrics using the specifed .
An type used to report metric
values.
The interval used if intended to schedule metrics reporting.
An that can be used to further configure App Metrics.
Gets the where App Metrics is configured.
Uses the "DefaultAlgorithmRReservoir" reservoir for s which require
sampling.
A histogram with a uniform reservoir produces
quantiles
which are valid for the entirely of the histogram’s lifetime.
This sampling reservoir can be used when you are interested in long-term measurements, it does not offer a
sence of recency.
All samples are equally likely to be evicted when the reservoir is at full capacity.
The number of samples to keep in the sampling reservoir.
An that can be used to further configure App Metrics.
Uses the "DefaultAlgorithmRReservoir" reservoir for s which require
sampling.
A histogram with a uniform reservoir produces
quantiles
which are valid for the entirely of the histogram’s lifetime.
This sampling reservoir can be used when you are interested in long-term measurements, it does not offer a
sence of recency.
All samples are equally likely to be evicted when the reservoir is at full capacity.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This sampling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The number of samples to keep in the sampling reservoir.
The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the
value the more biased the reservoir will be towards newer values.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This sampling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The number of samples to keep in the sampling reservoir.
The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the
value the more biased the reservoir will be towards newer values.
Minimum weight required for a sample to be retained during reservoir rescaling. Samples with weights less than this value will be discarded.
This behavior is useful if there are longer periods of very low or no activity. Default value is zero, which preserves all samples during rescaling.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This sampling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The number of samples to keep in the sampling reservoir.
The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the
value the more biased the reservoir will be towards newer values.
Minimum weight required for a sample to be retained during reservoir rescaling. Samples with weights less than this value will be discarded.
This behavior is useful if there are longer periods of very low or no activity. Default value is zero, which preserves all samples during rescaling.
The used for timing.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This sampling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The number of samples to keep in the sampling reservoir.
The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the
value the more biased the reservoir will be towards newer values.
Minimum weight required for a sample to be retained during reservoir rescaling. Samples with weights less than this value will be discarded.
This behavior is useful if there are longer periods of very low or no activity. Default value is zero, which preserves all samples during rescaling.
The used for timing.
The used to rescale the reservoir.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This samling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The alpha value, e.g 0.015 will heavily biases the reservoir to the past 5 mins of measurements. The higher the
value the more biased the reservoir will be towards newer values.
The interval at which the reservoir will be rescaled.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This samling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
The interval at which the reservoir will be rescaled.
An that can be used to further configure App Metrics.
Uses the "DefaultForwardDecayingReservoir" reservoir for s which
require sampling.
A histogram with an exponentially decaying reservoir produces
quantiles which are representative of (roughly) the
last five minutes of data.
The reservoir is produced by using a
forward-decaying reservoir with an
exponential weighty towards recent data unlike a Uniform Reservoir which does not provide a sense of recency.
This samling reservoir can be used when you are interested in recent changes to the distribution of data
rather than a median on the lifetime of the histgram.
An that can be used to further configure App Metrics.
Uses the specifed for s which require sampling.
An function used to sample metrics.
An that can be used to further configure App Metrics.
Uses the specifed for s which require sampling.
An type used to sample metrics.
An that can be used to further configure App Metrics.
Uses "DefaultSlidingWindowReservoir" reservoir sample for s which
require sampling. A Reservoir implementation backed by a sliding window that stores only the measurements made in
the last N seconds (or other time unit).
The number of samples to keep in the sampling reservoir.
An that can be used to further configure App Metrics.
Uses "DefaultSlidingWindowReservoir" reservoir sample for s which
require sampling. A Reservoir implementation backed by a sliding window that stores only the measurements made in
the last N seconds (or other time unit).
An that can be used to further configure App Metrics.
Configuration of a that will be measured
Gets or sets a value indicating whether the counter's set items should be reported. Defaults to true.
true if [report item percentages]; otherwise, false.
Gets or sets a value indicating whether or not to report the counter's set items. Defaults to true.
true if [report set items]; otherwise, false.
Gets the total count of the counter instance.
The count.
Gets counters for each registered set item.
The counter's set items.
Gets the specific count for this item.
The count.
Gets the registered item name.
The item.
Gets the percent of this item from the total count.
The percent.
Combines the value for a counter with the defined unit for the value.
Initializes a new instance of the class.
The name.
The value.
The unit.
The tags.
if set to true [reset on reporting]. Defaults to false.
if set to true [report item percentages]. Defaults to true
if set to true [report set items]. Defaults to true
A counter is a simple incrementing and decrementing 64-bit integer.
Each operation can also be applied to a item from a set and the counter will store individual count for each set
item.
Decrement the counter value for an item from a set. The counter value is decremented but the counter will also keep
track and decrement another counter associated with the .
The counter value will contain the total count and for each item the specific count and percentage of total count.
Item from the set for which to increment the counter value.
Decrement the counter value with a specified amount.
The amount with which to increment the counter.
Decrement the counter value with a specified amount for an item from a set.
The counter value is decremented but the counter will also keep track and decrement another counter associated with
the .
The counter value will contain the total count and for each item the specific count and percentage of total count.
Item from the set for which to increment the counter value.
The amount with which to increment the counter.
Increment the counter value.
Increment the counter value for an item from a set.
The counter value is incremented but the counter will also keep track and increment another counter associated with
the .
The counter value will contain the total count and for each item the specific count and percentage of total count.
Item from the set for which to increment the counter value.
Increment the counter value with a specified amount.
The amount with which to increment the counter.
Increment the counter value with a specified amount for an item from a set.
The counter value is incremented but the counter will also keep track and increment another counter associated with
the .
The counter value will contain the total count and for each item the specific count and percentage of total count.
Item from the set for which to increment the counter value.
The amount with which to increment the counter.
Provides access to a counter metric implementation
Provides access to the API allowing Counter Metrics to be measured/recorded.
Decrements a
The details of the counter that is being decremented
Decrements a
The details of the counter that is being decremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
Decrements a by the specificed amount
The details of the counter that is being decremented
The amount to decrement the counter.
Decrements a by the specificed amount
The details of the counter that is being decremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to decrement the counter.
Decrements the specified options.
The options.
The item.
Decrements the specified options.
The options.
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The item.
Decrements the specified options.
The options.
The amount.
The item.
Decrements the specified options.
The options.
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount.
The item.
Decrements a as well as the specified item within the counter's set
The counter value is decremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
The details of the counter that is being decremented
The item within the set to decrement.
Decrements a by the specified amount as well as the specified item within the
counter's set
The details of the counter that is being decremented
The amount to decrement the counter.
The item within the set to decrement.
The counter value is decremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
Increments a
The details of the counter that is being incremented
Increments a
The details of the counter that is being incremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
Increments a
The details of the counter that is being incremented
The amount to increment the counter.
Increments a
The details of the counter that is being incremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to increment the counter.
Increments a as well as the specified item within the counter's set
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
The details of the counter that is being incremented
The item within the set to increment.
Increments a as well as the specified item within the counter's set
The details of the counter that is being incremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The item within the set to increment.
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
Increments a as well as the specified item within the counter's set
The details of the counter that is being incremented
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to increment the counter.
The item within the set to increment.
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
Increments a as well as the specified item within the counter's set
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
The details of the counter that is being incremented
The amount to increment the counter.
The item within the set to increment.
Increment a as well as the specified item within the counter's set
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
The details of the counter that is being incremented
The item within the set to increment.
Increment a by the specified amount as well as the specified item within the
counter's set
The details of the counter that is being incremented
The amount to increment the counter.
The item within the set to increment.
The counter value is incremented as is the specified 's counter within the set.
The within the set will also keep track of it's percentage from the total sets count.
Determines whether the specified apdex is match.
The apdex.
True if the metric type is an apdex, the name matches and tags match
Determines whether the specified counter is match.
The counter.
True if the metric type is a counter, the name matches and tags match
Determines whether the specified gauge is match.
The gauge.
True if the metric type is a gauge, the name matches and tags match
Determines whether the specified histogram is match.
The histogram.
True if the metric type is a histogram, the name matches and tags match
Determines whether the specified bucket histogram is match.
The bucket histogram.
True if the metric type is a bucket histogram, the name matches and tags match
Determines whether the specified context is match.
The context.
true if the context matches
Determines whether the specified meter is match.
The meter.
True if the metric type is a meter, the name matches and tags match
Determines whether the specified timer is match.
The timer.
True if the metric type is a timer, the name matches and tags match
Determines whether the specified timer is match.
The timer.
True if the metric type is a timer, the name matches and tags match
Filters metrics where the specified predicate on the metrics context is true
The predicate on the context to filter on.
A filter where the metric context should match
Filters metrics where the specified context matches
The metrics context to filter on.
A filter where the metric context should match
Filters metrics where the specified predicate on the metric name is true
The metric name to filter on.
A filter where the metric name should match
Filters metrics where the specified predicate on the metric name is true
The predicate on the metric name to filter on.
A filter where the metric name should match
Filters metrics where the metric name starts with the specified name
The metrics name to filter on.
A filter where the metric name starts with the specified name
Filters metrics where the metrics contain the specified tags keys
The metrics tag keys to filter on.
A filter where the metric tags keys should match
Filters metrics where the metrics contain the specified tags key/value pair
The metrics tag key/values to filter on.
A filter where the metric tags key and value should match
Filters metrics by matching types
The metric types to filter on.
A filter where metrics types should match
Gets the of the formatter.
Writes the specified to the given stream.
The output stream of the formatted
.
The being written.
The
A representing the asynchronous write operation.
Writes the specified to the given stream, streaming one
data point at a time.
The being written.
Hint for the formatter about the maximum packet size the transport layer can handle
The
A representing the asynchronous write operation.
Gets the of the formatter.
Writes the specified to the given stream.
The output stream of the formatted
.
The being written.
The
A representing the asynchronous write operation.
Configuration of an that will be measured
Combines the value of a gauge (a double) with the defined unit for the value.
Provides access to a gauge metric implementation e.g. App.Metrics.FunctionGauge, App.Metrics.HitRatioGauge,
App.Metrics.DerivedGauge, App.Metrics.HitPercentageGauge, App.Metrics.PercentageGauge
Allows custom gauges to be implemented
Provides access to the API allowing Gauge Metrics to be measured/recorded.
Records which is a point in time instantaneous value
The details of the gauge that is being measured.
A function that returns custom value provider for the gauge.
Records which is a point in time instantaneous value
The details of the gauge that is being measured.
A function that returns custom value provider for the gauge.
Records which is a point in time instantaneous value
The details of the gauge that is being measured.
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A function that returns custom value provider for the gauge.
Records which is a point in time instantaneous value
The details of the gauge that is being measured.
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A function that returns the value for the gauge.
Configuration of an that will be measured
The value reported by a Histogram Metric
Combines the value of the histogram with the defined unit for the value.
A Histogram measures the distribution of values in a stream of data: e.g., the number of results returned by a
search.
Records a value.
Value to be added to the histogram.
A custom user value that will be associated to the results.
Useful for tracking (for example) for which id the max or min value was recorded.
Records a value.
Value to be added to the histogram.
Provides access to a histgram metric implementation, allows custom
histograms to be implemented
Provides access to the API allowing Histogram Metrics to be measured/recorded.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The value to be added to the histogram.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The value to be added to the histogram.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The value to be added to the histogram.
The user value to track where a Min, Max and Last duration is recorded.
Updates a which measures the distribution of values in a stream of data. Records
the min, mean,
max and standard deviation of values and also quantiles such as the medium, 95th percentile, 98th percentile, 99th
percentile and 99.9th percentile
The details of the histogram that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The value to be added to the histogram.
The user value to track where a Min, Max and Last duration is recorded.
Instantiates an instance of a
The details of the histogram that is being measured
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The type of to instantiate
The details of the that is being measured
The function used to build the histogram metric.
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The details of the histogram that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A new instance of an or the existing registered instance of the histogram
Instantiates an instance of a
The type of to instantiate
The details of the that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The function used to build the histogram metric.
A new instance of an or the existing registered instance of the histogram
Provides access to APIs which build instances of all available metric types. Metrics created are not added to the
.
Gets the Apdex API to build s
The Apdex API for building s
Gets the Counter API to build s
The Counter API for building s
Gets the Gauge API to build s
The Gauge API for building s
Gets the Histogram API to build s
The Histogram API for building s
Gets the Bucket Histogram API to build s
The Bucket Histogram API for building s
Gets the Meter API to build s
The Meter API for building s
Gets the Timer API to build s
The Timer API for building s
Gets the Bucket Timer API to build s
The Bucket Timer API for building s
Disables all recording of metrics
Allows resetting of all metric data at runtime.
Allows clearing all metrics belonging to the specified context at runtime.
The context.
Provides access to measure/record available metric types
Gets the available Apdex API allowing Apdex metrics to be measured
The Apdex API for measuring Apdex metrics
Gets the available Counter API allowing Counter metrics to be measured
The Counter API for measuring Counter metrics
Gets the available Gauge API allowing Gauge metrics to be measured
The Gauge API for measuring Gauge metrics
Gets the available Histogram API allowing Histogram metrics to be measured
The Histogram API for measuring Histogram metrics
Gets the available Bucket Histogram API allowing Bucket Histogram metrics to be measured
The Bucket Histogram API for measuring Bucket Histogram metrics
Gets the available Meter API allowing Meter metrics to be measured
The Meter API for measuring Meter metrics
Gets the available Timer API allowing Timer metrics to be measured
The Timer API for measuring Timer metrics
Gets the available Timer API allowing Timer metrics to be measured
The Timer API for measuring Timer metrics
Gets a list of s that are used by this application to format metric
results.
A list of s that are used by this application.
Gets the default to use when metrics are attempted to be formatted.
The default s that is used by this application.
Gets the default to use when the environment's info is attempted to be formatted.
The default s that is used by this application.
Gets a list of s that are used by this application to format environment info.
A list of s that are used by this application.
Indicates the ability to provide the value for a metric.
This is the raw value. Consumers should use MetricValueSourceBase{T} />
Type of the value returned by the metric
Gets the current value of the metric.
The value.
Get the current value for the metric, but also reset the metric.
Useful for pushing data to only one consumer (ex: graphite) where you might want to only capture values just
between the report interval.
if set to true the metric will be reset.
The current value for the metric.
Copied from Microsoft.Extensions.HashCodeCombiner.Sources - Microsoft.Extensions.Internal.HashCodeCombiner
Marker interface to cleanup editor visible members.
Created by Daniel Cazzulino http://www.clariusconsulting.net/blogs/kzu/archive/2008/03/10/58301.aspx
Original Source: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/Text/StringBuilderCache.cs
Acquire is used to get a string builder to use of a particular size.It can be called any number of times, if a
stringbuilder is in the
cache then it will be returned and the cache emptied. Subsequent calls will return a new stringbuilder.
The capacity.
A new or cached string buildeer for this thread
ToString() the string builder, release it to the cache and return the resulting string
The string builder.
The resulting string
Place the specified builder in the cache if it is not too big. The stringbuilder should not be used after it has
been released.
Unbalanced Releases are perfectly acceptable. It will merely cause the runtime to create a new stringbuilder next
time Acquire is
called.
The string builder instance.
Provides access to APIs which get or add metrics to the and return the instance.
Gets the Apdex API to register and retrieve s to be measured.
The Apdex API for registering and retrieving s to be measured
Gets the Counter API to register and retrieve s to be measured.
The Counter API for registering and retrieving s to be measured
Gets the Gauge API to register and retrieve s to be measured.
The Gauge API for registering and retrieving s to be measured
Gets the Histogram API to register and retrieve s to be measured.
The Histogram API for registering and retrieving s to be measured
Gets the Meter API to register and retrieve s to be measured.
The Meter API for registering and retrieving s to be measured
Gets the Timer API to register and retrieve s to be measured.
The Timer API for registering and retrieving s to be measured
Gets the Bucket Timer API to register and retrieve s to be measured.
The Bucket Timer API for registering and retrieving s to be measured
Provides access to the current metrics recorded by the application
Returns the current metrics data for all contexts.
A snapshot of the current metrics data, if a global is configured this will be
applied on the result.
Returns the current metrics data for the context for which this provider has been created.
The override the configured global filter and filters metric data by the specified
.
A snapshot of the current metrics data filtered by the specified
Retrieves a snapshot of the current metrics values recorded.
The metric context to retreive.
Metrics data belonging to the specified context
Indicates a metric's ability to be reset. Reseting a metric clear all currently collected data.
Clear all currently collected data for this metric.
Provides access to the API allowing Meter Metrics to be measured/recorded.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The amount to mark the meter.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to mark the meter.
Marks a which increments an increment-only counter and measures the rate of events
overtime, will mark as 1.
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The metric item within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The metric item within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The amount to mark the meter.
The metric item within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to mark the meter.
The metric item within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The amount to mark the meter.
The within the set to mark.
Marks a which increments an increment-only counter and measures the rate of events over
time
The details of the meter that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The amount to mark the meter.
The within the set to mark.
A meter measures the rate at which a set of events occur, in a few different ways.
The mean rate is the average rate of events. It’s generally useful for trivia,
but as it represents the total rate for your application’s entire lifetime (e.g., the total number of requests
handled,
divided by the number of seconds the process has been running), it doesn’t offer a sense of recency.
Luckily, meters also record three different exponentially-weighted moving average rates: the 1-, 5-, and 15-minute
moving averages.
Mark the occurrence of an event.
Mark the occurrence of an event for an item in a set.
The total rate of the event is updated, but the meter will also keep track and update a specific rate for each
registered.
The meter value will contain the total rate and for each registered item the specific rate and percentage of total
count.
Item from the set for which to record the event.
Mark the occurrence of an event for an item in a set.
The total rate of the event is updated, but the meter will also keep track and update a specific rate for each
registered.
The meter value will contain the total rate and for each registered item the specific rate and percentage of total
count.
Item from the set for which to record the event.
Mark the occurrence of an event for an item in a set.
The total rate of the event is updated, but the meter will also keep track and update a specific rate for each
registered.
The meter value will contain the total rate and for each registered item the specific rate and percentage of total
count.
Item from the set for which to record the event.
The amount to mark the meter.
Mark the occurrence of events.
The amount.
Mark the occurrence of events for an item in a set.
The total rate of the event is updated, but the meter will also keep track and update a specific rate for each
registered.
The meter value will contain the total rate and for each registered item the specific rate and percentage of total
count.
Item from the set for which to record the events.
The amount.
Provides access to a meter metric implementation, allows custom meters to be implemented.
Instantiates an instance of a
The details of the that is being marked
A new instance of an or the existing registered instance of the meter
Instantiates an instance of a
The type of to instantiate
The details of the that is being marked
The function used to build the meter metric.
A new instance of an or the existing registered instance of the meter
Instantiates an instance of a
The details of the that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
A new instance of an or the existing registered instance of the meter
Instantiates an instance of a
The type of to instantiate
The details of the that is being marked
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The function used to build the meter metric.
A new instance of an or the existing registered instance of the meter
Configuration of an that will be measured
Initializes a new instance of the class.
Gets or sets the rate unit used for visualization which defaults to Minutes
The rate unit.
Gets or sets a value indicating whether or not to report the counter's set items. Defaults to true.
true if [report set items]; otherwise, false.
The value reported by a Meter Metric
Combines the value of the meter with the defined unit and the rate unit at which the value is reported.
Metric items provide the ability to track either a count or rate for each item in a counters or meters finite
set
respectively. They also track the overall percentage of each item in the set.
This is useful for example if we needed to track the total number of emails sent but also the count of each
type of emails sent or The total rate of emails sent but also the rate at which type of email was sent.
Initializes a new instance of the struct.
The keys to use to generate a name for the set item.
The values to use to generate a name for the set item.
keys length must be equal to values length
keys cannot be null
or
values items cannot be null
or
keys cannot be empty
or
values cannot be empty
Provides programmatic configuration for the App Metrics framework.
Gets or sets the default context label using for grouping metrics in contexts.
Defaults to "Application"
The default context label used for grouping metrics within the .
Gets or sets the global tags to apply on all metrics when reporting.
The global tags applied to on all metrics when reporting.
Gets or sets the contextual tags to apply on all metrics when reporting.
The contextual tags applied to on all metrics when reporting.
Gets or sets a value indicating whether [metrics tracking enabled]. This will also avoid registering all metric
tracking middleware if using App.Metrics.Middleware.
If disabled no metrics will be recorded or stored in memory
true if [metrics enabled]; otherwise, false.
Gets or sets a value indicating whether [reporting enabled].
true if [reporting enabled]; otherwise, false.
Available metric types
A Gauge
Metric
A Counter
Metric
A Meter
Metric
A
Histogram
Metric
A
BucketHistogram
Metric
A Timer
Metric
A Timer
Metric
An Apdex
Metric
Configuration of a Metric that will be measured
Gets or sets the context for which the metric belongs e.g. Application.WebRequests
The context.
Gets or sets the description of what is being measured, a is something that is expressed in MB,
kB for example
The measurement unit.
Gets or sets the name of the Metric being measure, this should be unique per
The name.
Gets or sets the associated with the metric, this is useful for grouping metrics when
visualizing
The tags.
Gets or sets a value indicating whether the Metric should be reset when it is reported, otherwise values
are cumulative. Note: If using more than one reporter, the count will be reset for the first reporter which sends
the value. Defaults to false.
true if [reset on reporting]; otherwise, false.
Provides the value of a metric and information about units.
This is the class that metric consumers should use.
Type of the metric value
Gets a value indicating whether this instance is a multidimensional metric.
true if this instance is a multidimensional metric; otherwise, false.
Gets the name of the multidimensional metric. If tags were set at runtime, this will be the name of the metric
without the concatenated metric tags so that these metrics can be reported as one.
The name of the multidimensional metric.
Gets the Name of the metric.
The name.
Gets the Tags associated with the metric.
The tags.
Gets the Unit representing what the metric is measuring.
The unit.
Gets whether or not the Metric will be reset when reported on
Gets the current value of the metric.
The value.
Gets the instance capable of returning the current value for the metric.
The value provider.
Configuration of a Metric that will be measured using a reservoir sampling type
Gets or sets an implementation for sampling.
The reservoir instance to use for sampling.
Reservoir sampling avoids unbound memory usage, allows metrics to be generated from a reservoir of values.
Gets the to use for just this reporter provider.
The to use for this reporter provider.
Gets interval to flush metrics values. Defaults to
.
Gets the used to format before
flushing. If not set the default will be used.
Flushes the current metrics snapshot using the configured output formatter.
The current snapshot of metrics.
The cancellation token.
True if metrics were successfully flushed, false otherwise.
Returns an which flush the current snapshot of metrics via each configured
.
The cancellation token to use for each reporting task.
Tasks to flush the current snapshot of metrics via each configured .
Returns an which flushes the current snapshot of metrics via the specified
type. The must be configured on the
otherwise throws an .
The typeof of reporter used to flush the current snapshot of metrics.
The cancellation token to use for the reporting task.
Tasks to flush the current snapshot of metrics via each configured .
Provides access to a Reservoir Sampling implementation. Reservoir sampling is a family of randomized algorithms for
randomly choosing a sample of k items from a list S containing n items, where n is either a very large or unknown
number. Typically n is large enough that the list doesn't fit into main memory.
Gets a statistical snapshot including
percentiles of the current sample.
if set to true [reset reservoir].
A snapshot of the current sample
Gets a statistical snapshot including
percentiles of the current sample.
A snapshot of the current sample
Reset all statistics, in addition to the underlying reservoir.
Update statistics and the reservoir with a new sample.
The value.
The user value.
Update statistics and the reservoir with a new sample.
The value.
Provides access to a snapshot used for calculating
quantile statistics.
Gets the number of samples that the histogram has been updated with.
The count.
Gets the maximum value of all samples
The maximum.
Gets the maximum value which was recorded in the samples set
The maximum user value.
Gets the average of all samples since the histogram was created.
The mean.
Gets the median value of all samples
The median.
Gets the minimum value of all samples.
The minimum.
Gets the minumum value which was recorded in the samples set
The minimum user value.
Gets the 75th percentile of all samples
The percentile75.
Gets the 95th percentile of all samples
The percentile95.
Gets the 98th percentile of all samples
The percentile98.
Gets the 99th percentile of all samples
The percentile99.
Gets the 99.9th percentile of all samples
The percentile999.
Gets the current size of the histogram's reservoir
The size.
Gets the standard deviation of all samples.
The standard dev.
Gets the sum of observed values.
The sum.
Gets the samples of the snapshot
The values.
Calculate an arbitrary quantile value for the snapshot. Values below zero or greater than one will be clamped to
the range [0, 1]
The quantile.
The quantile value
Serializes into the different formats.
Serializes the specified and writes the environment information using the specified
.
The used to write the metrics snapshot.
The to serilize.
Writes the specified .
The environment information to write.
Writes the specific metrics and tags
The metric's context
The name of the metric
The label for the metric value
The value of the metrics
The metric's tags
The timestamp of the metrics snapshot
Writes the specific metrics and tags
The metric's context
The name of the metric
The metric names
The corresponding metrics values
The metric's tags
The timestamp of the metrics snapshot
Serializes into the different formats.
Serializes the specified and writes the metrics snapshot using the specified
.
The used to write the metrics snapshot.
The to serilize.
The metric fields to write
Provides access to the API allowing Timer Metrics to be measured/recorded.
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The action to measure.
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The action to measure.
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The action to measure.
The user value to track where a Min, Max and Last duration is recorded.
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The action to measure.
The user value to track where a Min, Max and Last duration is recorded.
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
The user value to track where a Min, Max and Last duration is recorded.
A disposable context, when disposed records the time token to process the using block
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
The user value to track where a Min, Max and Last duration is recorded.
A disposable context, when disposed records the time token to process the using block
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
A disposable context, when disposed records the time token to process the using block
The runtime tags to set in addition to those defined on the options, this will create a separate metric per unique
Records a which measures the time taken to process an action using a timer metric.
Records a histogram of the duration of a type of event and a meter of the rate of it's occurance
The details of the timer that is being measured
A disposable context, when disposed records the time token to process the using block
Records a which records the user generated time taken. This can be useful
for an external service that you want to capture its observed duration.
Records a which records the user generated time taken. This can be useful
for an external service that you want to capture its observed duration.
A timer is basically a histogram of the duration of a type of event and a meter of the rate of its occurrence.
and
This is part of advanced timer API. Use Timer.NewContext() by default.
Returns the current time in nanoseconds for computing elapsed time.
value representing the current time in nanoseconds.
This is part of advanced timer API. Use Timer.NewContext() by default.
Manually ends timing an action.
value representing the current time in nanoseconds.
Creates a new disposable instance and records the time it takes until the instance is disposed.
using(timer.NewContext())
{
ExecuteMethodThatNeedsMonitoring();
}
A custom user value that will be associated to the results.
Useful for tracking (for example) for which id the max or min value was recorded.
A disposable instance that will record the time passed until disposed.
Creates a new disposable instance and records the time it takes until the instance is disposed.
using(timer.NewContext())
{
ExecuteMethodThatNeedsMonitoring();
}
A disposable instance that will record the time passed until disposed.
This is part of advanced timer API. Use Timer.NewContext() by default.
Manually record timer value.
The value representing the manually measured time.
Unit for the value.
A custom user value that will be associated to the results.
Useful for tracking (for example) for which id the max or min value was recorded.
This is part of advanced timer API. Use Timer.NewContext() by default.
Manually record timer value.
The value representing the manually measured time.
Unit for the value.
This is part of advanced timer API. Use Timer.NewContext() by default.
Manually start timing an action.
value representing the current time in nanoseconds.
Runs the and records the time it took.
Action to run and record time for.
A custom user value that will be associated to the results.
Useful for tracking (for example) for which id the max or min value was recorded.
Runs the and records the time it took.
Action to run and record time for.
Runs the returning the result and records the time it took.
Type of the value returned by the action
Action to run and record time for.
A custom user value that will be associated to the results.
Useful for tracking (for example) for which id the max or min value was recorded.
The result of the
Runs the returning the result and records the time it took.
Type of the value returned by the action
Action to run and record time for.
The result of the
Provides access to a timer metric implementation, allows custom timers to be implemented
This struct is meant to be returned by the timer.NewContext() method and is intended to be used inside a using
statement:
using(timer.NewContext())
{
ExecuteMethodThatNeedsMonitoring();
}
Double disposing the instance, or a copy of the instance (since it is a struct) will cause the timer to record
wrong values.
Stick to directly passing it to the using() statement.
Gets the currently elapsed time from when the instance has been created
The elapsed.
Set the user value for this timer context.
New user value to use for this context.
Gets or sets the duration unit used for visualization which defaults to Milliseconds
The duration unit.
Gets or sets the rate unit used for visualization which defaults to Minutes
The rate unit.
The value reported by a Timer Metric
Combines the value of the timer with the defined unit and the time units for rate and duration.
The time unit used for a measurement
HTTP requests, database queries, etc