Skip to content

Commit 9be5efe

Browse files
feat: 2.0.2
1 parent 1fe9f1a commit 9be5efe

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To prevent redundant notifications, Fence Tracker persists the last triggered st
2525

2626
- [**Node.js**](https://nodejs.org/)`20.14.0`_JavaScript runtime environment_
2727
- [**MySQL**](https://www.mysql.com/)`8.0`_Relational database_
28-
- [**Query Gateway**](https://github.com/gabrielmendezsoares/query-gateway)`3.0.2`_Configurable data query service_
28+
- [**Query Gateway**](https://github.com/gabrielmendezsoares/query-gateway)`3.0.3`_Configurable data query service_
2929

3030
### ⚙️ Setup
3131

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fence-tracker",
33
"private": true,
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"type": "module",
66
"license": "MIT",
77
"scripts": {

storage.sql.example

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ DROP TABLE IF EXISTS `sigma_cloud_alarm_events`;
2424
DROP TABLE IF EXISTS `sigma_cloud_d_guard_integration_layouts`;
2525
DROP TABLE IF EXISTS `sigma_cloud_d_guard_integration_workstations`;
2626
DROP TABLE IF EXISTS `sigma_cloud_d_guard_integration_servers`;
27+
DROP TABLE IF EXISTS `sigma_cloud_dispatches_tracker_triggers`;
2728
DROP TABLE IF EXISTS `sigma_cloud_neppo_integration_satisfaction_surveys`;
2829
DROP TABLE IF EXISTS `users`;
2930

@@ -270,8 +271,8 @@ CREATE TABLE `network_tracker_hosts` (
270271
`id` INT NOT NULL AUTO_INCREMENT,
271272
`ip` VARCHAR(255) NOT NULL UNIQUE,
272273
`description` VARCHAR(255) NOT NULL,
273-
`account_id` VARCHAR(255) NOT NULL,
274-
`partition_id` VARCHAR(255) NOT NULL,
274+
`account_id` INT UNSIGNED NOT NULL,
275+
`partition_id` INT UNSIGNED NOT NULL,
275276
`zone_id` INT UNSIGNED,
276277
`consecutive_successes` INT NOT NULL DEFAULT 0,
277278
`consecutive_failures` INT NOT NULL DEFAULT 0,
@@ -451,6 +452,21 @@ CREATE TABLE `sigma_cloud_d_guard_integration_workstations` (
451452
INDEX `idx_updated_at` (`updated_at`)
452453
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
453454

455+
CREATE TABLE `sigma_cloud_dispatches_tracker_triggers` (
456+
`id` INT NOT NULL AUTO_INCREMENT,
457+
`account_id` INT UNSIGNED NOT NULL UNIQUE,
458+
`quantity` INT UNSIGNED NOT NULL,
459+
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
460+
`updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
461+
462+
PRIMARY KEY (`id`),
463+
464+
INDEX `idx_account_id` (`account_id`),
465+
INDEX `idx_quantity` (`quantity`),
466+
INDEX `idx_created_at` (`created_at`),
467+
INDEX `idx_updated_at` (`updated_at`)
468+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
469+
454470
CREATE TABLE `sigma_cloud_neppo_integration_satisfaction_surveys` (
455471
`id` INT NOT NULL AUTO_INCREMENT,
456472
`sequential_id` INT UNSIGNED NOT NULL,

swagger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: 🚧 Fence Tracker
4-
version: 2.0.1
4+
version: 2.0.2
55
description: |
66
## 📋 Overview
77

0 commit comments

Comments
 (0)