| { |
| metrics: [ |
| // Peer connection event (ID 11) |
| { |
| event_codes: [ |
| 0, // LE |
| 0, // Success |
| 1, // Incoming |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:incoming_connection_success_count", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 1, // Failure |
| 1, // Incoming |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:incoming_connection_failure_count", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 0, // Success |
| 2, // Outgoing |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:outgoing_connection_success_count", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 1, // Failure |
| 2, // Outgoing |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:outgoing_connection_failure_count", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 0, // Success |
| 1, // Incoming |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/bredr_connection_manager/incoming:successful_connections", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 1, // Failure |
| 1, // Incoming |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/bredr_connection_manager/incoming:failed_connections", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 0, // Success |
| 2, // Outgoing |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/bredr_connection_manager/outgoing:successful_connections", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 1, // Failure |
| 2, // Outgoing |
| ], |
| metric_id: 11, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/bredr_connection_manager/outgoing:failed_connections", |
| }, |
| |
| // LE peer disconnection event (ID 18) |
| { |
| event_codes: [ |
| 1, // ExplicitDisconnect |
| ], |
| metric_id: 18, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_explicit_disconnect_count", |
| }, |
| { |
| event_codes: [ |
| 2, // LinkError |
| ], |
| metric_id: 18, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_link_error_count", |
| }, |
| { |
| event_codes: [ |
| 3, // ZeroRef |
| ], |
| metric_id: 18, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_zero_ref_count", |
| }, |
| { |
| event_codes: [ |
| 4, // RemoteDisconnection |
| ], |
| metric_id: 18, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_remote_disconnection_count", |
| }, |
| |
| // BR/EDR peer disconnection event (ID 19) |
| { |
| event_codes: [ |
| 1, // ApiRequest |
| ], |
| metric_id: 19, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_local_api_request_count", |
| }, |
| { |
| event_codes: [ |
| 2, // InterrogationFailed |
| ], |
| metric_id: 19, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_interrogation_failed_count", |
| }, |
| { |
| event_codes: [ |
| 3, // PairingFailed |
| ], |
| metric_id: 19, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_pairing_failed_count", |
| }, |
| { |
| event_codes: [ |
| 4, // AclLinkError |
| ], |
| metric_id: 19, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_acl_link_error_count", |
| }, |
| { |
| event_codes: [ |
| 5, // PeerDisconnection |
| ], |
| metric_id: 19, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/low_energy_connection_manager:disconnect_peer_disconnection_count", |
| }, |
| |
| // Peer bonding event (ID 10) |
| { |
| event_codes: [ |
| 0, // LE |
| 0, // Success |
| ], |
| metric_id: 10, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/peer_cache/metrics/le:bond_success_events", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 1, // Failure |
| ], |
| metric_id: 10, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/peer_cache/metrics/le:bond_failure_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 0, // Success |
| ], |
| metric_id: 10, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/peer_cache/metrics/bredr:bond_success_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 1, // Failure |
| ], |
| metric_id: 10, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/peer_cache/metrics/bredr:bond_failure_events", |
| }, |
| |
| // Adapter event (ID 9) |
| { |
| event_codes: [ |
| 0, // LE |
| 0, // OpenL2capChannelRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:open_l2cap_channel_requests", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 1, // OutgoingConnectionRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:outgoing_connection_requests", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 2, // PairRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:pair_requests", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 7, // StartAdvertising |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:start_advertising_events", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 8, // StopAdvertising |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:stop_advertising_events", |
| }, |
| { |
| event_codes: [ |
| 0, // LE |
| 9, // StartDiscovery |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/le:start_discovery_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 0, // OpenL2capChannelRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:open_l2cap_channel_requests", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 1, // OutgoingConnectionRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:outgoing_connection_requests", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 2, // PairRequest |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:pair_requests", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 3, // RequestDiscoverable |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:request_discoverable_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 4, // RequestDiscovery |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:request_discovery_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 5, // SetConnectableTrue |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:set_connectable_true_events", |
| }, |
| { |
| event_codes: [ |
| 1, // BrEdr |
| 6, // SetConnectableFalse |
| ], |
| metric_id: 9, |
| metric_type: "Occurrence", |
| selector: "core/bluetooth-core/bt-host-collection\\:bt-host_*:root/adapter/metrics/bredr:set_connectable_false_events", |
| }, |
| ], |
| poll_rate_sec: 300, |
| project_id: 2322225253, |
| } |