Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can we write metric definition for custom table

lakshmir
Giga Contributor

Hi,

I need to write metric for a custom table which is also stand alone.

But somehow it doesnt seem to work.

Regards,
lakshmi

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi Lakshmi,



The wiki page says



Note: In the base system, metrics are configured to work on the task table only. To apply metrics to cmdb_ci tables, duplicate the metric events business rule that currently runs on the task table for the cmdb_ci table. Without the events created, no metric processing can occur.



My guess is, if you can make it work for cmdb_ci, then you can copy that same business rule to run on your table as well.



Metric Definition Support - ServiceNow Wiki


View solution in original post

5 REPLIES 5

JHufford
Mega Guru

I have copied the BR to do this with a different table and it captures the start time, but it refuses to capture the end time or do any calculations.