ADT
psengine.collective_insights.insight
¶
Insight
¶
Bases: RFBaseModel
Validate a single insight.
This class supports hashing, equality comparison, string representation, and total
ordering of Insight
instances.
Hashing
Returns a hash value based on the IOC value.
Equality
Checks equality between two Insight
instances based on their IOC value and timestamp.
Greater-than Comparison
Defines a greater-than comparison between two Insight
instances based on their
timestamp and IOC value.
String Representation
Returns a string representation of the Insight
instance including the IOC value,
timestamp, and detection type.
Total ordering
Ordering of Insight
instances is determined primarily by the timestamp.
If two instances have the same timestamp, their IOC value is used as a secondary criterion.
model_config
class-attribute
instance-attribute
¶
__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:
|
Source code in psengine/common_models.py
InsightsIn
¶
Bases: RFBaseModel
Validate data received from CI.
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
InsightsOut
¶
Bases: RFBaseModel
Validate data sent to CI.
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:
|