10346: Discuss execution. Start writing code examples.
[arvados.git] / doc / api / methods / logs.html.textile.liquid
index b7934e50db299b47c806bf14fb04bd1654ab89d8..58ce979a289068b1ab4197d3a81fa7800d7ac7e1 100644 (file)
@@ -6,93 +6,83 @@ title: "logs"
 
 ...
 
-h1. logs
-
-Required arguments are displayed in %{background:#ccffcc}green%.
+See "REST methods for working with Arvados resources":{{site.baseurl}}/api/methods.html
 
+API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/logs@
 
-h2. create
+Required arguments are displayed in %{background:#ccffcc}green%.
 
-Create a new Log.
+h2. Creation
 
-Arguments:
+Any user may create Log entries for any event they find useful. User-generated Logs have no intrinsic meaning to other users or to the Arvados system itself; it is up to each user to choose appropriate log event types and summaries for their project.
 
-table(table table-bordered table-condensed).
-|_. Argument |_. Type |_. Description |_. Location |_. Example |
-|log|object||query||
+h3. System Logs
 
-h2. delete
+Arvados uses Logs to record creation, deletion, and updates of other Arvados resources.
 
-Delete an existing Log.
+h2. Resource
 
-Arguments:
+Each Log has, in addition to the usual "attributes of Arvados resources":{{site.baseurl}}/api/resources.html:
 
 table(table table-bordered table-condensed).
-|_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string|The UUID of the Log in question.|path||
-
-h2. destroy
-
-destroy logs
-
-Arguments:
+|_. Attribute|_. Type|_. Description|_. Example|
+|object_uuid|string|||
+|event_at|datetime|||
+|event_type|string|A user-defined category or type for this event.|@LOGIN@|
+|summary|text|||
+|properties|hash|||
 
-table(table table-bordered table-condensed).
-|_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string||path||
+h2. Methods
 
-h2. get
+h3. create
 
-Gets a Log's metadata by UUID.
+Create a new log entry.
 
 Arguments:
 
 table(table table-bordered table-condensed).
 |_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string|The UUID of the Log in question.|path||
+|log|object||query||
 
-h2. index
+h3. delete
 
-index logs
+Delete an existing log entry. This method can only be used by privileged (system administrator) users.
 
 Arguments:
 
 table(table table-bordered table-condensed).
 |_. Argument |_. Type |_. Description |_. Location |_. Example |
-|order|string||query||
-|where|object||query||
+{background:#ccffcc}.|uuid|string|The UUID of the log entry in question.|path||
 
-h2. list
+h3. get
 
-List logs.
+Retrieve a log entry.
 
 Arguments:
 
 table(table table-bordered table-condensed).
 |_. Argument |_. Type |_. Description |_. Location |_. Example |
-|limit|integer (default 100)|Maximum number of logs to return.|query||
-|order|string|Order in which to return matching logs.|query||
-|pageToken|string|Page token.|query||
-|q|string|Query string for searching logs.|query||
-|where|object|Conditions for filtering logs.|query||
+{background:#ccffcc}.|uuid|string|The UUID of the log entry in question.|path||
 
-h2. show
+h3. list
 
-show logs
+List log entries.
 
 Arguments:
 
 table(table table-bordered table-condensed).
 |_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string||path||
+|limit|integer (default 100)|Maximum number of log entries to return.|query||
+|order|string|Order in which to return matching log entries.|query||
+|filters|array|Conditions for filtering log entries.|query||
 
-h2. update
+h3. update
 
-Update attributes of an existing Log.
+Update attributes of an existing log entry. This method can only be used by privileged (system administrator) users.
 
 Arguments:
 
 table(table table-bordered table-condensed).
 |_. Argument |_. Type |_. Description |_. Location |_. Example |
-{background:#ccffcc}.|uuid|string|The UUID of the Log in question.|path||
+{background:#ccffcc}.|uuid|string|The UUID of the log entry in question.|path||
 |log|object||query||