用于统一时间序列数据源和第三方监视服务的python包。
pyumetric的Python项目详细描述
脓肿性
用于统一时间序列数据源和第三方监视服务的python包。
安装
要安装pyumetric,请运行以下命令:
pip3 install pyumetric
用法
安装库后,请阅读以下使用条件:
frompyumetricimportDatetime_UtilsfrompyumetricimportNewRelic_Providernew_relic=NewRelic_Provider("api_key_here")# Get apps listnew_relic.get_apps()# Get app info (12345 is the app id)new_relic.get_app(12345)# Get all metric listnew_relic.get_metrics(12345)# Get Metrics list with a filter (Apdex)new_relic.get_metrics(12345,"Apdex")# Get Metric Values from 14 days till nownew_relic.get_metric(244202213,["WebTransaction"],["average_response_time"],Datetime_Utils("UTC",-14).iso(),Datetime_Utils("UTC").iso(),False)
其他
更改日志
0.0.4版:
Update Response.
Fix Exceptions.
Fix Text Cases.
0.0.3版:
Add Datetime Util Module.
0.0.2版:
Initial Release.
致谢
2019年,西尔弗贝克。在MIT License下发布。
pyumetric由@silverbackhq编写和维护。