pdstools.infinity.resources.prediction_studio.schemas.notification ================================================================== .. py:module:: pdstools.infinity.resources.prediction_studio.schemas.notification Classes ------- .. autoapisummary:: pdstools.infinity.resources.prediction_studio.schemas.notification.NotificationData Module Contents --------------- .. py:class:: NotificationData(/, **data: Any) Bases: :py:obj:`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. :param model_id: Owning model identifier (alias ``modelID``). :type model_id: str or None, default None :param prediction_id: Owning prediction identifier (alias ``predictionID``). :type prediction_id: str or None, default None :param context: Context the notification applies to. :type context: str or None, default None :param notification_type: Type of the notification (alias ``notificationType``). :type notification_type: str :param notification_id: Unique notification identifier (alias ``notificationID``). :type notification_id: str :param notification_mnemonic: Machine-readable notification code (alias ``notificationMnemonic``). :type notification_mnemonic: str :param description: Human-readable description. :type description: str :param model_type: Type of the owning model (alias ``modelType``). :type model_type: str :param impact: Impact level of the notification. :type impact: str :param trigger_time: Time the notification was raised (alias ``triggerTime``), parsed from the Pega timestamp format. :type trigger_time: datetime .. py:attribute:: model_id :type: str | None :value: None .. py:attribute:: prediction_id :type: str | None :value: None .. py:attribute:: context :type: str | None :value: None .. py:attribute:: notification_type :type: str :value: None .. py:attribute:: notification_id :type: str :value: None .. py:attribute:: notification_mnemonic :type: str :value: None .. py:attribute:: description :type: str .. py:attribute:: model_type :type: str :value: None .. py:attribute:: impact :type: str .. py:attribute:: trigger_time :type: datetime.datetime :value: None