def fill_qna_event(<EOL>self,<EOL>query_results: [QueryResult],<EOL>turn_context: TurnContext,<EOL>telemetry_properties: Dict[str,str] = None,<EOL>telemetry_metrics: Dict[str,float] = None<EOL>) -> EventData:
properties: Dict[str,str] = dict()<EOL>metrics: Dict[str, float] = dict()<EOL>properties[QnATelemetryConstants.knowledge_base_id_property] = self._endpoint.knowledge_base_id<EOL>text: str = turn_context.activity.text<EOL>userName: str = turn_context.activity.from_property.name<EOL>if self.log_personal_information:<EOL><INDENT>if text:<EOL><INDENT>properties[QnATelemetryConstants.question_property] = text<EOL><DEDENT>if userName:<EOL><INDENT>properties[QnATelemetryConstants.username_property] = userName<EOL><DEDENT><DEDENT>if len(query_results) > <NUM_LIT:0>:<EOL><INDENT>query_result = query_results[<NUM_LIT:0>]<EOL>result_properties = {<EOL>QnATelemetryConstants.matched_question_property: json.dumps(query_result.questions),<EOL>QnATelemetryConstants.question_id_property: str(query_result.id),<EOL>QnATelemetryConstants.answer_property: query_result.answer,<EOL>QnATelemetryConstants.score_metric: query_result.score,<EOL>QnATelemetryConstants.article_found_property: '<STR_LIT:true>'<EOL>}<EOL>properties.update(result_properties)<EOL><DEDENT>else:<EOL><INDENT>no_match_properties = {<EOL>QnATelemetryConstants.matched_question_property : '<STR_LIT>',<EOL>QnATelemetryConstants.question_id_property : '<STR_LIT>',<EOL>QnATelemetryConstants.answer_property : '<STR_LIT>',<EOL>QnATelemetryConstants.article_found_property : '<STR_LIT:false>'<EOL>}<EOL>properties.update(no_match_properties)<EOL><DEDENT>if telemetry_properties:<EOL><INDENT>properties.update(telemetry_properties)<EOL><DEDENT>if telemetry_metrics:<EOL><INDENT>metrics.update(telemetry_metrics)<EOL><DEDENT>return EventData(properties=properties, metrics=metrics)<EOL>
Fills the event properties and metrics for the QnaMessage event for telemetry.

:return: A tuple of event data properties and metrics that will be sent to the BotTelemetryClient.track_event() method for the QnAMessage event. The properties and metrics returned the standard properties logged with any properties passed from the get_answers() method.

:rtype: EventData