Skip to content

Commit

Permalink
riemann sum tern defs
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <[email protected]>
  • Loading branch information
mherwege committed Dec 2, 2024
1 parent d432f3b commit 18d8bcf
Showing 1 changed file with 35 additions and 23 deletions.
58 changes: 35 additions & 23 deletions bundles/org.openhab.ui/web/src/assets/openhab-js-tern-defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@
},
"ItemPersistence": {
"averageBetween": {
"!doc": "Gets the average value of the state of a given Item between two certain points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!doc": "Gets the average value of the state of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"averageSince": {
"!doc": "Gets the average value of the state of a given Item since a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"averageUntil": {
"!doc": "Gets the average value of the state of a given Item until a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"changedBetween": {
"!doc": "Checks if the state of a given Item has changed between two certain points in time.",
"!doc": "Checks if the state of a given Item has changed between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> boolean"
},
"changedSince": {
Expand All @@ -125,7 +125,7 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> boolean"
},
"countBetween": {
"!doc": "Gets the number of available persisted data points of a given Item between two certain points in time.",
"!doc": "Gets the number of available persisted data points of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number"
},
"countSince": {
Expand All @@ -137,19 +137,19 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number"
},
"countStateChangesBetween": {
"!doc": "Gets the number of changes in persisted data points of a given Item between two certain points in time.",
"!doc": "Gets the number of changes in persisted data points of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number"
},
"countStateChangesSince": {
"!doc": "Gets the number of changes in historic data points of a given Item since a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number"
},
"countStateChangesUntil": {
"!doc": "Gets the number of changes in future data points of a given Item since a certain point in time.",
"!doc": "Gets the number of changes in future data points of a given Item until a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number"
},
"deltaBetween": {
"!doc": "Gets the difference value of the state of a given Item between two certain points in time.",
"!doc": "Gets the difference value of the state of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
},
"deltaSince": {
Expand All @@ -161,19 +161,19 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
},
"deviationBetween": {
"!doc": "Gets the standard deviation of the state of the given Item between two certain points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!doc": "Gets the standard deviation of the state of the given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"deviationSince": {
"!doc": "Gets the standard deviation of the state of the given Item since a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"deviationUntil": {
"!doc": "Gets the standard deviation of the state of the given Item until a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedState|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedState|null"
},
"evolutionRateBetween": {
"!doc": "Gets the evolution rate of the state of a given Item between two certain points in time.",
"!doc": "Gets the evolution rate of the state of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> number|null"
},
"evolutionRateSince": {
Expand All @@ -185,7 +185,7 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> number|null"
},
"getAllStatesBetween": {
"!doc": "Retrieves persisted data for a given Item between two certain points in time.",
"!doc": "Retrieves persisted data for a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> [PersistedItem]"
},
"getAllStatesSince": {
Expand Down Expand Up @@ -213,7 +213,7 @@
"!type": "fn(serviceId?: string) -> ZonedDateTime|null"
},
"maximumBetween": {
"!doc": "Gets the maximum value of the persisted states of a given Item between two certain points in time.",
"!doc": "Gets the maximum value of the persisted states of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
},
"maximumSince": {
Expand All @@ -225,7 +225,7 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
},
"minimumBetween": {
"!doc": "Gets the minimum value of the persisted states of a given Item between two certain points in time.",
"!doc": "Gets the minimum value of the persisted states of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem"
},
"minimumSince": {
Expand All @@ -248,8 +248,20 @@
"!doc": "Returns the next state of a given item.",
"!type": "fn(skipEqual?: boolean, serviceId?: string) -> PersistedItem"
},
"riemannSumBetween": {
"!doc": "Gets the Riemannsum of the state of the given Item between two points in time, time calculated in seconds.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
},
"riemannSumSince": {
"!doc": "Gets the Riemannsum of of the state of the given Item since a certain point in time, time calculated in seconds.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
},
"riemannSumUntil": {
"!doc": "Gets the Riemannsum of of the state of the given Item until a certain point in time, time calculated in seconds.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
},
"sumBetween": {
"!doc": "Gets the sum of the states of a given Item between two certain points in time.",
"!doc": "Gets the sum of the states of a given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
},
"sumSince": {
Expand All @@ -261,7 +273,7 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
},
"updatedBetween": {
"!doc": "Checks if the state of a given Item has been updated between two certain points in time.",
"!doc": "Checks if the state of a given Item has been updated between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> boolean"
},
"updatedSince": {
Expand All @@ -273,16 +285,16 @@
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> boolean"
},
"varianceBetween": {
"!doc": "Gets the variance of the state of the given Item between two certain points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
"!doc": "Gets the variance of the state of the given Item between two points in time.",
"!type": "fn(begin: +Date|+ZonedDateTime, end: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
},
"varianceSince": {
"!doc": "Gets the variance of the state of the given Item since a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
},
"varianceUntil": {
"!doc": "Gets the variance of the state of the given Item until a certain point in time.",
"!type": "fn(timestamp: +Date|+ZonedDateTime, serviceId?: string) -> PersistedItem|null"
"!type": "fn(timestamp: +Date|+ZonedDateTime, riemannType?: RiemannType, serviceId?: string) -> PersistedItem|null"
}
},
"PersistedItem": {
Expand Down

0 comments on commit 18d8bcf

Please sign in to comment.