HewlettPackard / HewlettPackard/oneview-sdk-java
Unable to get all alarms using client.get() alarms call with the filter
- Dominant language
- Java
- Stars
- 16
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
### Scenario/Intent
I'm trying to get all active alarms from Hp One View using query below:
BasicURIQuery filterByActive = new BasicURIQuery();
filterByActive.addParameter(URIQuery.FILTER, "alertState='Active'");
ResourceCollection alerts = this.client.get(filterByActive);
---
#### Steps to Reproduce
Run code above or create rest request from browser
#### Expected Result
All alarms from Hp One View web interfaces were received by client.get() call
#### Actual Result
Only couple alarms received
---
#### Environment Details
- **OneView Java SDK:** 3.1.0 (the same result with 3.2.1)
- **OneView Appliance Version:** 3.1.0
- **OneView Client API Version:** 3.1.0
- **Java Version:** 1.8
- **Platform:** Windows 7 x64
---
#### Attachments and Screenshots
Web Interface (15 alarms):

Detailed:
1) Critical (not received in the alarms request)

2) Warning (received in the alarms request)

3) Warning (not received in the alarms request)

Response from https://xx.xx.xx.xx/rest/alerts
[RestAlertsResponse.txt](https://github.com/HewlettPackard/oneview-sdk-java/files/1340179/RestAlertsResponse.txt)
Main question is - why such alarms are not available in the rest response.
Are they system alarms that can be received in some any other way?
I'm able to get critical alarm above by SCMB, but customer wants to have it in the getAlarms() or any similar synchronize call.
Regards,
Dmitriy
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.