Health
The health check endpoint enables you to periodically test the health of your MeiliSearch instance.
Get health
GET
/health
Get health of MeiliSearch server.
Example
<>
cURL
JS
Python
PHP
Java
Ruby
Go
Rust
Swift
Dart
curl \
-X GET 'http://localhost:7700/health'
client.health()
client.health()
$client->health();
client.health();
client.health
client.Health()
// health() return an Err() if the server is not healthy, so this example would panic due to the unwrap
client.health().await.unwrap();
client.health { (result: Result<Health, Swift.Error>) in
switch result {
case .success:
print("Healthy!")
case .failure(let error):
print(error)
}
}
await client.health();
Response: 200 OK
{ "status": "available" }
当前内容版权归 MeiliSearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 MeiliSearch .