feat: Add RustFS artifact object store and migration tool
- Implemented RustFsArtifactObjectStore for managing artifacts in RustFS. - Added unit tests for RustFsArtifactObjectStore functionality. - Created a RustFS migrator tool to transfer objects from S3 to RustFS. - Introduced policy preview and report models for API integration. - Added fixtures and tests for policy preview and report functionality. - Included necessary metadata and scripts for cache_pkg package.
This commit is contained in:
		@@ -0,0 +1,24 @@
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
 | 
			
		||||
namespace StellaOps.Bench.ScannerAnalyzers;
 | 
			
		||||
 | 
			
		||||
internal sealed record ScenarioResult(
 | 
			
		||||
    string Id,
 | 
			
		||||
    string Label,
 | 
			
		||||
    int SampleCount,
 | 
			
		||||
    double MeanMs,
 | 
			
		||||
    double P95Ms,
 | 
			
		||||
    double MaxMs,
 | 
			
		||||
    int Iterations,
 | 
			
		||||
    double ThresholdMs)
 | 
			
		||||
{
 | 
			
		||||
    public string IdColumn => Id.Length <= 28 ? Id.PadRight(28) : Id[..28];
 | 
			
		||||
 | 
			
		||||
    public string SampleCountColumn => SampleCount.ToString(CultureInfo.InvariantCulture).PadLeft(5);
 | 
			
		||||
 | 
			
		||||
    public string MeanColumn => MeanMs.ToString("F2", CultureInfo.InvariantCulture).PadLeft(9);
 | 
			
		||||
 | 
			
		||||
    public string P95Column => P95Ms.ToString("F2", CultureInfo.InvariantCulture).PadLeft(9);
 | 
			
		||||
 | 
			
		||||
    public string MaxColumn => MaxMs.ToString("F2", CultureInfo.InvariantCulture).PadLeft(10);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user