示例#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));
 }
示例#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));
 }