# Sessions ## Fetch all sessions of an App `realtime_kit.sessions.get_sessions(strapp_id, SessionGetSessionsParams**kwargs) -> SessionGetSessionsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions` Returns details of all sessions of an App. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `associated_id: Optional[str]` ID of the meeting that sessions should be associated with - `end_time: Optional[Union[str, datetime]]` The end time range for which you want to retrieve the meetings. The time must be specified in ISO format. - `page_no: Optional[float]` The page number from which you want your page search results to be displayed. - `participants: Optional[str]` - `per_page: Optional[float]` Number of results per page - `search: Optional[str]` Search string that matches sessions based on meeting title, meeting ID, and session ID - `sort_by: Optional[Literal["minutesConsumed", "createdAt"]]` - `"minutesConsumed"` - `"createdAt"` - `sort_order: Optional[Literal["ASC", "DESC"]]` - `"ASC"` - `"DESC"` - `start_time: Optional[Union[str, datetime]]` The start time range for which you want to retrieve the meetings. The time must be specified in ISO format. - `status: Optional[Literal["LIVE", "ENDED"]]` - `"LIVE"` - `"ENDED"` ### Returns - `class SessionGetSessionsResponse: …` - `data: Optional[Data]` - `sessions: Optional[List[DataSession]]` - `id: str` ID of the session - `associated_id: str` ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form `abcdef-ghijkl` - `created_at: str` timestamp when session created - `live_participants: float` number of participants currently in the session - `max_concurrent_participants: float` number of maximum participants that were in the session - `meeting_display_name: str` Title of the meeting this session belongs to - `minutes_consumed: float` number of minutes consumed since the session started - `organization_id: str` App id that hosted this session - `started_at: str` timestamp when session started - `status: Literal["LIVE", "ENDED"]` current status of session - `"LIVE"` - `"ENDED"` - `type: Literal["meeting", "livestream", "participant"]` type of session - `"meeting"` - `"livestream"` - `"participant"` - `updated_at: str` timestamp when session was last updated - `breakout_rooms: Optional[List[object]]` - `ended_at: Optional[str]` timestamp when session ended - `meta: Optional[object]` Any meta data about session. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_sessions( app_id="app_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(response.data) ``` #### Response ```json { "data": { "sessions": [ { "id": "id", "associated_id": "associated_id", "created_at": "created_at", "live_participants": 0, "max_concurrent_participants": 0, "meeting_display_name": "meeting_display_name", "minutes_consumed": 0, "organization_id": "organization_id", "started_at": "started_at", "status": "LIVE", "type": "meeting", "updated_at": "updated_at", "breakout_rooms": [ {} ], "ended_at": "ended_at", "meta": {} } ] }, "success": true } ``` ## Fetch details of a session `realtime_kit.sessions.get_session_details(strsession_id, SessionGetSessionDetailsParams**kwargs) -> SessionGetSessionDetailsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}` Returns data of the given session ID including recording details. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` - `include_breakout_rooms: Optional[bool]` List all breakout rooms ### Returns - `class SessionGetSessionDetailsResponse: …` - `data: Optional[Data]` - `session: Optional[DataSession]` - `id: str` ID of the session - `associated_id: str` ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form `abcdef-ghijkl` - `created_at: str` timestamp when session created - `live_participants: float` number of participants currently in the session - `max_concurrent_participants: float` number of maximum participants that were in the session - `meeting_display_name: str` Title of the meeting this session belongs to - `minutes_consumed: float` number of minutes consumed since the session started - `organization_id: str` App id that hosted this session - `started_at: str` timestamp when session started - `status: Literal["LIVE", "ENDED"]` current status of session - `"LIVE"` - `"ENDED"` - `type: Literal["meeting", "livestream", "participant"]` type of session - `"meeting"` - `"livestream"` - `"participant"` - `updated_at: str` timestamp when session was last updated - `breakout_rooms: Optional[List[object]]` - `ended_at: Optional[str]` timestamp when session ended - `meta: Optional[object]` Any meta data about session. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_details( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "session": { "id": "id", "associated_id": "associated_id", "created_at": "created_at", "live_participants": 0, "max_concurrent_participants": 0, "meeting_display_name": "meeting_display_name", "minutes_consumed": 0, "organization_id": "organization_id", "started_at": "started_at", "status": "LIVE", "type": "meeting", "updated_at": "updated_at", "breakout_rooms": [ {} ], "ended_at": "ended_at", "meta": {} } }, "success": true } ``` ## Fetch participants list of a session `realtime_kit.sessions.get_session_participants(strsession_id, SessionGetSessionParticipantsParams**kwargs) -> SessionGetSessionParticipantsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/participants` Returns a list of participants for the given session ID. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` - `include_peer_events: Optional[bool]` if true, response includes all the peer events of participants. - `page_no: Optional[float]` The page number from which you want your page search results to be displayed. - `per_page: Optional[float]` Number of results per page - `search: Optional[str]` The search query string. You can search using the meeting ID or title. - `sort_by: Optional[Literal["joinedAt", "duration"]]` - `"joinedAt"` - `"duration"` - `sort_order: Optional[Literal["ASC", "DESC"]]` - `"ASC"` - `"DESC"` - `view: Optional[Literal["raw", "consolidated"]]` In breakout room sessions, the view parameter can be set to `raw` for session specific duration for participants or `consolidated` to accumulate breakout room durations. - `"raw"` - `"consolidated"` ### Returns - `class SessionGetSessionParticipantsResponse: …` - `data: Optional[Data]` - `participants: Optional[List[DataParticipant]]` - `id: Optional[str]` Participant ID. This maps to the corresponding peerId. - `created_at: Optional[str]` timestamp when this participant was created. - `custom_participant_id: Optional[str]` ID passed by client to create this participant. - `display_name: Optional[str]` Display name of participant when joining the session. - `duration: Optional[float]` number of minutes for which the participant was in the session. - `joined_at: Optional[str]` timestamp at which participant joined the session. - `left_at: Optional[str]` timestamp at which participant left the session. - `preset_name: Optional[str]` Name of the preset associated with the participant. - `updated_at: Optional[str]` timestamp when this participant's data was last updated. - `user_id: Optional[str]` User id for this participant. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_participants( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "paging": { "end_offset": 2, "start_offset": 1, "total_count": 123 }, "participants": [ { "created_at": "2023-02-01T10:51:08.039Z", "custom_participant_id": "83qi0i", "display_name": "Mark", "duration": 5.8097, "id": "005f4e0c-4d08-4d4e-a391-a76be75cd296", "joined_at": "2023-02-01T10:51:08.030Z", "left_at": "2023-02-01T10:56:56.612Z", "preset_name": "webinar_participant", "updated_at": "2023-02-01T10:56:56.618Z", "user_id": "0a08343d-a9dc-45f0-9feb-6a64afcc4f81" }, { "created_at": "2023-02-01T10:50:36.853Z", "custom_participant_id": "3uggr", "display_name": "Henry", "duration": 6.9263, "id": "51fdf95f-d893-471a-922b-7db7adb14453", "joined_at": "2023-02-01T10:50:36.846Z\"", "left_at": "2023-02-01T10:57:32.424Z", "preset_name": "webinar_participant", "updated_at": "2023-02-01T10:57:32.431Z", "user_id": "85e7f0fd-7c16-45e9-9d68-f17ef007c4eb" } ] }, "success": true } ``` ## Fetch details of a participant `realtime_kit.sessions.get_session_participant_details(strparticipant_id, SessionGetSessionParticipantDetailsParams**kwargs) -> SessionGetSessionParticipantDetailsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/participants/{participant_id}` Returns details of the given participant ID along with call statistics for the given session ID. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` - `participant_id: str` - `filters: Optional[Literal["device_info", "ip_information", "precall_network_information", 2 more]]` Comma separated list of filters to apply. Note that there must be no spaces between the filters. - `"device_info"` - `"ip_information"` - `"precall_network_information"` - `"events"` - `"quality_stats"` - `include_peer_events: Optional[bool]` if true, response includes all the peer events of participant. ### Returns - `class SessionGetSessionParticipantDetailsResponse: …` - `data: Optional[Data]` - `participant: Optional[DataParticipant]` - `id: Optional[str]` Participant ID. This maps to the corresponding peerId. - `created_at: Optional[str]` timestamp when this participant was created. - `custom_participant_id: Optional[str]` ID passed by client to create this participant. - `display_name: Optional[str]` Display name of participant when joining the session. - `duration: Optional[float]` number of minutes for which the participant was in the session. - `joined_at: Optional[str]` timestamp at which participant joined the session. - `left_at: Optional[str]` timestamp at which participant left the session. - `peer_stats: Optional[DataParticipantPeerStats]` - `config: Optional[str]` - `device_info: Optional[DataParticipantPeerStatsDeviceInfo]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `cpus: Optional[float]` - `engine: Optional[str]` - `is_mobile: Optional[bool]` - `memory: Optional[float]` - `os: Optional[str]` - `os_version: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `events: Optional[List[DataParticipantPeerStatsEvent]]` - `timestamp: Optional[str]` - `type: Optional[str]` - `ip_information: Optional[DataParticipantPeerStatsIPInformation]` - `city: Optional[str]` - `country: Optional[str]` - `ip_location: Optional[str]` - `ipv4: Optional[str]` - `org: Optional[str]` - `portal: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `precall_network_information: Optional[DataParticipantPeerStatsPrecallNetworkInformation]` - `backend_rtt: Optional[float]` - `effective_networktype: Optional[str]` - `fractional_loss: Optional[float]` - `jitter: Optional[float]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `rtt: Optional[float]` - `throughtput: Optional[float]` - `turn_connectivity: Optional[bool]` - `status: Optional[str]` - `preset_name: Optional[str]` Name of the preset associated with the participant. - `quality_stats: Optional[List[DataParticipantQualityStat]]` - `audio_bandwidth: Optional[float]` - `audio_packet_loss: Optional[float]` - `audio_stats: Optional[List[DataParticipantQualityStatAudioStat]]` - `concealment_events: Optional[float]` - `jitter: Optional[float]` - `packets_lost: Optional[float]` - `quality: Optional[float]` - `timestamp: Optional[str]` - `average_quality: Optional[float]` - `end: Optional[str]` - `peer_id: Optional[str]` - `start: Optional[str]` - `video_bandwidth: Optional[float]` - `video_packet_loss: Optional[float]` - `video_stats: Optional[List[DataParticipantQualityStatVideoStat]]` - `frame_height: Optional[float]` - `frame_width: Optional[float]` - `frames_dropped: Optional[float]` - `frames_per_second: Optional[float]` - `jitter: Optional[float]` - `packets_lost: Optional[float]` - `quality: Optional[float]` - `timestamp: Optional[str]` - `updated_at: Optional[str]` timestamp when this participant's data was last updated. - `user_id: Optional[str]` User id for this participant. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_participant_details( participant_id="participant_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", session_id="session_id", ) print(response.data) ``` #### Response ```json { "data": { "participant": { "id": "id", "created_at": "created_at", "custom_participant_id": "custom_participant_id", "display_name": "display_name", "duration": 0, "joined_at": "joined_at", "left_at": "left_at", "peer_stats": { "config": "config", "device_info": { "browser": "browser", "browser_version": "browser_version", "cpus": 0, "engine": "engine", "is_mobile": true, "memory": 0, "os": "os", "os_version": "os_version", "sdk_name": "sdk_name", "sdk_version": "sdk_version", "user_agent": "user_agent", "webgl_support": "webgl_support" }, "events": [ { "timestamp": "timestamp", "type": "type" } ], "ip_information": { "city": "city", "country": "country", "ip_location": "ip_location", "ipv4": "ipv4", "org": "org", "portal": "portal", "region": "region", "timezone": "timezone" }, "precall_network_information": { "backend_rtt": 0, "effective_networktype": "effective_networktype", "fractional_loss": 0, "jitter": 0, "reflexive_connectivity": true, "relay_connectivity": true, "rtt": 0, "throughtput": 0, "turn_connectivity": true }, "status": "status" }, "preset_name": "preset_name", "quality_stats": [ { "audio_bandwidth": 0, "audio_packet_loss": 0, "audio_stats": [ { "concealment_events": 0, "jitter": 0, "packets_lost": 0, "quality": 0, "timestamp": "timestamp" } ], "average_quality": 0, "end": "end", "peer_id": "peer_id", "start": "start", "video_bandwidth": 0, "video_packet_loss": 0, "video_stats": [ { "frame_height": 0, "frame_width": 0, "frames_dropped": 0, "frames_per_second": 0, "jitter": 0, "packets_lost": 0, "quality": 0, "timestamp": "timestamp" } ] } ], "updated_at": "updated_at", "user_id": "user_id" } }, "success": true } ``` ## Fetch all chat messages of a session `realtime_kit.sessions.get_session_chat(strsession_id, SessionGetSessionChatParams**kwargs) -> SessionGetSessionChatResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/chat` Returns a URL to download all chat messages of the session ID in CSV format. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` ### Returns - `class SessionGetSessionChatResponse: …` - `data: Optional[Data]` - `chat_download_url: str` URL where the chat logs can be downloaded - `chat_download_url_expiry: str` Time when the download URL will expire - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_chat( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "chat_download_url": "chat_download_url", "chat_download_url_expiry": "chat_download_url_expiry" }, "success": true } ``` ## Fetch the complete transcript for a session `realtime_kit.sessions.get_session_transcripts(strsession_id, SessionGetSessionTranscriptsParams**kwargs) -> SessionGetSessionTranscriptsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/transcript` Returns a URL to download the transcript for the session ID in CSV format. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` ### Returns - `class SessionGetSessionTranscriptsResponse: …` - `data: Optional[Data]` - `session_id: str` - `transcript_download_url: str` URL where the transcript can be downloaded - `transcript_download_url_expiry: str` Time when the download URL will expire - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_transcripts( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "sessionId": "sessionId", "transcript_download_url": "transcript_download_url", "transcript_download_url_expiry": "transcript_download_url_expiry" }, "success": true } ``` ## Fetch summary of transcripts for a session `realtime_kit.sessions.get_session_summary(strsession_id, SessionGetSessionSummaryParams**kwargs) -> SessionGetSessionSummaryResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/summary` Returns a Summary URL to download the Summary of Transcripts for the session ID as plain text. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` ### Returns - `class SessionGetSessionSummaryResponse: …` - `data: Optional[Data]` - `session_id: str` - `summary_download_url: str` URL where the summary of transcripts can be downloaded - `summary_download_url_expiry: str` Time of Expiry before when you need to download the csv file. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_session_summary( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "sessionId": "sessionId", "summaryDownloadUrl": "summaryDownloadUrl", "summaryDownloadUrlExpiry": "summaryDownloadUrlExpiry" }, "success": true } ``` ## Generate summary of Transcripts for the session `realtime_kit.sessions.generate_summary_of_transcripts(strsession_id, SessionGenerateSummaryOfTranscriptsParams**kwargs)` **post** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}/summary` Trigger Summary generation of Transcripts for the session ID. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `session_id: str` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) client.realtime_kit.sessions.generate_summary_of_transcripts( session_id="session_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) ``` ## Fetch details of peer `realtime_kit.sessions.get_participant_data_from_peer_id(strpeer_id, SessionGetParticipantDataFromPeerIDParams**kwargs) -> SessionGetParticipantDataFromPeerIDResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions/peer-report/{peer_id}` Returns details of the given peer ID along with call statistics for the given session ID. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `peer_id: str` - `filters: Optional[Literal["device_info", "ip_information", "precall_network_information", 2 more]]` Comma separated list of filters to apply. Note that there must be no spaces between the filters. - `"device_info"` - `"ip_information"` - `"precall_network_information"` - `"events"` - `"quality_stats"` ### Returns - `class SessionGetParticipantDataFromPeerIDResponse: …` - `data: Optional[Data]` - `participant: Optional[DataParticipant]` - `id: Optional[str]` - `created_at: Optional[str]` - `custom_participant_id: Optional[str]` - `display_name: Optional[str]` - `duration: Optional[float]` - `joined_at: Optional[str]` - `left_at: Optional[str]` - `peer_report: Optional[DataParticipantPeerReport]` - `metadata: Optional[DataParticipantPeerReportMetadata]` - `audio_devices_updates: Optional[List[object]]` - `browser_metadata: Optional[DataParticipantPeerReportMetadataBrowserMetadata]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `engine: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `candidate_pairs: Optional[DataParticipantPeerReportMetadataCandidatePairs]` - `consuming_transport: Optional[List[object]]` - `producing_transport: Optional[List[DataParticipantPeerReportMetadataCandidatePairsProducingTransport]]` - `available_outgoing_bitrate: Optional[int]` - `bytes_discarded_on_send: Optional[int]` - `bytes_received: Optional[int]` - `bytes_sent: Optional[int]` - `current_round_trip_time: Optional[float]` - `last_packet_received_timestamp: Optional[int]` - `last_packet_sent_timestamp: Optional[int]` - `local_candidate_address: Optional[str]` - `local_candidate_id: Optional[str]` - `local_candidate_network_type: Optional[str]` - `local_candidate_port: Optional[int]` - `local_candidate_protocol: Optional[str]` - `local_candidate_related_address: Optional[str]` - `local_candidate_related_port: Optional[int]` - `local_candidate_type: Optional[str]` - `nominated: Optional[bool]` - `packets_discarded_on_send: Optional[int]` - `packets_received: Optional[int]` - `packets_sent: Optional[int]` - `remote_candidate_address: Optional[str]` - `remote_candidate_id: Optional[str]` - `remote_candidate_port: Optional[int]` - `remote_candidate_protocol: Optional[str]` - `remote_candidate_type: Optional[str]` - `total_round_trip_time: Optional[float]` - `device_info: Optional[DataParticipantPeerReportMetadataDeviceInfo]` - `cpus: Optional[int]` - `is_mobile: Optional[bool]` - `os: Optional[str]` - `os_version: Optional[str]` - `events: Optional[List[DataParticipantPeerReportMetadataEvent]]` - `name: Optional[str]` - `timestamp: Optional[str]` - `ip_information: Optional[DataParticipantPeerReportMetadataIPInformation]` - `asn: Optional[DataParticipantPeerReportMetadataIPInformationASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ipv4: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `pc_metadata: Optional[List[DataParticipantPeerReportMetadataPcMetadata]]` - `effective_network_type: Optional[str]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `timestamp: Optional[str]` - `turn_connectivity: Optional[bool]` - `room_view_type: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `selected_device_updates: Optional[List[object]]` - `speaker_devices_updates: Optional[List[object]]` - `video_devices_updates: Optional[List[object]]` - `quality: Optional[DataParticipantPeerReportQuality]` - `audio_consumer: Optional[List[object]]` - `audio_consumer_cumulative: Optional[object]` - `audio_producer: Optional[List[DataParticipantPeerReportQualityAudioProducer]]` - `bytes_sent: Optional[int]` - `jitter: Optional[int]` - `mid: Optional[str]` - `mos_quality: Optional[int]` - `packets_lost: Optional[int]` - `packets_sent: Optional[int]` - `producer_id: Optional[str]` - `rtt: Optional[float]` - `ssrc: Optional[int]` - `timestamp: Optional[str]` - `audio_producer_cumulative: Optional[DataParticipantPeerReportQualityAudioProducerCumulative]` - `packet_loss: Optional[DataParticipantPeerReportQualityAudioProducerCumulativePacketLoss]` - `_10_or_greater_event_fraction: Optional[int]` - `_25_or_greater_event_fraction: Optional[int]` - `_5_or_greater_event_fraction: Optional[int]` - `_50_or_greater_event_fraction: Optional[int]` - `avg: Optional[int]` - `quality_mos: Optional[DataParticipantPeerReportQualityAudioProducerCumulativeQualityMos]` - `avg: Optional[int]` - `p50: Optional[int]` - `p75: Optional[int]` - `p90: Optional[int]` - `rtt: Optional[DataParticipantPeerReportQualityAudioProducerCumulativeRTT]` - `_100ms_or_greater_event_fraction: Optional[float]` - `_250ms_or_greater_event_fraction: Optional[float]` - `_500ms_or_greater_event_fraction: Optional[float]` - `avg: Optional[float]` - `screenshare_audio_consumer: Optional[List[object]]` - `screenshare_audio_consumer_cumulative: Optional[object]` - `screenshare_audio_producer: Optional[List[object]]` - `screenshare_audio_producer_cumulative: Optional[object]` - `screenshare_video_consumer: Optional[List[object]]` - `screenshare_video_consumer_cumulative: Optional[object]` - `screenshare_video_producer: Optional[List[object]]` - `screenshare_video_producer_cumulative: Optional[object]` - `video_consumer: Optional[List[object]]` - `video_consumer_cumulative: Optional[object]` - `video_producer: Optional[List[object]]` - `video_producer_cumulative: Optional[object]` - `peer_stats: Optional[DataParticipantPeerStats]` - `device_info: Optional[DataParticipantPeerStatsDeviceInfo]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `cpus: Optional[int]` - `engine: Optional[str]` - `is_mobile: Optional[bool]` - `os: Optional[str]` - `os_version: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `events: Optional[List[DataParticipantPeerStatsEvent]]` - `metadata: Optional[DataParticipantPeerStatsEventMetadata]` - `connection_info: Optional[DataParticipantPeerStatsEventMetadataConnectionInfo]` - `backend_r_t_t: Optional[float]` - `connectivity: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoConnectivity]` - `host: Optional[bool]` - `reflexive: Optional[bool]` - `relay: Optional[bool]` - `effective_network_type: Optional[str]` - `fractional_loss: Optional[int]` - `ip_details: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoIPDetails]` - `asn: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoIPDetailsASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ip: Optional[str]` - `loc: Optional[str]` - `postal: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `jitter: Optional[int]` - `location: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoLocation]` - `coords: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoLocationCoords]` - `latitude: Optional[float]` - `longitude: Optional[float]` - `r_t_t: Optional[float]` - `throughput: Optional[int]` - `turn_connectivity: Optional[bool]` - `timestamp: Optional[str]` - `type: Optional[str]` - `ip_information: Optional[DataParticipantPeerStatsIPInformation]` - `asn: Optional[DataParticipantPeerStatsIPInformationASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ip_location: Optional[str]` - `ipv4: Optional[str]` - `org: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `precall_network_information: Optional[DataParticipantPeerStatsPrecallNetworkInformation]` - `backend_rtt: Optional[float]` - `effective_networktype: Optional[str]` - `fractional_loss: Optional[int]` - `jitter: Optional[int]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `rtt: Optional[float]` - `throughput: Optional[int]` - `turn_connectivity: Optional[bool]` - `quality_stats: Optional[DataParticipantQualityStats]` - `audio_bandwidth: Optional[int]` - `audio_stats: Optional[List[object]]` - `average_quality: Optional[int]` - `end: Optional[str]` - `first_audio_packet_received: Optional[str]` - `first_video_packet_received: Optional[str]` - `last_audio_packet_received: Optional[str]` - `last_video_packet_received: Optional[str]` - `peer_ids: Optional[List[str]]` - `start: Optional[str]` - `total_audio_packets: Optional[int]` - `total_audio_packets_lost: Optional[int]` - `total_video_packets: Optional[int]` - `total_video_packets_lost: Optional[int]` - `video_bandwidth: Optional[int]` - `video_stats: Optional[List[object]]` - `role: Optional[str]` - `updated_at: Optional[str]` - `user_id: Optional[str]` - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_participant_data_from_peer_id( peer_id="peer_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", app_id="app_id", ) print(response.data) ``` #### Response ```json { "data": { "participant": { "id": "id", "created_at": "created_at", "custom_participant_id": "custom_participant_id", "display_name": "display_name", "duration": 0, "joined_at": "joined_at", "left_at": "left_at", "peer_report": { "metadata": { "audio_devices_updates": [ {} ], "browser_metadata": { "browser": "browser", "browser_version": "browser_version", "engine": "engine", "user_agent": "user_agent", "webgl_support": "webgl_support" }, "candidate_pairs": { "consuming_transport": [ {} ], "producing_transport": [ { "available_outgoing_bitrate": 0, "bytes_discarded_on_send": 0, "bytes_received": 0, "bytes_sent": 0, "current_round_trip_time": 0, "last_packet_received_timestamp": 0, "last_packet_sent_timestamp": 0, "local_candidate_address": "local_candidate_address", "local_candidate_id": "local_candidate_id", "local_candidate_network_type": "local_candidate_network_type", "local_candidate_port": 0, "local_candidate_protocol": "local_candidate_protocol", "local_candidate_related_address": "local_candidate_related_address", "local_candidate_related_port": 0, "local_candidate_type": "local_candidate_type", "nominated": true, "packets_discarded_on_send": 0, "packets_received": 0, "packets_sent": 0, "remote_candidate_address": "remote_candidate_address", "remote_candidate_id": "remote_candidate_id", "remote_candidate_port": 0, "remote_candidate_protocol": "remote_candidate_protocol", "remote_candidate_type": "remote_candidate_type", "total_round_trip_time": 0 } ] }, "device_info": { "cpus": 0, "is_mobile": true, "os": "os", "os_version": "os_version" }, "events": [ { "name": "name", "timestamp": "timestamp" } ], "ip_information": { "asn": { "asn": "asn" }, "city": "city", "country": "country", "ipv4": "ipv4", "region": "region", "timezone": "timezone" }, "pc_metadata": [ { "effective_network_type": "effective_network_type", "reflexive_connectivity": true, "relay_connectivity": true, "timestamp": "timestamp", "turn_connectivity": true } ], "room_view_type": "room_view_type", "sdk_name": "sdk_name", "sdk_version": "sdk_version", "selected_device_updates": [ {} ], "speaker_devices_updates": [ {} ], "video_devices_updates": [ {} ] }, "quality": { "audio_consumer": [ {} ], "audio_consumer_cumulative": {}, "audio_producer": [ { "bytes_sent": 0, "jitter": 0, "mid": "mid", "mos_quality": 0, "packets_lost": 0, "packets_sent": 0, "producer_id": "producer_id", "rtt": 0, "ssrc": 0, "timestamp": "timestamp" } ], "audio_producer_cumulative": { "packet_loss": { "10_or_greater_event_fraction": 0, "25_or_greater_event_fraction": 0, "5_or_greater_event_fraction": 0, "50_or_greater_event_fraction": 0, "avg": 0 }, "quality_mos": { "avg": 0, "p50": 0, "p75": 0, "p90": 0 }, "rtt": { "100ms_or_greater_event_fraction": 0, "250ms_or_greater_event_fraction": 0, "500ms_or_greater_event_fraction": 0, "avg": 0 } }, "screenshare_audio_consumer": [ {} ], "screenshare_audio_consumer_cumulative": {}, "screenshare_audio_producer": [ {} ], "screenshare_audio_producer_cumulative": {}, "screenshare_video_consumer": [ {} ], "screenshare_video_consumer_cumulative": {}, "screenshare_video_producer": [ {} ], "screenshare_video_producer_cumulative": {}, "video_consumer": [ {} ], "video_consumer_cumulative": {}, "video_producer": [ {} ], "video_producer_cumulative": {} } }, "peer_stats": { "device_info": { "browser": "browser", "browser_version": "browser_version", "cpus": 0, "engine": "engine", "is_mobile": true, "os": "os", "os_version": "os_version", "sdk_name": "sdk_name", "sdk_version": "sdk_version", "user_agent": "user_agent", "webgl_support": "webgl_support" }, "events": [ { "metadata": { "connection_info": { "backend_r_t_t": 0, "connectivity": { "host": true, "reflexive": true, "relay": true }, "effective_network_type": "effective_network_type", "fractional_loss": 0, "ip_details": { "asn": { "asn": "asn" }, "city": "city", "country": "country", "ip": "ip", "loc": "loc", "postal": "postal", "region": "region", "timezone": "timezone" }, "jitter": 0, "location": { "coords": { "latitude": 0, "longitude": 0 } }, "r_t_t": 0, "throughput": 0, "turn_connectivity": true } }, "timestamp": "timestamp", "type": "type" } ], "ip_information": { "asn": { "asn": "asn" }, "city": "city", "country": "country", "ip_location": "ip_location", "ipv4": "ipv4", "org": "org", "region": "region", "timezone": "timezone" }, "precall_network_information": { "backend_rtt": 0, "effective_networktype": "effective_networktype", "fractional_loss": 0, "jitter": 0, "reflexive_connectivity": true, "relay_connectivity": true, "rtt": 0, "throughput": 0, "turn_connectivity": true } }, "quality_stats": { "audio_bandwidth": 0, "audio_stats": [ {} ], "average_quality": 0, "end": "end", "first_audio_packet_received": "first_audio_packet_received", "first_video_packet_received": "first_video_packet_received", "last_audio_packet_received": "last_audio_packet_received", "last_video_packet_received": "last_video_packet_received", "peer_ids": [ "string" ], "start": "start", "total_audio_packets": 0, "total_audio_packets_lost": 0, "total_video_packets": 0, "total_video_packets_lost": 0, "video_bandwidth": 0, "video_stats": [ {} ] }, "role": "role", "updated_at": "updated_at", "user_id": "user_id" } }, "success": true } ``` ## Domain Types ### Session Get Sessions Response - `class SessionGetSessionsResponse: …` - `data: Optional[Data]` - `sessions: Optional[List[DataSession]]` - `id: str` ID of the session - `associated_id: str` ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form `abcdef-ghijkl` - `created_at: str` timestamp when session created - `live_participants: float` number of participants currently in the session - `max_concurrent_participants: float` number of maximum participants that were in the session - `meeting_display_name: str` Title of the meeting this session belongs to - `minutes_consumed: float` number of minutes consumed since the session started - `organization_id: str` App id that hosted this session - `started_at: str` timestamp when session started - `status: Literal["LIVE", "ENDED"]` current status of session - `"LIVE"` - `"ENDED"` - `type: Literal["meeting", "livestream", "participant"]` type of session - `"meeting"` - `"livestream"` - `"participant"` - `updated_at: str` timestamp when session was last updated - `breakout_rooms: Optional[List[object]]` - `ended_at: Optional[str]` timestamp when session ended - `meta: Optional[object]` Any meta data about session. - `success: Optional[bool]` ### Session Get Session Details Response - `class SessionGetSessionDetailsResponse: …` - `data: Optional[Data]` - `session: Optional[DataSession]` - `id: str` ID of the session - `associated_id: str` ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form `abcdef-ghijkl` - `created_at: str` timestamp when session created - `live_participants: float` number of participants currently in the session - `max_concurrent_participants: float` number of maximum participants that were in the session - `meeting_display_name: str` Title of the meeting this session belongs to - `minutes_consumed: float` number of minutes consumed since the session started - `organization_id: str` App id that hosted this session - `started_at: str` timestamp when session started - `status: Literal["LIVE", "ENDED"]` current status of session - `"LIVE"` - `"ENDED"` - `type: Literal["meeting", "livestream", "participant"]` type of session - `"meeting"` - `"livestream"` - `"participant"` - `updated_at: str` timestamp when session was last updated - `breakout_rooms: Optional[List[object]]` - `ended_at: Optional[str]` timestamp when session ended - `meta: Optional[object]` Any meta data about session. - `success: Optional[bool]` ### Session Get Session Participants Response - `class SessionGetSessionParticipantsResponse: …` - `data: Optional[Data]` - `participants: Optional[List[DataParticipant]]` - `id: Optional[str]` Participant ID. This maps to the corresponding peerId. - `created_at: Optional[str]` timestamp when this participant was created. - `custom_participant_id: Optional[str]` ID passed by client to create this participant. - `display_name: Optional[str]` Display name of participant when joining the session. - `duration: Optional[float]` number of minutes for which the participant was in the session. - `joined_at: Optional[str]` timestamp at which participant joined the session. - `left_at: Optional[str]` timestamp at which participant left the session. - `preset_name: Optional[str]` Name of the preset associated with the participant. - `updated_at: Optional[str]` timestamp when this participant's data was last updated. - `user_id: Optional[str]` User id for this participant. - `success: Optional[bool]` ### Session Get Session Participant Details Response - `class SessionGetSessionParticipantDetailsResponse: …` - `data: Optional[Data]` - `participant: Optional[DataParticipant]` - `id: Optional[str]` Participant ID. This maps to the corresponding peerId. - `created_at: Optional[str]` timestamp when this participant was created. - `custom_participant_id: Optional[str]` ID passed by client to create this participant. - `display_name: Optional[str]` Display name of participant when joining the session. - `duration: Optional[float]` number of minutes for which the participant was in the session. - `joined_at: Optional[str]` timestamp at which participant joined the session. - `left_at: Optional[str]` timestamp at which participant left the session. - `peer_stats: Optional[DataParticipantPeerStats]` - `config: Optional[str]` - `device_info: Optional[DataParticipantPeerStatsDeviceInfo]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `cpus: Optional[float]` - `engine: Optional[str]` - `is_mobile: Optional[bool]` - `memory: Optional[float]` - `os: Optional[str]` - `os_version: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `events: Optional[List[DataParticipantPeerStatsEvent]]` - `timestamp: Optional[str]` - `type: Optional[str]` - `ip_information: Optional[DataParticipantPeerStatsIPInformation]` - `city: Optional[str]` - `country: Optional[str]` - `ip_location: Optional[str]` - `ipv4: Optional[str]` - `org: Optional[str]` - `portal: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `precall_network_information: Optional[DataParticipantPeerStatsPrecallNetworkInformation]` - `backend_rtt: Optional[float]` - `effective_networktype: Optional[str]` - `fractional_loss: Optional[float]` - `jitter: Optional[float]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `rtt: Optional[float]` - `throughtput: Optional[float]` - `turn_connectivity: Optional[bool]` - `status: Optional[str]` - `preset_name: Optional[str]` Name of the preset associated with the participant. - `quality_stats: Optional[List[DataParticipantQualityStat]]` - `audio_bandwidth: Optional[float]` - `audio_packet_loss: Optional[float]` - `audio_stats: Optional[List[DataParticipantQualityStatAudioStat]]` - `concealment_events: Optional[float]` - `jitter: Optional[float]` - `packets_lost: Optional[float]` - `quality: Optional[float]` - `timestamp: Optional[str]` - `average_quality: Optional[float]` - `end: Optional[str]` - `peer_id: Optional[str]` - `start: Optional[str]` - `video_bandwidth: Optional[float]` - `video_packet_loss: Optional[float]` - `video_stats: Optional[List[DataParticipantQualityStatVideoStat]]` - `frame_height: Optional[float]` - `frame_width: Optional[float]` - `frames_dropped: Optional[float]` - `frames_per_second: Optional[float]` - `jitter: Optional[float]` - `packets_lost: Optional[float]` - `quality: Optional[float]` - `timestamp: Optional[str]` - `updated_at: Optional[str]` timestamp when this participant's data was last updated. - `user_id: Optional[str]` User id for this participant. - `success: Optional[bool]` ### Session Get Session Chat Response - `class SessionGetSessionChatResponse: …` - `data: Optional[Data]` - `chat_download_url: str` URL where the chat logs can be downloaded - `chat_download_url_expiry: str` Time when the download URL will expire - `success: Optional[bool]` ### Session Get Session Transcripts Response - `class SessionGetSessionTranscriptsResponse: …` - `data: Optional[Data]` - `session_id: str` - `transcript_download_url: str` URL where the transcript can be downloaded - `transcript_download_url_expiry: str` Time when the download URL will expire - `success: Optional[bool]` ### Session Get Session Summary Response - `class SessionGetSessionSummaryResponse: …` - `data: Optional[Data]` - `session_id: str` - `summary_download_url: str` URL where the summary of transcripts can be downloaded - `summary_download_url_expiry: str` Time of Expiry before when you need to download the csv file. - `success: Optional[bool]` ### Session Get Participant Data From Peer ID Response - `class SessionGetParticipantDataFromPeerIDResponse: …` - `data: Optional[Data]` - `participant: Optional[DataParticipant]` - `id: Optional[str]` - `created_at: Optional[str]` - `custom_participant_id: Optional[str]` - `display_name: Optional[str]` - `duration: Optional[float]` - `joined_at: Optional[str]` - `left_at: Optional[str]` - `peer_report: Optional[DataParticipantPeerReport]` - `metadata: Optional[DataParticipantPeerReportMetadata]` - `audio_devices_updates: Optional[List[object]]` - `browser_metadata: Optional[DataParticipantPeerReportMetadataBrowserMetadata]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `engine: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `candidate_pairs: Optional[DataParticipantPeerReportMetadataCandidatePairs]` - `consuming_transport: Optional[List[object]]` - `producing_transport: Optional[List[DataParticipantPeerReportMetadataCandidatePairsProducingTransport]]` - `available_outgoing_bitrate: Optional[int]` - `bytes_discarded_on_send: Optional[int]` - `bytes_received: Optional[int]` - `bytes_sent: Optional[int]` - `current_round_trip_time: Optional[float]` - `last_packet_received_timestamp: Optional[int]` - `last_packet_sent_timestamp: Optional[int]` - `local_candidate_address: Optional[str]` - `local_candidate_id: Optional[str]` - `local_candidate_network_type: Optional[str]` - `local_candidate_port: Optional[int]` - `local_candidate_protocol: Optional[str]` - `local_candidate_related_address: Optional[str]` - `local_candidate_related_port: Optional[int]` - `local_candidate_type: Optional[str]` - `nominated: Optional[bool]` - `packets_discarded_on_send: Optional[int]` - `packets_received: Optional[int]` - `packets_sent: Optional[int]` - `remote_candidate_address: Optional[str]` - `remote_candidate_id: Optional[str]` - `remote_candidate_port: Optional[int]` - `remote_candidate_protocol: Optional[str]` - `remote_candidate_type: Optional[str]` - `total_round_trip_time: Optional[float]` - `device_info: Optional[DataParticipantPeerReportMetadataDeviceInfo]` - `cpus: Optional[int]` - `is_mobile: Optional[bool]` - `os: Optional[str]` - `os_version: Optional[str]` - `events: Optional[List[DataParticipantPeerReportMetadataEvent]]` - `name: Optional[str]` - `timestamp: Optional[str]` - `ip_information: Optional[DataParticipantPeerReportMetadataIPInformation]` - `asn: Optional[DataParticipantPeerReportMetadataIPInformationASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ipv4: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `pc_metadata: Optional[List[DataParticipantPeerReportMetadataPcMetadata]]` - `effective_network_type: Optional[str]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `timestamp: Optional[str]` - `turn_connectivity: Optional[bool]` - `room_view_type: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `selected_device_updates: Optional[List[object]]` - `speaker_devices_updates: Optional[List[object]]` - `video_devices_updates: Optional[List[object]]` - `quality: Optional[DataParticipantPeerReportQuality]` - `audio_consumer: Optional[List[object]]` - `audio_consumer_cumulative: Optional[object]` - `audio_producer: Optional[List[DataParticipantPeerReportQualityAudioProducer]]` - `bytes_sent: Optional[int]` - `jitter: Optional[int]` - `mid: Optional[str]` - `mos_quality: Optional[int]` - `packets_lost: Optional[int]` - `packets_sent: Optional[int]` - `producer_id: Optional[str]` - `rtt: Optional[float]` - `ssrc: Optional[int]` - `timestamp: Optional[str]` - `audio_producer_cumulative: Optional[DataParticipantPeerReportQualityAudioProducerCumulative]` - `packet_loss: Optional[DataParticipantPeerReportQualityAudioProducerCumulativePacketLoss]` - `_10_or_greater_event_fraction: Optional[int]` - `_25_or_greater_event_fraction: Optional[int]` - `_5_or_greater_event_fraction: Optional[int]` - `_50_or_greater_event_fraction: Optional[int]` - `avg: Optional[int]` - `quality_mos: Optional[DataParticipantPeerReportQualityAudioProducerCumulativeQualityMos]` - `avg: Optional[int]` - `p50: Optional[int]` - `p75: Optional[int]` - `p90: Optional[int]` - `rtt: Optional[DataParticipantPeerReportQualityAudioProducerCumulativeRTT]` - `_100ms_or_greater_event_fraction: Optional[float]` - `_250ms_or_greater_event_fraction: Optional[float]` - `_500ms_or_greater_event_fraction: Optional[float]` - `avg: Optional[float]` - `screenshare_audio_consumer: Optional[List[object]]` - `screenshare_audio_consumer_cumulative: Optional[object]` - `screenshare_audio_producer: Optional[List[object]]` - `screenshare_audio_producer_cumulative: Optional[object]` - `screenshare_video_consumer: Optional[List[object]]` - `screenshare_video_consumer_cumulative: Optional[object]` - `screenshare_video_producer: Optional[List[object]]` - `screenshare_video_producer_cumulative: Optional[object]` - `video_consumer: Optional[List[object]]` - `video_consumer_cumulative: Optional[object]` - `video_producer: Optional[List[object]]` - `video_producer_cumulative: Optional[object]` - `peer_stats: Optional[DataParticipantPeerStats]` - `device_info: Optional[DataParticipantPeerStatsDeviceInfo]` - `browser: Optional[str]` - `browser_version: Optional[str]` - `cpus: Optional[int]` - `engine: Optional[str]` - `is_mobile: Optional[bool]` - `os: Optional[str]` - `os_version: Optional[str]` - `sdk_name: Optional[str]` - `sdk_version: Optional[str]` - `user_agent: Optional[str]` - `webgl_support: Optional[str]` - `events: Optional[List[DataParticipantPeerStatsEvent]]` - `metadata: Optional[DataParticipantPeerStatsEventMetadata]` - `connection_info: Optional[DataParticipantPeerStatsEventMetadataConnectionInfo]` - `backend_r_t_t: Optional[float]` - `connectivity: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoConnectivity]` - `host: Optional[bool]` - `reflexive: Optional[bool]` - `relay: Optional[bool]` - `effective_network_type: Optional[str]` - `fractional_loss: Optional[int]` - `ip_details: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoIPDetails]` - `asn: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoIPDetailsASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ip: Optional[str]` - `loc: Optional[str]` - `postal: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `jitter: Optional[int]` - `location: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoLocation]` - `coords: Optional[DataParticipantPeerStatsEventMetadataConnectionInfoLocationCoords]` - `latitude: Optional[float]` - `longitude: Optional[float]` - `r_t_t: Optional[float]` - `throughput: Optional[int]` - `turn_connectivity: Optional[bool]` - `timestamp: Optional[str]` - `type: Optional[str]` - `ip_information: Optional[DataParticipantPeerStatsIPInformation]` - `asn: Optional[DataParticipantPeerStatsIPInformationASN]` - `asn: Optional[str]` - `city: Optional[str]` - `country: Optional[str]` - `ip_location: Optional[str]` - `ipv4: Optional[str]` - `org: Optional[str]` - `region: Optional[str]` - `timezone: Optional[str]` - `precall_network_information: Optional[DataParticipantPeerStatsPrecallNetworkInformation]` - `backend_rtt: Optional[float]` - `effective_networktype: Optional[str]` - `fractional_loss: Optional[int]` - `jitter: Optional[int]` - `reflexive_connectivity: Optional[bool]` - `relay_connectivity: Optional[bool]` - `rtt: Optional[float]` - `throughput: Optional[int]` - `turn_connectivity: Optional[bool]` - `quality_stats: Optional[DataParticipantQualityStats]` - `audio_bandwidth: Optional[int]` - `audio_stats: Optional[List[object]]` - `average_quality: Optional[int]` - `end: Optional[str]` - `first_audio_packet_received: Optional[str]` - `first_video_packet_received: Optional[str]` - `last_audio_packet_received: Optional[str]` - `last_video_packet_received: Optional[str]` - `peer_ids: Optional[List[str]]` - `start: Optional[str]` - `total_audio_packets: Optional[int]` - `total_audio_packets_lost: Optional[int]` - `total_video_packets: Optional[int]` - `total_video_packets_lost: Optional[int]` - `video_bandwidth: Optional[int]` - `video_stats: Optional[List[object]]` - `role: Optional[str]` - `updated_at: Optional[str]` - `user_id: Optional[str]` - `success: Optional[bool]`