# Example usage #
assume your project has textid 'qweqwe'
## simple indicator update create (minimalistic) ##
assume recently was work with project qweqwe (-i qweqwe) and now it's cached
./okerr-client -n delme -s OK
## more complex example ##
./okerr-client -i qweqwe -n delme -s OK -S bzbzbz -u http://update.okerr.com/okerr -m "numerical|minlim=0|maxlim=100" -v
## get key
./okerr-client -i qweqwe --getkey @path
## get list of keys
./okerr-client -i qweqwe --listkeys @path
e.g.
MYNAME=mycluster:server1
for test in `./okerr-client --listkeys @$MYNAME`
do
./okerr-client -i qweqwe
done
## NEW DOC
./okerr-client -s 'DIR path=/var/log' 'FILTER type=="REG"' 'SORT field=size' 'FORMAT {size}' LAST JDUMP
./okerr-client -i qweqwe -n delme --url http://localhost:8000/okerr -s OK
{
"name": "{iname}:opentcp",
"checkmethod": "streqd",
"sequence": {
"10": "CONNECTIONS",
"20": "FILTER status=='LISTEN' and proto=='tcp' and basename != 'smtpd'",
"30": "SORT field=port",
"40": "FORMAT {proto}:{port} {basename}"
}
}
cat data.json | ./okerr-client -s STDIN FROMJSON MKSEQ JDUMP
./okerr-client -i qweqwe -n delme --url http://localhost:8000/okerr -s 'KEYVAL lib:maxlog' MKSEQ
# update DF with details and method
./okerr-client -i qweqwe -n AA -i qweqwe -s 'METHOD numerical maxlim=80' 'DF' 'FORK iname={iname}:{path}' 'DETAILS used {usedg}/{totalg} ({freeg} free)' 'FORMAT {percent}'
# make wheel, upload
1. write some cool feature
2. change version both in okerr-client and in setup.py
3. register (only once)
python setup.py register
4. generate source distribution (optional?):
python setup.py sdist
5. make wheel:
python3 setup.py bdist_wheel
6. upload
twine upload dist/*
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共29个文件
py:15个
txt:4个
okerrclient:2个
资源分类:Python库 所属语言:Python 资源全名:okerrclient-2.0.151.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
okerrclient-2.0.151.tar.gz (29个子文件)
okerrclient-2.0.151
MANIFEST.in 109B
PKG-INFO 248B
data
conf
okerrclient.conf 356B
systemd
okerrclient.service 323B
init.d
okerrclient 4KB
okerrclient
taskproc.py 4KB
utils.py 353B
fs.py 7KB
taskseq.py 34KB
pidfile.py 3KB
stdin.py 327B
run.py 3KB
__init__.py 19KB
listcmd.py 15KB
api.py 16KB
network.py 3KB
pyping
core.py 12KB
__init__.py 45B
exceptions.py 386B
setup.cfg 67B
setup.py 754B
okerrclient.egg-info
PKG-INFO 248B
requires.txt 81B
not-zip-safe 1B
SOURCES.txt 674B
top_level.txt 12B
dependency_links.txt 1B
README.md 2KB
scripts
okerrclient 12KB
共 29 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功