Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cot-lib

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cot-lib - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

2

package.json
{
"name": "cot-lib",
"version": "5.0.8",
"version": "5.0.9",
"description": "Easily consume the City of Things platform data",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -103,3 +103,3 @@ # City of Things Client Library

### Source
A Source represents a sensor, actuator or data producer of some sort. It has an *id* to uniquely identify it. It has a *name* which is a human readable label for this Source. At last it has a *typeRefs* field which contains a set of typeId strings that define the Types this Source belongs to OR it has a *metrics* field immediatly referring to the metrics available for this source.
A Source represents a sensor, actuator or data producer of some sort. It has an *id* to uniquely identify it. It has an optional *name* which is a human readable label for this Source. At last it can have a *typeRefs* field which contains a set of typeId strings that define the Types this Source belongs to OR/AND (more commonly) it has a *metrics* field immediatly referring to the metrics available for this source. _(A Type simply bundles some metrics together, but is more of a 'managing feauture', since there are no API entrypoints for typeIds)_

@@ -114,3 +114,3 @@ ```json

"metrics": [
"dyamand.state.temperature"
"airquality.pm10"
]

@@ -121,3 +121,3 @@ }

### Metric
A Metric represents a metric measurement type. For example **dyamand.state.temperature**. It is a simple string to identify a single type of measurement. It also has a *granularity* field that determines the default size of returned TemperalPage brackets for data of this Metric. There is also a *description* field that explains the measurement. Finally there is a *type* field that refers contains the runtime type of the value (eg. FloatNumber, IntNumber).
A Metric represents a metric measurement type. For example **airquality.pm10**. It is a simple string to identify a single type of measurement. It also has a *granularity* field that determines the default size of returned TemperalPage brackets for data of this Metric. There is also an optional *description* field that explains the measurement. Finally there is an optional *type* field that contains the runtime type of the value (eg. FloatNumber, IntNumber).

@@ -124,0 +124,0 @@ ```json

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc