Skip to content

lex-ping

Network connectivity checks for LegionIO. Verify host reachability via HTTP, TCP, and UDP pings.

Installation

gem install lex-ping

Functions

  • Http - Checks reachability via Net::Ping::HTTP (auto-prepends http:// to bare hostnames)
  • Tcp - TCP ping (checks port connectivity via Net::Ping::TCP)
  • Udp - UDP ping (checks UDP reachability via Net::Ping::UDP)

All runners accept host: and return { host:, result:, success: true/false }.

Usage

Legion::Ingress.run('lex_ping.http.ping', host: 'myservice.internal')
Legion::Ingress.run('lex_ping.tcp.ping', host: 'myservice.internal')
Legion::Ingress.run('lex_ping.udp.ping', host: 'myservice.internal')

Requirements

  • Ruby >= 3.4
  • LegionIO framework
  • net-ping

License

MIT

About

No description or website provided.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages