Logs¶
genjishimada_sdk.logs
¶
LogCreateRequest
¶
Bases: Struct
Payload for recording a command usage log entry.
Attributes:
| Name | Type | Description |
|---|---|---|
command_name |
str
|
Name of the executed command. |
user_id |
int
|
Identifier of the user who ran the command. |
created_at |
datetime
|
Timestamp when the command was executed. |
namespace |
dict
|
Arbitrary namespace metadata to store with the log. |
MapClickCreateRequest
¶
Bases: Struct
Payload for recording a click on a map banner or link.
Attributes:
| Name | Type | Description |
|---|---|---|
code |
OverwatchCode
|
Workshop code for the clicked map. |
ip_address |
str
|
IP address of the user who clicked. |
user_id |
int | None
|
Optional identifier of the clicking user. |
source |
Literal['web', 'bot']
|
Origin of the click, such as web or bot. |