vigil_reporter 1.2.1 copy "vigil_reporter: ^1.2.1" to clipboard
vigil_reporter: ^1.2.1 copied to clipboard

Vigil Reporter for Dart. Used in pair with Vigil, the Microservices Status Page.

example/example.dart

import 'dart:io';

import 'package:vigil_reporter/vigil_reporter.dart';

void main() {
  final vigilReporter = VigilReporter(
    url: 'https://status.example.com',
    token: 'YOUR_TOKEN_SECRET',
    probeId: 'relay',
    nodeId: 'socket-client',
    replicaId: '192.168.1.10',
    interval: 30,
    logger: VigilLogger(),
  );

  ProcessSignal.sigint.watch().listen((event) async {
    await vigilReporter.end(flush: true);
    exit(0);
  });
}
2
likes
150
pub points
0%
popularity

Publisher

verified publisherjonasroussel.com

Vigil Reporter for Dart. Used in pair with Vigil, the Microservices Status Page.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, system_resources

More

Packages that depend on vigil_reporter