LogoLogo
  • Welcome to the MOOST platform user manual
  • Platform Manual
    • Login
      • Forgot Password
    • Notifications
    • Rules
      • Rule Configurator
        • Data graph
        • Datasets
        • Condition
        • Streak
        • Message
        • Settings
        • Rule Simulator
        • Early Adopter
        • Command
      • Rule Language
        • Syntax
        • Data Types
        • Data Structures
        • Functions
          • AVG
          • COUNT
          • DISTINCT
          • EVAL
          • FILTER
          • GROUP_BY_DEVICE
          • GROUP_BY_TIME
          • MAX
          • MIN
          • POSITION
          • REVERSE
          • SORT
          • SUBSET
          • SUM
        • Operations
          • Plus
          • Minus
          • Multiply
          • Divide
          • Negate
          • Less Than
          • Less or Equal
          • Equal
          • Not Equal
          • Greater or Equal
          • Greater
          • AND
          • OR
          • NOT
          • Format
          • Attribute Accessor
        • Examples
    • Events
    • Buildings
      • Household Profile
    • User Profile
    • Billing Portal
      • Payment Method
      • Update Payment Address
      • Invoices
      • Terminate Subscription
    • Context Services
      • Weather Forecast
      • Solar Production Forecast
      • Power Consumption Forecast
      • Power Generation Forecast
    • Support Center
  • Technical Integration
    • Cloud-to-Cloud Integration
      • Platform On-boarding
      • Configure Notification Settings
        • Receive Notifications
          • iOS Notification Handling
      • MOOST API Integration
        • Request Access Token
        • Synchronize Buildings and Devices
          • Device Types
        • Forward Events
          • Event Types
            • Device Status
            • Charging Modes
            • Switch State
        • Notifications and Interactions
          • Return Notification Interaction
  • Best Practices
    • FAQ
    • User Acceptance Testing
  • Policies
    • Security Policy
    • Privacy Policy
Powered by GitBook

© 2025 MOOST AG

On this page
  • Scalar
  • Examples
  • Vector
  • Examples:
  • GroupedScalar
  • Examples
  • GroupedVector
  • Examples
Export as PDF
  1. Platform Manual
  2. Rules
  3. Rule Language

Data Structures

PreviousData TypesNextFunctions

Last updated 11 months ago

When having a look at some previous examples, it might not be directly obvious, but we are actually not always working just with single values, such as a number. We also had a look at examples which are actually working with a multi-value set, such as when calculating an average.

So each literal has not only a , but also a . Here you see the full list:

Scalar

A single value is stored in a Scalar data structure.

Generally all are Scalars, but you typically also get Scalars when evaluating boolean or arithmetic operations.

Examples

99.5

Example with $PowerConsumption with dataset of name PowerConsumption of type Single Value:

AVG($PowerConsumption)

Vector

A set of values is stored in a Vector data structure.

Generally only , or operations and functions on top of , may produce Vectors.

Examples:

Example with $PowerConsumption with dataset of name PowerConsumption of type Time Series:

SUBSET($PowerConsumption, now-24h)

GroupedScalar

A list of single values, grouped by device or time.

Examples

AVG(GROUP_BY_DEVICE($PowerConsumption)) with Dataset of name PowerConsumption with type Time Series

GroupedVector

A list of list of value sets, grouped by device or time.

Examples

GROUP_BY_DEVICE($PowerConsumption) with Dataset of name PowerConsumption with type Time Series

Generally only in combination with a GROUP_BY_DEVICE or GROUP_BY_TIME function may produce a GroupedScalar.

Generally only in combination with a GROUP_BY_DEVICE or GROUP_BY_TIME function may produce a GroupedVector.

Data Type
Data Structure
values
variables
variables
variables
variables