Need to creatre a TRIGGER to pull TLS version and Dest Port from ExtraHop

Need assistance in Putting this together-- @bbarltropfnma
Trigger
Event: SSL_OPEN
Writes custom detail metric like:
// Type trigger code below
const tlsVerMap = {
2: “SSLv2”,
768: “SSLv3”,
769: “TLS 1.0”,
770: “TLS 1.1”,
771: “TLS 1.2”,
772: “TLS 1.3”
}
let recordString = ${tlsVerMap[SSL.version]} | ${Flow.server.ipaddr}:${Flow.l7proto} | ${Flow.client.ipaddr}
Device.metricAddDetailCount(sslv_by_conversation_details, recordString, 1)
log(recordString)

try this first:
const tlsVerMap= {2:‘SSLv2’, 768:‘SSLv3’, 769:‘TLSv1.0’, 770:‘TLSv1.1’, 771:‘TLSv1.2’, 772:‘TLSv1.3’},
sslVer = tlsVerMap[SSL.version];

debug ('\nTLS version : ’ + sslVer + ‘\n’ +
'Server: ’ + Flow.server.ipaddr + ‘\n’ +
'Client: ’ + Flow.client.ipaddr + ‘\n’ +
'L7 proto: ’ + Flow.l7proto + ‘\n’ );