pdstools.infinity.resources.prediction_studio.schemas.notification¶
Classes¶
Typed payload for a Prediction Studio notification. |
Module Contents¶
- class NotificationData(/, **data: Any)¶
Bases:
pdstools.infinity.resources.prediction_studio.schemas._base.ResourceDataTyped payload for a Prediction Studio notification.
Fields use Pythonic snake_case names with Pega camelCase aliases. Unknown fields from newer Pega releases are retained (
extra="allow") and surface onmodel_dump()/ attribute access.model_idandprediction_idare optional because a notification is scoped to either a model or a prediction (never both). They are declared so thatreturn_df=Trueresults always expose both columns, regardless of which endpoint produced the notification.- Parameters:
model_id (str or None, default None) – Owning model identifier (alias
modelID).prediction_id (str or None, default None) – Owning prediction identifier (alias
predictionID).context (str or None, default None) – Context the notification applies to.
notification_type (str) – Type of the notification (alias
notificationType).notification_id (str) – Unique notification identifier (alias
notificationID).notification_mnemonic (str) – Machine-readable notification code (alias
notificationMnemonic).description (str) – Human-readable description.
model_type (str) – Type of the owning model (alias
modelType).impact (str) – Impact level of the notification.
trigger_time (datetime) – Time the notification was raised (alias
triggerTime), parsed from the Pega timestamp format.data (Any)
- trigger_time: datetime.datetime = None¶