API Reference
GitHubRepositorySnapshotRecord
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
- Stable snapshot identifier.
- watchId System.String
- Stable watch identifier.
- repositoryNameWithOwner System.String
- Repository name in owner/name form.
- capturedAtUtc System.DateTimeOffset
- UTC time when the snapshot was captured.
- stars System.Int32
- Repository star count.
- forks System.Int32
- Repository fork count.
- watchers System.Int32
- Repository watcher count.
- openIssues System.Int32
- Repository open issue count.
Methods
public static String CreateStableId(String watchId, DateTimeOffset capturedAtUtc) #StringCreates a deterministic snapshot id from watch and capture time.
Parameters
- watchId System.String
- Stable watch identifier.
- capturedAtUtc System.DateTimeOffset
- UTC capture time for the snapshot.
Returns
Stable repository snapshot identifier.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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.