4 Replies Latest reply on Apr 3, 2013 10:42 AM by Arun Raj

    Passing values to Server Resources(Parent) from Service Resources(Child) ? ? ?

    Arun Raj Expert

      Hi Developers,

       

          I have to pass metric values from child resources to parent resources. Please help me out. I will brief about my scenario :

       

          Consider My Server resourceType is discovering 5 resources (5 Customers for example). Again for that each Customers (each Resources), My Service resourceType is discovering 2 resources( Email details for each customer , User details for each customer ). I have to get summary report for the each customers based on the email and user services ( This services is specific for each customer ). And also should get a summary report of my all customers.

       

          FOR this scenario, Tell me is this possible, If yes, guide me.

       

      Regards,

      ArunRaj.

        • 2. Re: Passing values to Server Resources(Parent) from Service Resources(Child) ? ? ?
          Arun Raj Expert

          Hi Lukas,

           

              I have been using that same mechanism. Based on that example only I have been working.

           

              I dont have any problem with Plugin Descriptor. I having trouble with component class (Not Discovery class, It is working fine.)

           

           <server name="Monitoring Server"
                      discovery="customerDiscoveryComponent"
                      class="customerComponent"
                      description="It is a monitoring customer services">
          
                      <service name="EmailService"
                                   discovery="emailDiscoveryComponent"
                                   class="emailComponent"
                                   description="It will display Customer Services">
          
                              <metric property="successEmails"
                                          displayName="No of successful E-Mail"
                                          measurementType="dynamic"
                                          displayType="summary"/>    
          
                              <metric property="invalidEmails"
                                          displayName="No of Invalid E-Mail"
                                          measurementType="dynamic"
                                          displayType="summary"/>
          
                              <metric property="totalEmails"
                                          displayName="Total No of E-Mail"
                                          measurementType="dynamic"
                                          displayType="summary"/>
                      </service>
          
                      <service name="EmailService"
                                   discovery="emailDiscoveryComponent"
                                   class="emailComponent"
                                   description="It will display Customer Services">
          
                              <metric property="validLogin"
                                          displayName="No of User Logged in"
                                          measurementType="dynamic"    
                                          displayType="summary"/>
          
                              <metric property="validLogoff"
                                          displayName="No of User Logged off"
                                          measurementType="dynamic"
                                          displayType="summary"/>
          
                              <metric property="invalidLogin"
                                          displayName="No of Failed/Invalid Login"
                                          measurementType="dynamic"
                                          displayType="summary"/>
          
                              <metric property="activeUsers"
                                          displayName="No of Active User"
                                          measurementType="dynamic"
                                          displayType="summary"/>                       
                  </service>
             </server>    
          

           

           

             In my above I am specifying two different components for two different services. These values has to be shared to my Server ResourcesType's Resource Component. How to do this (In my example, customerComponent ) ? ? ?

           

          Message was edited by: Arun Raj

          • 3. Re: Passing values to Server Resources(Parent) from Service Resources(Child) ? ? ?
            Lukas Krejci Apprentice

            Please read the whole discussion there. My last reply details the approach of sharing the information between a parent and its child resources. This is only possible to do in code, not in the descriptor.

            • 4. Re: Passing values to Server Resources(Parent) from Service Resources(Child) ? ? ?
              Arun Raj Expert

              Hi Lukas,

               

                  I got your idea. It is cool , I understand it.

               

               

              Regards,

               

              ArunRaj