Skip to main content

Threshold

Redirects the value, along a different connection whether the value is above or below the given threshold.

Basic Information

  • Type: haystack_integrations.testing.sample_components.threshold.Threshold

Inputs

ParameterTypeDefaultDescription
thresholdOptional[int]Nonethe number to compare the input value against. This is also a parameter.
valueint

Outputs

ParameterTypeDefaultDescription
aboveint
belowint

Overview

Work in Progress

Bear with us while we're working on adding pipeline examples and most common components connections.

Redirects the value, along a different connection whether the value is above or below the given threshold.

Usage Example

components:
Threshold:
type: testing.sample_components.threshold.Threshold
init_parameters:

Parameters

Init Parameters

These are the parameters you can configure in Pipeline Builder:

ParameterTypeDefaultDescription
thresholdint10the number to compare the input value against.

Run Method Parameters

These are the parameters you can configure for the component's run() method. This means you can pass these parameters at query time through the API, in Playground, or when running a job. For details, see Modify Pipeline Parameters at Query Time.

ParameterTypeDefaultDescription
thresholdOptional[int]Nonethe number to compare the input value against. This is also a parameter.
valueint