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 Impact = Impact' {}
- newImpact :: Double -> Impact
- impact_totalActualSpend :: Lens' Impact (Maybe Double)
- impact_totalExpectedSpend :: Lens' Impact (Maybe Double)
- impact_totalImpact :: Lens' Impact (Maybe Double)
- impact_totalImpactPercentage :: Lens' Impact (Maybe Double)
- impact_maxImpact :: Lens' Impact Double
Documentation
The dollar value of the anomaly.
See: newImpact
smart constructor.
Impact' | |
|
Instances
Create a value of Impact
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:totalActualSpend:Impact'
, impact_totalActualSpend
- The cumulative dollar amount that was actually spent during the anomaly.
$sel:totalExpectedSpend:Impact'
, impact_totalExpectedSpend
- The cumulative dollar amount that was expected to be spent during the
anomaly. It is calculated using advanced machine learning models to
determine the typical spending pattern based on historical data for a
customer.
$sel:totalImpact:Impact'
, impact_totalImpact
- The cumulative dollar difference between the total actual spend and
total expected spend. It is calculated as
TotalActualSpend - TotalExpectedSpend
.
$sel:totalImpactPercentage:Impact'
, impact_totalImpactPercentage
- The cumulative percentage difference between the total actual spend and
total expected spend. It is calculated as
(TotalImpact / TotalExpectedSpend) * 100
. When TotalExpectedSpend
is zero, this field is omitted. Expected spend can be zero in situations
such as when you start to use a service for the first time.
$sel:maxImpact:Impact'
, impact_maxImpact
- The maximum dollar value that's observed for an anomaly.
impact_totalActualSpend :: Lens' Impact (Maybe Double) Source #
The cumulative dollar amount that was actually spent during the anomaly.
impact_totalExpectedSpend :: Lens' Impact (Maybe Double) Source #
The cumulative dollar amount that was expected to be spent during the anomaly. It is calculated using advanced machine learning models to determine the typical spending pattern based on historical data for a customer.
impact_totalImpact :: Lens' Impact (Maybe Double) Source #
The cumulative dollar difference between the total actual spend and
total expected spend. It is calculated as
TotalActualSpend - TotalExpectedSpend
.
impact_totalImpactPercentage :: Lens' Impact (Maybe Double) Source #
The cumulative percentage difference between the total actual spend and
total expected spend. It is calculated as
(TotalImpact / TotalExpectedSpend) * 100
. When TotalExpectedSpend
is zero, this field is omitted. Expected spend can be zero in situations
such as when you start to use a service for the first time.