Joule
  • Welcome to Joule's Docs
  • Why Joule?
    • Joule capabilities
  • What is Joule?
    • Key features
    • The tech stack
  • Use case enablement
    • Use case building framework
  • Concepts
    • Core concepts
    • Low code development
    • Unified execution engine
    • Batch and stream processing
    • Continuous metrics
    • Key Joule data types
      • StreamEvent object
      • Contextual data
      • GeoNode
  • Tutorials
    • Getting started
    • Build your first use case
    • Stream sliding window quote analytics
    • Advanced tutorials
      • Custom missing value processor
      • Stateless Bollinger band analytics
      • IoT device control
  • FAQ
  • Glossary
  • Components
    • Pipelines
      • Use case anatomy
      • Data priming
        • Types of import
      • Processing unit
      • Group by
      • Emit computed events
      • Telemetry auditing
    • Processors
      • Common attributes
      • Filters
        • By type
        • By expression
        • Send on delta
        • Remove attributes
        • Drop all events
      • Enrichment
        • Key concepts
          • Anatomy of enrichment DSL
          • Banking example
        • Metrics
        • Dynamic contextual data
          • Caching architecture
        • Static contextual data
      • Transformation
        • Field Tokeniser
        • Obfuscation
          • Encryption
          • Masking
          • Bucketing
          • Redaction
      • Triggers
        • Change Data Capture
        • Business rules
      • Stream join
        • Inner stream joins
        • Outer stream joins
        • Join attributes & policy
      • Event tap
        • Anatomy of a Tap
        • SQL Queries
    • Analytics
      • Analytic tools
        • User defined analytics
          • Streaming analytics example
          • User defined analytics
          • User defined scripts
          • User defined functions
            • Average function library
        • Window analytics
          • Tumbling window
          • Sliding window
          • Aggregate functions
        • Analytic functions
          • Stateful
            • Exponential moving average
            • Rolling Sum
          • Stateless
            • Normalisation
              • Absolute max
              • Min max
              • Standardisation
              • Mean
              • Log
              • Z-Score
            • Scaling
              • Unit scale
              • Robust Scale
            • Statistics
              • Statistic summaries
              • Weighted moving average
              • Simple moving average
              • Count
            • General
              • Euclidean
        • Advanced analytics
          • Geospatial
            • Entity geo tracker
            • Geofence occupancy trigger
            • Geo search
            • IP address resolver
            • Reverse geocoding
            • Spatial Index
          • HyperLogLog
          • Distinct counter
      • ML inferencing
        • Feature engineering
          • Scripting
          • Scaling
          • Transform
        • Online predictive analytics
        • Model audit
        • Model management
      • Metrics engine
        • Create metrics
        • Apply metrics
        • Manage metrics
        • Priming metrics
    • Contextual data
      • Architecture
      • Configuration
      • MinIO S3
      • Apache Geode
    • Connectors
      • Sources
        • Kafka
          • Ingestion
        • RabbitMQ
          • Further RabbitMQ configurations
        • MQTT
          • Topic wildcards
          • Session management
          • Last Will and Testament
        • Rest endpoints
        • MinIO S3
        • File watcher
      • Sinks
        • Kafka
        • RabbitMQ
          • Further configurations
        • MQTT
          • Persistent messaging
          • Last Will and Testament
        • SQL databases
        • InfluxDB
        • MongoDB
        • Geode
        • WebSocket endpoint
        • MinIO S3
        • File transport
        • Slack
        • Email
      • Serialisers
        • Serialisation
          • Custom transform example
          • Formatters
        • Deserialisers
          • Custom parsing example
    • Observability
      • Enabling JMX for Joule
      • Meters
      • Metrics API
  • DEVELOPER GUIDES
    • Setting up developer environment
      • Environment setup
      • Build and deploy
      • Install Joule
        • Install Docker demo environment
        • Install with Docker
        • Install from source
        • Install Joule examples
    • Joulectl CLI
    • API Endpoints
      • Mangement API
        • Use case
        • Pipelines
        • Data connectors
        • Contextual data
      • Data access API
        • Query
        • Upload
        • WebSocket
      • SQL support
    • Builder SDK
      • Connector API
        • Sources
          • StreamEventParser API
        • Sinks
          • CustomTransformer API
      • Processor API
      • Analytics API
        • Create custom metrics
        • Define analytics
        • Windows API
        • SQL queries
      • Transformation API
        • Obfuscation API
        • FieldTokenizer API
      • File processing
      • Data types
        • StreamEvent
        • ReferenceDataObject
        • GeoNode
    • System configuration
      • System properties
  • Deployment strategies
    • Deployment Overview
    • Single Node
    • Cluster
    • GuardianDB
    • Packaging
      • Containers
      • Bare metal
  • Product updates
    • Public Roadmap
    • Release Notes
      • v1.2.0 Join Streams with stateful analytics
      • v1.1.0 Streaming analytics enhancements
      • v1.0.4 Predictive stream processing
      • v1.0.3 Contextual SQL based metrics
    • Change history
