kxanalogavg

package
v0.0.0-...-fefe0ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

README


title: kxanalogavg weight: 4615

KXAnalogAvg

This activity allows you to calculate the analog averages of specific tagnames.

Installation

Flogo Web

This activity is part of the knox system

Flogo CLI

flogo add activity github.com/mtorre-iot/flogo-contrib/activity/kxanalogavg

Schema

Inputs and Outputs:

{
"input":[
    {
      "name": "TSDB",
      "type": "string",
      "value": "",
      "required": true
    },
    {
      "name": "pObjConfigFile",
      "type": "string",
      "value": "",
      "required": true
    },
    {
      "name": "inputTags",
      "type": "params",
      "required": true
    },
    {
      "name": "outputTags",
      "type": "params",
      "required": true
    }

  ],
  "output": [
    {
      "name": "outputStream",
      "type": "string"
    }
  ]
}

Settings

Examples

{
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new AppActivity

Types

type KXAnalogAvgActivity

type KXAnalogAvgActivity struct {
	// contains filtered or unexported fields
}

KXAnalogAvgActivity is an Activity that is used get time stamp data from tags, and calculate averages

func (*KXAnalogAvgActivity) Eval

func (a *KXAnalogAvgActivity) Eval(context activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Logs the Message

func (*KXAnalogAvgActivity) Metadata

func (a *KXAnalogAvgActivity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL