Skip to main content

18 docs tagged with "Rules"

Rule concepts, configuration, implementation and local development

View all tags

Decision Trees

Implement conditional flow branching logic that dynamically determines which flow to chain based on current flow properties.

ewx-public Package

Use the ewx-public Python package to develop, test, and import custom rules with type hints and IDE autocompletion.

Machine Learning

Upload and deploy XGBoost or SKLearn machine learning models, then use them in rules to generate predictions on timeseries data.

Profiler

Identify CPU bottlenecks in your rules and flow configurations using the Profiler with flame graphs and time-based analysis.

Rule configurations

Configure custom rules with parameters and widgets to validate, estimate, calculate, or forecast timeseries data in flows.

Rule framework functions

Access rule framework functions for storing timeseries, annotations, managing flow properties, and triggering downstream flows.

Rule Implementation

Write custom Python rules by extending FlowRule base class and implementing prepare_context and apply methods.

Rules

Create Python-based rules that process timeseries data, validate measurements, and perform transformations within flows and configurations.

Sending Emails

Send automated emails from rules with recipients, subject, and HTML content using the EmailService framework.

Task creation

Create tasks from rules and assign them to taskboards with custom types, priorities, tags, and aggregation options.

Timeseries Loading

Retrieve timeseries data from datasources using TimeseriesService methods with optional caching and annotation loading.

Timeseries Storage

Store timeseries and annotations on datasource channels using FlowRule methods with dynamic channel determination.

Timeslice Groups

Configure interval-based pricing or rate tiers for different times of day, week, or season to align with energy tariffs.

Transform Rule Implementation

Write transform rules with the TransformRule base class: available attributes, rule parameters, return values and aborting an ingestion.

User Flow Exceptions

Control flow termination behavior using FlowCancelException to abort with rollback or FlowStopException to preserve results.