A Passive Health Checks section of form component to create/edit Upstreams.
vue
andvue-router
must be initialized in the host application@kong/kongponents
must be added as adependency
in the host application, globally available via the Vue Plugin installation, and the package's style imports must be added in the app entry file. See here for instructions on installing Kongponents.@kong-ui-public/i18n
must be available as adependency
in the host application.axios
must be installed as a dependency in the host application
See instructions for installing the @kong-ui-public/entities-upstreams-tagrets
package.
- type:
HealthCheckType
- required:
true
- type:
string
- required:
true
- type:
string[]
- required:
true
- type:
string
- required:
true
- type:
string
- required:
true
- type:
string[]
- required:
true
- type:
string
- required:
true
A @update:type
event is emitted when a value in the type input is changed. It's used for v-model
binding in parent component. The event payload has HealthCheckType
type.
A @update:successes
event is emitted when a value in the successes input is changed. It's used for v-model
binding in parent component. The event payload has string
type.
A @update:http-statuses
event is emitted when a value in the httpStatuses input is changed. It's used for v-model
binding in parent component. The event payload has string[]
type.
A @update:timeouts
event is emitted when a value in the timeouts input is changed. It's used for v-model
binding in parent component. The event payload has string
type.
A @update:http-failures
event is emitted when a value in the httpFailures input is changed. It's used for v-model
binding in parent component. The event payload has string
type.
A @update:unhealthy-http-statuses
event is emitted when a value in the unhealthyHttpStatuses input is changed. It's used for v-model
binding in parent component. The event payload has string[]
type.
A @update:tcp-failures
event is emitted when a value in the tcpFailures input is changed. It's used for v-model
binding in parent component. The event payload has string
type.
Please refer to the sandbox. The form is accessible by clicking the + New Upstream
button or Edit
action of an existing Upstream.
TypeScript interfaces are available here and can be directly imported into your host application. The following type interfaces are available for import:
import type {
BaseUpstreamsFormConfig,
KonnectUpstreamsFormConfig,
KongManagerUpstreamsFormConfig,
UpstreamAlgorithm,
UpstreamHash,
HealthCheckType,
ActiveHealthCheckHeader,
ActiveHealthCheck,
PassiveHealthCheck,
UpstreamFormFields,
UpstreamFormState,
AlgorithmSelectItem,
HashSelectItem,
HealthCheckTypeSelectItem,
MultiselectComposableOptions,
UpstreamFormPayload,
UpstreamResponse,
UpstreamsFormActions,
} from '@kong-ui-public/entities-upstreams-targets'