-
Notifications
You must be signed in to change notification settings - Fork 12
SampleModel
Rick Zhou edited this page Jan 18, 2015
·
1 revision
{
"defs": {
"profile": {
"heat": {
"$interface": "history",
"$type": "number",
"$unit": "°C",
"$settings": {
"$max": {
"type": "number"
},
"$min": {
"type": "number",
"min": -273.15
},
"$precision": {
"type": "int",
"min": 0,
"writable": "config"
},
"$unit": {
"type": "string"
}
},
"getHistory": {
"$is": "action/getHistory"
}
},
"history": {
"$is": "interface",
"getHistory": {
"$is": "action/getHistory"
}
},
"action": {
"getHistory": {
"$is": "interface",
"$params": [
{
"name": "timerange",
"type": "timerange"
},
{
"name": "interval",
"type": "enum/historyInterval"
},
{
"name": "rollup",
"type": "enum/historyRollup"
}
],
"$columns": [
{
"name": "ts",
"type": "time"
},
{
"name": "value",
"type": "object"
}
]
}
}
},
"type": {
"enum": {
"historyRollup": {
"$enums": [
"avg",
"min",
"max",
"sum",
"first",
"last",
"count"
]
},
"historyInterval": {
"$enums": [
"default",
"none",
"oneYear",
"threeMonths",
"oneMonth",
"oneWeek",
"oneDay",
"twelveHours",
"sixHours",
"fourHours",
"threeHours",
"twoHours",
"oneHour",
"thirtyMinutes",
"twentyMinutes",
"fifteenMinutes",
"tenMinutes",
"fiveMinutes",
"oneMinute",
"thirtySeconds",
"fifteenSeconds",
"tenSeconds",
"fiveSeconds",
"oneSecond"
]
}
}
}
},
"connections": {
"myMixIn": {
"$permissions": [
{
"group": "DGLogik",
"allow": "config"
},
{
"user": "Samrg",
"allow": "config"
},
{
"group": "QA",
"allow": "read"
},
{
"group": "guest",
"allow": "none"
}
]
},
"heatNode1": {
"$is": "heat",
"$mixin": "myMixIn",
"$min": 0,
"$max": 100,
"$precisson": 2
}
},
"quarantine": {}
}
Protocol
◌ Design
◌ Initializing Connection
◌ Node API
◌ Methods
◌ Broker
◌ Broker Discovery
◌ Configs
◌ Value Types
◌ Tokens
◌ Quality of Service
DSLink Manager
◌ dslink.json
◌ Startup Command
SDK Development
◌ Implementation Guide
DSA Server
◌ Installation
◌ Update Server
◌ Server Configuration
◌ CLI Tools
◌ DSA Permission Basics
◌ DSA Permission Model
◌ Permission List for the Root
◌ Authentication
◌ OpenID Connect
◌ Password Hasher
◌ DGLux Server SSL (HTTPS)
◌ Docker
◌ Audit
◌ Data Node
◌ Install NGINX with DSA Server
◌ Configure Ubuntu Linux to auto start DSA server
◌ Troubleshooting