Skip to main content
ReplaceProjectRetentionPolicyResponse = object

Properties

data

data: object

effective_policy

effective_policy: { experiment_max_age_days: number | null; max_age_days: number | null; scope_id: string; scope_type: "org" | "workspace" | "project"; } | null
Union Members
Type Literal
{ experiment_max_age_days: number | null; max_age_days: number | null; scope_id: string; scope_type: "org" | "workspace" | "project"; }
experiment_max_age_days
experiment_max_age_days: number | null
Description
Days to keep an experiment run, counted from the creation of the run. A run expires as a whole, with its sessions and their events. null keeps experiment runs indefinitely.
max_age_days
max_age_days: number | null
Description
Days to keep a session that belongs to no experiment run, counted from the start of the session. A session expires as a whole, with all of its events, also while it still receives events. A session of an experiment run whose record was deleted, and a session that has no session event, are kept whatever this value is. null keeps these sessions indefinitely.
scope_id
scope_id: string
scope_type
scope_type: "org" | "workspace" | "project"

null

policy

policy: { created_at: string; created_by_actor_id: string; created_by_actor_type: string; effective_from: string; experiment_max_age_days: number | null; max_age_days: number | null; scope_id: string; scope_type: "org" | "workspace" | "project"; } | null
Union Members
Type Literal
{ created_at: string; created_by_actor_id: string; created_by_actor_type: string; effective_from: string; experiment_max_age_days: number | null; max_age_days: number | null; scope_id: string; scope_type: "org" | "workspace" | "project"; }
created_at
created_at: string
Format: date-time
created_by_actor_id
created_by_actor_id: string
created_by_actor_type
created_by_actor_type: string
effective_from
effective_from: string
Format: date-time
experiment_max_age_days
experiment_max_age_days: number | null
Description
Days to keep an experiment run, counted from the creation of the run. A run expires as a whole, with its sessions and their events. null keeps experiment runs indefinitely.
max_age_days
max_age_days: number | null
Description
Days to keep a session that belongs to no experiment run, counted from the start of the session. A session expires as a whole, with all of its events, also while it still receives events. A session of an experiment run whose record was deleted, and a session that has no session event, are kept whatever this value is. null keeps these sessions indefinitely.
scope_id
scope_id: string
scope_type
scope_type: "org" | "workspace" | "project"

null

success

success: true