API Reference
Interface
IGitHubRepositorySnapshotStore
Contract for persisted GitHub repository snapshots.
Methods
public abstract IReadOnlyList<GitHubRepositorySnapshotRecord> GetAll() #Returns:
IReadOnlyList<GitHubRepositorySnapshotRecord>Returns all known snapshots ordered by repository and capture time.
Returns
All repository snapshots.
public abstract IReadOnlyList<GitHubRepositorySnapshotRecord> GetByWatch(String watchId) #Returns:
IReadOnlyList<GitHubRepositorySnapshotRecord>Returns all snapshots for a single watch ordered by capture time.
Parameters
- watchId System.String
- Stable watch identifier.
Returns
Ordered snapshots for the watch.
public abstract Boolean TryGet(String id, out GitHubRepositorySnapshotRecord snapshot) #Returns:
BooleanLooks up a snapshot by its stable identifier.
Parameters
- id System.String
- Stable snapshot identifier.
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord@
- Resolved snapshot when one exists.
Returns
true when the snapshot exists.
public abstract Boolean TryGetLatest(String watchId, out GitHubRepositorySnapshotRecord snapshot) #Returns:
BooleanReturns the newest snapshot for a watch when one exists.
Parameters
- watchId System.String
- Stable watch identifier.
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord@
- Newest snapshot when one exists.
Returns
true when at least one snapshot exists.
public abstract Void Upsert(GitHubRepositorySnapshotRecord snapshot) #Returns:
VoidInserts or replaces a repository snapshot.
Parameters
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord
- Snapshot to persist.