Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 28440f0

Browse files
authored
Merge pull request #386 from HewlettPackard/api600/alerts
Api600/alerts
2 parents dbd1cc7 + 0d75fc9 commit 28440f0

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#### Notes
33
Extends support of the SDK to OneView Rest API version 600 (OneView v4.0).
44

5+
#### Features supported with current release:
6+
- Alert
7+
58
#### New Resources:
69
- License
710

endpoints-support.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
| Endpoints | Verb | V200 | V300 | V500 |V600
2222
| --------------------------------------------------------------------------------------- | -------- | :------------------: | :------------------: | :------------------: | :------------------: |
2323
| **Alerts** |
24-
|<sub>/rest/alerts </sub> |GET | :white_check_mark: | :white_check_mark: |
25-
|<sub>/rest/alerts </sub> |DELETE | :white_check_mark: | :white_check_mark: |
26-
|<sub>/rest/alerts/{id} </sub> |GET | :white_check_mark: | :white_check_mark: |
27-
|<sub>/rest/alerts/{id} </sub> |PUT | :white_check_mark: | :white_check_mark: |
28-
|<sub>/rest/alerts/{id} </sub> |DELETE | :white_check_mark: | :white_check_mark: |
29-
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | :white_check_mark: | :white_check_mark: |
24+
|<sub>/rest/alerts </sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
25+
|<sub>/rest/alerts </sub> |DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
26+
|<sub>/rest/alerts/{id} </sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
27+
|<sub>/rest/alerts/{id} </sub> |PUT | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
28+
|<sub>/rest/alerts/{id} </sub> |DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
29+
|<sub>/rest/alerts/AlertChangeLog/{id}</sub> |DELETE | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
3030
| **Appliance Time and Locale Configuration** |
3131
|<sub>/rest/appliance/configuration/time-locale</sub> |GET | :white_check_mark: | :white_check_mark: | :white_check_mark: |
3232
|<sub>/rest/appliance/configuration/time-locale</sub> |POST | :white_check_mark: | :white_check_mark: | :white_check_mark: |

examples/alerts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from hpOneView.oneview_client import OneViewClient
2525
from config_loader import try_load_from_file
26-
from hpOneView import extract_id_from_uri
26+
from hpOneView.resources.resource import extract_id_from_uri
2727
from pprint import pprint
2828

2929
config = {
@@ -43,7 +43,7 @@
4343
print("\nGetting the first 5 alerts")
4444
alerts = _client.alerts.get_all(0, 5)
4545
for alert in alerts:
46-
"uri: '{uri}' | type: '{type}' | alertState: '{alertState}'".format(**alert)
46+
print("uri: '{uri}' | type: '{type}' | alertState: '{alertState}'".format(**alert))
4747

4848
# Get a specific alert (first of the list that was obtained in previous item)
4949
print("\nGet a specific alert")

0 commit comments

Comments
 (0)