diff --git a/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Network/BackendApiClient.cs b/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Network/BackendApiClient.cs index 21db86c6..7606bf84 100644 --- a/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Network/BackendApiClient.cs +++ b/src/Agent/AutopilotMonitor.Agent.Core/Monitoring/Network/BackendApiClient.cs @@ -135,16 +135,6 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Network return result; } - /// - /// Gets a SAS URL for uploading a troubleshooting bundle - /// - public async Task GetBundleUploadUrlAsync(UploadBundleRequest request) - { - var url = $"{_baseUrl}{Constants.ApiEndpoints.UploadBundle}"; - var response = await PostAsync(url, request); - return response; - } - /// /// Requests a short-lived SAS URL for diagnostics package upload. /// Called just before upload so the URL is never stored in config or on disk. diff --git a/src/Shared/AutopilotMonitor.Shared/Constants.cs b/src/Shared/AutopilotMonitor.Shared/Constants.cs index d45f64dd..28628c33 100644 --- a/src/Shared/AutopilotMonitor.Shared/Constants.cs +++ b/src/Shared/AutopilotMonitor.Shared/Constants.cs @@ -69,8 +69,7 @@ namespace AutopilotMonitor.Shared { public const string RegisterSession = "/api/sessions/register"; public const string IngestEvents = "/api/events/ingest"; - public const string UploadBundle = "/api/bundles/upload"; - public const string GetAgentConfig = "/api/agent/config"; +public const string GetAgentConfig = "/api/agent/config"; public const string GatherRules = "/api/gather-rules"; public const string AnalyzeRules = "/api/analyze-rules"; public const string GetDiagnosticsUploadUrl = "/api/diagnostics/upload-url"; diff --git a/src/Shared/AutopilotMonitor.Shared/Models/ApiModels.cs b/src/Shared/AutopilotMonitor.Shared/Models/ApiModels.cs index c4565ba0..0b1fc3a0 100644 --- a/src/Shared/AutopilotMonitor.Shared/Models/ApiModels.cs +++ b/src/Shared/AutopilotMonitor.Shared/Models/ApiModels.cs @@ -86,28 +86,6 @@ namespace AutopilotMonitor.Shared.Models public int RetryAfterSeconds { get; set; } } - /// - /// Request to upload a troubleshooting bundle - /// - public class UploadBundleRequest - { - public string SessionId { get; set; } - public string TenantId { get; set; } - public string BundleFileName { get; set; } - } - - /// - /// Response with SAS URL for bundle upload - /// - public class UploadBundleResponse - { - public bool Success { get; set; } - public string SasUrl { get; set; } - public string BlobPath { get; set; } - public DateTime ExpiresAt { get; set; } - public string Message { get; set; } - } - /// /// Request to get a short-lived SAS URL for diagnostics package upload. /// Called by the agent just before upload — the URL is never cached in config.