예제 #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));
 }