-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
- Add an endpoint to retreive the lease logs/events from the provider
Example of implementation in Console:console/apps/deploy-web/src/components/deployments/DeploymentLogs.tsx
Lines 61 to 63 in 7de2437
const { sendJsonMessage } = useProviderWebsocket(providerInfo, { onMessage: onLogReceived });
The two provider endpoints for either logs or kubeevents
console/apps/deploy-web/src/components/deployments/DeploymentLogs.tsx
Lines 127 to 135 in 7de2437
| if (selectedLogsMode === "logs") { | |
| url = `/lease/${selectedLease.dseq}/${selectedLease.gseq}/${selectedLease.oseq}/logs?follow=true&tail=100`; | |
| if (selectedServices.length < services.length) { | |
| url += "&service=" + selectedServices.join(","); | |
| } | |
| } else { | |
| url = `/lease/${selectedLease.dseq}/${selectedLease.gseq}/${selectedLease.oseq}/kubeevents?follow=true`; | |
| } |
We need to have a solid robust of a websocket endpoint to forward the logs from the provider to the api endpoint using a jwt token generated from the user's wallet.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Up Next (prioritized)