ADT
psengine.enrich.soar
¶
SOAREnrichIn
¶
Bases: RFBaseModel
Model used to validate payload sent to SOAR enrichment endpoint.
hash_
class-attribute
instance-attribute
¶
model_config
class-attribute
instance-attribute
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
SOAREnrichOut
¶
Bases: RFBaseModel
Model used for collecting all the data returned in a SOAR call.
model_config
class-attribute
instance-attribute
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|
Source code in psengine/common_models.py
SOAREnrichedEntity
¶
Bases: RFBaseModel
Model used for validating returned data from the SOAR endpoint for bulk enrichment.
This class supports hashing, equality comparison, string representation, and total
ordering of SOAREnrichedEntity
instances.
Hashing
Returns a hash value based on the entity id_
and the risk score.
Equality
Checks equality between two SOAREnrichedEntity
instances based on their entity name
and risk score.
Greater-than Comparison
Defines a greater-than comparison between two SOAREnrichedEntity
instances based on
their risk score and entity name.
String Representation
Returns a string representation of the SOAREnrichedEntity
instance including the
enriched entity name, risk score, and most critical rule.
Total ordering
The ordering of SOAREnrichedEntity
instances is determined primarily by the risk score.
If two instances have the same risk score, their entity name is used as a secondary
criterion.
model_config
class-attribute
instance-attribute
¶
__eq__
¶
__eq__(other: SOAREnrichedEntity)
__gt__
¶
__gt__(other: SOAREnrichedEntity)
__hash__
¶
__str__
¶
json
¶
json(
by_alias: bool = True,
exclude_none: bool = True,
auto_exclude_unset: bool = True,
**kwargs,
)
JSON representation of models. It is inherited by every model.
PARAMETER | DESCRIPTION |
---|---|
by_alias
|
Alias flag:
TYPE:
|
exclude_none
|
Whether to exclude fields equal to None.
TYPE:
|
auto_exclude_unset
|
Whether to auto exclude values not set.
TYPE:
|