8000 Update application_insights_telemetry_client.py · itsmokha/botbuilder-python@2c150ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c150ff

Browse files
author
Emily Olshefski
authored
Update application_insights_telemetry_client.py
1 parent af681bc commit 2c150ff

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed

libraries/botbuilder-applicationinsights/botbuilder/applicationinsights/application_insights_telemetry_client.py

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,9 @@ def track_pageview(
7575
:type url: str
7676
:param duration: the duration of the page view in milliseconds. (defaults to: 0)
7777
:duration: int
78-
:param properties: the set of custom properties the client wants attached to this data item.
79-
(defaults to: None)
78+
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
8079
:type properties: :class:`typing.Dict[str, object]`
81-
:param measurements: the set of custom measurements the client wants to attach to this data item.
82-
(defaults to: None)
80+
:param measurements: the set of custom measurements the client wants to attach to this data item. (defaults to: None)
8381
:type measurements: :class:`typing.Dict[str, object]`
8482
"""
8583
self._client.track_pageview(name, url, duration, properties, measurements)
@@ -98,11 +96,9 @@ def track_exception(
9896
:param exception_type: the type of the exception that was thrown.
9997
:param value: the exception that the client wants to send.
10098
:param trace: the traceback information as returned by :func:`sys.exc_info`.
101-
:param properties: the set of custom properties the client wants attached to this data item.
102-
(defaults to: None)
99+
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
103100
:type properties: :class:`typing.Dict[str, object]`
104-
:param measurements: the set of custom measurements the client wants to attach to this data item.
105-
(defaults to: None)
101+
:param measurements: the set of custom measurements the client wants to attach to this data item. (defaults to: None)
106102
:type measurements: :class:`typing.Dict[str, object]`
107103
"""
108104
self._client.track_exception(
@@ -120,11 +116,9 @@ def track_event(
120116
121117
:param name: the data to associate to this event.
122118
:type name: str
123-
:param properties: the set of custom properties the client wants attached to this data item.
124-
(defaults to: None)
119+
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
125120
:type properties: :class:`typing.Dict[str, object]`
126-
:param measurements: the set of custom measurements the client wants to attach to this data item.
127-
(defaults to: None)
121+
:param measurements: the set of custom measurements the client wants to attach to this data item. (defaults to: None)
128122
:type measurements: :class:`typing.Dict[str, object]`
129123
"""
130124
self._client.track_event(name, properties=properties, measurements=measurements)
@@ -150,17 +144,13 @@ def track_metric(
150144
:param tel_type: The type of the metric. (defaults to: TelemetryDataPointType.aggregation`)
151145
:param count: the number of metrics that were aggregated into this data point. (defaults to: None)
152146
:type count: int
153-
:param min_val: the minimum of all metrics collected that were aggregated into this data point.
154-
(defaults to: None)
147+
:param min_val: the minimum of all metrics collected that were aggregated into this data point. (defaults to: None)
155148
:type min_val: float
156-
:param max_val: the maximum of all metrics collected that were aggregated into this data point.
157-
(defaults to: None)
149+
:param max_val: the maximum of all metrics collected that were aggregated into this data point. (defaults to: None)
158150
:type max_val: float
159-
:param std_dev: the standard deviation of all metrics collected that were aggregated into this data point.
160-
(defaults to: None)
151+
:param std_dev: the standard deviation of all metrics collected that were aggregated into this data point. (defaults to: None)
161152
:type std_dev: float
162-
:param properties: the set of custom properties the client wants attached to this data item.
163-
(defaults to: None)
153+
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
164154
:type properties: :class:`typing.Dict[str, object]`
165155
"""
166156
self._client.track_metric(
@@ -203,20 +193,17 @@ def track_request(
203193
:type url: str
204194
:param success: True if the request ended in success, False otherwise.
205195
:type success: bool
206-
:param start_time: the start time of the request. The value should look the same as the one returned by
207-
:func:`datetime.isoformat`. (defaults to: None)
196+
:param start_time: the start time of the request. The value should look the same as the one returned by :func:`datetime.isoformat`. (defaults to: None)
208197
:type start_time: str
209198
:param duration: the number of milliseconds that this request lasted. (defaults to: None)
210199
:type duration: int
211200
:param response_code: the response code that this request returned. (defaults to: None)
212201
:type response_code: str
213202
:param http_method: the HTTP method that triggered this request. (defaults to: None)
214203
:type http_method: str
215-
:param properties: the set of custom properties the client wants attached to this data item.
216-
(defaults to: None)
204+
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
217205
:type properties: :class:`typing.Dict[str, object]`
218-
:param measurements: the set of custom measurements the client wants to attach to this data item.
219-
(defaults to: None)
206+
:param measurements: the set of custom measurements the client wants to attach to this data item. (defaults to: None)
220207
:type measurements: :class:`typing.Dict[str, object]`
221208
:param request_id: the id for this request. If None, a new uuid will be generated. (defaults to: None)
222209
:type request_id: str
@@ -253,26 +240,21 @@ def track_dependency(
253240
:param name: the name of the command initiated with this dependency call. Low cardinality value.
254241
Examples are stored procedure name and URL path template.
255242
:type name: str
256-
:param data: the command initiated by this dependency call.
243+
:param data: the command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters.
257244
:type data: str
258-
Examples are SQL statement and HTTP URL with all query parameters.
259-
:param type_name: the dependency type name. Low cardinality value for logical grouping of dependencies and
260-
interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
261-
(default to: None)
245+
:param type_name: the dependency type name. Low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP. (default to: None)
262246
:type type_name: str
263247
:param target: the target site of a dependency call. Examples are server name, host address. (default to: None)
264248
:type target: str
265249
:param duration: the number of milliseconds that this dependency call lasted. (defaults to: None)
266250
:type duration: int
267251
:param success: true if the dependency call ended in success, false otherwise. (defaults to: None)
268252
:type success: bool
269-
:param result_code: the result code of a dependency call. Examples are SQL error code and HTTP status code.
270-
(defaults to: None)
253+
:param result_code: the result code of a dependency call. Examples are SQL error code and HTTP status code. (defaults to: None)
271254
:type result_code: str
272255
:param properties: the set of custom properties the client wants attached to this data item. (defaults to: None)
273256
:type properties: :class:`typing.Dict[str, object]`
274-
:param measurements: the set of custom measurements the client wants to attach to this data item.
275-
(defaults to: None)
257+
:param measurements: the set of custom measurements the client wants to attach to this data item. (defaults to: None)
276258
:type measurements: :class:`typing.Dict[str, object]`
277259
:param dependency_id: the id for this dependency call. If None, a new uuid will be generated. (defaults to: None)
278260
:type dependency_id: str

0 commit comments

Comments
 (0)
0