Skip to main content

Azure Monitor Data Collector API Client

Project description

azure-data-collector

What is it?

azure-data-collector is a Python client package for uploading events to Azure Monitor/Log Analytics workspace using the data collector api.

How do I use it?

    from azuredatacollector.datacollector import DataCollectorClient

    # Setup client
    client = DataCollectorClient(
        WORKSPACE_ID, SHARED_KEY
    )

    # Upload data without proxy
    test_data = [{"col": "row1"}, {"col": "row2"}, {"col": "row3"}]
    client.post_data(test_data, "TestLATable")

    # Upload data with proxy
    client.proxies = {"http": "http://127.0.0.1:8080"}
    metric = client.post_data(test_data, "TestLATable")

Reference

https://learn.microsoft.com/en-us/azure/azure-monitor/logs/data-collector-api

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-data-collector-0.1.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

azure_data_collector-0.1.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file azure-data-collector-0.1.5.tar.gz.

File metadata

  • Download URL: azure-data-collector-0.1.5.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for azure-data-collector-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2756bca99c6bbe988deb202a8498b78e1dddaa9689f91974ab0a1917bbe00910
MD5 0c9672f14cde828751337d26f1afe13d
BLAKE2b-256 575a992304e048a32bdd9d1ff1c2c1dc9d379fff6392832052af25ee5bc36935

See more details on using hashes here.

File details

Details for the file azure_data_collector-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_data_collector-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76da10a1e4a333b2949778c9ab45021a596960cff1135f3efbf9d12826bc73e7
MD5 104eca3bfbc0870047ac42411e45c3b4
BLAKE2b-256 3388c753dbd971ee80445b3a5584b0a46f4d578180c7ea1839d8aefb8bffdfdb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page