# Dashboard for alerting profile last change date

**URL:** <https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777>\
**Category:** Dashboarding\
**Tags:** dashboards, problems-classic\
**Created:** [January 23, 2024, 10:52am UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777 "2024-01-23T10:52:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [January 23, 2024, 10:52am UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777/1 "2024-01-23T10:52:32Z")

</div>

Hi,

Is it possible to get the last updated date for an Alerting Profile or Problems Integration and display it in Dynatrace dashboard?

We need to monitor who and when of the alerting profile modification under a particular management zone in that dashboard

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [January 23, 2024, 12:07pm UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777/2 "2024-01-23T12:07:19Z")

</div>

Hi,

You can revision history here:

 ![AntonPineiro_0-1706011554511.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/5/c5e69addd03abbd11747c16c62192c09c254ed1a.png)

 ![AntonPineiro_1-1706011614093.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/1/1169395ebb257cffe8b7a6654d9d2394ae893a44.png)

But I think adding that information to a dashboard is not possible.

Best regards

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [February 1, 2024, 12:43pm UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777/3 "2024-02-01T12:43:23Z")

</div>

yes was looking same in Dashboard.

Seems we can have the DT API for this:  
https://{environmentid}.live.dynatrace.com/api/v2/settings/objects?schemaIds=builtin%3Aalerting.profile&scopes=environment&fields=modified%2CmodifiedBy&pageSize=500

If not Dashboard, is it possible to use a Workflow and run the API to get that data?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [February 1, 2024, 2:16pm UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777/4 "2024-02-01T14:16:18Z")

</div>

Hi,

I would say yes since you can execute JavaScript code, you can create your custom script.

Best regards

---

<div class="post-metadata">

**Author:** ![vishnu\_kumar](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@vishnu\_kumar](https://community.dynatrace.com/u/vishnu_kumar)\
**Post date:** [February 23, 2024, 2:39pm UTC](https://community.dynatrace.com/t/dashboard-for-alerting-profile-last-change-date/43777/5 "2024-02-23T14:39:43Z")

</div>

I was able to achieve this with a Javascript running in Workflow.

On the first task, I ran a HTTP Request on Settings API to collect all Alerting Profiles data.

Followed by the code to check if there was any Alerting Profiles not edited in last 32 days:

```auto
// optional import of sdk modules
import { execution } from '@dynatrace-sdk/automation-utils';

export default async function ({ execution_id }) {
// your code goes here
// e.g. get the current execution
const ex = await execution(execution_id);
const result = await ex.result("http_request_1");
const userList = [];
console.log('Automated script execution on behalf of', ex.trigger);
console.log('Total Configured: ',result.json.totalCount)
const curDate = new Date();
const oldDate = new Date();
oldDate.setDate(oldDate.getDate() - 32);
console.log(curDate.getTime());
console.log(oldDate.getTime());
for (var item of result.json.items){
if(item.modified < oldDate.getTime())
{
console.debug("Old for" + item.value.name +" Author:"+ item.author )
const curData = {"AP Name":item.value.name, "Author":item.author};
userList.push(curData);
}
//console.debug(JSON.stringify(item.value.filters)+" "+JSON.stringify(item.value.filters).length + "
");
}
//const userStr = userList.toString();
return JSON.stringify(userList);
}

```

HTH
