Improve chart engine (#8253)
* wip * wip * wip * wip * wip * wip * wip * Update core.ts * wip * wip * #7361 * delete network chart * federationChart強化 apRequestChart追加 * tweak
This commit is contained in:
parent
0b462feff6
commit
c1b264e4e9
65 changed files with 1616 additions and 1756 deletions
|
|
@ -4,7 +4,7 @@ import request from '@/remote/activitypub/request';
|
|||
import { registerOrFetchInstanceDoc } from '@/services/register-or-fetch-instance-doc';
|
||||
import Logger from '@/services/logger';
|
||||
import { Instances } from '@/models/index';
|
||||
import { instanceChart } from '@/services/chart/index';
|
||||
import { apRequestChart, federationChart, instanceChart } from '@/services/chart/index';
|
||||
import { fetchInstanceMetadata } from '@/services/fetch-instance-metadata';
|
||||
import { fetchMeta } from '@/misc/fetch-meta';
|
||||
import { toPuny } from '@/misc/convert-host';
|
||||
|
|
@ -61,6 +61,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
|||
fetchInstanceMetadata(i);
|
||||
|
||||
instanceChart.requestSent(i.host, true);
|
||||
apRequestChart.deliverSucc();
|
||||
federationChart.deliverd(i.host);
|
||||
});
|
||||
|
||||
return 'Success';
|
||||
|
|
@ -74,6 +76,7 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
|||
});
|
||||
|
||||
instanceChart.requestSent(i.host, false);
|
||||
apRequestChart.deliverFail();
|
||||
});
|
||||
|
||||
if (res instanceof StatusError) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue