Add support for "tool netwatch" (#216)

Upstream documentation:
https://help.mikrotik.com/docs/display/ROS/Netwatch

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-17 14:37:54 +02:00 committed by GitHub
parent 2bbaf26484
commit d601e10e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 0 deletions

View file

@ -3168,6 +3168,44 @@ PATHS = {
},
),
),
('tool', 'netwatch'): APIData(
versioned=[
('7', '>=', VersionedAPIData(
fully_understood=True,
primary_keys=('name', ),
fields={
'certificate': KeyInfo(),
'check-certificate': KeyInfo(),
'comment': KeyInfo(),
'disabled': KeyInfo(default=False),
'down-script': KeyInfo(),
'host': KeyInfo(required=True),
'http-codes': KeyInfo(),
'interval': KeyInfo(),
'name': KeyInfo(),
'packet-count': KeyInfo(),
'packet-interval': KeyInfo(),
'packet-size': KeyInfo(),
'port': KeyInfo(),
'src-address': KeyInfo(),
'start-delay': KeyInfo(),
'startup-delay': KeyInfo(),
'test-script': KeyInfo(),
'thr-avg': KeyInfo(),
'thr-http-time': KeyInfo(),
'thr-jitter': KeyInfo(),
'thr-loss-count': KeyInfo(),
'thr-loss-percent': KeyInfo(),
'thr-max': KeyInfo(),
'thr-stdev': KeyInfo(),
'thr-tcp-conn-time': KeyInfo(),
'timeout': KeyInfo(),
'type': KeyInfo(default='simple'),
'up-script': KeyInfo(),
},
)),
],
),
('tool', 'romon'): APIData(
unversioned=VersionedAPIData(
single_value=True,