LogonEvent
- class q2_sdk.hq.db.logon_event.BitFlagDetails(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
IntFlag
- LoggedOn = 1
- AccountListPopulated = 2
- MultiChannelAuthenticated = 4
- ForgotPasswordSuccess = 8
- LogonTokenMFA = 16
- LogonTokenEnabled = 32
- RoamingAllowed = 64
- BrowserRegistrationAllowed = 128
- PasswordWasNew = 256
- PasswordWasExpired = 512
- CsrAssistSession = 1024
- Treasury = 2048
- HasAccountListBeenReturned = 4096
- class q2_sdk.hq.db.logon_event.LogonEventRow(event_id, http_headers_id, audit_id, bitflag, logon_details=<factory>)[source]
Bases:
object
LogonEventRow(event_id: int, http_headers_id: int, audit_id: int, bitflag: int, logon_details: list[q2_sdk.hq.db.logon_event.BitFlagDetails] = <factory>)
-
event_id:
int
-
http_headers_id:
int
-
audit_id:
int
-
bitflag:
int
-
logon_details:
list
[BitFlagDetails
]
-
event_id:
- class q2_sdk.hq.db.logon_event.LogonEvent(logger, hq_credentials=None, ret_table_obj=None)[source]
Bases:
DbObject
Programmatic access to the Q2 database. Not as flexible as a true ORM, but takes the guesswork out of database schemas and ensures safety in the transactions.
- Parameters:
logger – Reference to calling request’s logger (self.logger in your extension)
hq_credentials (
Optional
[HqCredentials
]) – HQ Connectivity Information (Defaults to settings file)ret_table_obj (
Optional
[bool
]) – Flag to return list of LXML elements ifFalse
or TableRow objects from DB calls ifTrue
(Defaults to settings file)
- NAME = 'LogonEvent'
- async get(audit_ids)[source]
Retrieves logon details from a list of logon audit ids :param list[int] audit_ids: A list of logon audit ids
- Return type:
list
[LogonEventRow
]