FractalDataWorks.Etl.Abstractions 0.4.0-preview.6

This is a prerelease version of FractalDataWorks.Etl.Abstractions.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package FractalDataWorks.Etl.Abstractions --version 0.4.0-preview.6
                    
NuGet\Install-Package FractalDataWorks.Etl.Abstractions -Version 0.4.0-preview.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FractalDataWorks.Etl.Abstractions" Version="0.4.0-preview.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FractalDataWorks.Etl.Abstractions" Version="0.4.0-preview.6" />
                    
Directory.Packages.props
<PackageReference Include="FractalDataWorks.Etl.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FractalDataWorks.Etl.Abstractions --version 0.4.0-preview.6
                    
#r "nuget: FractalDataWorks.Etl.Abstractions, 0.4.0-preview.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FractalDataWorks.Etl.Abstractions@0.4.0-preview.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FractalDataWorks.Etl.Abstractions&version=0.4.0-preview.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FractalDataWorks.Etl.Abstractions&version=0.4.0-preview.6&prerelease
                    
Install as a Cake Tool

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 executions
  • IJobExecutor - Interface for job execution
  • IScheduleInfo / IScheduleRequest - Schedule definitions

TypeCollections:

  • ScheduleTypes - One-time vs Recurring schedules
  • RecurringScheduleTypes - Daily, Weekly, Monthly, Cron, Interval
  • ScheduleStatuses - Active, Paused, Completed, Error, Expired, Disabled
  • SchedulePriorities - Critical, High, Normal, Low

Monitoring

  • IEtlMetricsCollector - Collect ETL metrics
  • IEtlTelemetryService - Telemetry and tracing
  • IHealthCheckService - Health monitoring
  • IAlertingService - Alert notifications

TypeCollections:

  • HealthStates - Healthy, Degraded, Unhealthy
  • AlertSeverities - Info, Warning, Error, Critical
  • SeverityLevels - Verbose, Information, Warning, Error, Critical
  • ComparisonOperators - 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 infrastructure
  • FractalDataWorks.Results - Railway-oriented result types
  • FractalDataWorks.Etl.Scheduling - Concrete scheduling implementations
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed