From 62c6205f535a1dbe81a0412d485484614003ea23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Be=C5=88o?= Date: Tue, 24 May 2016 17:20:25 +0200 Subject: [PATCH] Fix of Unknown class error when trackMetric provided with type argument = null --- ApplicationInsights/Telemetry_Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationInsights/Telemetry_Client.php b/ApplicationInsights/Telemetry_Client.php index 445e149..c25a0fc 100644 --- a/ApplicationInsights/Telemetry_Client.php +++ b/ApplicationInsights/Telemetry_Client.php @@ -89,7 +89,7 @@ public function trackMetric($name, $value, $type = NULL, $count = NULL, $min = N $dataPoiint = new Channel\Contracts\Data_Point(); $dataPoiint->setName($name); $dataPoiint->setValue($value); - $dataPoiint->setKind($type == NULL ? Data_Point_Type::Aggregation : $type); + $dataPoiint->setKind($type == NULL ? Channel\Contracts\Data_Point_Type::Aggregation : $type); $dataPoiint->setCount($count); $dataPoiint->setMin($min); $dataPoiint->setMax($max);