https://github.com/tragiccode/nservicebus.customchecks.elasticsearch
https://github.com/tragiccode/nservicebus.customchecks.elasticsearch
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tragiccode/nservicebus.customchecks.elasticsearch
- Owner: TraGicCode
- License: apache-2.0
- Created: 2021-07-06T14:11:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T04:09:39.000Z (over 3 years ago)
- Last Synced: 2025-08-16T01:37:19.819Z (7 months ago)
- Language: C#
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# NServiceBus.CustomChecks.ElasticSearch
[](https://ci.appveyor.com/project/TraGicCode/NServiceBus-CustomChecks-ElasticSearch)
[](https://www.nuget.org/packages/NServiceBus.CustomChecks.ElasticSearch)
[](https://www.nuget.org/packages/NServiceBus.CustomChecks.ElasticSearch)
[](https://github.com/TraGicCode/NServiceBus.CustomChecks.ElasticSearch/blob/master/LICENSE)
#### Table of Contents
1. [Description](#description)
1. [How to use it](#how-to-use-it)
1. [How it works](#how-it-works)
1. [Development - Guide for contributing](#contributing)
## Description
A Reusable NServiceBus CustomCheck to check the availability and connectivity of Elastic Search.
## How to use it
In order to begin using this custom check simply create a child class for each instance you would like to perform a healthcheck on.
```c#
namespace Ordering.Endpoint.CustomChecks
{
public class OrderingElasticSearchCustomCheck : ElasticSearchCustomCheck
{
private static TimeSpan repeat = TimeSpan.FromSeconds(5);
private static Uri elasticSearchUri = new Uri("http://localhost:9200");
public OrderingElasticSearchCustomCheck(): base(elasticSearchUri, repeat)
{
}
}
}
```
## Contributing
1. Fork it ( )
1. Create your feature branch (`git checkout -b my-new-feature`)
1. Commit your changes (`git commit -am 'Add some feature'`)
1. Push to the branch (`git push origin my-new-feature`)
1. Create a new Pull Request