Open JosephHobbs opened 1 week ago
Looking at the Dynatrace API docs, it looks like not all of these are included as valid even though the tenant is returning them...
The latest docs didn't just add some possible values for category it looks like the majority of them were changed or are different, only 'TOKEN' and 'WEB_UI' are still present which is what the original list was.
I'll do some asking/checking to see if these values really are different as opposed to just being added. Either way, just adding these new ones might be the best 'backward compatible' way of doing it. There'd be no risk of supporting values that aren't coming in.
Describe the bug
When calling
dt.audit_logs.list()
I'm seeing sporadic errors in my logs. The errors I see are ValueError exceptions complaining that specific values are not a valid Category. I am seeing this exception forACTIVEGATE_TOKEN
,ACTIVE_GATE
,AGENT
,COMPONENT
andMANUAL_TAGGING_SERVICE
(so far).[ERROR] ValueError: 'ACTIVEGATE_TOKEN' is not a valid Category
[ERROR] ValueError: 'ACTIVE_GATE' is not a valid Category
[ERROR] ValueError: 'AGENT' is not a valid Category
[ERROR] ValueError: 'COMPONENT' is not a valid Category
[ERROR] ValueError: 'MANUAL_TAGGING_SERVICE' is not a valid Category
Here is an example of the raw exception for your reference:
My assumption here is that additional categories have been added to Dynatrace (SaaS), but the API has not been updated (yet) to include them...