repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use same lock values as mobile clients
[ProtonMail-WebClient.git]
/
packages
/
shared
/
lib
/
api
/
metrics.ts
blob
45418cb188c21dd2118cc2f3760b1d52f5b76033
1
import type { METRICS_LOG } from '../constants';
2
3
interface SendMetricsReportPayload {
4
Log: METRICS_LOG;
5
Title?: string;
6
Data?: any;
7
}
8
9
export const metrics = ({ Log, Title, Data }: SendMetricsReportPayload) => ({
10
method: 'post',
11
url: 'metrics',
12
data: { Log, Title, Data },
13
});