summaryrefslogtreecommitdiff
path: root/src/services/chart/charts/schemas/active-users.ts
blob: 6e26bb469815ad98aa43e27e9292e61ab988f922 (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
32
export const logSchema = {
	/**
	 * アクティブユーザー数
	 */
	count: {
		type: 'number' as const,
		optional: false as const, nullable: false as const,
		description: 'アクティブユーザー数',
	},
};

/**
 * アクティブユーザーに関するチャート
 */
export const schema = {
	type: 'object' as const,
	optional: false as const, nullable: false as const,
	properties: {
		local: {
			type: 'object' as const,
			optional: false as const, nullable: false as const,
			properties: logSchema
		},
		remote: {
			type: 'object' as const,
			optional: false as const, nullable: false as const,
			properties: logSchema
		},
	}
};

export const name = 'activeUsers';