Watson Conversation Logs By Date
I wanted to know if there is a way to pull Watson conversation logs for a specific time period using Watson Python SDK? Also is there a way to avoid the pagination added at the end
Solution 1:
As you can see on the Official documentation, you can use the filter
parameter to list logs and have a lot of options to use.
Filter: filter/string
A cacheable parameter that limits the results to those matching the specified filter. For more information, see Filter query reference.
The timestamp of the response is earlier than 2016-11-01T04:00:00.000Z.
response_timestamp<2016-11-01T04:00:00.000Z
So you need to replace with your response_timestamp
:
list_logs(workspace_id, sort=None, filter=paste here, page_limit=None, cursor=None)
- See more about the filter parameter using Logs - Watson Conversation.
- See the Official API Reference about Logs using Python.
Post a Comment for "Watson Conversation Logs By Date"