Monitors the current state of a resource.
Name | Description | |
---|---|---|
ResourceMonitor |
Initializes a new instance of the ResourceMonitor class. |
Name | Description | |
---|---|---|
MessageLogged |
Raised when a message is logged. |
Name | Description | |
---|---|---|
ResourceType |
Gets the Inedo.Extensibility.SecureResources.SecureResource type that can be monitored by this type. |
|
ResourceTypeDisplayName |
Returns a user-friendly type display name of the ResourceType. |
|
StateType |
Gets the ResourceMonitorState type that Inedo.Extensibility.ResourceMonitors.ResourceMonitor.GetCurrentStatesAsync(Inedo.Extensibility.ResourceMonitors.IResourceMonitorContext,System.Threading.CancellationToken) will return. |
Name | Description | |
---|---|---|
GetCurrentStatesAsync(IResourceMonitorContext context, System.Threading.CancellationToken cancellationToken) | ||
GetDescription |
Returns a friendly description of the monitor and its configuration. |
|
Log(Inedo.Diagnostics.IMessage message) |
Implementors should inherit from ResourceMonitor<TState, TResource> if a Inedo.Extensibility.SecureResources.SecureResource is consumed.
The monitored resource is generally a Inedo.Extensibility.SecureResources.SecureResource. Existing monitors (implemented inside of BuildMaster) include:
Inedo.Extensibility.Git.GitRepository monitor that uses ResourceMonitorState for latest commits on a specific set of branches
Inedo.Extensibility.CIServers.CIProject monitor that uses ResourceMonitorState for latest build of a certain status and scope
Scheduled job monitor that doesn't monitor a resource, but uses ResourceMonitorState for the last time run