mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Sort all events in gam report <ActivityApplictionName>
This commit is contained in:
@@ -4662,6 +4662,7 @@ gam report <ActivityApplicationName> [todrive <ToDriveAttribute>*]
|
|||||||
[event|events <EventNameList>] [ip <String>]
|
[event|events <EventNameList>] [ip <String>]
|
||||||
[gmaileventtypes <NumberRangeList>]
|
[gmaileventtypes <NumberRangeList>]
|
||||||
[groupidfilter <String>] [resourcedetailsfilter <String>]
|
[groupidfilter <String>] [resourcedetailsfilter <String>]
|
||||||
|
[notimesort]
|
||||||
[maxactivities <Number>] [maxevents <Number>] [maxresults <Number>]
|
[maxactivities <Number>] [maxevents <Number>] [maxresults <Number>]
|
||||||
[countsonly [bydate|summary] [eventrowfilter]]
|
[countsonly [bydate|summary] [eventrowfilter]]
|
||||||
(addcsvdata <FieldName> <String>)* [shownoactivities]
|
(addcsvdata <FieldName> <String>)* [shownoactivities]
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
7.34.05
|
||||||
|
|
||||||
|
Updated `gam report <ActivityApplictionName>` to perform a reverse chronological sort
|
||||||
|
on all rows across multiple users and/or event names; this is consistent with the behavior
|
||||||
|
in the Admin console. Use option `notimesort` to suppress this sort.
|
||||||
|
|
||||||
7.34.04
|
7.34.04
|
||||||
|
|
||||||
Updated `gam <UserTypeEntity> create drivefileacl <DriveFileEntity> user <UserItem> role owner` to better
|
Updated `gam <UserTypeEntity> create drivefileacl <DriveFileEntity> user <UserItem> role owner` to better
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
||||||
__version__ = '7.34.04'
|
__version__ = '7.34.05'
|
||||||
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
# pylint: disable=wrong-import-position
|
# pylint: disable=wrong-import-position
|
||||||
@@ -13829,7 +13829,9 @@ REPORT_ACTIVITIES_TIME_OBJECTS = {'time'}
|
|||||||
# yesterday|today|thismonth|(previousmonths <Integer>)]
|
# yesterday|today|thismonth|(previousmonths <Integer>)]
|
||||||
# [filter <String> (filtertime<String> <Time>)*]
|
# [filter <String> (filtertime<String> <Time>)*]
|
||||||
# [event|events <EventNameList>] [ip <String>]
|
# [event|events <EventNameList>] [ip <String>]
|
||||||
# [groupidfilter <String>]
|
# [gmaileventtypes <NumberRangeList>]
|
||||||
|
# [groupidfilter <String>] [resourcedetailsfilter <String>]
|
||||||
|
# [notimesort]
|
||||||
# [maxactivities <Number>] [maxevents <Number>] [maxresults <Number>]
|
# [maxactivities <Number>] [maxevents <Number>] [maxresults <Number>]
|
||||||
# [countsonly [bydate|summary] [eventrowfilter]]
|
# [countsonly [bydate|summary] [eventrowfilter]]
|
||||||
# (addcsvdata <FieldName> <String>)* [shownoactivities]
|
# (addcsvdata <FieldName> <String>)* [shownoactivities]
|
||||||
@@ -14144,6 +14146,7 @@ def doReport():
|
|||||||
maxResults = 1000
|
maxResults = 1000
|
||||||
aggregateByDate = aggregateByUser = convertMbToGb = countsOnly = countsByDate = countsSummary = \
|
aggregateByDate = aggregateByUser = convertMbToGb = countsOnly = countsByDate = countsSummary = \
|
||||||
eventRowFilter = exitUserLoop = noAuthorizedApps = normalizeUsers = select = userCustomerRange = False
|
eventRowFilter = exitUserLoop = noAuthorizedApps = normalizeUsers = select = userCustomerRange = False
|
||||||
|
sortAllTimes = True
|
||||||
limitDateChanges = -1
|
limitDateChanges = -1
|
||||||
allVerifyUser = userKey = 'all'
|
allVerifyUser = userKey = 'all'
|
||||||
cd = orgUnit = orgUnitId = None
|
cd = orgUnit = orgUnitId = None
|
||||||
@@ -14241,6 +14244,8 @@ def doReport():
|
|||||||
eventNames.append(event)
|
eventNames.append(event)
|
||||||
elif activityReports and myarg == 'ip':
|
elif activityReports and myarg == 'ip':
|
||||||
actorIpAddress = getString(Cmd.OB_STRING)
|
actorIpAddress = getString(Cmd.OB_STRING)
|
||||||
|
elif activityReports and myarg == 'notimesort':
|
||||||
|
sortAllTimes = False
|
||||||
elif activityReports and myarg == 'countsonly':
|
elif activityReports and myarg == 'countsonly':
|
||||||
countsOnly = True
|
countsOnly = True
|
||||||
elif activityReports and myarg == 'bydate':
|
elif activityReports and myarg == 'bydate':
|
||||||
@@ -14706,6 +14711,8 @@ def doReport():
|
|||||||
if addCSVData:
|
if addCSVData:
|
||||||
row.update(addCSVData)
|
row.update(addCSVData)
|
||||||
csvPF.WriteRowTitles(row)
|
csvPF.WriteRowTitles(row)
|
||||||
|
elif sortAllTimes:
|
||||||
|
csvPF.SortRows('id.time', True)
|
||||||
else:
|
else:
|
||||||
if eventRowFilter:
|
if eventRowFilter:
|
||||||
csvPF.SetRowFilter([], GC.Values[GC.CSV_OUTPUT_ROW_FILTER_MODE])
|
csvPF.SetRowFilter([], GC.Values[GC.CSV_OUTPUT_ROW_FILTER_MODE])
|
||||||
|
|||||||
Reference in New Issue
Block a user