7. log – Logs and Transactions

Logging and transactional functionality.

7.1. Resources

7.1.1. LogUUID

class log.LogUUID

This resource represens a specific action log.

Resource URI:

/rest/hosting/log/<UUID>/
GET()

Retrieve the specified action log by submitting an HTTP GET request. The UUID in the resource URI should be the uuid of the target action log.

..note

This resource requires *read* permission on the *elastic_hosting* extension module.
Return type:log.RepLogUUID

7.1.2. LogList

class log.LogList

This resource represents a list of action logs and running transactions.

Resource URI:

/rest/hosting/log/list/
GET()

Retrieve a list of action logs and running transactions by submitting an HTTP GET request.

..note

This resource requires *read* permission on the *elastic_hosting* extension module.
Return type:log.RepLogList

7.2. Representations

7.2.1. RepLogUUID

class log.RepLogUUID

This is a representation of an action log.

user
This attribute represents the user id of the log.
timestamp
This attribute represents the timestamp attribute of the log. This is the time at which the log was created.
error
This attribute represents the error attribute of the log. The value of this attribute will be true if the log is an error message.
message
This attribute represents the message attribute of the log. This message is the main content of the log.

Representation:

{"user": log.user,
 "timestamp": log.timestamp,
 "error": log.error,
 "message": log.message}

7.2.2. RepLogList

class log.RepLogList

This is a representation of a list of action logs and running transactions.

errno
This attribute represents the general error number generated by the resource.
message
This attribute represents the general message generated by the resource.
logs
This attribute represents the list of action log representations.
transactions
This attribute represents the list of transaction representations.

Representation:

{"errno": response.errno,
 "message": response.message,
 "logs": [log1, log2],
 "transactions": [transaction1, transaction2]}