add sg telemetry command to interact with usage data
Created by: coury-clark
Adds a utility sg telemetry
to help create and remove events from the allow list
Test plan
Lots of CLI testing
Example output
sg telemetry allowlist remove
generating output...
DELETE FROM event_logs_export_allowlist WHERE event_name IN (SELECT * FROM UNNEST('{TEXT,ABC,DEF}'::TEXT[]));
revert:
INSERT INTO event_logs_export_allowlist (event_name) VALUES (UNNEST('{TEXT,ABC,DEF}'::TEXT[])) ON CONFLICT DO NOTHING;