public PSDataBoxEdgeAlert(Alert alert) { this.Alert = alert ?? throw new ArgumentNullException("alert"); this.Id = alert.Id; var dataBoxResourceIdentifier = new DataBoxEdgeResourceIdentifier(this.Id); this.Name = dataBoxResourceIdentifier.Name; this.DeviceName = dataBoxResourceIdentifier.DeviceName; this.ResourceGroupName = dataBoxResourceIdentifier.ResourceGroupName; this.DetailedInformation = alert.DetailedInformation; this.ApeearedDateTime = alert.AppearedAtDateTime; this.Severity = alert.Severity; }
public PSDataBoxEdgeAlert() { Alert = new Alert(); }