IntelligenceX

API Reference

Class

GitHubRepositorySnapshotRecord

Namespace IntelligenceX.Telemetry.GitHub
Assembly IntelligenceX
Modifiers sealed

Canonical repository snapshot used to track stars, forks, watchers, and related trend metrics over time.

Inheritance

  • Object
  • GitHubRepositorySnapshotRecord

Constructors

public GitHubRepositorySnapshotRecord(String id, String watchId, String repositoryNameWithOwner, DateTimeOffset capturedAtUtc, Int32 stars, Int32 forks, Int32 watchers, Int32 openIssues) #

Initializes a new repository snapshot.

Parameters

id System.String requiredposition: 0
Stable snapshot identifier.
watchId System.String requiredposition: 1
Stable watch identifier.
repositoryNameWithOwner System.String requiredposition: 2
Repository name in owner/name form.
capturedAtUtc System.DateTimeOffset requiredposition: 3
UTC time when the snapshot was captured.
stars System.Int32 requiredposition: 4
Repository star count.
forks System.Int32 requiredposition: 5
Repository fork count.
watchers System.Int32 requiredposition: 6
Repository watcher count.
openIssues System.Int32 requiredposition: 7
Repository open issue count.

Methods

public static String CreateStableId(String watchId, DateTimeOffset capturedAtUtc) #
Returns: String

Creates a deterministic snapshot id from watch and capture time.

Parameters

watchId System.String requiredposition: 0
Stable watch identifier.
capturedAtUtc System.DateTimeOffset requiredposition: 1
UTC capture time for the snapshot.

Returns

Stable repository snapshot identifier.

Properties

public String Id { get; } #

Gets the stable snapshot identifier.

public String WatchId { get; } #

Gets the watch definition that produced the snapshot.

public String RepositoryNameWithOwner { get; } #

Gets the canonical repository name in owner/name form.

public DateTimeOffset CapturedAtUtc { get; } #

Gets the UTC time when the snapshot was captured.

public Int32 Stars { get; } #

Gets the repository star count.

public Int32 Forks { get; } #

Gets the repository fork count.

public Int32 Watchers { get; } #

Gets the repository watcher count.

public Int32 OpenIssues { get; } #

Gets the repository open issue count.

public String Description { get; set; } #

Gets or sets the optional repository description.

public String PrimaryLanguage { get; set; } #

Gets or sets the optional primary language.

public String Url { get; set; } #

Gets or sets the optional repository URL.

public Nullable<DateTimeOffset> PushedAtUtc { get; set; } #

Gets or sets the last pushed timestamp when available.

public Boolean IsArchived { get; set; } #

Gets or sets whether the repository is archived.

public Boolean IsFork { get; set; } #

Gets or sets whether the repository itself is a fork.