function ConfigureMonitor [SWS_DM_01696] Upstream: RS_AP_00137, RS_Diag_04179, RS_AP_00121
ara::core::Result< void > ConfigureMonitor (MonitorHandleType monitor Handle, InitMonitorNotifier initMonitor, std::function< std::int8_t()> getFaultDetectionCounter) noexcept;
Configures a monitor with Monitor-internal debouncing. Any overloaded ConfigureMonitor shall be only called once per monitor. The monitor can only be used after this initialisation step.
use
The method ara::diag::MultipleMonitor::ConfigureMonitor initializes a diagnostic monitor for monitor-internal debouncing [SWS_DM_01696]. Via parameter monitorHandle, the monitor to be configured is addressed, while initMonitor registers a notifier callback for re-initializations and getFaultDetectionCounter registers a function to retrieve the current fault detection counter (FDC) [SWS_DM_01696]. Execution is synchronous and returns a ara::core::Result<void> AUTOSAR_AP_SWS_Diagnostics §8.44.2.1.3.4 “ConfigureMonitor”.
Error Handling and Concurrency
In case of error, the error result DiagErrc::kInvalidArgument is returned [SWS_DM_01696]. This is likely to occur in particular if invalid function pointers are passed or incompatible states exist in internal debouncing (interpretation). Question Q-3de0f2b0cc427ef3 (open) The operation is specified as noexcept as well as exception safe, but explicitly marked as not thread-safe [SWS_DM_01696]. Invocations on the same monitor instance must therefore be synchronized on the application side.
Sequence and Interaction
Each overload of ConfigureMonitor may only be called exactly once for a monitor; the monitor is ready for use only after this initialization step [SWS_DM_01696]. In monitor-internal debouncing, the diagnostic monitor application processes the debouncing logic autonomously and only transmits final results to the Diagnostic Management AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.5.3 “Monitor-internal debouncing”. For other debouncing mechanisms, alternative overloads are available for time-based [SWS_DM_01697], counter-based [SWS_DM_01702], or unbounced monitors [SWS_DM_01973].
This usage note was created automatically based on the specification.
Implementer's Guide to follow (complexity I2)
| Header-Datei | #include "ara/diag/multiple_monitor.h" |
|---|---|
| Scope | class ara::diag::MultipleMonitor |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| monitorHandle | Identifies the requested monitor |
| initMonitor | Possibility to register an InitMonitor callback |
| getFaultDetectionCounter | Possibility to register a function to get the current FDC for this event. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | Returns nothing or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| DiagErrc::kInvalidArgument | rollback_semantics e.g. kPreFailed with internal debouncing |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01696- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01696@rel:R25-11#c62b4011- Content hash
c62b4011- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01696
Status: valid/unmigrated
Version: rel:R25-11#8434f254
Versionshistorie & Revisions (1 transition, 4 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_DM_01696@rel:R25-11#8434f254
Recorded Revisions (4):
- R25-11
rel:R25-11#c62b40112026-09-30 - R23-11
rel:R23-11#daa241aa2026-10-14 - R24-11
rel:R24-11#b8bb06ec2026-10-14 - R25-11
rel:R25-11#8434f2542026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · German original