How to delete Alert History for a particular thing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to delete Alert History for a particular thing?
I have 2 things where alerts are generated I need to delete the alerts from the 2 thing
is there any particular service to delete alert history of particular thing or if not do we need to write a custom service to delete.
- Labels:
-
Best Practices
-
Troubleshooting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Probably custom service. But sometimes, not always, when expected functionality is not there, it could make you think if you are doing the right thing. Maybe they are not supposed to be deleted.
In your case, is deleting alerts the right thing to do? You could just acknowledge them, or prevent the alerts to be raised in the first place. I don't know your use case, just sayin...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Alert History is a Stream, so doing this would leverage the standard Stream principles. However, I believe that it is a System Object, so you may or may not be able to execute APIs to delete entries like you are looking to do. If not, then it would be how the ThingWorx R&D is indicating that this is internal and shouldn't be messed with.
If you are heavily using Streams, then you should have a data management strategy associated with this Stream as it can grow quite large and cause performance issues if it is not being purged.
