File: SynchronousSender.py

package info (click to toggle)
python-applicationinsights 0.11.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 876 kB
  • sloc: python: 5,948; makefile: 151; sh: 77
file content (13 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
from .SenderBase import SenderBase, DEFAULT_ENDPOINT_URL

class SynchronousSender(SenderBase):
    """A synchronous sender that works in conjunction with the :class:`SynchronousQueue`. The queue will call
    :func:`send` on the current instance with the data to send.
    """
    def __init__(self, service_endpoint_uri=None):
        """Initializes a new instance of the class.

        Args:
            sender (String) service_endpoint_uri the address of the service to send telemetry data to.
        """
        SenderBase.__init__(self, service_endpoint_uri or DEFAULT_ENDPOINT_URL)