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] = {'hide_input_in_errors': True}¶
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.
- headers: dict[str, Annotated[SecretStr, PlainSerializer(func=_serialize_secret, return_type=str, when_used=always)]]¶
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'hide_input_in_errors': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].