Esempio n. 1
0
 public static IMetricFamily <ISummary> CreateSummary(
     this MetricFactory factory,
     string name,
     string help,
     bool includeTimestamp,
     string[] labelNames,
     IReadOnlyList <QuantileEpsilonPair> objectives,
     TimeSpan?maxAge,
     int?ageBuckets,
     int?bufCap)
 {
     return(factory.CreateSummary(name, help, includeTimestamp, true, labelNames, objectives, maxAge, ageBuckets, bufCap));
 }
 public static IMetricFamily <ISummary, ValueTuple <string> > CreateSummary(
     this MetricFactory factory,
     string name,
     string help,
     string labelName,
     IReadOnlyList <QuantileEpsilonPair> objectives = null,
     TimeSpan?maxAge     = null,
     int?ageBuckets      = null,
     int?bufCap          = null,
     MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateSummary(name, help, ValueTuple.Create(labelName), objectives, maxAge, ageBuckets, bufCap, options));
 }
Esempio n. 3
0
        public static IMetricFamily <ISummary> CreateSummary(
            this MetricFactory factory,
            string name,
            string help,
            bool includeTimestamp,
            bool suppressEmptySamples,
            string[] labelNames,
            IReadOnlyList <QuantileEpsilonPair> objectives,
            TimeSpan?maxAge,
            int?ageBuckets,
            int?bufCap)
        {
            var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples);

            return(factory.CreateSummary(name, help, objectives, maxAge, ageBuckets, bufCap, options, labelNames));
        }
Esempio n. 4
0
 public static IMetricFamily <ICounter <long> > CreateCounterInt64(this MetricFactory factory, string name, string help, bool includeTimestamp, params string[] labelNames)
 {
     return(factory.CreateCounterInt64(name, help, includeTimestamp, true, labelNames));
 }
Esempio n. 5
0
 public static IMetricFamily <ICounter <long> > CreateCounterInt64(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateCounterInt64(name, help, false, labelNames));
 }
Esempio n. 6
0
 public static IMetricFamily <ISummary> CreateSummary(this MetricFactory factory, string name, string help, bool includeTimestamp, params string[] labelNames)
 {
     return(factory.CreateSummary(name, help, includeTimestamp, labelNames, null, null, null, null));
 }
Esempio n. 7
0
 public static IMetricFamily <ISummary> CreateSummary(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateSummary(name, help, false, labelNames));
 }
Esempio n. 8
0
 public static IMetricFamily <ICounter <long>, ValueTuple <string> > CreateCounterInt64(this MetricFactory factory, string name, string help, string labelName, MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateCounterInt64(name, help, ValueTuple.Create(labelName), options));
 }
Esempio n. 9
0
 public static IMetricFamily <IUntyped> CreateUntyped(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateUntyped(name, help, false, labelNames));
 }
Esempio n. 10
0
        public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, bool includeTimestamp, bool suppressEmptySamples, double[] buckets, params string[] labelNames)
        {
            var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples);

            return(factory.CreateHistogram(name, help, buckets, options, labelNames));
        }
Esempio n. 11
0
 public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, bool includeTimestamp, double[] buckets, params string[] labelNames)
 {
     return(factory.CreateHistogram(name, help, includeTimestamp, true, buckets, labelNames));
 }
Esempio n. 12
0
 public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateHistogram(name, help, false, labelNames));
 }
Esempio n. 13
0
 public static IMetricFamily <IGauge> CreateGauge(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateGauge(name, help, false, true, labelNames));
 }
Esempio n. 14
0
 public static IMetricFamily <IGauge, ValueTuple <string> > CreateGauge(this MetricFactory factory, string name, string help, string labelName, MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateGauge(name, help, ValueTuple.Create(labelName), options));
 }
Esempio n. 15
0
        public static IMetricFamily <ICounter <long> > CreateCounterInt64(this MetricFactory factory, string name, string help, bool includeTimestamp, bool suppressEmptySamples, params string[] labelNames)
        {
            var options = BuildMetricFlags(includeTimestamp, suppressEmptySamples);

            return(factory.CreateCounterInt64(name, help, options, labelNames));
        }
Esempio n. 16
0
 public static IMetricFamily <IHistogram, ValueTuple <string> > CreateHistogram(this MetricFactory factory, string name, string help, string labelName, double[] buckets = null, MetricFlags options = MetricFlags.Default)
 {
     return(factory.CreateHistogram(name, help, ValueTuple.Create(labelName), buckets, options));
 }
Esempio n. 17
0
 public static IMetricFamily <IUntyped> CreateUntyped(this MetricFactory factory, string name, string help, bool includeTimestamp, params string[] labelNames)
 {
     return(factory.CreateUntyped(name, help, includeTimestamp, true, labelNames));
 }