SharpClaw.Modules.Metrics 0.1.1-beta

This is a prerelease version of SharpClaw.Modules.Metrics.
dotnet add package SharpClaw.Modules.Metrics --version 0.1.1-beta
                    
NuGet\Install-Package SharpClaw.Modules.Metrics -Version 0.1.1-beta
                    
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="SharpClaw.Modules.Metrics" Version="0.1.1-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpClaw.Modules.Metrics" Version="0.1.1-beta" />
                    
Directory.Packages.props
<PackageReference Include="SharpClaw.Modules.Metrics" />
                    
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 SharpClaw.Modules.Metrics --version 0.1.1-beta
                    
#r "nuget: SharpClaw.Modules.Metrics, 0.1.1-beta"
                    
#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 SharpClaw.Modules.Metrics@0.1.1-beta
                    
#: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=SharpClaw.Modules.Metrics&version=0.1.1-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SharpClaw.Modules.Metrics&version=0.1.1-beta&prerelease
                    
Install as a Cake Tool

SharpClaw Metrics

SharpClaw Metrics is the first-party SharpClaw module that owns the sharpclaw_metrics runtime module identity and the metric tool prefix. It registers the built-in queue and scheduler metric providers and the MetricThreshold task trigger source. A task script that declares [OnMetricThreshold("Queue.PendingJobCount", Threshold = 5, Direction = ThresholdDirection.Above)] is parsed into a module-owned trigger definition whose binding value is Queue.PendingJobCount.

The package is intended to be loaded by a SharpClaw host as a module payload. The NuGet package carries the runtime files under sharpclaw\, including module.json, SharpClaw.Modules.Metrics.dll, the dependency file, and the dependency assemblies needed by the sidecar module. The manifest keeps the public module type as SharpClaw.Modules.Metrics.MetricsModule, defaults the module to enabled, and declares sidecar .NET runtime loading.

At runtime the module registers three ITaskMetricProvider implementations against the host-provided IHostQueueMetrics contract. Queue.PendingJobCount reads queued agent jobs, Queue.PendingTaskCount reads queued task instances, and Scheduler.PendingJobCount reads scheduled jobs whose next run is due but has not fired yet. MetricTriggerSource polls registered metric providers and fires a task only when the configured threshold transitions from not-crossed to crossed, which avoids repeated launches while the metric remains on the same side of the threshold.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
0.1.1-beta 2,640 7/5/2026
0.1.0-beta 61 5/20/2026