CI binding using name and environment

Ganeshm1
Tera Guru

Hi All,

We are using name and environment as one of the identifier entry for server class. 
I am in the process of using the name and environment values for CI binding. 

The problem what I am facing is, if environment contains the value of 'Preprod' then I have to map to the value 'Clone' 

Ex: if name = abc and environment = Preprod

then I need to do the Ci binding to name = abc and environment = clone. 

I tried with event field mapping but it didn't work as expected. 
Please do let me know if you have any thought on this. Thank You!

 

Best Regards,
Ganesh

1 REPLY 1

Sayali_Suryawan
Tera Guru

 

 

Hello Ganeshm1,

You can do this in two ways. The first is "event field mapping," and the second is "event rule."

 

Steps to Implement the Mapping

  1. Create an Event Field Mapping:

    • Name: Map Preprod to Clone

    • Source: Your event source (e.g., abc_monitoring)

    • Order: Set an appropriate order number.

    • Mapping Type: Select Single Field.

    • From Field: environment

    • To Field: environment

    • Mapping Pairs:

      • Preprod → Clone

    This setup ensures that when an event with environment = Preprod is received, the environment field is mapped to Clone during event processing.

  2. Configure an Event Rule:

    • Name: Bind CI for Preprod Events

    • Source: Your event source (e.g., abc_monitoring)

    • Order: Set an appropriate order number.

    • Event Filter: environment is Clone

    • Transform and Compose: Define the necessary transformations to ensure the event is processed correctly.

    • Binding: Set the binding to match the CI based on the transformed environment field.

    This rule will trigger when an event's environment is mapped to Clone, ensuring the correct CI binding.



 

Please mark my response if it was helpful!

 

Thank you!