Пример #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));
 }
Пример #2
0
 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));
 }
Пример #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));
        }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #7
0
 public static IMetricFamily <ISummary> CreateSummary(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateSummary(name, help, false, labelNames));
 }
Пример #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));
 }
Пример #9
0
 public static IMetricFamily <IUntyped> CreateUntyped(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateUntyped(name, help, false, labelNames));
 }
Пример #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));
        }
Пример #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));
 }
Пример #12
0
 public static IMetricFamily <IHistogram> CreateHistogram(this MetricFactory factory, string name, string help, params string[] labelNames)
 {
     return(factory.CreateHistogram(name, help, false, labelNames));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
        }
Пример #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));
 }
Пример #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));
 }