1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-18 00:29:00 +09:00
MisskeyIO/src/models/instance.ts

91 lines
1.7 KiB
TypeScript
Raw Normal View History

2018-10-24 06:17:55 +09:00
import * as mongo from 'mongodb';
import db from '../db/mongodb';
const Instance = db.get<IInstance>('instances');
Instance.createIndex('host', { unique: true });
export default Instance;
export interface IInstance {
_id: mongo.ObjectID;
/**
*
*/
host: string;
/**
*
*/
caughtAt: Date;
/**
* (MastodonとかMisskeyとかPleromaとか)
*/
system: string;
/**
*
*/
usersCount: number;
/**
* 稿
*/
notesCount: number;
2019-02-07 15:00:44 +09:00
/**
*
*/
followingCount: number;
/**
*
*/
followersCount: number;
/**
* 使
*/
driveUsage: number;
/**
*
*/
driveFiles: number;
2019-02-07 15:00:44 +09:00
/**
2019-02-07 16:05:29 +09:00
*
2019-02-07 15:00:44 +09:00
*/
latestRequestSentAt?: Date;
/**
2019-02-07 16:05:29 +09:00
* HTTPステータスコード
2019-02-07 15:00:44 +09:00
*/
latestStatus?: number;
2019-02-07 16:05:29 +09:00
/**
*
*/
latestRequestReceivedAt?: Date;
/**
*
*/
isNotResponding: boolean;
/**
*
*/
lastCommunicatedAt: Date;
/**
*
*/
isBlocked: boolean;
/**
*
*/
isMarkedAsClosed: boolean;
2018-10-24 06:17:55 +09:00
}