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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from artberri/track-dependency
Support for the TrackDependency method of Telemetry Client
- Loading branch information
Showing
29 changed files
with
753 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
namespace ApplicationInsights\Channel\Contracts; | ||
|
||
/** | ||
* Data contract class for type Event_Data. | ||
*/ | ||
abstract class Base_Data implements Data_Interface | ||
{ | ||
use Json_Serializer; | ||
use Version_Manager; | ||
|
||
/** | ||
* Data array that will store all the values. | ||
*/ | ||
protected $_data; | ||
|
||
/** | ||
* Needed to properly construct the JSON envelope. | ||
*/ | ||
protected $_envelopeTypeName; | ||
|
||
/** | ||
* Needed to properly construct the JSON envelope. | ||
*/ | ||
protected $_dataTypeName; | ||
|
||
/** | ||
* Gets the envelopeTypeName field. | ||
*/ | ||
public function getEnvelopeTypeName() | ||
{ | ||
return $this->_envelopeTypeName; | ||
} | ||
|
||
/** | ||
* Gets the dataTypeName field. | ||
*/ | ||
public function getDataTypeName() | ||
{ | ||
return $this->_dataTypeName; | ||
} | ||
|
||
/** | ||
* Gets the properties field. | ||
*/ | ||
public function getProperties() | ||
{ | ||
if (array_key_exists('properties', $this->_data)) { return $this->_data['properties']; } | ||
return NULL; | ||
} | ||
|
||
/** | ||
* Sets the properties field. | ||
*/ | ||
public function setProperties($properties) | ||
{ | ||
$this->_data['properties'] = $properties; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
namespace ApplicationInsights\Channel\Contracts; | ||
|
||
/** | ||
* Interface class for XXXXX_Data. | ||
*/ | ||
interface Data_Interface | ||
{ | ||
/** | ||
* Gets the envelopeTypeName field. | ||
*/ | ||
public function getEnvelopeTypeName(); | ||
|
||
/** | ||
* Gets the dataTypeName field. | ||
*/ | ||
public function getDataTypeName(); | ||
|
||
/** | ||
* Gets the ver field. | ||
*/ | ||
public function getVer(); | ||
|
||
/** | ||
* Sets the ver field. | ||
*/ | ||
public function setVer($ver); | ||
|
||
/** | ||
* Gets the properties field. | ||
*/ | ||
public function getProperties(); | ||
|
||
/** | ||
* Sets the properties field. | ||
*/ | ||
public function setProperties($properties); | ||
|
||
/** | ||
* JSON serialization for this class. | ||
*/ | ||
public function jsonSerialize(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.