Download Recommendations
Available Guides
Reference:
| Field | Description |
|---|---|
| id | A unique random generated UUID as the key id for the Recommendation. |
| source | User, workload, Docker App or Kelvin SmartApp™ that created the Recommendation in KRN format. The KRN format is krn:{nid}:{nss} |
| resource | Asset in KRN format. The KRN format is krn:asset:<asset_name> |
| state | The current state of the Recommendation (pending, accepted, rejected, applied, expired, error) |
| description | Detailed description of the Recommendation. |
| actions | An array of objects with Control Change information. If the Recommendation is pending, it will display creation information or if the Recommendation is accepted or applied it will show the Control Change status. Each Control Change does not need to be related to the resource of the Recommendation. |
| confidence | Confidence level of the Recommendation. This is usually, but not mandatory, related to any machine learning model confidence results. |
| created | UTC time when the Recommendation was created, formatted in ISO 8601. |
| updated | UTC time when any Recommendation keys were last updated, formatted in ISO 8601. |
| payload | New value to write to resource |
| metadata | Custom dictionary keys/values for use by clients for anything useful and related to the Recommendation. |
| resource_parameters | Used for Internal use. |
| type | The Recommendation Type name associated with the Recommendation. |
| type_title | The Recommendation Type title of its name associated with the Recommendation. |
| logs | A date ordered list of the updates performed on this Recommendation. |
Download Recommendations for an Asset
In this example we will get a list of all Recommendation for the Asset pcp_01.
It is not possible export Recommendation from Kelvin UI. You can only view them.
| API cURL Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
You will receive a response body with a status code of 200, indicating a successful operation. For example, the response body might look like this:
| API cURL Example Response | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
| API Client (Python) Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
The response file will look something like this;
| API Client (Python) Example Response | |
|---|---|
1 2 3 4 5 6 | |