pub struct ActionEvent {
pub id: ActionEventId,
pub task_id: TaskId,
pub group_id: Option<GroupId>,
pub tick: u64,
pub worker_id: WorkerId,
pub action: String,
pub target: Option<String>,
pub result: ActionEventResult,
pub duration: Duration,
pub context: ActionContext,
}Expand description
行動イベント
Worker が実行した行動の完全な記録。 オンライン統計や学習パイプラインに使用される。
Fields§
§id: ActionEventIdイベントID(ユニーク)
task_id: TaskIdタスク ID(どのタスクの一部か)
group_id: Option<GroupId>グループ ID(同条件の複数試行をグループ化、Learn 用)
tick: u64発生した Tick
worker_id: WorkerId実行した Worker
action: Stringアクション名
target: Option<String>ターゲット(オプション)
result: ActionEventResult実行結果
duration: Duration実行時間
context: ActionContextコンテキスト情報
Trait Implementations§
Source§impl Clone for ActionEvent
impl Clone for ActionEvent
Source§fn clone(&self) -> ActionEvent
fn clone(&self) -> ActionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionEvent
impl Debug for ActionEvent
Source§impl From<&ActionEvent> for ActionRecord
impl From<&ActionEvent> for ActionRecord
Source§fn from(event: &ActionEvent) -> Self
fn from(event: &ActionEvent) -> Self
Converts to this type from the input type.
Source§impl From<&ActionEvent> for Record
impl From<&ActionEvent> for Record
Source§fn from(event: &ActionEvent) -> Self
fn from(event: &ActionEvent) -> Self
Converts to this type from the input type.
Source§impl From<&ActionEvent> for TraceEvent
impl From<&ActionEvent> for TraceEvent
Source§fn from(e: &ActionEvent) -> Self
fn from(e: &ActionEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActionEvent
impl RefUnwindSafe for ActionEvent
impl Send for ActionEvent
impl Sync for ActionEvent
impl Unpin for ActionEvent
impl UnwindSafe for ActionEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more