Dela via


PersonalizerClient.RewardMultiSlot Method

Definition

Overloads

RewardMultiSlot(String, PersonalizerRewardMultiSlotOptions, CancellationToken)

Report reward that resulted from using the action specified in rewardActionId for the slot.

RewardMultiSlot(String, String, Single, CancellationToken)

Report reward that resulted from using the action specified in rewardActionId for the slot.

RewardMultiSlot(String, PersonalizerRewardMultiSlotOptions, CancellationToken)

Source:
PersonalizerClient.cs

Report reward that resulted from using the action specified in rewardActionId for the slot.

public virtual Azure.Response RewardMultiSlot (string eventId, Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlot : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> Azure.Response
override this.RewardMultiSlot : string * Azure.AI.Personalizer.PersonalizerRewardMultiSlotOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RewardMultiSlot (eventId As String, options As PersonalizerRewardMultiSlotOptions, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

eventId
String

The event id this reward applies to.

options
PersonalizerRewardMultiSlotOptions

List of slot id and reward values. The reward should be a floating point number, typically between 0 and 1.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

RewardMultiSlot(String, String, Single, CancellationToken)

Source:
PersonalizerClient.cs

Report reward that resulted from using the action specified in rewardActionId for the slot.

public virtual Azure.Response RewardMultiSlot (string eventId, string slotId, float reward, System.Threading.CancellationToken cancellationToken = default);
abstract member RewardMultiSlot : string * string * single * System.Threading.CancellationToken -> Azure.Response
override this.RewardMultiSlot : string * string * single * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function RewardMultiSlot (eventId As String, slotId As String, reward As Single, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

eventId
String

The event id this reward applies to.

slotId
String

Slot id for which we are sending the reward.

reward
Single

Reward to be assigned to slotId. Value should be between -1 and 1 inclusive.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to