components_logs
Creates, updates, deletes, gets or lists a components_logs
resource.
Overview
Name | components_logs |
Type | Resource |
Id | digitalocean.apps.components_logs |
Fields
Name | Datatype | Description |
---|---|---|
historic_urls | array | |
live_url | string | A URL of the real-time live logs. This URL may use either the https:// or wss:// protocols and will keep pushing live logs as they become available. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
apps_get_logs_active_deployment | SELECT | app_id, component_name, type | Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id. |
SELECT
examples
Retrieve the logs of the active deployment if one exists. The response will include links to either real-time logs of an in-progress or active deployment or archived logs of a past deployment. Note log_type=BUILD logs will return logs associated with the current active deployment (being served). To view build logs associated with in-progress build, the query must explicitly reference the deployment id.
SELECT
historic_urls,
live_url
FROM digitalocean.apps.components_logs
WHERE app_id = '{{ app_id }}'
AND component_name = '{{ component_name }}'
AND type = '{{ type }}';