Пример #1
0
 public Metric(MetricAlertKind alertKind, CategoryKind categoryKind, EcosystemKind?kind, string title)
 {
     Kind          = alertKind;
     CategoryKind  = categoryKind;
     EcosystemKind = kind;
     Title         = title;
 }
Пример #2
0
 public Metric(MetricAlertKind alertKind, CategoryKind categoryKind, string title)
 {
     Kind         = alertKind;
     CategoryKind = categoryKind;
     Title        = title;
 }
Пример #3
0
 public static string GetMetricColour(this MetricAlertKind kind) => kind switch
 {
Пример #4
0
 public MetricItem(MetricAlertKind alert, CategoryKind target, EcosystemKind?kind, string title, object value) : base(alert, target, kind, title)
 {
     Value = value.ToString();
 }
Пример #5
0
 public MetricItem(MetricAlertKind alert, CategoryKind target, string title, object value) : base(alert, target, null, title)
 {
     Value = value.ToString();
 }
Пример #6
0
 public MetricItems(MetricAlertKind alert, CategoryKind target, string title, IEnumerable <T> items) : base(alert, target, title)
 {
     Items = items;
 }