FractalDataWorks.Etl.Abstractions
0.4.0-preview.6
dotnet add package FractalDataWorks.Etl.Abstractions --version 0.4.0-preview.6
NuGet\Install-Package FractalDataWorks.Etl.Abstractions -Version 0.4.0-preview.6
<PackageReference Include="FractalDataWorks.Etl.Abstractions" Version="0.4.0-preview.6" />
<PackageVersion Include="FractalDataWorks.Etl.Abstractions" Version="0.4.0-preview.6" />
<PackageReference Include="FractalDataWorks.Etl.Abstractions" />
paket add FractalDataWorks.Etl.Abstractions --version 0.4.0-preview.6
#r "nuget: FractalDataWorks.Etl.Abstractions, 0.4.0-preview.6"
#:package FractalDataWorks.Etl.Abstractions@0.4.0-preview.6
#addin nuget:?package=FractalDataWorks.Etl.Abstractions&version=0.4.0-preview.6&prerelease
#tool nuget:?package=FractalDataWorks.Etl.Abstractions&version=0.4.0-preview.6&prerelease
FractalDataWorks.Etl.Abstractions
ETL (Extract, Transform, Load) abstractions for scheduling and monitoring.
Overview
This package provides TypeCollections and interfaces for ETL scheduling and monitoring within the FractalDataWorks orchestration framework.
Key Types
Scheduling
IEtlSchedulingService- Service for scheduling ETL pipeline executionsIJobExecutor- Interface for job executionIScheduleInfo/IScheduleRequest- Schedule definitions
TypeCollections:
ScheduleTypes- One-time vs Recurring schedulesRecurringScheduleTypes- Daily, Weekly, Monthly, Cron, IntervalScheduleStatuses- Active, Paused, Completed, Error, Expired, DisabledSchedulePriorities- Critical, High, Normal, Low
Monitoring
IEtlMetricsCollector- Collect ETL metricsIEtlTelemetryService- Telemetry and tracingIHealthCheckService- Health monitoringIAlertingService- Alert notifications
TypeCollections:
HealthStates- Healthy, Degraded, UnhealthyAlertSeverities- Info, Warning, Error, CriticalSeverityLevels- Verbose, Information, Warning, Error, CriticalComparisonOperators- Equal, NotEqual, GreaterThan, LessThan, etc.
Usage
Scheduling a Pipeline
From IEtlSchedulingService.cs:11-31:
public interface IEtlSchedulingService
{
Task<IGenericResult<string>> ScheduleOnce(
IScheduleRequest request,
CancellationToken cancellationToken = default);
Task<IGenericResult<string>> ScheduleRecurring(
IRecurringScheduleRequest request,
CancellationToken cancellationToken = default);
Task<IGenericResult> PauseSchedule(
string scheduleId,
CancellationToken cancellationToken = default);
Task<IGenericResult> ResumeSchedule(
string scheduleId,
CancellationToken cancellationToken = default);
}
From IScheduleRequest.cs:11-57:
public interface IScheduleRequest
{
string PipelineId { get; }
string ScheduleName { get; }
string? Description { get; }
DateTimeOffset? ExecuteAt { get; }
IReadOnlyDictionary<string, object?> Parameters { get; }
ISchedulePriority Priority { get; }
string TimeZone { get; }
bool IsEnabled { get; }
IReadOnlyList<string> Tags { get; }
}
The concrete ScheduleRequest class is available in FractalDataWorks.Etl.Scheduling and uses a builder pattern. See that package for implementation details.
Checking Health
From IHealthCheckService.cs:13-28:
public interface IHealthCheckService
{
Task<IGenericResult<IHealthStatus>> CheckHealth(CancellationToken cancellationToken = default);
void RegisterHealthCheck(string name, Func<CancellationToken, Task<IHealthCheckResult>> check);
}
From IHealthCheckService.cs:33-49:
public interface IHealthStatus
{
IHealthState Status { get; }
IReadOnlyDictionary<string, IHealthCheckResult> Checks { get; }
TimeSpan TotalDuration { get; }
}
From IHealthState.cs:9-20:
public interface IHealthState : ITypeOption<int, HealthStateBase>
{
bool IsHealthy { get; }
bool RequiresAttention { get; }
}
Metrics Collection
From IEtlMetricsCollector.cs:9-129:
public interface IEtlMetricsCollector
{
void RecordPipelineStart(string executionId, string pipelineId, IDictionary<string, string>? properties = null);
void RecordPipelineComplete(
string executionId,
string pipelineId,
bool success,
TimeSpan duration,
IDictionary<string, string>? properties = null);
void RecordRecordsProcessed(string executionId, string stageId, long count);
void RecordThroughput(string executionId, string stageId, double recordsPerSecond);
void RecordError(
string executionId,
string stageId,
string errorType,
string errorMessage,
IDictionary<string, string>? properties = null);
}
TypeCollections
From ScheduleTypes.cs:14-17:
[TypeCollection(typeof(ScheduleTypeBase), typeof(IScheduleType), typeof(ScheduleTypes))]
public sealed partial class ScheduleTypes : TypeCollectionBase<ScheduleTypeBase, IScheduleType>
{
}
From HealthStates.cs:14-17:
[TypeCollection(typeof(HealthStateBase), typeof(IHealthState), typeof(HealthStates))]
public sealed partial class HealthStates : TypeCollectionBase<HealthStateBase, IHealthState>
{
}
TypeOption example from UnhealthyState.cs:11-18:
[TypeOption(typeof(HealthStates), "Unhealthy")]
public sealed class UnhealthyState : HealthStateBase
{
public UnhealthyState() : base(2, "Unhealthy", isHealthy: false, requiresAttention: true) { }
}
Dependencies
FractalDataWorks.Collections- TypeCollection infrastructureFractalDataWorks.Results- Railway-oriented result types
Related Packages
FractalDataWorks.Etl.Scheduling- Concrete scheduling implementations
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- FractalDataWorks.Collections (>= 0.4.0-preview.6)
- FractalDataWorks.Results (>= 0.4.0-preview.6)
- FractalDataWorks.Services.Scheduling.Abstractions (>= 0.4.0-preview.6)
- System.Collections.Immutable (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|