Package com.ngrok.services
Class WeightedBackends
java.lang.Object
com.ngrok.services.WeightedBackends
A Weighted Backend balances traffic among the referenced backends. Traffic
is assigned proportionally to each based on its weight. The percentage of
traffic is calculated by dividing a backend's weight by the sum of all
weights.
See also https://ngrok.com/docs/api#api-weighted-backends.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A builder object encapsulating state for an unsent Create API call.class
A builder object encapsulating state for an unsent Delete API call.class
A builder object encapsulating state for an unsent Get API call.class
A builder object encapsulating state for an unsent List API call.class
A builder object encapsulating state for an unsent Update API call. -
Constructor Summary
ConstructorDescriptionWeightedBackends
(NgrokApiClient apiClient) Creates a new sub-client for WeightedBackends. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a new Weighted backend See also https://ngrok.com/docs/api#api-weighted-backends-create.Delete a Weighted backend by ID.Get detailed information about a Weighted backend by ID See also https://ngrok.com/docs/api#api-weighted-backends-get.list()
List all Weighted backends on this account See also https://ngrok.com/docs/api#api-weighted-backends-list.Update Weighted backend by ID See also https://ngrok.com/docs/api#api-weighted-backends-update.
-
Constructor Details
-
WeightedBackends
Creates a new sub-client for WeightedBackends.- Parameters:
apiClient
- an instance ofNgrokApiClient
-
-
Method Details
-
create
Create a new Weighted backend See also https://ngrok.com/docs/api#api-weighted-backends-create.- Returns:
- a call builder for this API call
-
delete
Delete a Weighted backend by ID. See also https://ngrok.com/docs/api#api-weighted-backends-delete.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
get
Get detailed information about a Weighted backend by ID See also https://ngrok.com/docs/api#api-weighted-backends-get.- Parameters:
id
- a resource identifier- Returns:
- a call builder for this API call
-
list
List all Weighted backends on this account See also https://ngrok.com/docs/api#api-weighted-backends-list.- Returns:
- a call builder for this API call
-
update
Update Weighted backend by ID See also https://ngrok.com/docs/api#api-weighted-backends-update.- Parameters:
id
- the value of theid
parameter as aString
- Returns:
- a call builder for this API call
-