{-# LINE 1 "src/System/Metrics/Prometheus/Ridley/Metrics/Network/Types.hsc" #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module System.Metrics.Prometheus.Ridley.Metrics.Network.Types where
import qualified Data.Map as Map
import Data.Map.Strict as M
import qualified Data.Text as T
import Foreign.C.String
import Foreign.C.Types
import Foreign.Ptr
import Foreign.Storable (Storable(..))
import Language.C.Inline.Context
import qualified Language.C.Types as C
import qualified Language.Haskell.TH as TH
import qualified System.Metrics.Prometheus.Metric.Gauge as P
{-# LINE 24 "src/System/Metrics/Prometheus/Ridley/Metrics/Network/Types.hsc" #-}
data IfData = IfData {
{-# LINE 41 "src/System/Metrics/Prometheus/Ridley/Metrics/Network/Types.hsc" #-}
IfData -> Int
ifi_ipackets :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_opackets :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_ierrors :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_oerrors :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_ibytes :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_obytes :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_imcasts :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_omcasts :: {-# UNPACK #-} !Int
, IfData -> Int
ifi_iqdrops :: {-# UNPACK #-} !Int
, IfData -> String
ifi_name :: !String
, IfData -> Int
ifi_error :: {-# UNPACK #-} !Int
{-# LINE 53 "src/System/Metrics/Prometheus/Ridley/Metrics/Network/Types.hsc" #-}
} deriving Show
{-# LINE 110 "src/System/Metrics/Prometheus/Ridley/Metrics/Network/Types.hsc" #-}
type NetworkMetrics = M.Map T.Text NetworkMetric
data NetworkMetric = NetworkMetric {
NetworkMetric -> Gauge
receive_packets :: P.Gauge
, NetworkMetric -> Gauge
transmit_packets :: P.Gauge
, NetworkMetric -> Gauge
receive_errs :: P.Gauge
, NetworkMetric -> Gauge
transmit_errs :: P.Gauge
, NetworkMetric -> Gauge
receive_bytes :: P.Gauge
, NetworkMetric -> Gauge
transmit_bytes :: P.Gauge
, NetworkMetric -> Gauge
receive_multicast :: P.Gauge
, NetworkMetric -> Gauge
transmit_multicast :: P.Gauge
, NetworkMetric -> Gauge
receive_drop :: P.Gauge
}