Exemple #1
0
        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;
        }
Exemple #2
0
 public PSDataBoxEdgeAlert()
 {
     Alert = new Alert();
 }