-
- rpc create-alarm {
- description "Create an alert for a running VDU";
- input {
- uses manotypes:rpc-project-name;
-
- leaf cloud-account {
- mandatory true;
- type leafref {
- path "/rw-project:project[rw-project:name=current()/../project-name]" +
- "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
- }
- }
-
- leaf vdur-id {
- mandatory true;
- type string;
- }
-
- container alarm {
- uses manotypes:alarm;
- }
- }
-
- output {
- leaf alarm-id {
- type string;
- }
- }
- }
-
- rpc destroy-alarm {
- description "Destroy an alert that is associated with a running VDU";
- input {
- uses manotypes:rpc-project-name;
-
- leaf cloud-account {
- mandatory true;
- type leafref {
- path "/rw-project:project[rw-project:name=current()/../project-name]" +
- "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
- }
- }
-
- leaf alarm-id {
- mandatory true;
- type string;
- }
- }
- }