# Color based label for average response time and baseline time

**URL:** <https://discuss.elastic.co/t/color-based-label-for-average-response-time-and-baseline-time/162006>\
**Category:** Elasticsearch\
**Created:** [December 24, 2018, 1:58pm UTC](https://discuss.elastic.co/t/color-based-label-for-average-response-time-and-baseline-time/162006 "2018-12-24T13:58:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanit\_grover](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@Hanit\_grover](https://discuss.elastic.co/u/Hanit_grover)\
**Post date:** [December 24, 2018, 1:58pm UTC](https://discuss.elastic.co/t/color-based-label-for-average-response-time-and-baseline-time/162006/1 "2018-12-24T13:58:02Z")

</div>

Index Fields : TimeElapsed , URI, Operation and API Name.

Based on above I need to create a data table with API Name, URI , Operation , Time Elapsed , BaselineTime and Color Label.

where : Baseline time is static value that needs to be pushed in seperately maybe as sctipted fields . But since the list is long the script is also getting long.

Color Label = Average (TimeElapased) \< Baseline Time = Green  
Average (TimeElapased) \> Baseline Time = Red

How should i proceed with this 3 scripted fields for baseline Time, Average Time and Color Label or any other way.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 21, 2019, 1:58pm UTC](https://discuss.elastic.co/t/color-based-label-for-average-response-time-and-baseline-time/162006/2 "2019-01-21T13:58:04Z")

</div>

Closed on January 21, 2019, 1:58pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
