src/app/clusters/resource-monitoring-server/README.md
Resource Monitoring is a pseudo cluster. It has no cluster ID. It exists only to be aliased into other clusters.
To use a Resource Monitoring aliased cluster, you need to
ResourceMonitoring::Instance class. For
examples look at the files in the src/instances and include/instances
directories in examples/resource-monitoring-app/.OnResetCondition method. Look at the
documentation in resource-monitoring-server.h for more information about
these methods. Cluster-specific enums can be accessed from the cluster
namespace.AppInit method.ResourceMonitoring::Instance inherited
class. See the constructor documentation in resource-monitoring-server.h..Init() function of your instance.Note Zap accessor functions for these clusters will not return true values.
Use the instance's Update... and Get... functions to access the attributes.
Once a Resource Monitoring aliased cluster has been defined in the spec, adding the implementation to Resource Monitoring using the following steps
src/app/zap-templates/zcl/data-model/chip.
You can look at similar files on how to do this.AliasedClusters in
resource-monitoring-cluster-objects.h.