import autobind from 'autobind-decorator'; import Chart, { KVs } from '../core'; import { name, schema } from './entities/ap-request'; /** * Chart about ActivityPub requests */ // eslint-disable-next-line import/no-default-export export default class ApRequestChart extends Chart { constructor() { super(name, schema); } @autobind protected async tickMajor(): Promise>> { return {}; } @autobind protected async tickMinor(): Promise>> { return {}; } @autobind public async deliverSucc(): Promise { await this.commit({ 'deliverSucceeded': 1, }); } @autobind public async deliverFail(): Promise { await this.commit({ 'deliverFailed': 1, }); } @autobind public async inbox(): Promise { await this.commit({ 'inboxReceived': 1, }); } }