public class CustomsFeatures extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NOMINAL_VARIANCE_INDEX
Considered norminal variance index on point-in-time feature calculation
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event e)
Add a single event to the event list
|
boolean |
equals(Object o) |
ArrayList<Event> |
getEvents()
Get event list
|
ArrayList<Event> |
getEventsOfType(FxaAuth.EventSummary t)
Get all events from event list of a certain type
|
HashMap<String,Integer> |
getSourceAddressEventCount()
Get count of total events per source address
|
HashMap<FxaAuth.EventSummary,Integer> |
getSummarizedEventCounters()
Get summarized event counters
|
int |
getTotalAccountCreateSuccess()
Get total account create success count for event set
|
int |
getTotalAccountStatusCheckCount()
Get total account status check for event set
|
int |
getTotalEvents()
Get total event count
|
int |
getTotalLoginFailureCount()
Get total login failure count for event set
|
int |
getTotalLoginSuccessCount()
Get total login success count for event set
|
int |
getTotalPasswordForgotSendCodeFailure()
Get total password forgot send code failure count for event set
|
int |
getTotalPasswordForgotSendCodeSuccess()
Get total password forgot send code success count for event set
|
HashMap<String,Integer> |
getUniquePathRequestCount()
Get unique path request count
|
HashMap<String,Integer> |
getUniquePathSuccessfulRequestCount()
Get unique path request count for successful requests
|
int |
getUnknownEventCounter()
Get unknown event counter
|
int |
getVarianceIndex()
Get variance index
|
int |
hashCode() |
void |
merge(CustomsFeatures cf)
Merge this feature set with another one
|
boolean |
nominalVariance()
Return true if calculated variance index meets or exceeds nominal index value
|
void |
recalculate()
Force recalculation of point-in-time statistics
|
void |
setEvents(ArrayList<Event> events)
Set event list
|
public static final int NOMINAL_VARIANCE_INDEX
public boolean nominalVariance()
public void recalculate()
public void merge(CustomsFeatures cf)
cf
- CustomsFeatures
to merge into this objectpublic int getTotalEvents()
Return the total of all events in the collection, including those that could not be summarized or were not explicitly registered for raw event storage.
public int getVarianceIndex()
public int getUnknownEventCounter()
public HashMap<FxaAuth.EventSummary,Integer> getSummarizedEventCounters()
public HashMap<String,Integer> getUniquePathRequestCount()
public HashMap<String,Integer> getUniquePathSuccessfulRequestCount()
public HashMap<String,Integer> getSourceAddressEventCount()
public int getTotalPasswordForgotSendCodeFailure()
public int getTotalPasswordForgotSendCodeSuccess()
public int getTotalLoginFailureCount()
public int getTotalLoginSuccessCount()
public int getTotalAccountCreateSuccess()
public int getTotalAccountStatusCheckCount()
public void addEvent(Event e)
e
- Eventpublic void setEvents(ArrayList<Event> events)
events
- ArrayListpublic ArrayList<Event> getEventsOfType(FxaAuth.EventSummary t)
t
- FxaAuth.EventSummary
Copyright © 2022. All rights reserved.