...
Those yang capabilities will be exposed by NetConf-Servers to NetConf-Client(s) on SMO in the NetConf Hello-Message so that SMO can learn the supported alarms by each of the different components.
Instructions how to create such yang are discribed in https://tools.ietf.org/html/rfc8632:^+Q1C5Z~ig]t*L4,9Cx - see "Appendix A. Vendor-Specific Alarm Types Example" and think of "O-RAN-Managed-Function-Specific" instead of "Vendor-Specific".