Re: BSM 9.12 calculate the KPI using the groove scripts (429 Views)
Reply
Frequent Advisor
Mastron_s
Posts: 111
Registered: ‎05-05-2010
Message 1 of 8 (472 Views)

BSM 9.12 calculate the KPI using the groove scripts

Hello all!
In the BSM is possible to calculate the KPI using the grooves scripts.

Can I calculate with groovy-script, for example, the average severity of omi events related to CI, and based on the obtained value set KPI?
Which methods i need to use for call any omi event attributes?

Please use plain text.
HP Expert
Asaf Shechter
Posts: 1,223
Registered: ‎12-09-2008
Message 2 of 8 (469 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

In Groovy rules you can do almost anything, so the answer to your question is yes, it is possible.

Will I recommend on doing that? the answer is NO. The script you are looking for is going to query OMi REST API and it will impact your performance.

In general, KPIs are calculated only by other KPIs and/or HIs. OOTB OMi provide an HI that has the number of Unassigned and Unresolved events. I think this should be your approach.

Please use plain text.
Frequent Advisor
Mastron_s
Posts: 111
Registered: ‎05-05-2010
Message 3 of 8 (464 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

Thank you for your answer,  , so if you not recomended to call  OMi REST API, how i can set HI based on some calculations depending on the attribute values of OMI Events Attributes?

Please use plain text.
HP Expert
Asaf Shechter
Posts: 1,223
Registered: ‎12-09-2008
Message 4 of 8 (457 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

the best performance way is to have a dedicated HI for your events (maybe using HI mapping rules) or Event processing interface, and have the KPI calculated only from HIs.

Please use plain text.
Frequent Advisor
DannyWang
Posts: 52
Registered: ‎10-07-2010
Message 5 of 8 (429 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

Follow what Asaf told you. here are more detailed steps:

1. add ETI hint like <<HI_NAME>>:<<HI_VALUE>> in CMA or IA

2. create HI in indicateor UI if you don't use OOB ones

3. in HI mapping rule, map that HI to CIT.

3. Create HI assignment for CIT in SH if that HI does not exist in model.

 

Please try it and let me know if you run into any issue.

 

Regards,

 

Danny Wang

Please use plain text.
Frequent Advisor
Mastron_s
Posts: 111
Registered: ‎05-05-2010
Message 6 of 8 (418 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

If i want calculate  the average severity of omi events related to CI i need to make 1 HI for each event?

What is an Event processing interface?

Please use plain text.
Frequent Advisor
Anterr
Posts: 46
Registered: ‎06-29-2011
Message 7 of 8 (324 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

Hello!

 

 I also need attribute values of OMi events, which are related to CI, for calculating KPI value.

 

Is it possible to directly from KPI groovy script take events attributes?

For example as well as attributes of CI by kpi.getCI() command.

 

Search this information in OMi REST API (OMi Extensibility), but not found.

 

Please give an example of script, which can get events attributes, if it possible.

 

Best regards.

 

 

Please use plain text.
HP Expert
Asaf Shechter
Posts: 1,223
Registered: ‎12-09-2008
Message 8 of 8 (308 Views)

Re: BSM 9.12 calculate the KPI using the groove scripts

KPI calculated on top of HIs. I don't recommend getting event's attributes for KPI calculation, but the only way to achieve this is by accessing the OMi REST API, and the OMi Extensibility Guide has many examples.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation