vigil_reporter 1.0.0 vigil_reporter: ^1.0.0 copied to clipboard
Vigil Reporter for Dart. Used in pair with Vigil, the Microservices Status Page.
import 'dart:io';
import 'package:vigil_reporter/src/base.dart';
void main() {
final reporter = VigilReporter(
url: 'https://status.pikomit.com',
token: '9HtpYiTj&q&X8DSRQzSXbAoYp@3SRczgsiaPLeek',
probeId: 'app',
nodeId: 'odin',
replicaId: 'test',
);
ProcessSignal.sigint.watch().listen((event) async {
await reporter.end(flush: true);
exit(0);
});
}