EventsOperations Class
EventsOperations operations.
Constructor
EventsOperations(client, config, serializer, deserializer)
Parameters
| Name | Description |
|---|---|
|
client
Required
|
Client for service requests. |
|
config
Required
|
Configuration of service client. |
|
serializer
Required
|
An object model serializer. |
|
deserializer
Required
|
An object model deserializer. |
Methods
| activate |
Report that the specified event was actually displayed to the user and a reward should be expected for it. |
| reward |
Report reward to allocate to the top ranked action for the specified event. |
activate
Report that the specified event was actually displayed to the user and a reward should be expected for it.
activate(event_id, custom_headers=None, raw=False, **operation_config)
Parameters
| Name | Description |
|---|---|
|
event_id
Required
|
The event ID this activation applies to. |
|
custom_headers
|
headers that will be added to the request Default value: None
|
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
|
operation_config
Required
|
Operation configuration overrides. |
Returns
| Type | Description |
|---|---|
|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
| Type | Description |
|---|---|
|
msrest.exceptions.HttpOperationError
|
reward
Report reward to allocate to the top ranked action for the specified event.
reward(event_id, value, custom_headers=None, raw=False, **operation_config)
Parameters
| Name | Description |
|---|---|
|
event_id
Required
|
The event id this reward applies to. |
|
value
Required
|
Reward to be assigned to an action. Value should be between -1 and 1 inclusive. |
|
custom_headers
|
headers that will be added to the request Default value: None
|
|
raw
|
returns the direct response alongside the deserialized response Default value: False
|
|
operation_config
Required
|
Operation configuration overrides. |
Returns
| Type | Description |
|---|---|
|
None,
<xref:msrest.pipeline.ClientRawResponse>
|
None or ClientRawResponse if raw=true |
Exceptions
| Type | Description |
|---|---|
|
msrest.exceptions.HttpOperationError
|
Attributes
models
models = <module 'azure.cognitiveservices.personalizer.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv0\\Lib\\site-packages\\azure\\cognitiveservices\\personalizer\\models\\__init__.py'>