canvas_logs

Tables and types in canvas_logs namespace.

Tables in canvas_logs namespace

web_logs

Stores the Canvas web application server access/request logs.

Logs include all interactions made with your instance of Canvas, therefore some interactions are done by users that are not present in the users table (originated from another institution). Note: Logs older than the retention limit of 30 days are no longer available via DAP API.

Properties:

  • id (UUID) - primary key The unique identifier for a logged web request.

  • timestamp (datetime) - Timestamp when the request was made in UTC.

  • user_id (canvas.users | None) - The unique ID of the user that made the request.

  • real_user_id (canvas.users | None) - If the request was processed by one user masquerading as another, then this column contains the real user ID of the user.

  • course_id (canvas.courses | None) - Course that owned the request.

  • quiz_id (canvas.quizzes | None) - Identifies the quiz if the request is for a quiz.

  • discussion_id (canvas.discussion_topics | None) - Identifies the discussion if the request is for a discussion.

  • conversation_id (canvas.conversations | None) - Identifies the conversation if the request is for a conversation.

  • assignment_id (canvas.assignments | None) - Identifies the assignment if the request is for an assignment.

  • url (str) - The path and the query string components of the requested URL.

  • http_method (HTTPMethod) - HTTP method/verb (GET, POST, PUT, etc.) that was sent with the request.

  • http_status (HTTPStatus) - HTTP status code of the request (e.g. 200 OK).

  • http_version (HTTPVersion) - HTTP protocol version (e.g. HTTP/2.0).

  • remote_ip (IPv4Address | IPv6Address) - IP (IPv4 or IPv6) address that was recorded for the request.

  • interaction_micros (int32) - Total time required to service the request in microseconds.

  • web_application_controller (Controller | str | None) - The controller that the Canvas web application used to service this request.

  • web_application_action (Action | str | None) - The action in the Canvas web application used to service this request.

  • web_application_context_type (ContextType | None) - Containing object type that the Canvas web application used to service this request.

  • web_application_context_id (int64 | None) - Containing object ID that the Canvas web application used to service this request.

  • session_id (UUID | None) - ID of the user's session where this request was made.

  • developer_key_id (canvas.developer_keys | None) - ID of the developer who accessed this resource if the request was made by a developer.

  • participated (bool) - Shows whether the HTTP request is considered a participation for the user.

  • user_agent (None | Literal['__dap_oversized_truncated__'] | Annotated[str, MaxLength(255)]) - The user agent string sent by the HTTP client.

Types in canvas_logs namespace

Action

Web application actions.

Members:

  • unspecified = '__dap_unspecified__'

ContextType

Web application context types.

Members:

  • account = 'Account'

  • assessment_question = 'AssessmentQuestion'

  • assignment = 'Assignment'

  • content_migration = 'ContentMigration'

  • course = 'Course'

  • course_section = 'CourseSection'

  • group = 'Group'

  • quiz_submission = 'Quizzes::QuizSubmission'

  • student_enrollment = 'StudentEnrollment'

  • user = 'User'

  • user_profile = 'UserProfile'

Controller

Web application controllers.

Members:

  • unspecified = '__dap_unspecified__'

HTTPMethod

HTTP methods used in the Canvas API.

Members:

  • CONNECT = 'CONNECT'

  • DELETE = 'DELETE'

  • GET = 'GET'

  • HEAD = 'HEAD'

  • OPTIONS = 'OPTIONS'

  • PATCH = 'PATCH'

  • POST = 'POST'

  • PUT = 'PUT'

  • TRACE = 'TRACE'

  • SEARCH = 'SEARCH'

  • PROPFIND = 'PROPFIND'

  • LOCK = 'LOCK'

  • REPORT = 'REPORT'

  • PURGE = 'PURGE'

  • MKCOL = 'MKCOL'

  • PROPPATCH = 'PROPPATCH'

  • CHECKOUT = 'CHECKOUT'

  • UNLOCK = 'UNLOCK'

  • MERGE = 'MERGE'

  • NOTIFY = 'NOTIFY'

  • MOVE = 'MOVE'

  • COPY = 'COPY'

  • UNSUBSCRIBE = 'UNSUBSCRIBE'

  • MKACTIVITY = 'MKACTIVITY'

  • SUBSCRIBE = 'SUBSCRIBE'

HTTPStatus

Members:

  • CONTINUE = 100

  • SWITCHING_PROTOCOLS = 101

  • PROCESSING = 102

  • EARLY_HINTS = 103

  • OK = 200

  • CREATED = 201

  • ACCEPTED = 202

  • NON_AUTHORITATIVE_INFORMATION = 203

  • NO_CONTENT = 204

  • RESET_CONTENT = 205

  • PARTIAL_CONTENT = 206

  • MULTI_STATUS = 207

  • ALREADY_REPORTED = 208

  • IM_USED = 226

  • MULTIPLE_CHOICES = 300

  • MOVED_PERMANENTLY = 301

  • FOUND = 302

  • SEE_OTHER = 303

  • NOT_MODIFIED = 304

  • USE_PROXY = 305

  • TEMPORARY_REDIRECT = 307

  • PERMANENT_REDIRECT = 308

  • BAD_REQUEST = 400

  • UNAUTHORIZED = 401

  • PAYMENT_REQUIRED = 402

  • FORBIDDEN = 403

  • NOT_FOUND = 404

  • METHOD_NOT_ALLOWED = 405

  • NOT_ACCEPTABLE = 406

  • PROXY_AUTHENTICATION_REQUIRED = 407

  • REQUEST_TIMEOUT = 408

  • CONFLICT = 409

  • GONE = 410

  • LENGTH_REQUIRED = 411

  • PRECONDITION_FAILED = 412

  • REQUEST_ENTITY_TOO_LARGE = 413

  • REQUEST_URI_TOO_LONG = 414

  • UNSUPPORTED_MEDIA_TYPE = 415

  • REQUESTED_RANGE_NOT_SATISFIABLE = 416

  • EXPECTATION_FAILED = 417

  • IM_A_TEAPOT = 418

  • MISDIRECTED_REQUEST = 421

  • UNPROCESSABLE_ENTITY = 422

  • LOCKED = 423

  • FAILED_DEPENDENCY = 424

  • TOO_EARLY = 425

  • UPGRADE_REQUIRED = 426

  • PRECONDITION_REQUIRED = 428

  • TOO_MANY_REQUESTS = 429

  • REQUEST_HEADER_FIELDS_TOO_LARGE = 431

  • UNAVAILABLE_FOR_LEGAL_REASONS = 451

  • INTERNAL_SERVER_ERROR = 500

  • NOT_IMPLEMENTED = 501

  • BAD_GATEWAY = 502

  • SERVICE_UNAVAILABLE = 503

  • GATEWAY_TIMEOUT = 504

  • HTTP_VERSION_NOT_SUPPORTED = 505

  • VARIANT_ALSO_NEGOTIATES = 506

  • INSUFFICIENT_STORAGE = 507

  • LOOP_DETECTED = 508

  • NOT_EXTENDED = 510

  • NETWORK_AUTHENTICATION_REQUIRED = 511

HTTPVersion

HTTP protocol version.

Members:

  • http09 = '0.9'

  • http10 = '1.0'

  • http11 = '1.1'

  • http20 = '2.0'

Last updated

Was this helpful?