2026-09-04 14:03:41 +03:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace RudderSdk.Core;
|
|
|
|
|
|
|
|
|
|
/// <summary>Payload of <see cref="EffectsService.OnScenarioFailed"/>.</summary>
|
|
|
|
|
public sealed class ScenarioFailedEffect
|
|
|
|
|
{
|
2026-09-06 22:25:32 +03:00
|
|
|
internal ScenarioFailedEffect(string runId, string scenarioSlug, string nodeId, Exception exception)
|
2026-09-04 14:03:41 +03:00
|
|
|
{
|
|
|
|
|
RunId = runId;
|
2026-09-06 22:25:32 +03:00
|
|
|
ScenarioSlug = scenarioSlug;
|
2026-09-04 14:03:41 +03:00
|
|
|
NodeId = nodeId;
|
|
|
|
|
Exception = exception;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>Server-issued run id.</summary>
|
|
|
|
|
public string RunId { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>Scenario id.</summary>
|
2026-09-06 22:25:32 +03:00
|
|
|
public string ScenarioSlug { get; }
|
2026-09-04 14:03:41 +03:00
|
|
|
|
|
|
|
|
/// <summary>Node the failure happened at.</summary>
|
|
|
|
|
public string NodeId { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>The error that failed the run.</summary>
|
|
|
|
|
public Exception Exception { get; }
|
|
|
|
|
}
|