49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
namespace ItWorx.KnowledgeHub.Contracts.Platform;
|
|
|
|
public sealed record IngestionProposalPolicyContract(
|
|
bool Enabled,
|
|
int MaximumSourceCount,
|
|
long MaximumSourceBytes,
|
|
int FailedRetryLimit);
|
|
|
|
public sealed record BackupPolicyExpectationRequest(
|
|
int ExpectedIntervalHours,
|
|
string ScheduleDescription,
|
|
int DailyRetentionCount,
|
|
int WeeklyRetentionCount,
|
|
int MonthlyRetentionCount,
|
|
int ProtectedBackupCount,
|
|
int RestoreVerificationMaxAgeDays);
|
|
|
|
public sealed record BackupPolicyExpectationResponse(
|
|
string Enforcement,
|
|
int ExpectedIntervalHours,
|
|
string ScheduleDescription,
|
|
int DailyRetentionCount,
|
|
int WeeklyRetentionCount,
|
|
int MonthlyRetentionCount,
|
|
int ProtectedBackupCount,
|
|
int RestoreVerificationMaxAgeDays);
|
|
|
|
public sealed record InventoryFreshnessPolicyContract(int WarningAfterHours);
|
|
|
|
public sealed record PlatformSettingsRequest(
|
|
string DisplayName,
|
|
string PrimaryLocale,
|
|
string TimeZone,
|
|
IngestionProposalPolicyContract IngestionProposals,
|
|
BackupPolicyExpectationRequest BackupPolicyExpectation,
|
|
InventoryFreshnessPolicyContract InventoryFreshnessPolicy);
|
|
|
|
public sealed record PlatformSettingsResponse(
|
|
int SchemaVersion,
|
|
string ETag,
|
|
bool IsDefault,
|
|
string DisplayName,
|
|
string PrimaryLocale,
|
|
string TimeZone,
|
|
IngestionProposalPolicyContract IngestionProposals,
|
|
BackupPolicyExpectationResponse BackupPolicyExpectation,
|
|
InventoryFreshnessPolicyContract InventoryFreshnessPolicy,
|
|
DateTimeOffset? UpdatedAt);
|