-
Notifications
You must be signed in to change notification settings - Fork 0
/
RestApiPagedDynamicAuthStreamContext.cs
94 lines (77 loc) · 2.82 KB
/
RestApiPagedDynamicAuthStreamContext.cs
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System;
using System.Text.Json.Serialization;
using Arcane.Framework.Configuration;
using Arcane.Framework.Sources.RestApi.Models;
using Arcane.Stream.RestApi.Models.Base;
namespace Arcane.Stream.RestApi.Models;
public class RestApiPagedDynamicAuthStreamContext : RestApiDynamicAuthBase
{
/// <summary>
/// Configuration for the page resolver.
/// </summary>
public PageResolverConfiguration PageResolverConfiguration { get; init; }
/// <summary>
/// Templated url field parameters.
/// </summary>
public RestApiTemplatedField[] TemplatedFields { get; init; }
/// <summary>
/// Base url template for this source.
/// </summary>
public string UrlTemplate { get; init; }
/// <summary>
/// Base request body template for this source.
/// </summary>
public string BodyTemplate { get; init; }
/// <summary>
/// Start date for the backfill.
/// </summary>
[JsonConverter(typeof(UnixTimeConverter))]
public DateTimeOffset BackFillStartDate { get; init; }
/// <summary>
/// Properties to traverse before [{..}, {..}, ..] structure is reached in the response.
/// </summary>
public string[] ResponsePropertyKeyChain { get; init; }
/// <summary>
/// Http method to be used: GET or POST.
/// </summary>
public string HttpMethod { get; init; }
/// <summary>
/// Number of JsonElements per single json file.
/// </summary>
public int RowsPerGroup { get; init; }
/// <summary>
/// Max time to wait for rowsPerGroup to accumulate.
/// </summary>
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
[JsonPropertyName("groupingIntervalSeconds")]
public TimeSpan GroupingInterval { get; init; }
/// <summary>
/// Data location for the sink.
/// </summary>
public string SinkLocation { get; init; }
/// <summary>
/// Number of seconds to look back when determining first set of changes to extract.
/// </summary>
public int LookbackInterval { get; init; }
/// <summary>
/// Number of seconds to wait for result before timing out the http request.
/// </summary>
public int HttpTimeout { get; init; }
/// <summary>
/// How long to wait before polling for next result set.
/// </summary>
[JsonPropertyName("changeCaptureIntervalSeconds")]
public int ChangeCaptureInterval { get; init; }
/// <summary>
/// Limit http request rate to this value per <see cref="InternalRateLimitInterval"/>.
/// </summary>
public int InternalRateLimitCount { get; init; }
/// <summary>
/// Rate limit evaluation window.
/// </summary>
public int InternalRateLimitInterval { get; init; }
/// <summary>
/// Schema for the API response.
/// </summary>
public string ApiSchemaEncoded { get; init; }
}