Closed xflipped closed 1 year ago
I've also noticed that even though the log entry collection has a json field "Members" that normally contains links, here it contains a list of log entries directly
This vendor is not following the Redfish specification:
"Entries": {
"$ref": "http://redfish.dmtf.org/schemas/v1/LogEntryCollection.json#/definitions/LogEntryCollection",
"description": "The link to the log entry collection.",
"longDescription": "This property shall contain a link to a resource collection of type LogEntryCollection.",
"readonly": true
},
An issue should be opened with that vendor asking that they fix their implementation to follow the spec.
And the LogEntryCollection.Members
defintion:
"Members": {
"autoExpand": true,
"description": "The members of this collection.",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/LogEntry.json#/definitions/LogEntry"
},
"longDescription": "This property shall contain an array of links to the members of this collection.",
"readonly": true,
"type": "array"
},
Thanks for your comments!!
As for this
An issue should be opened with that vendor asking that they fix their implementation to follow the spec.
Please let me check this issue because I took the example directly from the dmtf website here: https://redfish.dmtf.org/redfish/mockups/v1/1266#Systems--437XR1138R2--LogServices--Log1--Entries
I've added filtering as an option and vendor agnostic collection retrieval using links to follow the spec
so it still need to query each log entry as a link ? i have tested some manufacturer device, and /redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId}/Entries api can got all enties completely
there's no need to query each log entry as a link, a collection will be retrieved correctly taking into account pagination and as an option you can apply filtering (top, skip)
there's no need to query each log entry as a link, a collection will be retrieved correctly taking into account pagination and as an option you can apply filtering (top, skip)
sorry, i still don't quite understand, and which function can i use to get the latest 10 log entries,at least i should know how many logs it has ?
I've faced with the following situation when retrieving logs from LogService:
Link to entries:
Actual entry collection object:
As you can see, this is the case when the original link leads only to the first N (here: N=50) entries. So I would like to propose changes that allow all entries to be retrieved.
I've also noticed that even though the log entry collection has a json field "Members" that normally contains links, here it contains a list of log entries directly:
Normally:
Logs:
So I think there is no need to query each log entry as a link. These changes can also be seen in my PR