summaryrefslogtreecommitdiff
path: root/packages/backend/src/services/chart/charts/entities/instance.ts
blob: 0ff9e7b6b833485077364b9638241d3f3a89af0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Chart from '../../core';

export const name = 'instance';

export const schema = {
	'requests.failed': { range: 'small' },
	'requests.succeeded': { range: 'small' },
	'requests.received': { range: 'small' },
	'notes.total': { accumulate: true },
	'notes.inc': {},
	'notes.dec': {},
	'notes.diffs.normal': {},
	'notes.diffs.reply': {},
	'notes.diffs.renote': {},
	'users.total': { accumulate: true },
	'users.inc': { range: 'small' },
	'users.dec': { range: 'small' },
	'following.total': { accumulate: true },
	'following.inc': { range: 'small' },
	'following.dec': { range: 'small' },
	'followers.total': { accumulate: true },
	'followers.inc': { range: 'small' },
	'followers.dec': { range: 'small' },
	'drive.totalFiles': { accumulate: true },
	'drive.incFiles': {},
	'drive.decFiles': {},
	'drive.incUsage': {}, // in kilobyte
	'drive.decUsage': {}, // in kilobyte
} as const;

export const entity = Chart.schemaToEntity(name, schema, true);