This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
ApplicationInsights Telemetry_Client
Jakub Oleksy edited this page Dec 20, 2014
·
1 revision
Main object used for interacting with the Application Insights service.
- Class name: Telemetry_Client
- Namespace: ApplicationInsights
private \ApplicationInsights\ApplicationInsights\Channel\Telemetry_Context $_context
The telemetry context this client will use
- Visibility: private
private \ApplicationInsights\ApplicationInsights\Channel\Telemetry_Channel $_channel
The telemetry channel this client will use
- Visibility: private
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::__construct()(\ApplicationInsights\ApplicationInsights\Telemetry_Context $context, \ApplicationInsights\ApplicationInsights\Channel\Telemetry_Channel $channel)
Initializes a new Telemetry_Client.
- Visibility: public
- $context ApplicationInsights\ApplicationInsights\Telemetry_Context
- $channel ApplicationInsights\ApplicationInsights\Channel\Telemetry_Channel
\ApplicationInsights\ApplicationInsights\Telemetry_Context ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::getContext()()
Returns the Telemetry_Context this Telemetry_Client is using.
- Visibility: public
\ApplicationInsights\ApplicationInsights\Channel\Telemetry_Channel ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::getChannel()()
Returns the Telemetry_Channel this Telemetry_Client is using.
- Visibility: public
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::trackPageView()(string $name, string $url, $duration, array $properties, array $measurements)
Sends an Page_View_Data to the Application Insights service.
- Visibility: public
- $name string - <p>The friendly name of the page view.</p>
- $url string - <p>The url of the page view.</p>
- $duration mixed
- $properties array - <p>An array of name to value pairs. Use the name as the index and any string as the value.</p>
- $measurements array - <p>An array of name to double pairs. Use the name as the index and any double as the value.</p>
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::trackMetric()(string $name, double $value, \ApplicationInsights\Channel\Data_Point_Type::Value $type, integer $count, double $min, double $max, double $stdDev, array $properties)
Sends an Metric_Data to the Application Insights service.
- Visibility: public
- $name string - <p>Name of the metric.</p>
- $value double - <p>Value of the metric.</p>
- $type ApplicationInsights\Channel\Data_Point_Type::Value - <p>The type of value being sent.</p>
- $count integer - <p>The number of samples.</p>
- $min double - <p>The minimum of the samples.</p>
- $max double - <p>The maximum of the samples.</p>
- $stdDev double - <p>The standard deviation of the samples.</p>
- $properties array - <p>An array of name to value pairs. Use the name as the index and any string as the value.</p>
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::trackEvent()(string $name, array $properties, array $measurements)
Sends an Event_Data to the Application Insights service.
- Visibility: public
- $name string
- $properties array - <p>An array of name to value pairs. Use the name as the index and any string as the value.</p>
- $measurements array - <p>An array of name to double pairs. Use the name as the index and any double as the value.</p>
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::trackMessage()(string $message, array $properties)
Sends an Message_Data to the Application Insights service.
- Visibility: public
- $message string - <p>The trace message.</p>
- $properties array - <p>An array of name to value pairs. Use the name as the index and any string as the value.</p>
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::trackRequest()(string $name, string $url, integer $startTime, integer $durationInMilliseconds, integer $httpResponseCode, boolean $isSuccessful, array $properties, array $measurements)
Sends an Message_Data to the Application Insights service.
- Visibility: public
- $name string - <p>A friendly name of the request.</p>
- $url string - <p>The url of the request.</p>
- $startTime integer - <p>The timestamp at which the request started.</p>
- $durationInMilliseconds integer - <p>The duration, in milliseconds, of the request.</p>
- $httpResponseCode integer - <p>The response code of the request.</p>
- $isSuccessful boolean - <p>Whether or not the request was successful.</p>
- $properties array - <p>An array of name to value pairs. Use the name as the index and any string as the value.</p>
- $measurements array - <p>An array of name to double pairs. Use the name as the index and any double as the value.</p>
mixed ApplicationInsights\Telemetry_Client::\ApplicationInsights\Telemetry_Client::flush()()
Flushes the underlying Telemetry_Channel queue.
- Visibility: public