Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data NetworkStatus = NetworkStatus' {}
- newNetworkStatus :: NetworkStatus
- networkStatus_ethernet0Status :: Lens' NetworkStatus (Maybe EthernetStatus)
- networkStatus_ethernet1Status :: Lens' NetworkStatus (Maybe EthernetStatus)
- networkStatus_lastUpdatedTime :: Lens' NetworkStatus (Maybe UTCTime)
- networkStatus_ntpStatus :: Lens' NetworkStatus (Maybe NtpStatus)
Documentation
data NetworkStatus Source #
The network status of a device.
See: newNetworkStatus
smart constructor.
NetworkStatus' | |
|
Instances
newNetworkStatus :: NetworkStatus Source #
Create a value of NetworkStatus
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ethernet0Status:NetworkStatus'
, networkStatus_ethernet0Status
- The status of Ethernet port 0.
$sel:ethernet1Status:NetworkStatus'
, networkStatus_ethernet1Status
- The status of Ethernet port 1.
$sel:lastUpdatedTime:NetworkStatus'
, networkStatus_lastUpdatedTime
- When the network status changed.
$sel:ntpStatus:NetworkStatus'
, networkStatus_ntpStatus
- Details about a network time protocol (NTP) server connection.
networkStatus_ethernet0Status :: Lens' NetworkStatus (Maybe EthernetStatus) Source #
The status of Ethernet port 0.
networkStatus_ethernet1Status :: Lens' NetworkStatus (Maybe EthernetStatus) Source #
The status of Ethernet port 1.
networkStatus_lastUpdatedTime :: Lens' NetworkStatus (Maybe UTCTime) Source #
When the network status changed.
networkStatus_ntpStatus :: Lens' NetworkStatus (Maybe NtpStatus) Source #
Details about a network time protocol (NTP) server connection.