Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuditLog Queries capabilities #472

Merged
merged 3 commits into from
Jan 26, 2021
Merged

AuditLog Queries capabilities #472

merged 3 commits into from
Jan 26, 2021

Conversation

kaleming
Copy link
Contributor

@kaleming kaleming commented Jan 25, 2021

Feature:

Include Query AuditLog Capability (#469)

Description of changes:

Based on this tutorial from ibm , it was included get_audit_log_entries method. It follows the same structure pattern of get_transaction_log_entries.

Requirements

Planning Analytics 2.0.8 or higher - (July 17, 2019)

Exemple

This method can be called:

with TM1Service(address='localhost', port='xxxx', user="xxxx", password="xxxx", 
            namespace=None,ssl=True) as tm1:
x = tm1.server.get_audit_log_entries(ObjectName='SYSTEM',
                                     object_type='Server',
                                     user='Admin', 
                                     since=datetime.datetime.strptime('2020-12-01', "%Y-%m-%d") )

df = pd.DataFrame(x)
       ID 	    TimeStamp 	    UserName 	    Description 	ObjectType 	ObjectName
0 	507 	2021-01-22T17:39:24Z 	Admin 	O usuário 'Admin' efetuou login com êxito a pa... 	Server 	SYSTEM
1 	508 	2021-01-22T18:00:04Z 	Admin 	O usuário 'Admin' efetuou login com êxito a pa... 	Server 	SYSTEM
2 	509 	2021-01-22T18:04:31Z 	Admin 	O usuário 'Admin' efetuou login com êxito a pa... 	Server 	SYSTEM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@MariusWirtz
Copy link
Collaborator

Nice work @kaleming.
Very much appreciated!

@MariusWirtz MariusWirtz merged commit 19caf98 into cubewise-code:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants