提交 01d08462 编写于 作者: N nicolargo

Rename stdout fields to apidoc

上级 10ae52be
......@@ -155,5 +155,17 @@ class GlancesStdoutApiDoc(object):
print(indent_stat(json.loads(stat.get_stats_value(item, value))))
print('')
# Get all stats
sub_title = 'GET all stats'
print(sub_title)
print('-' * len(sub_title))
print('')
print('.. code-block:: json')
print('')
print(' # curl {}/all'.format(API_URL))
print(indent_stat(json.loads(stat.getAllViewsAsDict())))
print('')
# Return True to exit directly (no refresh)
return True
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册