Created
October 2, 2022 21:07
-
-
Save nathanclevenger/c4f88c7500b712215c8ef5a33e4abd0d to your computer and use it in GitHub Desktop.
Analytics Engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import db from 'https://pkg.do/analytics.engine.do' | |
const schema = ({domain, dns, ip, geoIp, geoHtml, webServer, hostname, emails, alexa, phone, majestic, discovered}) => | |
(req, env) => env.ZONES.writeDataPoint({ | |
indexes: [domain, dns, ip], | |
blobs: [geoIp, geoHtml, webServer, hostname, emails, phone, discovered], | |
doubles: [alexa, majestic], | |
} | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment