Purpose of Object Modifier Client
This example shows how a client can send attribute changes to the Event Server. This client does not request notification of events.
Code
using System; using Spo.SPDlib; namespace ExamplesOfAPIUsage { class MyAlertPrgram { // Additional class member attributes declaration. [STAThread] static void Main(string[] args) { // create a SPD class instance SPD m_spd = new SPD(); string[] attr = new string[1]; string[] value = new string[1]; attr[0] = "MYATTR"; value[0] = "myvalue"; // Initialize the API. // Application name = "Object Modifier example" // No application qualifier. m_spd.SPDInitClient("Object Modifier example", null); // Client processing... // Report the change in value of an attribute being monitored by // the client: // The class is "disk". // The instance is "disk01". // The host on which the instance resides is "HOST1". // The application name and qualifier are set to NULL. This // causes the default values to be used (i.e., "Object Modifier" // for the name and NULL for the qualifier). // No timestamp. // One attribute is being updated. Its name (from the attr // array) is "MYATTR" and its new value (from the value array) // is "myvalue". m_spd.SPDReportValue("disk", "disk01", "HOST1", null, null, null, 1, attr, value); // More processing of client events... // No event processing required if events are only sent, but not // received. Console.Read(); } // function: Main } // class: MyProgram }// namespace: ClientSampleProgram
Data Flow Diagram
This illustration shows the flow of information for the Object Modifier client.