azmonitor-0.8.1
توضیحات
It is a helper tool for azure monitor. It is not official.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | azmonitor-0.8.1 |
| نام | azmonitor |
| نسخه کتابخانه | 0.8.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kentaro Aoki |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/KentaroAOKI/azmonitor |
| آدرس اینترنتی | https://pypi.org/project/azmonitor/ |
| مجوز | - |
It is a helper tool for Azure Monitor. It is not official.
Recently it is used the term Azure Monitor logs instead of Log Analytics. Log data is still stored in a Log Analytics workspace and is still collected and analyzed by the same Log Analytics service.
https://docs.microsoft.com/en-us/azure/azure-monitor/
Install
```sh
pip install azmonitor
```
Example
```python
import azmonitor
log_type = 'AzMonitor'
customer_id = 'xxxxx-xxxx-xxxx-xxxx-xxxxx'
shared_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
applog = azmonitor.LogAnalytics(log_type, customer_id, shared_key)
# Single Data
data = {'status': 'starting', 'value': 50}
applog.log(data)
# Multi Data
list_data = []
for i in range(3):
list_data.append({'status': 'starting', 'value': i})
applog.logs(list_data)
```
نحوه نصب
نصب پکیج whl azmonitor-0.8.1:
pip install azmonitor-0.8.1.whl
نصب پکیج tar.gz azmonitor-0.8.1:
pip install azmonitor-0.8.1.tar.gz