pub struct AuditLog {Show 32 fields
pub id: String,
pub type: AuditLogEventType,
pub effective_at: i64,
pub project: Option<Project>,
pub actor: AuditLogActor,
pub api_key_created: Option<ApiKeyCreated>,
pub api_key_updated: Option<ApiKeyUpdated>,
pub api_key_deleted: Option<ApiKeyDeleted>,
pub checkpoint_permission_created: Option<CheckpointPermissionCreated>,
pub checkpoint_permission_deleted: Option<CheckpointPermissionDeleted>,
pub invite_sent: Option<InviteSent>,
pub invite_accepted: Option<InviteAccepted>,
pub invite_deleted: Option<InviteDeleted>,
pub login_failed: Option<LoginFailed>,
pub logout_failed: Option<LogoutFailed>,
pub organization_updated: Option<OrganizationUpdated>,
pub project_created: Option<ProjectCreated>,
pub project_updated: Option<ProjectUpdated>,
pub project_archived: Option<ProjectArchived>,
pub rate_limit_updated: Option<RateLimitUpdated>,
pub rate_limit_deleted: Option<RateLimitDeleted>,
pub service_account_created: Option<ServiceAccountCreated>,
pub service_account_updated: Option<ServiceAccountUpdated>,
pub service_account_deleted: Option<ServiceAccountDeleted>,
pub user_added: Option<UserAdded>,
pub user_updated: Option<UserUpdated>,
pub user_deleted: Option<UserDeleted>,
pub certificate_created: Option<CertificateCreated>,
pub certificate_updated: Option<CertificateUpdated>,
pub certificate_deleted: Option<CertificateDeleted>,
pub certificates_activated: Option<CertificatesActivated>,
pub certificates_deactivated: Option<CertificatesDeactivated>,
}
Expand description
A log of a user action or configuration change within this organization.
Fields§
§id: String
The ID of this log.
type: AuditLogEventType
§effective_at: i64
The Unix timestamp (in seconds) of the event.
project: Option<Project>
The project that the action was scoped to. Absent for actions not scoped to projects. Note that any admin actions taken via Admin API keys are associated with the default project.
actor: AuditLogActor
§api_key_created: Option<ApiKeyCreated>
The details for events with this type
.
api_key_updated: Option<ApiKeyUpdated>
The details for events with this type
.
api_key_deleted: Option<ApiKeyDeleted>
The details for events with this type
.
checkpoint_permission_created: Option<CheckpointPermissionCreated>
The project and fine-tuned model checkpoint that the checkpoint permission was created for.
checkpoint_permission_deleted: Option<CheckpointPermissionDeleted>
The details for events with this type
.
invite_sent: Option<InviteSent>
The details for events with this type
.
invite_accepted: Option<InviteAccepted>
The details for events with this type
.
invite_deleted: Option<InviteDeleted>
The details for events with this type
.
login_failed: Option<LoginFailed>
The details for events with this type
.
logout_failed: Option<LogoutFailed>
The details for events with this type
.
organization_updated: Option<OrganizationUpdated>
The details for events with this type
.
project_created: Option<ProjectCreated>
The details for events with this type
.
project_updated: Option<ProjectUpdated>
The details for events with this type
.
project_archived: Option<ProjectArchived>
The details for events with this type
.
rate_limit_updated: Option<RateLimitUpdated>
The details for events with this type
.
rate_limit_deleted: Option<RateLimitDeleted>
The details for events with this type
.
service_account_created: Option<ServiceAccountCreated>
The details for events with this type
.
service_account_updated: Option<ServiceAccountUpdated>
The details for events with this type
.
service_account_deleted: Option<ServiceAccountDeleted>
The details for events with this type
.
user_added: Option<UserAdded>
The details for events with this type
.
user_updated: Option<UserUpdated>
The details for events with this type
.
user_deleted: Option<UserDeleted>
The details for events with this type
.
certificate_created: Option<CertificateCreated>
The details for events with this type
.
certificate_updated: Option<CertificateUpdated>
The details for events with this type
.
certificate_deleted: Option<CertificateDeleted>
The details for events with this type
.
certificates_activated: Option<CertificatesActivated>
The details for events with this type
.
certificates_deactivated: Option<CertificatesDeactivated>
The details for events with this type
.
Implementations§
Source§impl AuditLog
impl AuditLog
Sourcepub fn builder() -> AuditLogBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> AuditLogBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building AuditLog
.
On the builder, call .id(...)
, .r#type(...)
, .effective_at(...)
, .project(...)
(optional), .actor(...)
(optional), .api_key_created(...)
(optional), .api_key_updated(...)
(optional), .api_key_deleted(...)
(optional), .checkpoint_permission_created(...)
(optional), .checkpoint_permission_deleted(...)
(optional), .invite_sent(...)
(optional), .invite_accepted(...)
(optional), .invite_deleted(...)
(optional), .login_failed(...)
(optional), .logout_failed(...)
(optional), .organization_updated(...)
(optional), .project_created(...)
(optional), .project_updated(...)
(optional), .project_archived(...)
(optional), .rate_limit_updated(...)
(optional), .rate_limit_deleted(...)
(optional), .service_account_created(...)
(optional), .service_account_updated(...)
(optional), .service_account_deleted(...)
(optional), .user_added(...)
(optional), .user_updated(...)
(optional), .user_deleted(...)
(optional), .certificate_created(...)
(optional), .certificate_updated(...)
(optional), .certificate_deleted(...)
(optional), .certificates_activated(...)
(optional), .certificates_deactivated(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AuditLog
.