It is a helper tool for azure monitor. It is not official.
Project description
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
pip install azmonitor
Example
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
azmonitor-0.8.1.tar.gz
(2.6 kB
view details)
File details
Details for the file azmonitor-0.8.1.tar.gz
.
File metadata
- Download URL: azmonitor-0.8.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57456cf2865f0636f5132a9cfe425dece966ea24e36f6598b2800a0be1cc913e |
|
MD5 | 8d525d4925031724e5b65e84ff219ca5 |
|
BLAKE2b-256 | a93857cddabcf16d7151929262c146d08baf30f1e43146fbba07f63587b5c360 |