|
366 | 366 | )); |
367 | 367 |
|
368 | 368 |
|
| 369 | +/**************************************** |
| 370 | + * Define: statusengine_service_notifications_log |
| 371 | + ***************************************/ |
| 372 | +$table = $schema->createTable("statusengine_service_notifications_log"); |
| 373 | +$table->addOption("table_options", ["number_of_replicas" => "0"]); |
| 374 | +$table->addOption("sharding_num_shards" , 4); |
| 375 | +$table->addOption("partition_columns" , "array ( |
| 376 | + 0 => 'day', |
| 377 | +)"); |
| 378 | +$table->addColumn("hostname", "string", array ( |
| 379 | + 'notnull' => false, |
| 380 | + 'default' => NULL, |
| 381 | +)); |
| 382 | +$table->addColumn("service_description", "string", array ( |
| 383 | + 'notnull' => false, |
| 384 | + 'default' => NULL, |
| 385 | +)); |
| 386 | +$table->addColumn("start_time", "timestamp", array ( |
| 387 | + 'notnull' => false, |
| 388 | + 'default' => NULL, |
| 389 | +)); |
| 390 | +$table->addColumn("end_time", "timestamp", array ( |
| 391 | + 'notnull' => false, |
| 392 | + 'default' => NULL, |
| 393 | +)); |
| 394 | +$table->addColumn("state", "integer", array ( |
| 395 | + 'notnull' => false, |
| 396 | + 'default' => NULL, |
| 397 | +)); |
| 398 | +$table->addColumn("reason_type", "integer", array ( |
| 399 | + 'notnull' => false, |
| 400 | + 'default' => NULL, |
| 401 | +)); |
| 402 | +$table->addColumn("is_escalated", "boolean", array ( |
| 403 | + 'notnull' => false, |
| 404 | + 'default' => NULL, |
| 405 | +)); |
| 406 | +$table->addColumn("contacts_notified_count", "integer", array ( |
| 407 | + 'notnull' => false, |
| 408 | + 'default' => NULL, |
| 409 | +)); |
| 410 | +$table->addColumn("output", "string", array ( |
| 411 | + 'notnull' => false, |
| 412 | + 'default' => NULL, |
| 413 | +)); |
| 414 | +$table->addColumn("ack_author", "string", array ( |
| 415 | + 'notnull' => false, |
| 416 | + 'default' => NULL, |
| 417 | +)); |
| 418 | +$table->addColumn("ack_data", "string", array ( |
| 419 | + 'notnull' => false, |
| 420 | + 'default' => NULL, |
| 421 | +)); |
| 422 | +$table->addColumn("day", "timestamp", array ( |
| 423 | + 'notnull' => false, |
| 424 | + 'default' => NULL, |
| 425 | +)); |
| 426 | + |
369 | 427 |
|
370 | 428 | /**************************************** |
371 | 429 | * Define: statusengine_hoststatus |
|
741 | 799 | 'default' => NULL, |
742 | 800 | )); |
743 | 801 |
|
744 | | - |
| 802 | +/**************************************** |
| 803 | + * Define: statusengine_host_notifications_log |
| 804 | + ***************************************/ |
| 805 | +$table = $schema->createTable("statusengine_host_notifications_log"); |
| 806 | +$table->addOption("table_options", ["number_of_replicas" => "0"]); |
| 807 | +$table->addOption("sharding_num_shards" , 4); |
| 808 | +$table->addOption("partition_columns" , "array ( |
| 809 | + 0 => 'day', |
| 810 | +)"); |
| 811 | +$table->addColumn("hostname", "string", array ( |
| 812 | + 'notnull' => false, |
| 813 | + 'default' => NULL, |
| 814 | +)); |
| 815 | +$table->addColumn("start_time", "timestamp", array ( |
| 816 | + 'notnull' => false, |
| 817 | + 'default' => NULL, |
| 818 | +)); |
| 819 | +$table->addColumn("end_time", "timestamp", array ( |
| 820 | + 'notnull' => false, |
| 821 | + 'default' => NULL, |
| 822 | +)); |
| 823 | +$table->addColumn("state", "integer", array ( |
| 824 | + 'notnull' => false, |
| 825 | + 'default' => NULL, |
| 826 | +)); |
| 827 | +$table->addColumn("reason_type", "integer", array ( |
| 828 | + 'notnull' => false, |
| 829 | + 'default' => NULL, |
| 830 | +)); |
| 831 | +$table->addColumn("is_escalated", "boolean", array ( |
| 832 | + 'notnull' => false, |
| 833 | + 'default' => NULL, |
| 834 | +)); |
| 835 | +$table->addColumn("contacts_notified_count", "integer", array ( |
| 836 | + 'notnull' => false, |
| 837 | + 'default' => NULL, |
| 838 | +)); |
| 839 | +$table->addColumn("output", "string", array ( |
| 840 | + 'notnull' => false, |
| 841 | + 'default' => NULL, |
| 842 | +)); |
| 843 | +$table->addColumn("ack_author", "string", array ( |
| 844 | + 'notnull' => false, |
| 845 | + 'default' => NULL, |
| 846 | +)); |
| 847 | +$table->addColumn("ack_data", "string", array ( |
| 848 | + 'notnull' => false, |
| 849 | + 'default' => NULL, |
| 850 | +)); |
| 851 | +$table->addColumn("day", "timestamp", array ( |
| 852 | + 'notnull' => false, |
| 853 | + 'default' => NULL, |
| 854 | +)); |
745 | 855 |
|
746 | 856 | /**************************************** |
747 | 857 | * Define: statusengine_service_acknowledgements |
|
0 commit comments