41 lines
830 B
Markdown
41 lines
830 B
Markdown
# DSL Documentation Guide
|
|
|
|
## DiagnosticService
|
|
The `DiagnosticService` is the core component for managing diagnostics in the system.
|
|
It allows you to define diagnostic rules and actions.
|
|
|
|
Example:
|
|
```dsl
|
|
DiagnosticService {
|
|
rule "CheckEngineLight" {
|
|
condition: engine.status == ERROR
|
|
action: notify("Engine error detected")
|
|
}
|
|
}
|
|
```
|
|
|
|
## NotificationService
|
|
The `NotificationService` handles sending notifications to various channels.
|
|
|
|
Example:
|
|
```dsl
|
|
NotificationService {
|
|
channel "Email" {
|
|
address: "admin@example.com"
|
|
}
|
|
}
|
|
```
|
|
|
|
## DataProcessor
|
|
The `DataProcessor` is used for processing incoming data streams.
|
|
It supports various transformation functions.
|
|
|
|
Example:
|
|
```dsl
|
|
DataProcessor {
|
|
input: "sensor_data"
|
|
transform: map(value -> value * 2)
|
|
output: "processed_data"
|
|
}
|
|
```
|