1 /* 2 * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 #ifndef TEST_PC_E2E_METRIC_METADATA_KEYS_H_ 11 #define TEST_PC_E2E_METRIC_METADATA_KEYS_H_ 12 13 namespace webrtc { 14 namespace webrtc_pc_e2e { 15 16 // All metadata fields are present only if applicable for particular metric. 17 class MetricMetadataKey { 18 public: 19 // Represents on peer with whom the metric is associated. 20 static constexpr char kPeerMetadataKey[] = "peer"; 21 // Represents sender of the media stream. 22 static constexpr char kSenderMetadataKey[] = "sender"; 23 // Represents receiver of the media stream. 24 static constexpr char kReceiverMetadataKey[] = "receiver"; 25 // Represents name of the audio stream. 26 static constexpr char kAudioStreamMetadataKey[] = "audio_stream"; 27 // Represents name of the video stream. 28 static constexpr char kVideoStreamMetadataKey[] = "video_stream"; 29 // Represents name of the sync group to which stream belongs. 30 static constexpr char kPeerSyncGroupMetadataKey[] = "peer_sync_group"; 31 32 private: 33 MetricMetadataKey() = default; 34 }; 35 36 // All metadata fields are presented only if applicable for particular metric. 37 class SampleMetadataKey { 38 public: 39 // Represents a frame ID with which data point is associated. 40 static constexpr char kFrameIdMetadataKey[] = "frame_id"; 41 42 private: 43 SampleMetadataKey() = default; 44 }; 45 46 } // namespace webrtc_pc_e2e 47 } // namespace webrtc 48 49 #endif // TEST_PC_E2E_METRIC_METADATA_KEYS_H_ 50