You can use the CIM metric indication provider to notify applications when a specific metric event occurs.
The CIM indication provider notifies user applications when specified metric data occurs on the server which the provider supervises. Each application must subscribe to the provider by providing, in query form, information about an event about which it wants data. An event is an occurrence of a phenomenon of interest. Examples of events are occurrences such as authentication failures, disk-write errors, or even mouse click. The provider then notifies the application when the event occurs. Such an occurrence is called an Indication. When metrics match client-submitted queries, the indication provider creates the indication and returns it to the client.
The QYCP_ColSrvMetricIndicationProvider C++ class is the main class involved in handling indications for metrics. The indication provider defines the following methods:
CIM provider types and operations | Description |
---|---|
enableIndications | Called when the provider is expected to begin generating indications. |
createSubscription | Tells the provider to monitor for indications matching the specified subscription. |
modifySubscription | Informs the provider that the specified subscription instance has changed. |
deleteSubscription | Informs the provider to stop monitoring for indications matching the specified subscription. |
disableIndications | Tells the provider not to generate any more indications. |