HewlettPackard / HewlettPackard/oneview-sdk-java

Unable to get all alarms using client.get() alarms call with the filter

Open
#17 11 comments 0 reactions 1 assignee Claimed by @CintiaLopes View on GitHub
enhancement
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):

![hpdashboard](https://user-images.githubusercontent.com/10085878/30957666-9481ceb8-a443-11e7-8e28-208694d13c08.PNG)

Detailed:
1) Critical (not received in the alarms request)
![hpcritical](https://user-images.githubusercontent.com/10085878/30957713-b9860814-a443-11e7-9e4b-364c7ae95179.PNG)

2) Warning (received in the alarms request)
![hpwarn1](https://user-images.githubusercontent.com/10085878/30957776-e1b55362-a443-11e7-91cc-d0e192e0f7a0.PNG)

3) Warning (not received in the alarms request)
![hpwarn2](https://user-images.githubusercontent.com/10085878/30957818-f80a27fa-a443-11e7-9741-0e20c753a087.PNG)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.