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.

Dart Vigil Reporter #

pub package likes popularity pub points

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

Vigil Reporter is used to actively submit health information to Vigil from your apps. Apps are best monitored via application probes, which are able to report detailed system information such as CPU and RAM load. This lets Vigil show if an application host system is under high load.

đŸ‡Ģ🇷 Crafted in France, Nantes.

Who uses it? #

Pikomit

👋 You use vigil_reporter and you want to be listed there? Email me.

How to install? #

Include vigil_reporter in your pubspec.yaml dependencies.

dependencies:
  vigil_reporter: ^1.2.1

Alternatively, you can run dart pub add vigil_reporter.

How to use? #

1. Create reporter #

vigil_reporter can be instantiated as such:

import 'package:vigil_reporter/vigil_reporter.dart';

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(),
);

2. Teardown reporter #

If you need to teardown an active reporter, you can use the end({bool flush = false}) method to unbind it.

vigilReporter.end(flush: false)
  .then(() {
    // Handle end there
  }).catchError(() {
    // Handle error there
  });

What is Vigil? #

ℹī¸ Wondering what Vigil is? Check out valeriansaliou/vigil.

2
likes
130
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