internal MetricAlertStatus(string name, string id, string type, MetricAlertStatusProperties properties) { Name = name; Id = id; Type = type; Properties = properties; }
public static void AreEqual(MetricAlertStatusProperties exp, MetricAlertStatusProperties act) { if (exp != null) { Assert.Equal(exp.Status, act.Status); AreEqual(exp.Dimensions, act.Dimensions); } else { Assert.Null(act); } }
private MetricAlertStatusCollection GetMetricAlertStatus() { MetricAlertStatusProperties statusProps = new MetricAlertStatusProperties() { Dimensions = new Dictionary <string, string>(), Status = "Healthy", Timestamp = new System.DateTime() }; return(new MetricAlertStatusCollection() { Value = new List <MetricAlertStatus>() { new MetricAlertStatus(properties: statusProps) } }); }
private void AreEqual(MetricAlertStatusProperties exp, MetricAlertStatusProperties act) { Assert.AreEqual(exp.Status, act.Status); Assert.AreEqual(exp.Timestamp, act.Timestamp); }