Powered by GitBook
On this page

Was this helpful?

  1. DEVELOPER GUIDES
  2. API Endpoints
  3. Mangement API

Use case

Deploy, pause, resume and undeploy use cases

PreviousMangement APINextPipelines

Last updated 5 months ago

Was this helpful?

Overview

The Use case API allows developers to deploy, test, validate and undeploy use case. Use case definitions provide the required binding of the stream and data transports.

For further information on the structure of the content payload refer to this documentation.

Example use case content

{
  "use case": {
    "name": "basic_twindow_analytics",
    "sources": [
      "nasdaq_quotes_stream"
    ],
    "stream name": "basic_tumbling_window_pipeline",
    "sinks": [
      "kafka_analytics_view"
    ]
  }
} 


Get deployed use cases specification

get
Query parameters
namestringRequired

Use case logical name.

Responses
201
Successful detail provided for use cases
404
Use case not found
500
Internal error. Check system logs.
get
GET /joule/management/usecase/detail?name=text HTTP/1.1
Host: 
Accept: */*

No content

List registered use cases

get
Responses
201
Successful list use cases
500
Failed to list use cases. Check Joule service log files.
get
GET /joule/management/usecase/list HTTP/1.1
Host: 
Accept: */*

No content

Undeploy use case

delete

Stop and undeploy a use case from the Joule process

Query parameters
namestringRequired

Name of use case to unregistered

Example: quoteStream
Responses
201
Successfully unregistered use case
500
Failed to unregister use case. Check Joule service log files.
delete
DELETE /joule/management/usecase/undeploy?name=quoteStream HTTP/1.1
Host: 
Accept: */*

No content

Pause use case processing

put
Path parameters
namestringRequired

Name of use case to pause

Example: quoteStream
Responses
201
Successful paused stream
500
Failed to pause stream. Check Joule service log files.
put
PUT /joule/management/usecase/pause HTTP/1.1
Host: 
Accept: */*

No content

Resume use case processing

post
Path parameters
namestringRequired

Nane of stream to resume processing

Example: quoteStream
Responses
201
Successful restarted stream processing
500
Failed to restart stream. Check Joule service log files.
post
POST /joule/management/usecase/resume HTTP/1.1
Host: 
Accept: */*

No content

  • Overview
  • POSTDeploy use case
  • GETGet deployed use cases specification
  • GETList registered use cases
  • DELETEUndeploy use case
  • PUTPause use case processing
  • POSTResume use case processing

Deploy use case

post

Deploy and start a use case processing using pre-registered components

Body
namestringOptional
enabledbooleanRequired
sourcesstring[]Optional
referenceDataSourcesstring[]Optional
streamNamestringOptional
sinksstring[]Optional
Responses
201
Successful deployed and started use case
500
Failed to use case due to malformed or missing DSL
501
Failed to start use case. Check Joule service log files.
502
Use case has already been deployed and started.
503
Failed to deploy and start use case. Check Joule system logs.
post
POST /joule/management/usecase/deploy HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 766

{
  "name": "text",
  "enabled": true,
  "sources": [
    "text"
  ],
  "referenceDataSources": [
    "text"
  ],
  "streamName": "text",
  "sinks": [
    "text"
  ],
  "streamSpecification": {
    "name": "text",
    "enabled": true,
    "sources": [
      "text"
    ],
    "bufferSize": 1,
    "checkPointProcessing": true,
    "groupbyKey": {
      "keys": [
        "text"
      ],
      "partitionKey": 1
    },
    "groupByAttributes": [
      "text"
    ],
    "streamTimeType": "INGEST_TIME",
    "propertiesPath": "text",
    "consumerQueueSize": 1,
    "consumingFrequency": 1,
    "publishingQueueSize": 1,
    "publishingFrequency": 1,
    "telemetryAuditingSpecification": {
      "name": "text",
      "enabled": true,
      "rawTelemetrySpecification": {
        "cloneEvents": true,
        "auditFrequency": 1
      },
      "processedTelemetrySpecification": {
        "cloneEvents": true,
        "auditFrequency": 1
      }
    }
  },
  "processingConstraints": {
    "validFrom": "2025-05-16T07:36:26.167Z",
    "validTo": "2025-05-16T07:36:26.167Z"
  }
}

No content