Git Product home page Git Product logo

real-time-data-simulator's Introduction

Real-Time Data Simulator

Windows Desktop application to generate and stream data into EventHub.

Screenshot

Main Features

  • Configurable target EventHub
  • Configurable size of workload (amount of messages to be sent)
  • Easily editable JSON payload
  • Sending defined payload into the target endpoint
  • Load/Save payload as a file locally
  • Runtime evaluation of pre-defined variables
  • Runtime evaluation of expression in C# (slower)

Scenarios

  1. Generate dynamic data based on JSON template and send it to Microsoft Fabric EventHub (custom endpoint).
  2. Generate dynamic data based on JSON template and send it to EventHub.

Tokens

The biggest advantage of the application is the ability to generate value for the tokens listed in the PAYLOAD definition. Data generation takes place on the fly for each message prepared for sending.

Variables

Format of a variable: {{VariableName}}
The following examples depict predefined Variables you can use as Tokens:

Variable Generates
{{UserId}} Numeric (int) value from range 5000-5100
{{ProductId}} Numeric (int) value from range 700-999
{{Device}} Random item from array of: mobile,tablet,pc
{{DateTime.Now}} Current date & time (now) in round-trip ("O") format.
{{FuelType(MessageIndex)}} Value selected on MessageIndex from list: BIOMASS,CCGT,COAL,INTELEC,INTEW,INTFR,INTIFA2,INTIRL,INTNED,INTNEM,INTNSL,INTVKL,NPSHYD,NUCLEAR,OCGT,OIL,OTHER,PS,WIND
{{SettlementPeriod}} Hardcoded Int value: 48

C# Expressions

Format of an expression: {{$Expression}}
Expressions are slower in generating values, but more flexible. Use can use any C# compatible code from preloaded namespaces (for example: System). Expressions are being evaluated using Microsoft.CodeAnalysis.CSharp.Scripting.

Expression Generates
{{$DateTime.Now}} Current date & time (now)
{{$new Random().Next(100,200)}} Random numeric (int) value from range 100-199
{{$DateTime.Now.AddSeconds(-5).ToString("s")+"Z"}} Date & time 5 seconds ago in Sortable date/time pattern with 'Z' at the end.
{{$DateTime.Now.ToString("dd/MM/yyyy")}} Current date & time formatted to 31/12/2020
{{$DateTime.Now.Hour*2+Math.Floor(DateTime.Now.Minute/30d) Calculation based on Current Time

References

Release Notes

New features, bug fixes and changes can be found here.

real-time-data-simulator's People

Stargazers

 avatar

real-time-data-simulator's Issues

APPLY button to update payload while app is sending messages

Currently, when you click RUN - threads are triggered with current definition of payload, which can't be change until complete.
With this new feature user would be able to change payload and when apply - the new payload would be sent to running threads.

Fueltype is not populated

There seems to be an issue with the FuelType column, which always has the value "{{FuelType(MessageIndex)}}"

image

Cancel button

There's a big RUN button, but there doesn't seem to be a cancel button. Unless just quitting the entire application counts as cancelling :)

Generate Stored Procedure (SP) for Azure SQL Database

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.