Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cli360monitoring/lib/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ def print(self, format: str = 'table'):
print(self.table)
elif (format == 'csv'):
print(self.table.get_csv_string(delimiter=self.config.delimiter))
elif (format == 'json'):
print(self.table.get_json_string(header=False))
1 change: 1 addition & 0 deletions cli360monitoring/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ def performCLI():
cli_statistics.add_argument('--output', choices=['csv', 'table'], default='table', help='output format for the data')
cli_statistics.add_argument('--csv', action='store_const', const='csv', dest='output', help='print data in CSV format')
cli_statistics.add_argument('--table', action='store_const', const='table', dest='output', help='print data as ASCII table')
cli_statistics.add_argument('--json', action='store_const', const='json', dest='output', help='print data as JSON')

# user tokens

Expand Down