GetAllDiagnostics

Function GetAllDiagnostics 

Source
pub fn GetAllDiagnostics(
    ResourceURIFilterOption: Option<Value>,
) -> ActionEffect<Arc<dyn DiagnosticManager>, CommonError, Value>
Expand description

Creates an effect that, when executed, will retrieve all diagnostics currently managed by the host, with an option to filter for a specific resource URI.

It uses the DiagnosticManager capability from the environment to perform the operation.

§Parameters

  • ResourceURIFilterOption: An Option<Value> containing a serialized UriComponents DTO. If Some, only diagnostics for that URI will be returned. If None, all diagnostics for all resources are returned.

§Returns

An ActionEffect that resolves with a serde_json::Value representing an array of [UriComponents, MarkerDataDTO[]] tuples.