1 ApplicationInsights Channel Telemetry_Channel
Jakub Oleksy редактировал(а) эту страницу 2014-12-19 18:00:13 -08:00

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