API Reference
Class
GitHubRepositoryObservabilityService
Coordinates repository watch management and persisted snapshot history.
Inheritance
- Object
- GitHubRepositoryObservabilityService
Constructors
public GitHubRepositoryObservabilityService(IGitHubRepositoryWatchStore watchStore, IGitHubRepositorySnapshotStore snapshotStore) #Initializes a new observability service.
Parameters
- watchStore IntelligenceX.Telemetry.GitHub.IGitHubRepositoryWatchStore
- Watch-definition store.
- snapshotStore IntelligenceX.Telemetry.GitHub.IGitHubRepositorySnapshotStore
- Snapshot-history store.
Methods
public GitHubRepositoryWatchRecord EnsureWatch(String repositoryNameWithOwner, Nullable<DateTimeOffset> createdAtUtc = null, String displayName = null, String category = null, String notes = null, Nullable<Boolean> enabled = null) #Returns:
GitHubRepositoryWatchRecordEnsures a watch exists for the supplied repository.
Parameters
- repositoryNameWithOwner System.String
- Repository name in owner/name form.
- createdAtUtc System.Nullable{System.DateTimeOffset} = null
- Optional watch creation time.
- displayName System.String = null
- Optional user-facing label.
- category System.String = null
- Optional grouping label.
- notes System.String = null
- Optional freeform notes.
- enabled System.Nullable{System.Boolean} = null
- Optional enabled-state override.
Returns
The persisted watch definition.
public IReadOnlyList<GitHubRepositorySnapshotDelta> GetLatestDeltas(Boolean enabledOnly = true) #Returns:
IReadOnlyList<GitHubRepositorySnapshotDelta>Returns the latest per-watch deltas across known watches.
Parameters
- enabledOnly System.Boolean = true
- When true, includes only enabled watches.
Returns
Latest per-watch deltas ordered by repository.
public IReadOnlyList<GitHubRepositorySnapshotRecord> GetSnapshots(String watchId = null) #Returns:
IReadOnlyList<GitHubRepositorySnapshotRecord>Returns all persisted snapshots.
Parameters
- watchId System.String = null
- Optional watch identifier filter.
Returns
Ordered snapshot history.
public IReadOnlyList<GitHubRepositoryWatchRecord> GetWatches(Boolean enabledOnly = false) #Returns:
IReadOnlyList<GitHubRepositoryWatchRecord>Returns all known watches.
Parameters
- enabledOnly System.Boolean = false
- When true, returns only enabled watches.
Returns
Ordered watch definitions.
public GitHubRepositorySnapshotDelta RecordSnapshot(GitHubRepositorySnapshotRecord snapshot) #Returns:
GitHubRepositorySnapshotDeltaPersists a snapshot and returns its latest delta versus the prior snapshot.
Parameters
- snapshot IntelligenceX.Telemetry.GitHub.GitHubRepositorySnapshotRecord
- Snapshot to persist.
Returns
Delta versus the immediately prior snapshot when available.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object