GaugeAlert
final class GaugeAlert : IdentifiableAn alert that can be triggered based on a gauge reading value. Note: These alerts should only be triggered/processed in the background.
- 
                  init(title:message: valueMinimum: valueMaximum: metric: siteID: criteria: active: createdAt: updatedAt: lastTriggeredAt: ) Undocumented DeclarationSwift init( title: String = "", message: String? = nil, valueMinimum: Double = 0.0, valueMaximum: Double? = nil, metric: GaugeMetric = .cfs, siteID: String = "", criteria: GaugeAlertCriteria = .above, active: Bool = true, createdAt: Date = Date(), updatedAt: Date = Date(), lastTriggeredAt: Date? = nil)
- 
                  
                  DeclarationSwift let id: UUID { get }
- 
                  
                  The title of the alert. DeclarationSwift var title: String { get set }
- 
                  
                  The message of the alert. This is optional. Used in the notification body. DeclarationSwift var message: String? { get set }
- 
                  
                  The GaugeReadingvalue that the alert is based on.DeclarationSwift var valueMinimum: Double { get set }
- 
                  
                  Undocumented DeclarationSwift var valueMaximum: Double? { get set }
- 
                  
                  The metric used to measure the gauge reading value (e.g. CFS, Feet, etc.) DeclarationSwift var metric: GaugeMetric { get set }
- 
                  
                  The site ID of the gauge that the alert is based on. DeclarationSwift var siteID: String { get set }
- 
                  
                  The criteria that the alert is based on. DeclarationSwift var criteria: GaugeAlertCriteria { get set }
- 
                  
                  Whether or not the alert is active. i.e., users can pause or disable an alert if it is too noisy DeclarationSwift var active: Bool { get set }
- 
                  
                  Undocumented DeclarationSwift var createdAt: Date { get set }
- 
                  
                  Undocumented DeclarationSwift var updatedAt: Date { get set }
- 
                  
                  The date and time that the alert was last triggered. DeclarationSwift var lastTriggeredAt: Date? { get set }
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
          