# User defined analytics

## Overview

Joule offers a user-friendly streaming analytics capability tailored to deliver real-time insights efficiently.

It enables users to harness existing analytical resources, define expressions, integrate reference data, and develop custom analytic plugins for complex calculations.

## Key features

* Expressions, scripting and function execution
* Prime calculations with starting values
* Constants and reference data repositories
* Stateful calculations with analytic result memory

Additionally developers can extend the analytical capabilities by implementing various analytics APIs. Drive business with the ability to execute imperative expressions, functions and scripts.

Platform users can deploy custom stateful and stateless analytics using the Joule DSL using analytics processors.

## Example

Learn how to apply the analytical features through an example

{% content-ref url="/pages/dsCK1x2AWKkm3JquflXz" %}
[Streaming analytics example](/joule/components/analytics/analytic-tools/user-defined-analytics/streaming-analytics-example.md)
{% endcontent-ref %}

## Available options

{% hint style="info" %}
Javascript and Python language support using the Graalvm runtime compilation engine
{% endhint %}

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><mark style="color:orange;"><strong>User defined analytics</strong></mark></td><td>Declarative stateful math expressions evaluated in real-time</td><td></td><td><a href="/pages/L9HLD7ClAb3sSUT2vp1w">/pages/L9HLD7ClAb3sSUT2vp1w</a></td></tr><tr><td><mark style="color:orange;"><strong>User defined scripts</strong></mark></td><td>Leverage pre-existing analytics scripts within a streaming context</td><td></td><td><a href="/pages/vegNY3TCEJ01blEvkBpx">/pages/vegNY3TCEJ01blEvkBpx</a></td></tr><tr><td><mark style="color:orange;"><strong>User defined functions</strong></mark></td><td>Extend the analytics ecosystem using the Analytics API</td><td></td><td><a href="/pages/JoNIWW1oXRd5xVLJBoNp">/pages/JoNIWW1oXRd5xVLJBoNp</a></td></tr></tbody></table>

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fractalworks.io/joule/components/analytics/analytic-tools/user-defined-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
