func isPeer(event *events.HttpStartStop) int64 { if event.GetPeerType() == events.PeerType_Client { return 1 } else { return 0 } }