@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
75 lines (38 loc) • 1.26 kB
Markdown
---
lang: en
title: 'API docs: health.healthcomponent._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/health
permalink: /doc/en/lb4/apidocs.health.healthcomponent._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/health](./health.md) > [HealthComponent](./health.healthcomponent.md) > [(constructor)](./health.healthcomponent._constructor_.md)
## HealthComponent.(constructor)
Constructs a new instance of the `HealthComponent` class
**Signature:**
```typescript
constructor(application: Application, healthConfig?: HealthConfig);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
application
</td><td markdown="1">
[Application](./core.application.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
healthConfig
</td><td markdown="1">
[HealthConfig](./health.healthconfig.md)
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>