2025-03-29 01:33:55 +03:00
|
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
|
|
|
|
|
|
namespace OnecMonitor.Server.ViewModels.EventLogSettings;
|
|
|
|
|
|
|
|
|
|
public class EventLogSettingsEditViewModel
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
public bool Enabled { get; set; } = false;
|
|
|
|
|
public Guid? DbmsId { get; set; }
|
|
|
|
|
[ValidateNever]
|
|
|
|
|
public SelectList AvailableDbms { get; set; } = null!;
|
2025-07-02 10:32:56 +03:00
|
|
|
public string DatabaseName { get; set; } = "oneswiss-server";
|
2025-03-29 01:33:55 +03:00
|
|
|
public string Table { get; set; } = "eventlog";
|
|
|
|
|
public Guid? CredentialsId { get; set; }
|
|
|
|
|
[ValidateNever]
|
|
|
|
|
public SelectList AvailableCredentials { get; set; } = null!;
|
|
|
|
|
[ValidateNever]
|
|
|
|
|
public string InfoBaseNameRegex { get; set; } = string.Empty;
|
|
|
|
|
}
|