Seq.App.SendGrid
1.0.1-pre6
See the version list below for details.
dotnet add package Seq.App.SendGrid --version 1.0.1-pre6
NuGet\Install-Package Seq.App.SendGrid -Version 1.0.1-pre6
<PackageReference Include="Seq.App.SendGrid" Version="1.0.1-pre6" />
paket add Seq.App.SendGrid --version 1.0.1-pre6
#r "nuget: Seq.App.SendGrid, 1.0.1-pre6"
// Install Seq.App.SendGrid as a Cake Addin #addin nuget:?package=Seq.App.SendGrid&version=1.0.1-pre6&prerelease // Install Seq.App.SendGrid as a Cake Tool #tool nuget:?package=Seq.App.SendGrid&version=1.0.1-pre6&prerelease
<img src="https://raw.githubusercontent.com/JasonSweatt/seq-app-sendgrid/main/.github/images/seq-app-sendGrid.png" width="30" /> Seq.App.SendGrid
SendGrid email templates
The app uses Handlebars.Net for email templating. Check out the Handlebars Guide for information on the Handlebars syntax.
Event types and properties
All templates can access the following special properties:
$DateTimeFormat
— the date/time format string defined in the app's settings$EventType
— the numeric event type assigned to the event$EventUri
— a link to the event in the Seq UI (not valid for alerts)$Exception
— the exception associated with the event, if any$Id
— the Seq event id$Instance
— the Seq server's instance name, if any$Level
— the event's level as a string$LocalTimestamp
— the timestamp of the event, in the server's time zone (deprecated)$Message
— the event's fully-rendered message$MessageTemplate
— the event's message template$Properties
— a dictionary containing all first-class event properties (see below)$ServerUri
— the Seq server's base URL$TimeZoneName
— the time zone name defined in the app's settings$UtcTimestamp
— the timestamp of the event
The event's first-class properties do not use prefixed $
names, so if an event carries a RequestId
property, this is accessed in the template as {{RequestId}}
, not {{$RequestId}}
.
Notifications for Alerts can use the properties listed in the Seq documentation.
Event types and properties for Templating using SendGrid Templates
- Helpers are defined here
- All above values are supported just remove the $ from the key name
Built-in helper functions
The app makes the following helper functions available in templates.
Name | Description | Example usage |
---|---|---|
datetime |
Format a date time, optionally specifying a time zone | {{datetime $SliceStart 'o' 'Australia/Brisbane'}} |
if_eq |
Compare two values for equality and optionally execute a specified block | {{#if_eq $Level 'Error'}} Oops! {{/if_eq}} |
pretty |
Pretty-print a value, converting arrays and objects to JSON | {{pretty Results}} |
substring |
Compute a substring given start index and optional length | {{substring Uri 0 5}} |
Other Seq apps
This repository originally included the following apps from Datalust, each now in their own dedicated repositories:
- File Archive - html email using smtp
- Helpers are defined here.
- File Archive - write incoming events into a set of rolling text files
- First of Type - raise an event the first time a new event type is seen
- Replication - forward incoming events to another Seq server
- Thresholds - raise an event if the frequency of matched events exceeds a threshold
- Digest Email - send multiple events as a single HTML email
- Health Check Input - periodically GET an HTTP resource and write response metrics to Seq
- GELF Input - ingest events GELF format over TCP or UDP
- JSON Archive - write incoming events into a set of rolling files, in JSON format
- RabbitMQ Input - ingest events from RabbitMQ
- Syslog Input - ingest syslog events over UDP
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Handlebars.Net (>= 2.1.4)
- Newtonsoft.Json (>= 13.0.3)
- SendGrid (>= 9.28.1)
- Seq.Apps (>= 2023.4.0)
- Serilog (>= 3.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 205 | 12/20/2023 |
1.0.1-pre9 | 91 | 12/20/2023 |
1.0.1-pre7 | 81 | 12/20/2023 |
1.0.1-pre6 | 91 | 12/19/2023 |
1.0.1-pre5 | 84 | 12/19/2023 |
1.0.1-pre4 | 89 | 12/19/2023 |
1.0.1-pre2 | 86 | 12/19/2023 |
1.0.1-pre10 | 82 | 12/20/2023 |
- Update dependencies