Skip to content

Commit

Permalink
updating the avpr file's outdated float/null types and regenerating f…
Browse files Browse the repository at this point in the history
…or relative position action support.
  • Loading branch information
pcruzparri committed Nov 14, 2023
1 parent f7c6446 commit 827d4a1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 13 deletions.
40 changes: 31 additions & 9 deletions yaqd_watchdog/watchdog.avpr
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
"default": {},
"type": "map",
"values": "set_position"
},
"set_relative_actions": {
"default": {},
"type": "map",
"values": "set_relative"
}
},
"doc": "",
Expand Down Expand Up @@ -244,18 +249,14 @@
"type": "int"
},
{
"default": "inf",
"name": "under",
"type": [
"float",
"null"
]
"type": "float"
},
{
"default": "-inf",
"name": "over",
"type": [
"float",
"null"
]
"type": "float"
},
{
"default": 10,
Expand All @@ -279,10 +280,12 @@
"type": "int"
},
{
"default": "inf",
"name": "percent_under",
"type": "float"
},
{
"default": "-inf",
"name": "percent_over",
"type": "float"
},
Expand Down Expand Up @@ -315,6 +318,25 @@
"name": "set_position",
"type": "record"
},
{
"fields": [
{
"default": "localhost",
"name": "host",
"type": "string"
},
{
"name": "port",
"type": "int"
},
{
"name": "distance",
"type": "float"
}
],
"name": "set_relative",
"type": "record"
},
{
"fields": [
{
Expand Down Expand Up @@ -361,4 +383,4 @@
"type": "record"
}
]
}
}
8 changes: 4 additions & 4 deletions yaqd_watchdog/watchdog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ type = "record"
name = "check_position_absolute"
fields = [{"name"="host", "type"="string", "default"="localhost"},
{"name"="port", "type"="int"},
{"name"="under", "type"=["float", "null"], default="__null__"},
{"name"="over", "type"=["float", "null"], default="__null__"},
{"name"="under", "type"="float", default="inf"},
{"name"="over", "type"="float", default="-inf"},
{"name"="timeout", "type"="int", "default"=10, "doc"="seconds"}]

[[types]]
type = "record"
name = "check_position_percentage"
fields = [{"name"="host", "type"="string", "default"="localhost"},
{"name"="port", "type"="int"},
{"name"="percent_under", "type"=["float", "null"], default="__null__"},
{"name"="percent_over", "type"=["float", "null"], default="__null__"},
{"name"="percent_under", "type"="float", default="inf"},
{"name"="percent_over", "type"="float", default="-inf"},
{"name"="timeout", "type"="int", "default"=10, "doc"="seconds"}]

[[types]]
Expand Down

0 comments on commit 827d4a1

Please sign in to comment.