Hi Dojo,
we wanted to have a cross check from an Outage List (inside of an SLA) to the corresponding alarms.
Therefore we wanted to collect historical alarms of a specific view to compare them with the outage list.
The solution we got was an AlarmFilter for a specific view but here is the problem, it's only showing alarms for elements. In our view we have only services, therefore no alarms are shown.
Here is the snippet right now, also to list all services inside of a view:
Is here someone who could help to collect the correct alarms?
New picture on the staging (view "Test):
IIf I use "Staging", I can see the alarms:
Hi Miguel,
you are quick as rocket!
Okay understood but not clear how to do it.
First problem, the read function needs always an alarmFilter, but I guess than I can define the root view id to get all?
Second the impact, if I use the item. I have OfflineImpact, ViewImpact, ViewImpactInfo, VirtualFunctionImpact. Missing ViewImpactedServices, or is it one of the mentioned ones?
Hi Stefan,
I will need to check. I am not familiar with the AlarmFilter class. Let me perform some tests and I will come back to you.
Hi Stefan,
I'm a bit baffled. I couldn't immediately see anything wrong with your code, so I tried it myself using a simple mock setup, and it seems to work for me...
Miguel is correct in that normal services don't have alarms assigned, but the alarms should have both a service and view impact, so you should be able to filter on it. Likewise a service filter should work as well.
If you click and drag the view where the services are to the Alarm Console, can you see the alarms there? (You may need to specify a time range, by default it selects only active alarms)
Cube is doing essentially the same thing in the background, so if this works, your code should work as well.
Hi Alexander,
I have tested it again on the Staging server. Please see the updated thread with 2 new pictures. Could it be a version problem? In dll or DMA version?
Hi Stefan,
Just double checking, the services in the view, are standard services? Alarms are not assigned directly to services (exception is enhanced service). For this case, when retrieving the alarms there should be a property called 'Impacted services'. This field should be provide you the impacted services.
Hope it helps.