Fixed 267U.pre2
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "activeUsers";
|
||||
export const schema = {
|
||||
readWrite: {
|
||||
intersection: [
|
||||
"read",
|
||||
"write"
|
||||
],
|
||||
range: "small"
|
||||
},
|
||||
read: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
write: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredWithinWeek: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredWithinMonth: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredWithinYear: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredOutsideWeek: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredOutsideMonth: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
registeredOutsideYear: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,8 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "apRequest";
|
||||
export const schema = {
|
||||
deliverFailed: {},
|
||||
deliverSucceeded: {},
|
||||
inboxReceived: {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,13 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "drive";
|
||||
export const schema = {
|
||||
"local.incCount": {},
|
||||
"local.incSize": {},
|
||||
"local.decCount": {},
|
||||
"local.decSize": {},
|
||||
"remote.incCount": {},
|
||||
"remote.incSize": {},
|
||||
"remote.decCount": {},
|
||||
"remote.decSize": {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,37 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "federation";
|
||||
export const schema = {
|
||||
deliveredInstances: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
inboxInstances: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
stalled: {
|
||||
uniqueIncrement: true,
|
||||
range: "small"
|
||||
},
|
||||
sub: {
|
||||
accumulate: true,
|
||||
range: "small"
|
||||
},
|
||||
pub: {
|
||||
accumulate: true,
|
||||
range: "small"
|
||||
},
|
||||
pubsub: {
|
||||
accumulate: true,
|
||||
range: "small"
|
||||
},
|
||||
subActive: {
|
||||
accumulate: true,
|
||||
range: "small"
|
||||
},
|
||||
pubActive: {
|
||||
accumulate: true,
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,11 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "hashtag";
|
||||
export const schema = {
|
||||
"local.users": {
|
||||
uniqueIncrement: true
|
||||
},
|
||||
"remote.users": {
|
||||
uniqueIncrement: true
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,57 @@
|
||||
import Chart from "../../core.js";
|
||||
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": {},
|
||||
"notes.diffs.withFile": {},
|
||||
"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": {},
|
||||
"drive.decUsage": {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,23 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "notes";
|
||||
export const schema = {
|
||||
"local.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"local.inc": {},
|
||||
"local.dec": {},
|
||||
"local.diffs.normal": {},
|
||||
"local.diffs.reply": {},
|
||||
"local.diffs.renote": {},
|
||||
"local.diffs.withFile": {},
|
||||
"remote.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"remote.inc": {},
|
||||
"remote.dec": {},
|
||||
"remote.diffs.normal": {},
|
||||
"remote.diffs.reply": {},
|
||||
"remote.diffs.renote": {},
|
||||
"remote.diffs.withFile": {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,19 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "perUserDrive";
|
||||
export const schema = {
|
||||
totalCount: {
|
||||
accumulate: true
|
||||
},
|
||||
totalSize: {
|
||||
accumulate: true
|
||||
},
|
||||
incCount: {
|
||||
range: "small"
|
||||
},
|
||||
incSize: {},
|
||||
decCount: {
|
||||
range: "small"
|
||||
},
|
||||
decSize: {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,41 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "perUserFollowing";
|
||||
export const schema = {
|
||||
"local.followings.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"local.followings.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"local.followings.dec": {
|
||||
range: "small"
|
||||
},
|
||||
"local.followers.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"local.followers.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"local.followers.dec": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.followings.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"remote.followings.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.followings.dec": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.followers.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"remote.followers.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.followers.dec": {
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,26 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "perUserNotes";
|
||||
export const schema = {
|
||||
total: {
|
||||
accumulate: true
|
||||
},
|
||||
inc: {
|
||||
range: "small"
|
||||
},
|
||||
dec: {
|
||||
range: "small"
|
||||
},
|
||||
"diffs.normal": {
|
||||
range: "small"
|
||||
},
|
||||
"diffs.reply": {
|
||||
range: "small"
|
||||
},
|
||||
"diffs.renote": {
|
||||
range: "small"
|
||||
},
|
||||
"diffs.withFile": {
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,11 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "perUserReaction";
|
||||
export const schema = {
|
||||
"local.count": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.count": {
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,10 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "testGrouped";
|
||||
export const schema = {
|
||||
"foo.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"foo.inc": {},
|
||||
"foo.dec": {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema, true);
|
||||
@@ -0,0 +1,17 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "testIntersection";
|
||||
export const schema = {
|
||||
a: {
|
||||
uniqueIncrement: true
|
||||
},
|
||||
b: {
|
||||
uniqueIncrement: true
|
||||
},
|
||||
aAndB: {
|
||||
intersection: [
|
||||
"a",
|
||||
"b"
|
||||
]
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,8 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "testUnique";
|
||||
export const schema = {
|
||||
foo: {
|
||||
uniqueIncrement: true
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,10 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "test";
|
||||
export const schema = {
|
||||
"foo.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"foo.inc": {},
|
||||
"foo.dec": {}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
@@ -0,0 +1,23 @@
|
||||
import Chart from "../../core.js";
|
||||
export const name = "users";
|
||||
export const schema = {
|
||||
"local.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"local.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"local.dec": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.total": {
|
||||
accumulate: true
|
||||
},
|
||||
"remote.inc": {
|
||||
range: "small"
|
||||
},
|
||||
"remote.dec": {
|
||||
range: "small"
|
||||
}
|
||||
};
|
||||
export const entity = Chart.schemaToEntity(name, schema);
|
||||
Reference in New Issue
Block a user