pdstools.infinity.resources.prediction_studio.schemas.notification

Classes

NotificationData

Typed payload for a Prediction Studio notification.

Module Contents

class NotificationData(/, **data: Any)

Bases: pdstools.infinity.resources.prediction_studio.schemas._base.ResourceData

Typed 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 on model_dump() / attribute access.

model_id and prediction_id are optional because a notification is scoped to either a model or a prediction (never both). They are declared so that return_df=True results 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)

model_id: str | None = None
prediction_id: str | None = None
context: str | None = None
notification_type: str = None
notification_id: str = None
notification_mnemonic: str = None
description: str
model_type: str = None
impact: str
trigger_time: datetime.datetime = None