Coder Social home page Coder Social logo

Comments (2)

sagIoTPower avatar sagIoTPower commented on July 21, 2024

This requires to match two kind of metadata information:

  1. blocks loaded in the streaming analytics engine
  2. blocks retrieved from github repositories

The metadata for blocks from 1. are in the form:

{
    "consumesInput": true,
    "id": "apama.analyticsbuilder.blocks.PositionInput",
    "inputs": [],
    "parameters": [
        {
            "semanticType": "c8y_deviceOrGroupId",
            "id": "deviceId",
            "name": "Input Source",
            "type": "any",
            "description": "Defines the device or group of devices from which the position is received.",
            "extendedDescription": "This can be a single device, or an object that references or contains a group of devices."
        },
  ]
} 

The metadata for blocks from 2. are in the form:

{
    "name": "CreateEvent.mon",
    "path": "samples/blocks/CreateEvent.mon",
    "sha": "8b5c00f296baffbafb03a70d3444b47e85ddf133",
    "size": 6139,
    "url": "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/contents/samples/blocks/CreateEvent.mon?ref=rel/10.18.0.x",
    "html_url": "https://github.com/SoftwareAG/apama-analytics-builder-block-sdk/blob/rel/10.18.0.x/samples/blocks/CreateEvent.mon",
    "git_url": "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/git/blobs/8b5c00f296baffbafb03a70d3444b47e85ddf133",
    "download_url": "https://raw.githubusercontent.com/SoftwareAG/apama-analytics-builder-block-sdk/rel/10.18.0.x/samples/blocks/CreateEvent.mon",
    "type": "file",
    "_links": {
      "self": "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/contents/samples/blocks/CreateEvent.mon?ref=rel/10.18.0.x",
      "git": "https://api.github.com/repos/SoftwareAG/apama-analytics-builder-block-sdk/git/blobs/8b5c00f296baffbafb03a70d3444b47e85ddf133",
      "html": "https://github.com/SoftwareAG/apama-analytics-builder-block-sdk/blob/rel/10.18.0.x/samples/blocks/CreateEvent.mon"
    }
}

In order to get the complete block name (monitor) one has to parse the content of the EPL from github.

from cumulocity-analytics-management.

sagIoTPower avatar sagIoTPower commented on July 21, 2024

This feature is added to the latest release.

from cumulocity-analytics-management.

Related Issues (4)

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.