harp_apps.proxy.settings.remote.probe¶
- class RemoteProbe[source]¶
Bases:
Stateful[RemoteProbeSettings]Stateful version of a probe definition.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- async check(client, endpoint)[source]¶
- Parameters:
client (AsyncClient)
endpoint (RemoteEndpoint)
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- settings: Annotated[TSettings, Field(repr=False)]¶
- class RemoteProbeSettings[source]¶
Bases:
ConfigurableA
HttpProbeis a health check that can be used to check the health of a remote’s endpoints. It is used as the configuration parser forproxy.endpoints[].remote.probesettings.type: http method: GET path: /health headers: x-purpose: "health probe" timeout: 5.0
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].