Class FileStorageMetadata
- Namespace
- Monai.Deploy.InformaticsGateway.Api.Storage
- Assembly
- Monai.Deploy.InformaticsGateway.Api.dll
Provides basic information for a DICOM instance and storage hierarchy/path.
public abstract record FileStorageMetadata : IEquatable<FileStorageMetadata>
- Inheritance
-
FileStorageMetadata
- Implements
- Derived
Constructors
FileStorageMetadata()
DO NOT USE This constructor is intended for JSON serializer. Due to limitation in current version of .NET, the constructor must be public. https://github.com/dotnet/runtime/issues/31511
[JsonConstructor]
protected FileStorageMetadata()
FileStorageMetadata(string, string)
protected FileStorageMetadata(string correlationId, string identifier)
Parameters
Properties
CorrelationId
Gets the correlation ID of the file. For SCP received DICOM instances: use internally generated unique association ID. For ACR retrieved DICOM/FHIR files: use the original transaction ID embedded in the request.
[JsonPropertyName("correlationId")]
public string CorrelationId { get; set; }
Property Value
DataOrigin
Gets or sets the data origin of this file.
[JsonPropertyName("dataOrigin")]
[JsonInclude]
public DataOrigin DataOrigin { get; }
Property Value
- DataOrigin
DataTypeDirectoryName
Gets the root directory name
public abstract string DataTypeDirectoryName { get; }
Property Value
DateReceived
Gets or sets the DateTime that the file was received.
[JsonPropertyName("dateReceived")]
public DateTime DateReceived { get; init; }
Property Value
File
Gets the storage object associated.
[JsonPropertyName("file")]
public abstract StorageObjectMetadata File { get; set; }
Property Value
Id
Gets the unique (user-defined) ID of the file.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
IsMoveCompleted
[JsonIgnore]
public virtual bool IsMoveCompleted { get; }
Property Value
IsUploadFailed
[JsonIgnore]
public virtual bool IsUploadFailed { get; }
Property Value
IsUploaded
[JsonIgnore]
public virtual bool IsUploaded { get; }
Property Value
PayloadId
Gets or sets the PayloadId associated with this file.
[JsonPropertyName("payloadId")]
public string? PayloadId { get; set; }
Property Value
TaskId
Gets or sets the task ID for the workflow manager to resume a workflow.
[JsonPropertyName("taskId")]
public string? TaskId { get; set; }
Property Value
WorkflowInstanceId
Gets or sets the workflow instance ID for the workflow manager to resume a workflow.
[JsonPropertyName("WorkflowInstanceId")]
public string? WorkflowInstanceId { get; set; }
Property Value
Workflows
Gets a list of workflows designated for the file.
[JsonPropertyName("workflows")]
[JsonInclude]
public List<string> Workflows { get; }
Property Value
Methods
ChangeCorrelationId(ILogger, string)
public void ChangeCorrelationId(ILogger logger, string correlationId)
Parameters
IpAddress()
public static string IpAddress()
Returns
SetFailed()
public virtual void SetFailed()
SetWorkflows(params string[])
Workflows to be launched on MONAI Workflow Manager, ignoring data routing agent.
public void SetWorkflows(params string[] workflows)
Parameters
workflows
string[]List of workflows.