|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851 |
- CREATE TABLE `users` (
- `id` integer primary key autoincrement,
- `username` varchar(64) not null unique,
- `nickname` varchar(64) not null,
- `password` varchar(128) not null default '',
- `phone` varchar(16) not null default '',
- `email` varchar(64) not null default '',
- `portrait` varchar(255) not null default '',
- `roles` varchar(255) not null,
- `contacts` varchar(1024),
- `maintainer` tinyint(1) not null default 0,
- `belong` varchar(16) not null default '',
- `last_active_time` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_users_username ON `users` (username);
-
- insert into `users`(id, username, nickname, password, roles, create_at, create_by, update_at, update_by) values(1, 'root', '超管', 'root.2020', 'Admin', strftime('%s', 'now'), 'system', strftime('%s', 'now'), 'system');
-
- CREATE TABLE `user_group` (
- `id` integer primary key autoincrement,
- `name` varchar(128) not null default '',
- `note` varchar(255) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_user_group_create_by` ON `user_group` (`create_by` asc);
- CREATE INDEX `idx_user_group_update_at` ON `user_group` (`update_at` asc);
-
- insert into user_group(id, name, create_at, create_by, update_at, update_by) values(1, 'demo-root-group', strftime('%s', 'now'), 'root', strftime('%s', 'now'), 'root');
-
- CREATE TABLE `user_group_member` (
- `id` integer primary key autoincrement,
- `group_id` bigint unsigned not null,
- `user_id` bigint unsigned not null
- );
- CREATE INDEX `idx_user_group_member_group_id` ON `user_group_member` (`group_id` asc);
- CREATE INDEX `idx_user_group_member_user_id` ON `user_group_member` (`user_id` asc);
-
- insert into user_group_member(group_id, user_id) values(1, 1);
-
- CREATE TABLE `configs` (
- `id` integer primary key autoincrement,
- `ckey` varchar(191) not null,
- `cval` text not null,
- `note` varchar(1024) not null default '',
- `external` tinyint(1) not null default 0,
- `encrypted` tinyint(1) not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE TABLE `role` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique default '',
- `note` varchar(255) not null default ''
- );
-
- insert into `role`(name, note) values('Admin', 'Administrator role');
- insert into `role`(name, note) values('Standard', 'Ordinary user role');
- insert into `role`(name, note) values('Guest', 'Readonly user role');
-
-
- CREATE TABLE `role_operation`(
- `id` integer primary key autoincrement,
- `role_name` varchar(128) not null,
- `operation` varchar(191) not null
- );
- CREATE INDEX `idx_role_operation_role_name` ON `role_operation` (`role_name` asc);
- CREATE INDEX `idx_role_operation_operation` ON `role_operation` (`operation` asc);
-
- -- Admin is special, who has no concrete operation but can do anything.
- insert into `role_operation`(role_name, operation) values('Guest', '/metric/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/object/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/log/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/trace/explorer');
- insert into `role_operation`(role_name, operation) values('Guest', '/help/version');
- insert into `role_operation`(role_name, operation) values('Guest', '/help/contact');
-
- insert into `role_operation`(role_name, operation) values('Standard', '/metric/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/object/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/log/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/trace/explorer');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/version');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/contact');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/servers');
- insert into `role_operation`(role_name, operation) values('Standard', '/help/migrate');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules-built-in');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards-built-in');
- insert into `role_operation`(role_name, operation) values('Standard', '/trace/dependencies');
-
- insert into `role_operation`(role_name, operation) values('Admin', '/help/source');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/sso');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-tpls');
- insert into `role_operation`(role_name, operation) values('Admin', '/help/notification-settings');
-
- insert into `role_operation`(role_name, operation) values('Standard', '/users');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/user-groups/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/busi-groups/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/targets/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/dashboards/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-rules/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-mutes/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-subscribes/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-cur-events/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/alert-his-events');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tpls/del');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/job-tasks/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/add');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/put');
- insert into `role_operation`(role_name, operation) values('Standard', '/recording-rules/del');
-
- -- for alert_rule | collect_rule | mute | dashboard grouping
- CREATE TABLE `busi_group` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique,
- `label_enable` tinyint(1) not null default 0,
- `label_value` varchar(191) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- insert into busi_group(id, name, create_at, create_by, update_at, update_by) values(1, 'Default Busi Group', strftime('%s', 'now'), 'root', strftime('%s', 'now'), 'root');
-
- CREATE TABLE `busi_group_member` (
- `id` integer primary key autoincrement,
- `busi_group_id` bigint not null,
- `user_group_id` bigint not null,
- `perm_flag` char(2) not null
- );
- CREATE INDEX `idx_busi_group_member_busi_group_id` ON `busi_group_member` (`busi_group_id` asc);
- CREATE INDEX `idx_busi_group_member_user_group_id` ON `busi_group_member` (`user_group_id` asc);
-
- insert into busi_group_member(busi_group_id, user_group_id, perm_flag) values(1, 1, 'rw');
-
- -- for dashboard new version
- CREATE TABLE `board` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `name` varchar(191) not null,
- `ident` varchar(200) not null default '',
- `tags` varchar(255) not null,
- `public` tinyint(1) not null default 0,
- `built_in` tinyint(1) not null default 0,
- `hide` tinyint(1) not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default '',
- `public_cate` bigint not null default 0
- );
- CREATE UNIQUE INDEX idx_board_group_id_name ON `board` (group_id, name);
- CREATE INDEX `idx_board_ident` ON `board` (`ident` asc);
-
- -- for dashboard new version
- CREATE TABLE `board_payload` (
- `id` bigint unsigned not null unique,
- `payload` mediumtext not null
- );
-
- CREATE TABLE `chart` (
- `id` integer primary key autoincrement,
- `group_id` integer not null,
- `configs` text,
- `weight` integer not null default 0
- );
-
- CREATE INDEX idx_chart_group_id ON `chart` (group_id);
-
- CREATE TABLE `chart_share` (
- `id` integer primary key autoincrement,
- `cluster` varchar(128) not null,
- `datasource_id` bigint unsigned not null default 0,
- `configs` text,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_chart_share_create_at` ON `chart_share` (`create_at` asc);
-
- CREATE TABLE `alert_rule` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `cate` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `name` varchar(255) not null,
- `note` varchar(1024) not null default '',
- `prod` varchar(255) not null default '',
- `algorithm` varchar(255) not null default '',
- `algo_params` varchar(255),
- `delay` int not null default 0,
- `severity` tinyint(1) not null,
- `disabled` tinyint(1) not null,
- `prom_for_duration` int not null,
- `rule_config` text not null,
- `prom_ql` text not null,
- `prom_eval_interval` int not null,
- `enable_stime` varchar(255) not null default '00:00',
- `enable_etime` varchar(255) not null default '23:59',
- `enable_days_of_week` varchar(255) not null default '',
- `enable_in_bg` tinyint(1) not null default 0,
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_repeat_step` int not null default 0,
- `notify_max_number` int not null default 0,
- `recover_duration` int not null default 0 ,
- `callbacks` varchar(4096) not null default '',
- `runbook_url` varchar(4096),
- `append_tags` varchar(255) not null default '',
- `annotations` text not null,
- `extra_config` text not null,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default '',
- `cron_pattern` varchar(64),
- `datasource_queries` text
- );
- CREATE INDEX `idx_alert_rule_group_id` ON `alert_rule` (`group_id` asc);
- CREATE INDEX `idx_alert_rule_update_at` ON `alert_rule` (`update_at` asc);
-
- CREATE TABLE `alert_mute` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `prod` varchar(255) not null default '',
- `note` varchar(1024) not null default '',
- `cate` varchar(128) not null,
- `cluster` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `tags` varchar(4096) default '[]',
- `cause` varchar(255) not null default '',
- `btime` bigint not null default 0,
- `etime` bigint not null default 0,
- `disabled` tinyint(1) not null default 0,
- `mute_time_type` tinyint(1) not null default 0,
- `periodic_mutes` varchar(4096) not null default '',
- `severities` varchar(32) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_alert_mute_create_at` ON `alert_mute` (`create_at` asc);
- CREATE INDEX `idx_alert_mute_group_id` ON `alert_mute` (`group_id` asc);
-
- CREATE TABLE `alert_subscribe` (
- `id` integer primary key autoincrement,
- `name` varchar(255) not null default '',
- `disabled` tinyint(1) not null default 0,
- `group_id` bigint not null default 0,
- `prod` varchar(255) not null default '',
- `cate` varchar(128) not null,
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `rule_id` bigint not null default 0,
- `severities` varchar(32) not null default '',
- `tags` varchar(4096) not null default '',
- `redefine_severity` tinyint(1) default 0,
- `new_severity` tinyint(1) not null,
- `redefine_channels` tinyint(1) default 0,
- `new_channels` varchar(255) not null default '',
- `user_group_ids` varchar(250) not null,
- `busi_groups` VARCHAR(4096) NOT NULL DEFAULT '[]',
- `note` VARCHAR(1024) DEFAULT '',
- `rule_ids` VARCHAR(1024) DEFAULT '',
- `webhooks` text not null,
- `extra_config` text not null,
- `redefine_webhooks` tinyint(1) default 0,
- `for_duration` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_alert_subscribe_update_at` ON `alert_subscribe` (`update_at` asc);
- CREATE INDEX `idx_alert_subscribe_group_id` ON `alert_subscribe` (`group_id` asc);
-
-
- CREATE TABLE `target` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default 0,
- `ident` varchar(191) not null unique,
- `note` varchar(255) not null default '',
- `tags` varchar(512) not null default '',
- `host_ip` varchar(15) default '',
- `agent_version` varchar(255) default '',
- `host_tags` text,
- `engine_name` varchar(255) default '',
- `os` varchar(31) default '',
- `update_at` bigint not null default 0
- );
-
- CREATE INDEX `idx_target_group_id` ON `target` (`group_id` asc);
- CREATE UNIQUE INDEX idx_target_ident ON `target` (ident);
- CREATE INDEX idx_host_ip ON `target` (host_ip);
- CREATE INDEX idx_agent_version ON `target` (agent_version);
- CREATE INDEX idx_engine_name ON `target` (engine_name);
- CREATE INDEX idx_os ON `target` (os);
-
- CREATE TABLE `metric_view` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '',
- `cate` tinyint(1) not null,
- `configs` varchar(8192) not null default '',
- `create_at` bigint not null default 0,
- `create_by` bigint not null default 0,
- `update_at` bigint not null default 0
- );
- CREATE INDEX `idx_metric_view_create_by` ON `metric_view` (`create_by` asc);
-
- insert into metric_view(name, cate, configs) values('Host View', 0, '{"filters":[{"oper":"=","label":"__name__","value":"cpu_usage_idle"}],"dynamicLabels":[],"dimensionLabels":[{"label":"ident","value":""}]}');
-
- CREATE TABLE `recording_rule` (
- `id` integer primary key autoincrement,
- `group_id` bigint not null default '0',
- `datasource_ids` varchar(255) not null default '',
- `cluster` varchar(128) not null,
- `name` varchar(255) not null,
- `note` varchar(255) not null,
- `disabled` tinyint(1) not null default 0,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `cron_pattern` varchar(255) default '',
- `append_tags` varchar(255) default '',
- `query_configs` text not null,
- `create_at` bigint default '0',
- `create_by` varchar(64) default '',
- `update_at` bigint default '0',
- `update_by` varchar(64) default '',
- `datasource_queries` text
- );
- CREATE INDEX `idx_recording_rule_group_id` ON `recording_rule` (`group_id` asc);
- CREATE INDEX `idx_recording_rule_update_at` ON `recording_rule` (`update_at` asc);
-
- CREATE TABLE `alert_aggr_view` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '',
- `rule` varchar(2048) not null default '',
- `cate` tinyint(1) not null,
- `create_at` bigint not null default 0,
- `create_by` bigint not null default 0,
- `update_at` bigint not null default 0
- );
- CREATE INDEX `idx_alert_aggr_view_create_by` ON `alert_aggr_view` (`create_by` asc);
-
- insert into alert_aggr_view(name, rule, cate) values('By BusiGroup, Severity', 'field:group_name::field:severity', 0);
- insert into alert_aggr_view(name, rule, cate) values('By RuleName', 'field:rule_name', 0);
-
- CREATE TABLE `alert_cur_event` (
- `id` integer primary key autoincrement,
- `cate` varchar(128) not null,
- `datasource_id` bigint not null default 0,
- `cluster` varchar(128) not null,
- `group_id` bigint unsigned not null,
- `group_name` varchar(255) not null default '',
- `hash` varchar(64) not null,
- `rule_id` bigint unsigned not null,
- `rule_name` varchar(255) not null,
- `rule_note` varchar(2048) not null default 'alert rule note',
- `rule_prod` varchar(255) not null default '',
- `rule_algo` varchar(255) not null default '',
- `severity` tinyint(1) not null,
- `prom_for_duration` int not null,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `callbacks` varchar(255) not null default '',
- `runbook_url` varchar(255),
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_repeat_next` bigint not null default 0,
- `notify_cur_number` int not null default 0,
- `target_ident` varchar(191) not null default '',
- `target_note` varchar(191) not null default '',
- `first_trigger_time` bigint,
- `trigger_time` bigint not null,
- `trigger_value` varchar(2048) not null,
- `annotations` text not null,
- `rule_config` text not null,
- `tags` varchar(1024) not null default ''
- );
- CREATE INDEX `idx_alert_cur_event_hash` ON `alert_cur_event` (`hash` asc);
- CREATE INDEX `idx_alert_cur_event_rule_id` ON `alert_cur_event` (`rule_id` asc);
- CREATE INDEX `idx_alert_cur_event_trigger_time_group_id` ON `alert_cur_event` (`trigger_time`, `group_id` asc);
- CREATE INDEX `idx_alert_cur_event_notify_repeat_next` ON `alert_cur_event` (`notify_repeat_next` asc);
-
- CREATE TABLE `alert_his_event` (
- `id` integer primary key autoincrement,
- `is_recovered` tinyint(1) not null,
- `cate` varchar(128) not null,
- `datasource_id` bigint not null default 0,
- `cluster` varchar(128) not null,
- `group_id` bigint unsigned not null,
- `group_name` varchar(255) not null default '',
- `hash` varchar(64) not null,
- `rule_id` bigint unsigned not null,
- `rule_name` varchar(255) not null,
- `rule_note` varchar(2048) not null default 'alert rule note',
- `rule_prod` varchar(255) not null default '',
- `rule_algo` varchar(255) not null default '',
- `severity` tinyint(1) not null,
- `prom_for_duration` int not null,
- `prom_ql` varchar(8192) not null,
- `prom_eval_interval` int not null,
- `callbacks` varchar(255) not null default '',
- `runbook_url` varchar(255),
- `notify_recovered` tinyint(1) not null,
- `notify_channels` varchar(255) not null default '',
- `notify_groups` varchar(255) not null default '',
- `notify_cur_number` int not null default 0,
- `target_ident` varchar(191) not null default '',
- `target_note` varchar(191) not null default '',
- `first_trigger_time` bigint,
- `trigger_time` bigint not null,
- `trigger_value` varchar(2048) not null,
- `recover_time` bigint not null default 0,
- `last_eval_time` bigint not null default 0,
- `original_tags` varchar(8192),
- `tags` varchar(1024) not null default '',
- `annotations` text not null,
- `rule_config` text not null
- );
- CREATE INDEX `idx_alert_his_event_last_eval_time` ON `alert_his_event` (`last_eval_time` asc);
- CREATE INDEX `idx_alert_his_event_hash` ON `alert_his_event` (`hash` asc);
- CREATE INDEX `idx_alert_his_event_rule_id` ON `alert_his_event` (`rule_id` asc);
- CREATE INDEX `idx_alert_his_event_trigger_time_group_id` ON `alert_his_event` (`trigger_time`, `group_id` asc);
-
- CREATE TABLE `board_busigroup` (
- `busi_group_id` bigint(20) NOT NULL DEFAULT '0',
- `board_id` bigint(20) NOT NULL DEFAULT '0',
- primary key (`busi_group_id`, `board_id`)
- );
-
- CREATE TABLE `builtin_components` (
- `id` integer primary key autoincrement,
- `ident` varchar(191) not null,
- `logo` varchar(191) not null,
- `readme` text not null,
- `created_at` bigint(20) not null default 0,
- `created_by` varchar(191) not null default '',
- `updated_at` bigint(20) not null default 0,
- `updated_by` varchar(191) not null default ''
- );
- CREATE INDEX `idx_builtin_components_ident` ON `builtin_components` (`ident` asc);
-
- CREATE TABLE `builtin_payloads` (
- `id` integer primary key autoincrement,
- `component_id` integer not null default 0,
- `uuid` integer not null,
- `type` varchar(191) not null,
- `component` varchar(191) not null,
- `cate` varchar(191) not null,
- `name` varchar(191) not null,
- `tags` varchar(191) not null default '',
- `content` longtext not null,
- `created_at` bigint(20) not null default 0,
- `created_by` varchar(191) not null default '',
- `updated_at` bigint(20) not null default 0,
- `updated_by` varchar(191) not null default ''
- );
- CREATE INDEX `idx_builtin_payloads_component` ON `builtin_payloads` (`component` asc);
- CREATE INDEX `idx_builtin_payloads_name` ON `builtin_payloads` (`name` asc);
- CREATE INDEX `idx_builtin_payloads_cate` ON `builtin_payloads` (`cate` asc);
- CREATE INDEX `idx_builtin_payloads_type` ON `builtin_payloads` (`type` asc);
- CREATE INDEX idx_uuid ON `builtin_payloads` (uuid);
-
-
- CREATE TABLE `notification_record` (
- `id` integer primary key autoincrement,
- `event_id` integer not null,
- `sub_id` integer,
- `channel` varchar(255) not null,
- `status` integer,
- `target` varchar(1024) not null,
- `details` varchar(2048) default '',
- `created_at` integer not null
- );
- CREATE INDEX idx_evt ON notification_record (event_id);
-
- CREATE TABLE `task_tpl` (
- `id` integer primary key autoincrement,
- `group_id` int unsigned not null,
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `tags` varchar(255) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_task_tpl_group_id` ON `task_tpl` (`group_id` asc);
-
- CREATE TABLE `task_tpl_host` (
- `ii` integer primary key autoincrement,
- `id` int unsigned not null,
- `host` varchar(128) not null
- );
- CREATE INDEX `idx_task_tpl_host_id_host` ON `task_tpl_host` (`id`, `host` asc);
-
- CREATE TABLE `task_record` (
- `id` integer primary key autoincrement,
- `event_id` bigint not null default 0,
- `group_id` bigint not null,
- `ibex_address` varchar(128) not null,
- `ibex_auth_user` varchar(128) not null default '',
- `ibex_auth_pass` varchar(128) not null default '',
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default ''
- );
- CREATE INDEX `idx_task_record_create_at_group_id` ON `task_record` (`create_at`, `group_id` asc);
- CREATE INDEX `idx_task_record_create_by` ON `task_record` (`create_by` asc);
- CREATE INDEX `idx_task_record_event_id` ON `task_record` (`event_id` asc);
-
-
- CREATE TABLE `alerting_engines` (
- `id` integer primary key autoincrement,
- `instance` varchar(128) not null default '',
- `datasource_id` bigint not null default 0,
- `engine_cluster` varchar(128) not null default '',
- `clock` bigint not null
- );
-
- CREATE TABLE `datasource`
- (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null default '' unique,
- `description` varchar(255) not null default '',
- `category` varchar(255) not null default '',
- `plugin_id` int unsigned not null default 0,
- `plugin_type` varchar(255) not null default '',
- `plugin_type_name` varchar(255) not null default '',
- `cluster_name` varchar(255) not null default '',
- `settings` text not null,
- `status` varchar(255) not null default '',
- `http` varchar(4096) not null default '',
- `auth` varchar(8192) not null default '',
- `is_default` tinyint not null default 0,
- `created_at` bigint not null default 0,
- `created_by` varchar(64) not null default '',
- `updated_at` bigint not null default 0,
- `updated_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_datasource_name ON datasource (name);
-
- CREATE TABLE `builtin_cate` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null,
- `user_id` bigint not null default 0
- );
-
- CREATE TABLE `notify_tpl` (
- `id` integer primary key autoincrement,
- `channel` varchar(32) not null unique,
- `name` varchar(255) not null,
- `content` text not null,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE UNIQUE INDEX idx_notify_tpl_channel ON notify_tpl (channel);
-
- CREATE TABLE `sso_config` (
- `id` integer primary key autoincrement,
- `name` varchar(191) not null unique,
- `content` text not null,
- `update_at` bigint not null default 0
- );
-
- CREATE UNIQUE INDEX idx_sso_config_name ON sso_config (name);
-
- CREATE TABLE `es_index_pattern` (
- `id` integer primary key autoincrement,
- `datasource_id` bigint not null default 0,
- `name` varchar(191) not null,
- `time_field` varchar(128) not null default '@timestamp',
- `allow_hide_system_indices` tinyint(1) not null default 0,
- `fields_format` varchar(4096) not null default '',
- `cross_cluster_enabled` int not null default 0,
- `create_at` bigint default '0',
- `create_by` varchar(64) default '',
- `update_at` bigint default '0',
- `update_by` varchar(64) default '',
- unique (`datasource_id`, `name`)
- );
-
- CREATE UNIQUE INDEX idx_es_index_pattern_datasource_id_name ON es_index_pattern (datasource_id, name);
-
- CREATE TABLE `builtin_metrics` (
- `id` integer primary key autoincrement,
- `collector` varchar(191) NOT NULL,
- `typ` varchar(191) NOT NULL,
- `name` varchar(191) NOT NULL,
- `unit` varchar(191) NOT NULL,
- `lang` varchar(191) NOT NULL DEFAULT '',
- `note` varchar(4096) NOT NULL,
- `expression` varchar(4096) NOT NULL,
- `created_at` bigint NOT NULL DEFAULT 0,
- `created_by` varchar(191) NOT NULL DEFAULT '',
- `updated_at` bigint NOT NULL DEFAULT 0,
- `updated_by` varchar(191) NOT NULL DEFAULT '',
- `uuid integer` not null default 0
- );
-
- CREATE INDEX idx_collector ON builtin_metrics (collector);
- CREATE INDEX idx_typ ON builtin_metrics (typ);
- CREATE INDEX idx_builtinmetric_name ON builtin_metrics (name);
- CREATE INDEX idx_lang ON builtin_metrics (lang);
-
-
- CREATE TABLE `metric_filter` (
- `id` integer primary key autoincrement,
- `name` varchar(191) NOT NULL,
- `configs` varchar(4096) NOT NULL,
- `groups_perm` text,
- `create_at` bigint NOT NULL DEFAULT '0',
- `create_by` varchar(191) NOT NULL DEFAULT '',
- `update_at` bigint NOT NULL DEFAULT '0',
- `update_by` varchar(191) NOT NULL DEFAULT ''
- );
- CREATE INDEX `idx_metric_filter_name` ON `metric_filter` (`name` asc);
-
- CREATE TABLE `target_busi_group` (
- `id` integer primary key autoincrement,
- `target_ident` varchar(191) not null,
- `group_id` integer not null,
- `update_at` integer not null
- );
-
- CREATE UNIQUE INDEX idx_target_busi_group ON target_busi_group (target_ident, group_id);
-
-
- CREATE TABLE `dash_annotation` (
- `id` integer primary key autoincrement,
- `dashboard_id` bigint not null,
- `panel_id` varchar(191) not null,
- `tags` text,
- `description` text,
- `config` text,
- `time_start` bigint not null default 0,
- `time_end` bigint not null default 0,
- `create_at` bigint not null default 0,
- `create_by` varchar(64) not null default '',
- `update_at` bigint not null default 0,
- `update_by` varchar(64) not null default ''
- );
-
- CREATE TABLE `task_meta`
- (
- `id` integer primary key autoincrement,
- `title` varchar(255) not null default '',
- `account` varchar(64) not null,
- `batch` int unsigned not null default 0,
- `tolerance` int unsigned not null default 0,
- `timeout` int unsigned not null default 0,
- `pause` varchar(255) not null default '',
- `script` text not null,
- `args` varchar(512) not null default '',
- `stdin` varchar(1024) not null default '',
- `creator` varchar(64) not null default '',
- `created` timestamp not null default CURRENT_TIMESTAMP
- );
- CREATE INDEX `idx_task_meta_creator` ON `task_meta` (`creator` asc);
- CREATE INDEX `idx_task_meta_created` ON `task_meta` (`created` asc);
-
-
- /* start|cancel|kill|pause */
- CREATE TABLE `task_action`
- (
- `id` integer primary key autoincrement,
- `action` varchar(32) not null,
- `clock` bigint not null default 0
- );
-
- CREATE TABLE `task_scheduler`
- (
- `id` bigint unsigned not null,
- `scheduler` varchar(128) not null default ''
- );
- CREATE INDEX `idx_task_scheduler_id_scheduler` ON `task_scheduler` (`id`, `scheduler` asc);
-
- CREATE TABLE `task_scheduler_health`
- (
- `scheduler` varchar(128) not null unique,
- `clock` bigint not null
- );
- CREATE INDEX `idx_task_scheduler_health_clock` ON `task_scheduler_health` (`clock` asc);
-
- CREATE TABLE `task_host_doing`
- (
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `clock` bigint not null default 0,
- `action` varchar(16) not null
- );
- CREATE INDEX `idx_task_host_doing_id` ON `task_host_doing` (`id` asc);
- CREATE INDEX `idx_task_host_doing_host` ON `task_host_doing` (`host` asc);
-
- CREATE TABLE task_host_0
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_1
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_2
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_3
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_4
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_5
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_6
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_7
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_8
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_9
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_10
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_11
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_12
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_13
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_14
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_15
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_16
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_17
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_18
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_19
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_20
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_21
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_22
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_23
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_24
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_25
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_26
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_27
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_28
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_29
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_30
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_31
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_32
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_33
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_34
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_35
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_36
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_37
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_38
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_39
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_40
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_41
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_42
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_43
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_44
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_45
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_46
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_47
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_48
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_49
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_50
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_51
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_52
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_53
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_54
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_55
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_56
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_57
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_58
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_59
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_60
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_61
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_62
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_63
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_64
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_65
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_66
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_67
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_68
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_69
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_70
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_71
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_72
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_73
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_74
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_75
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_76
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_77
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_78
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_79
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_80
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_81
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_82
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_83
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_84
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_85
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_86
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_87
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_88
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_89
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_90
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_91
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_92
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_93
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_94
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_95
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_96
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_97
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_98
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
-
- CREATE TABLE task_host_99
- (
- `ii` integer primary key autoincrement,
- `id` bigint unsigned not null,
- `host` varchar(128) not null,
- `status` varchar(32) not null,
- `stdout` text,
- `stderr` text,
- unique (`id`, `host`)
- );
|