Skip to content

Commit 4fa6f06

Browse files
committed
Update Blog “get-started-with-the-foundational-apis-for-the-hpe-greenlake-edge-to-cloud-platform-–-part-3-tracking-activities-and-monitoring-health”
1 parent 99c684e commit 4fa6f06

3 files changed

+9
-11
lines changed

content/blog/get-started-with-the-foundational-apis-for-the-hpe-greenlake-edge-to-cloud-platform-–-part-3-tracking-activities-and-monitoring-health.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ tags:
1010
- hpe-greenlake-platform
1111
- API
1212
---
13-
1413
This is part three of a blog series that showcases the capabilities of the APIs for common HPE GreenLake platform services using a real customer scenario, displaying it from the perspective of a user of the platform, such as an IT administrator.
1514

1615
Continuing on from the [second part of this series](https://developer.hpe.com/blog/get-started-with-the-foundational-apis-for-the-hpe-greenlake-edge-to-cloud-platform-%E2%80%93-part-2-configuring-and-managing-a-workspace/), where I had put on my IT administrator’s hat for a ***Standard Enterprise*** workspace, I will now explore the set of REST API calls used for tracking activities in the workspace and monitoring the overall health of HPE services and HPE products in the workspace.
1716

1817
## Tracking activities in the workspace
18+
1919
**Audit log** service records the occurrence of events emitted by users, any device or service in the workspace. These logs can be used for tracking user activities, doing root cause analysis of an incident, investigating breaches, and for auditing purposes.
2020

2121
Let’s assume that I have been notified of unusual activities in the workspace and I would like to act to begin an investigation and identify the root cause of the incident in the workspace. This involves an analysis of logs for the services and the platform in the workspace, and tracking activities for users. To conduct this analysis, I will use the set of audit log API calls from the Postman collection folder: ***Tracking GLP Workspace/Step5-audit-log/audit-log/v1beta1/logs***.
@@ -42,27 +42,25 @@ The **GET** REST API call ***Get all audit logs of a user*** derived from the RE
4242

4343
> > <span style="color:grey; font-family:Arial; font-size:1em"> Figure 2: Tracking activities for a specific user</span>
4444
45-
4645
### Monitoring health events for the workspace
4746

4847
The HPE GreenLake platform provides a **wellness** service to enable you to monitor the overall health of the managed services and devices in the workspace. The wellness service API provides programmatic access to view health events and insights about HPE services and HPE products in the workspace.
4948

50-
I will use the set of Wellness API calls from the Postman collection folder: ***Tracking GLP Workspace/Step6-Wellness/wellness/v2beta1/events***.
49+
I will use the set of Wellness API calls from the Postman collection folder: ***Tracking GLP Workspace/Step6-Wellness***.
5150

52-
The **GET** REST API call ***Get list of wellness events*** is used to retrieve a list of health events for services (for example, Networking, Storage, Compute or HPE GreenLake platform services) and HPE device models in the workspace. In the example below, I use a set of query parameters to view health information for a specific device model, service and severity:
51+
The **GET** REST API call ***Get a list of wellness events*** is used to retrieve a list of health events for services (for example, Networking, Storage, Compute or HPE GreenLake platform services) and HPE device models in the workspace. In the example below, I use a set of query parameters to view health information for a specific device model, service and severity:
5352

54-
`GET {{baseUrl}}/wellness/v2beta1/events?filter=service in ('Storage')&filter=product in ('HPE Nimble Storage')&filter=severity eq 'warning'&limit=100`
53+
`GET {{baseUrl}}/wellness/v2beta2/events?filter=serviceName in ('Storage')&filter=productName eq 'HPE Alletra 6000'&filter=condition/severity eq 'warning'&limit=100`
5554

56-
![Figure 3: Retrieve list of health events for a specific service, device model and severity](/img/blog-part3-list-wellness-events-for-service-product-severity-image3.png "Figure 3: Retrieve list of health events for a specific service, device model and severity")
55+
![Figure 3: Retrieve list of health events for a specific service, device model and severity](/img/blog-part3-list-wellness-v2beta2-events-for-service-product-severity-image3.png "Figure 3: Retrieve list of health events for a specific service, device model and severity")
5756

5857
> > <span style="color:grey; font-family:Arial; font-size:1em"> Figure 3:Retrieve list of health events for a specific service, device model and severity</span>
5958
60-
To view information about a specific event ID, I can use the REST API request ***Get Event with specific event ID*** by specifying the event ID as a Path variable in the parameters of the API call:
61-
62-
`GET {{baseUrl}}/wellness/v2beta1/events/:id`
59+
To view information about a specific event ID, I can use the REST API request ***Get wellness event with specific ID*** by specifying the event ID as a Path variable in the parameters of the API call:
6360

61+
`GET {{baseUrl}}/wellness/v2beta2/events/:id`
6462

65-
![Figure 4: View information for a specific event ID](/img/blog-part3-view-wellness-event-for-specific-event-id-image4.png "Figure 4: View information for a specific event ID")
63+
![Figure 4: View information for a specific event ID](/img/blog-part3-view-wellness-v2beta2-event-for-specific-event-id-image4.png "Figure 4: View information for a specific event ID")
6664

6765
> > <span style="color:grey; font-family:Arial; font-size:1em"> Figure 4: View information for a specific event ID</span>
6866
@@ -74,4 +72,4 @@ To learn more about all the REST API calls for the platform, I invite you to ref
7472

7573
If you’re interested in trying out what I just discussed, you might want to check out one of our hands-on Workshops-on-Demand that lets you play with the HPE GreenLake APIs mentioned in this blog series. The workshops are free, available 24/7, and very easy to use. They give you a real-world experience without any risk. Check out our [catalog of workshops](https://developer.hpe.com/hackshack/workshops), register for the one you’re interested in and go! It’s as simple as that.
7674

77-
If you still have any questions regarding the HPE GreenLake platform APIs, join the [HPE Developer Community Slack Workspace](https://developer.hpe.com/slack-signup/) and start a discussion in our [\#hpe-greenlake-api](https://hpedev.slack.com/archives/C02EG5XFK8Q) channel. We’re always here to help.
75+
If you still have any questions regarding the HPE GreenLake platform APIs, join the [HPE Developer Community Slack Workspace](https://developer.hpe.com/slack-signup/) and start a discussion in our [\#hpe-greenlake-api](https://hpedev.slack.com/archives/C02EG5XFK8Q) channel. We’re always here to help.
82.2 KB
Loading
62.3 KB
Loading

0 commit comments

Comments
 (0)