Skip to content

lib-obs 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793390383/FIN+5.3.1+lib-obs 中文整理基于 FIN 5.3.1

导读: 可观察数据流框架

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​


概述(中译) ​

可观察数据流框架


API 正文(英文) ​

tags ​

obsAddOnInitFire add event for all existing records in data set on initialization
obsAddsProcess when a new data item is added to the observed data set
obsCommitsSubscribe to record commits in Folio - see docs
obsCurValsSubscribe to transient commits of curVal or curStatus - see docs
obsFilterFilter string to define the record data set observed
obsHisWritesSubscribe to history data updates- see docs
obsRecsBase class for observables on database records
obsRemovesProcess when an existing data item is removed from the observed data set
obsScheduleSubscribe to scheduled timer event - see docs
obsScheduleDaysOfMonthSchedule events for given days of the month
obsScheduleDaysOfWeekSchedule events for given days of the week
obsScheduleFreqSchedule events with given frequency
obsScheduleSpanSchedule events only during the configured span of time
obsScheduleTimesSchedule events for given times of the day
obsUpdatesProcess when an existing data item is updated in the observed data set
obsWatchesSubscribe to watch and unwatch events - see docs
observableObservable subscription - see docs
observesObservable subscription - see docs


def ​

obsAddOnInit ​

Fire add event for all existing records in data set on initialization.


meta ​

defobsAddOnInit
ismarker
liblib:obs
tagOnobsCommits

supertypes ​

markerMarker labels a dict with typing information


def ​

obsAdds ​

Process when a new data item is added to the observed data set.


meta ​

defobsAdds
ismarker
liblib:obs
tagOnobsCommits

supertypes ​

markerMarker labels a dict with typing information


def ​

obsCommits ​

Subscribe to record commits in Folio - see docs


meta ​

defobsCommits
isobsRecs
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs
obsRecsBase class for observables on database records

tags ​

obsAddOnInitFire add event for all existing records in data set on initialization
obsAddsProcess when a new data item is added to the observed data set
obsFilterFilter string to define the record data set observed
obsRemovesProcess when an existing data item is removed from the observed data set
obsUpdatesProcess when an existing data item is updated in the observed data set


def ​

obsCurVals ​

Subscribe to transient commits of curVal or curStatus - see docs


meta ​

defobsCurVals
isobsRecs
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs
obsRecsBase class for observables on database records

tags ​

obsFilterFilter string to define the record data set observed


def ​

obsFilter ​

Filter string to define the record data set observed. If omitted then all records in the database are observed. Note that obsFilter may not use the -> pathing operator.


meta ​

defobsFilter
isfilterStr
liblib:obs
tagOnobsEvents, obsRecs

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters
filterStrHaystack filter string

subtypes ​

obsRuleFilterFilter string for rule records to observe
obsTargetFilterFilter string for target records to observe


def ​

obsHisWrites ​

Subscribe to history data updates- see docs


meta ​

defobsHisWrites
isobsRecs
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs
obsRecsBase class for observables on database records

tags ​

obsFilterFilter string to define the record data set observed


def ​

obsRecs ​

Base class for observables on database records


meta ​

defobsRecs
isobservable
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs

subtypes ​

obsArcsSubscribe to arc document changes - see docs
obsCommitsSubscribe to record commits in Folio - see docs
obsCurValsSubscribe to transient commits of curVal or curStatus - see docs
obsHisWritesSubscribe to history data updates- see docs
obsPointWritesSubscribe to writable point priority array updates - see docs
obsWatchesSubscribe to watch and unwatch events - see docs

tags ​

obsFilterFilter string to define the record data set observed


def ​

obsRemoves ​

Process when an existing data item is removed from the observed data set.


meta ​

defobsRemoves
ismarker
liblib:obs
tagOnobsCommits

supertypes ​

markerMarker labels a dict with typing information


def ​

obsSchedule ​

Subscribe to scheduled timer event - see docs


meta ​

defobsSchedule
isobservable
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs

tags ​

obsScheduleDaysOfMonthSchedule events for given days of the month
obsScheduleDaysOfWeekSchedule events for given days of the week
obsScheduleFreqSchedule events with given frequency
obsScheduleSpanSchedule events only during the configured span of time
obsScheduleTimesSchedule events for given times of the day


def ​

obsScheduleDaysOfMonth ​

Schedule events for given days of the month. Encode as a comma separated list for day of the month such as "1,15". Negative values may be used to represent days for end of the month. For example "-1" represents the last day of the month, "-2" the second to last, etc.


meta ​

defobsScheduleDaysOfMonth
isstr
liblib:obs
placeholdere.g. 1, 15
tagOnobsSchedule

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

obsScheduleDaysOfWeek ​

Schedule events for given days of the week. Encode as a comma separated list of the three letter enums: sun, mon, tue, wed, thu, fri, or sat.


meta ​

defobsScheduleDaysOfWeek
isstr
liblib:obs
tagOnobsSchedule
uiInputuiMisc::WeekdayInput

supertypes ​

valData value type
scalarScalar is an atomic value kind
strUnicode string of characters


def ​

obsScheduleFreq ​

Schedule events with given frequency


meta ​

defobsScheduleFreq
isduration
liblib:obs
minVal1sec
tagOnobsSchedule

supertypes ​

valData value type
scalarScalar is an atomic value kind
numberInteger or floating point numbers annotated with an optional unit
durationNumber with a unit of time


def ​

obsScheduleSpan ​

Schedule events only during the configured span of time.


meta ​

defobsScheduleSpan
isspan
liblib:obs
tagOnobsSchedule

supertypes ​

valData value type
scalarScalar is an atomic value kind
xstrExtended string - type name and string value encoding
spanTime span as modeled encoded as XStr


def ​

obsScheduleTimes ​

Schedule events for given times of the day


meta ​

defobsScheduleTimes
islist
liblib:obs
oftime
tagOnobsSchedule
uiInputui::CompactListInput

supertypes ​

valData value type
listOrdered list of zero or more values


def ​

obsUpdates ​

Process when an existing data item is updated in the observed data set.


meta ​

defobsUpdates
ismarker
liblib:obs
tagOnobsCommits

supertypes ​

markerMarker labels a dict with typing information


def ​

obsWatches ​

Subscribe to watch and unwatch events - see docs


meta ​

defobsWatches
isobsRecs
liblib:obs

supertypes ​

markerMarker labels a dict with typing information
observableObservable subscription - see docs
obsRecsBase class for observables on database records

tags ​

obsFilterFilter string to define the record data set observed


def ​

observable ​

Observable subscription - see docs


meta ​

defobservable
ismarker
liblib:obs

supertypes ​

markerMarker labels a dict with typing information

subtypes ​

obsEventsSubscribe to event creation - see docs
obsMqttSubscribe to MQTT connector published messages
obsRecsBase class for observables on database records
obsArcsSubscribe to arc document changes - see docs
obsCommitsSubscribe to record commits in Folio - see docs
obsCurValsSubscribe to transient commits of curVal or curStatus - see docs
obsHisWritesSubscribe to history data updates- see docs
obsPointWritesSubscribe to writable point priority array updates - see docs
obsWatchesSubscribe to watch and unwatch events - see docs
obsScheduleSubscribe to scheduled timer event - see docs
obsSparksSubscribe to rule engine sparks - see docs


def ​

observes ​

Observable subscription - see docs


meta ​

defobserves
ischoice
liblib:obs
ofobservable
tagOntask
uiInputui::ChoiceInput

supertypes ​

markerMarker labels a dict with typing information
choiceChoice specifies an exclusive marker selection