IntelligenceX

API Reference

Interface

IGitHubRepositoryStargazerSnapshotStore

Namespace IntelligenceX.Telemetry.GitHub

Contract for persisted GitHub stargazer observations.

Methods

GetAll() #

Returns all known stargazer snapshots ordered by repository, capture time, and login.

Returns

All persisted stargazer snapshots.

GetByRepository(System.String repositoryNameWithOwner) #

Returns stargazer snapshots for one repository ordered by capture time and stargazer login.

Parameters

repositoryNameWithOwner System.String required
Repository in owner/name form.

Returns

Ordered stargazer snapshots for the repository.

GetByStargazer(System.String stargazerLogin) #

Returns stargazer snapshots for one GitHub login ordered by capture time and repository.

Parameters

stargazerLogin System.String required
GitHub login of the stargazer.

Returns

Ordered stargazer snapshots for the login.

GetLatestCaptureAtUtcByRepository(System.String repositoryNameWithOwner) #

Returns the most recent capture time for one repository when available.

Parameters

repositoryNameWithOwner System.String required
Repository in owner/name form.

Returns

Most recent capture time for the repository.

MarkRepositoryCaptured(System.String repositoryNameWithOwner, System.DateTimeOffset capturedAtUtc) #

Records that a repository stargazer capture was attempted, even if no audience rows were returned.

Parameters

repositoryNameWithOwner System.String required
Repository in owner/name form.
capturedAtUtc System.DateTimeOffset required
UTC time when the capture completed.
Upsert(IntelligenceX.Telemetry.GitHub.GitHubRepositoryStargazerSnapshotRecord snapshot) #

Inserts or replaces a stargazer snapshot.

Parameters

snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositoryStargazerSnapshotRecord required
Stargazer snapshot to persist.