RealtimeContext
RealtimeContext
is a class used to pass context metadata, such as the
request_timestamp
, to the context parameter of a Realtime Feature View. This
class provides essential information that can be leveraged within your feature
transformations to ensure that features can be computed with accurate metadata.
Attributes​
secrets
: A dictionary of secrets that are available to the resource provider. The keys are the names of the secrets and the values are the actual secret values. Secrets are defined in thesecrets
field of the@resource_provider
decorator.resources
: A dictionary that maps the resource name to the resource returned by the resource provider. Resources are defined in theresource_providers
field of the@realtime_feature_view
decorator.request_timestamp
: A singledatetime
object representing the timestamp of the request made to the feature server. Available in Python mode.request_timestamp_series
: Apandas.Series
object where each element corresponds to the request_timestamp for each row in the input data. Available in Pandas mode.