Skip to content

Commit ed361dc

Browse files
committed
Custom audit log: path & param change
1 parent 09df66c commit ed361dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dataikuapi/dssclient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,15 @@ def get_log(self, name):
596596
return self._perform_json(
597597
"GET", "/admin/logs/%s" % name)
598598

599-
def log_custom_audit(self, custom_type="", custom_params={}):
599+
def log_custom_audit(self, custom_type, custom_params={}):
600600
"""
601601
Log a custom entry to the audit trail
602602
603-
:param str custom_type value for msgCustomType in audit trail item
604-
:param dict custom_params value for msgCustomParams in audit trail item
603+
:param str custom_type value for customMsgType in audit trail item
604+
:param dict custom_params value for customMsgParams in audit trail item
605605
"""
606606
return self._perform_empty("POST",
607-
"/admin/logs/audit/custom?msgCustomType=%s" % custom_type,
607+
"/admin/audit/custom/%s" % custom_type,
608608
body = custom_params)
609609

610610
########################################################

0 commit comments

Comments
 (0)