feat(cli): native-alarm-source commands (template add/list/remove + instance set/clear)
This commit is contained in:
@@ -252,6 +252,41 @@ scadabridge --url <url> template alarm delete --template-id <int> --name <string
|
||||
| `--template-id` | yes | Template ID |
|
||||
| `--name` | yes | Alarm name to delete |
|
||||
|
||||
#### `template native-alarm-source add`
|
||||
|
||||
Bind a native alarm source to a template — a read-only mirror of an OPC UA Alarms &
|
||||
Conditions server's or the MxAccess Gateway's alarms (no ack-back).
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> template native-alarm-source add --template-id <int> --name <string> --connection <string> --source-ref <string> [--filter <string>] [--description <string>] [--locked]
|
||||
```
|
||||
|
||||
| Option | Required | Description |
|
||||
|--------|----------|-------------|
|
||||
| `--template-id` | yes | Template ID |
|
||||
| `--name` | yes | Source binding name |
|
||||
| `--connection` | yes | Alarm-capable data connection name (OPC UA or MxGateway) |
|
||||
| `--source-ref` | yes | Source reference (OPC UA SourceNode nodeId, or MxAccess object/area) |
|
||||
| `--filter` | no | Condition filter (omit to mirror all conditions under the source) |
|
||||
| `--description` | no | Description |
|
||||
| `--locked` | no | Lock the binding in derived templates |
|
||||
|
||||
#### `template native-alarm-source list`
|
||||
|
||||
List the native alarm source bindings on a template.
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> template native-alarm-source list --template-id <int>
|
||||
```
|
||||
|
||||
#### `template native-alarm-source remove`
|
||||
|
||||
Remove a native alarm source binding from a template (by its ID).
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> template native-alarm-source remove --id <int>
|
||||
```
|
||||
|
||||
#### `template script add`
|
||||
|
||||
Add a script to a template.
|
||||
@@ -370,6 +405,31 @@ scadabridge --url <url> instance create --name <string> --template-id <int> --si
|
||||
| `--site-id` | yes | Site where the instance will run |
|
||||
| `--area-id` | no | Area within the site |
|
||||
|
||||
#### `instance native-alarm-source set`
|
||||
|
||||
Override an inherited native alarm source binding for a single instance (upsert). Blank
|
||||
options keep the inherited value.
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> instance native-alarm-source set --instance-id <int> --source <string> [--connection <string>] [--source-ref <string>] [--filter <string>]
|
||||
```
|
||||
|
||||
| Option | Required | Description |
|
||||
|--------|----------|-------------|
|
||||
| `--instance-id` | yes | Instance ID |
|
||||
| `--source` | yes | Source binding canonical name (e.g. `Pressure` or `Module.Pressure`) |
|
||||
| `--connection` | no | Connection name override (blank = inherited) |
|
||||
| `--source-ref` | no | Source reference override (blank = inherited) |
|
||||
| `--filter` | no | Condition filter override (blank = inherited) |
|
||||
|
||||
#### `instance native-alarm-source clear`
|
||||
|
||||
Clear an instance's native alarm source override, reverting to the inherited binding.
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> instance native-alarm-source clear --instance-id <int> --source <string>
|
||||
```
|
||||
|
||||
#### `instance deploy`
|
||||
|
||||
Deploy an instance to its site. Acquires the per-instance operation lock.
|
||||
|
||||
Reference in New Issue
Block a user