-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCreateExportJobRequest.cs
More file actions
60 lines (48 loc) · 1.96 KB
/
CreateExportJobRequest.cs
File metadata and controls
60 lines (48 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.DurableTask.Client;
using Microsoft.DurableTask.ExportHistory;
namespace ExportHistoryWebApp.Models;
/// <summary>
/// Represents a request to create a new export job.
/// </summary>
public class CreateExportJobRequest
{
/// <summary>
/// Gets or sets the unique identifier for the export job. If not provided, a GUID will be generated.
/// </summary>
public string? JobId { get; set; }
/// <summary>
/// Gets or sets the export mode (Batch or Continuous).
/// </summary>
public ExportMode Mode { get; set; }
/// <summary>
/// Gets or sets the start time for the export based on completion time (inclusive). Required.
/// </summary>
public DateTimeOffset CompletedTimeFrom { get; set; }
/// <summary>
/// Gets or sets the end time for the export based on completion time (inclusive). Required for Batch mode, null for Continuous mode.
/// </summary>
public DateTimeOffset? CompletedTimeTo { get; set; }
/// <summary>
/// Gets or sets the blob container name where exported data will be stored. Optional if default storage is configured.
/// </summary>
public string? Container { get; set; }
/// <summary>
/// Gets or sets an optional prefix for blob paths.
/// </summary>
public string? Prefix { get; set; }
/// <summary>
/// Gets or sets the export format settings. Optional, defaults to jsonl-gzip.
/// </summary>
public ExportFormat? Format { get; set; }
/// <summary>
/// Gets or sets the orchestration runtime statuses to filter by. Optional.
/// Valid statuses are: Completed, Failed, Terminated.
/// </summary>
public List<OrchestrationRuntimeStatus>? RuntimeStatus { get; set; }
/// <summary>
/// Gets or sets the maximum number of instances to fetch per batch. Optional, defaults to 100.
/// </summary>
public int? MaxInstancesPerBatch { get; set; }
}