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

Commit

Permalink
Fix of Unknown class error when trackMetric provided with type argume…
Browse files Browse the repository at this point in the history
…nt = null
  • Loading branch information
Miloslav committed May 24, 2016
1 parent fecf8af commit 62c6205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ApplicationInsights/Telemetry_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62c6205

Please sign in to comment.