Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

ApplicationInsights Channel Telemetry_Channel

Jakub Oleksy edited this page Dec 20, 2014 · 1 revision

ApplicationInsights\Channel\Telemetry_Channel

Responsible for managing a queue of telemetry items to send and sending them.

  • Class name: Telemetry_Channel
  • Namespace: ApplicationInsights\Channel

Properties

$_endpointUrl

private string $_endpointUrl

The endpoint URL to send data to.

  • Visibility: private

$_queue

private array $_queue

The queue of already serialized JSON objects to send.

  • Visibility: private

Methods

\ApplicationInsights\Channel\Telemetry_Channel::__construct()

mixed ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::__construct()(string $endpointUrl)

Initializes a new Telemetry_Channel.

  • Visibility: public

Arguments

  • $endpointUrl string - <p>Optional. Allows caller to override which endpoint to send data to.</p>

\ApplicationInsights\Channel\Telemetry_Channel::getEndpointUrl()

string ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::getEndpointUrl()()

Returns the current URL this TelemetrySender will send to.

  • Visibility: public

\ApplicationInsights\Channel\Telemetry_Channel::setEndpointUrl()

mixed ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::setEndpointUrl()(string $endpointUrl)

Sets the current URL this TelemetrySender will send to.

  • Visibility: public

Arguments

  • $endpointUrl string

\ApplicationInsights\Channel\Telemetry_Channel::getQueue()

array ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::getQueue()()

Returns the current queue.

  • Visibility: public

\ApplicationInsights\Channel\Telemetry_Channel::setQueue()

mixed ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::setQueue()(array $queue)

Sets the current queue.

  • Visibility: public

Arguments

  • $queue array

\ApplicationInsights\Channel\Telemetry_Channel::getSerializedQueue()

string ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::getSerializedQueue()()

Summary of getSerializedQueue

  • Visibility: public

\ApplicationInsights\Channel\Telemetry_Channel::addToQueue()

mixed ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::addToQueue()(mixed $data, \ApplicationInsights\Channel\ApplicationInsights\Telemetry_Context $telemetryContext)

Writes the item into the sending queue for subsequent processing.

  • Visibility: public

Arguments

  • $data mixed - <p>The telemetry item to send.</p>
  • $telemetryContext ApplicationInsights\Channel\ApplicationInsights\Telemetry_Context - <p>The context to use.</p>

\ApplicationInsights\Channel\Telemetry_Channel::send()

mixed ApplicationInsights\Channel\Telemetry_Channel::\ApplicationInsights\Channel\Telemetry_Channel::send()()

Summary of send

  • Visibility: public
Clone this wiki locally