Skip to content

Commit

Permalink
docs: 0.13 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo authored Nov 7, 2024
1 parent 579fe4c commit 2f70365
Show file tree
Hide file tree
Showing 117 changed files with 963 additions and 5,056 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ repos:
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
- --maxkb=1000
- id: check-toml
- id: check-yaml
args:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
---
title: Expressions Cheatsheet
description: A cheatsheet of all the expressions supported by Tracecat.
title: Functions
description: A cheatsheet of all operators and functions supported by Tracecat.
---

## Expressions
## Operators

| Expression | Arguments | Description |
| Operator | Description |
| -------- | --------------------------------------------------------------- |
| `\|\|` | Logical OR operation. |
| `&&` | Logical AND operation. |
| `==` | Check if a is equal to b. |
| `!=` | Check if a is not equal to b. |
| `<` | Check if a is less than b. |
| `<=` | Check if a is less than or equal to b. |
| `>` | Check if a is greater than b. |
| `>=` | Check if a is greater than or equal to b. |
| `+` | Add two numbers together. |
| `-` | Subtract second number from first number. |
| `*` | Multiply two numbers together. |
| `/` | Divide first number by second number. |
| `%` | Calculate modulo (remainder) of first number divided by second. |
| `!` | Logical NOT operation. |

## Functions

| Function | Arguments | Description |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `slice` | (x: str, start_index: int, length: int) -> str | Extract a substring from start_index with given length. |
| `less_than` | (a: Any, b: Any) -> bool | Check if a is less than b. |
Expand Down Expand Up @@ -66,22 +85,3 @@ description: A cheatsheet of all the expressions supported by Tracecat.
| `ipv4_is_public` | (ipv4: str) -> bool | Check if IPv4 address is public/global. |
| `ipv6_is_public` | (ipv6: str) -> bool | Check if IPv6 address is public/global. |
| `check_ip_version` | (ip: str) -> int | Get IP address version (4 or 6). |

## Built-in Operators

| Operator | Description |
| -------- | --------------------------------------------------------------- |
| `\|\|` | Logical OR operation. |
| `&&` | Logical AND operation. |
| `==` | Check if a is equal to b. |
| `!=` | Check if a is not equal to b. |
| `<` | Check if a is less than b. |
| `<=` | Check if a is less than or equal to b. |
| `>` | Check if a is greater than b. |
| `>=` | Check if a is greater than or equal to b. |
| `+` | Add two numbers together. |
| `-` | Subtract second number from first number. |
| `*` | Multiply two numbers together. |
| `/` | Divide first number by second number. |
| `%` | Calculate modulo (remainder) of first number divided by second. |
| `!` | Logical NOT operation. |
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Secrets Cheatsheet
description: A cheatsheet of all the secrets required by the UDFs and integrations.
title: Integrations
description: A cheatsheet of all the integrations and their required secrets.
---
## API Credentials
The secret keys required by each secret are listed below.
Expand Down
87 changes: 0 additions & 87 deletions docs/concepts/actions.mdx

This file was deleted.

88 changes: 0 additions & 88 deletions docs/concepts/case-management.mdx

This file was deleted.

Loading

0 comments on commit 2f70365

Please sign in to comment.