mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-04 09:11:34 -07:00
@@ -202,6 +202,7 @@ User-editable text box that persists changes to the database (typically `UserDat
|
|||||||
### Styled/Transformed Types
|
### Styled/Transformed Types
|
||||||
|
|
||||||
#### `label` with `threshold`
|
#### `label` with `threshold`
|
||||||
|
|
||||||
Color-codes values based on ranges. Useful for status codes, latency, capacity percentages.
|
Color-codes values based on ranges. Useful for status codes, latency, capacity percentages.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -237,6 +238,7 @@ Color-codes values based on ranges. Useful for status codes, latency, capacity p
|
|||||||
```
|
```
|
||||||
|
|
||||||
**How it works:**
|
**How it works:**
|
||||||
|
|
||||||
- Value `150` → Purple (≤199)
|
- Value `150` → Purple (≤199)
|
||||||
- Value `250` → Green (≤299)
|
- Value `250` → Green (≤299)
|
||||||
- Value `350` → Orange (≤399)
|
- Value `350` → Orange (≤399)
|
||||||
@@ -298,8 +300,8 @@ Applies a regular expression to extract/transform values.
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Input:** `Host: 192.168.1.100 Port: 8080`
|
- **Input:** `Host: 192.168.1.100 Port: 8080`
|
||||||
**Output:** `192.168.1.100`
|
- **Output:** `192.168.1.100`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -334,8 +336,8 @@ Evaluates JavaScript code with access to the column value (use `${value}` or `{v
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Input:** `42`
|
- **Input:** `42`
|
||||||
**Output:** **42** units
|
- **Output:** **42** units
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -360,6 +362,7 @@ You can chain multiple transformations with dot notation:
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Flow:**
|
**Flow:**
|
||||||
|
|
||||||
1. Apply regex to extract `192.168.1.50` from input
|
1. Apply regex to extract `192.168.1.50` from input
|
||||||
2. Create HTTP/HTTPS links for that host
|
2. Create HTTP/HTTPS links for that host
|
||||||
|
|
||||||
@@ -390,6 +393,7 @@ Use SQL query results to populate dropdown options:
|
|||||||
```
|
```
|
||||||
|
|
||||||
The SQL query must return exactly **2 columns:**
|
The SQL query must return exactly **2 columns:**
|
||||||
|
|
||||||
- **First column (id):** Option value
|
- **First column (id):** Option value
|
||||||
- **Second column (name):** Display label
|
- **Second column (name):** Display label
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user