DEENESPTFRRUARHIKOZHNL

klasse ara::diag::Monitor

[SWS_DM_00542] Upstream: RS_Diag_04179

class Monitor final {...};

Class to implement operations on diagnostic Monitor interface.

Header-Datei#include "ara/diag/monitor.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

User GuideAI-GEGENEREERD

Dient voor het uitvoeren van diagnosebewakingen en de statusmelding aan het Diagnostic Management.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 49f63d89472d Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Dient voor het uitvoeren van diagnosebewakingen en de statusmelding aan het Diagnostic Management.

De klasse ara::diag::Monitor stelt de functionele interface voor de implementatie van diagnosebewakingsfuncties en de koppeling daarvan aan het Diagnostic Management beschikbaar [SWS_DM_00548]. Na de binding aan een port-prototype signaleert de applicatie via Offer() haar ontvangstgereedheid en verzendt zij testresultaten doorlopend via ReportMonitorAction() [SWS_DM_01088], [SWS_DM_00543]. Monitor-instanties zijn niet kopieerbaar en niet verplaatsbaar en alle operaties zijn gespecificeerd als niet-thread-safe [SWS_DM_01685].

Context

De klasse ara::diag::Monitor vormt de gestandaardiseerde C++-interface voor het realiseren van diagnosebewakingsfuncties (monitors) binnen het Adaptive Platform [SWS_DM_00548]. Een monitor is verantwoordelijk voor de detectie en melding van foutsymptomen in functionele softwarecomponenten en geeft de toestand daarvan door aan de module Diagnostic Management (DM).

De binding aan het AUTOSAR-systeemmodel vindt plaats via een ara::core::InstanceSpecifier, die dwingend moet verwijzen naar een door een DiagnosticMonitorInterface getypeerde PortPrototype [SWS_DM_00548]. Bij de totale afhandeling zijn in hoofdzaak drie componenten betrokken: de applicatiespecifieke functiebewaking (Application), de lokale interface-instantie van ara::diag::Monitor en de platformmodule Diagnostic Management (DM), die events ontvangt en herinitialisaties aanvraagt.

diag_kontext app Anwendungssoftware (Monitor-Logik) mon ara::diag::Monitor (Port-Schnittstelle) app->mon ReportMonitorAction() Offer() / StopOffer() mon->app initMonitor-Callback getFaultDetectionCounter() dm Diagnostic Management (DM-daemon) mon->dm Status- & Entprellmeldungen dm->mon Initialisierungs- & Steuerbefehle

Contextdiagram: interactierelaties tussen applicatiesoftware, ara::diag::Monitor en het Diagnostic Management. Bronnen: [SWS_DM_00548], [SWS_DM_00543], [SWS_DM_01088], [SWS_DM_01089]

Levenscyclus

De instantiëring van een monitor richt zich naar het in het model gedefinieerde ontdaveringsmechanisme (debouncing). Het Adaptive Platform stelt hiervoor vier constructorvarianten beschikbaar:

  • Monitor-interne ontdavering met registratie van een InitMonitorNotifier-callback en een functiewijzer voor het opvragen van de Fault Detection Counter (std::function<std::int8_t()> getFaultDetectionCounter) [SWS_DM_00548].
  • Tellergebaseerde ontdavering onder doorgifte van parameters van het type CounterBased [SWS_DM_00549].
  • Tijdgebaseerde ontdavering onder doorgifte van parameters van het type TimeBased [SWS_DM_00550].
  • Directe bewaking zonder ontdaveringsalgoritme [SWS_DM_01972].

Instanties van ara::diag::Monitor zijn vast gebonden aan hun oorspronkelijke geheugenlocatie: copy-constructor [SWS_DM_01685] en copy-assignment-operator [SWS_DM_01683] zijn verwijderd (delete). Evenzo zijn move-constructor [SWS_DM_01686] en move-assignment-operator [SWS_DM_01684] expliciet verwijderd.

Na het aanmaken bevindt de instantie zich in de toestand Niet aangeboden (Unoffered). Pas door de expliciete aanroep van Offer() verklaart de applicatie zich bereid om diagnose-callouts zoals initMonitor te ontvangen en te verwerken [SWS_DM_01088]. Met StopOffer() wordt het doorsturen van diagnoseverzoeken vanuit het DM weer gedeactiveerd [SWS_DM_01089]. Na de aanroep van StopOffer() is een latere hervatting van de werking door een hernieuwde aanroep van Offer() vermoedelijk mogelijk. Vraag Q-136565db34b28ae6 (open) Vóór de definitieve vernietiging van het monitor-object moet de applicatie vermoedelijk StopOffer() uitvoeren om openstaande meldingen veilig te verhinderen.

Wat betreft concurrency zijn alle memberfuncties van ara::diag::Monitor gespecificeerd als niet-thread-safe [SWS_DM_00548], [SWS_DM_01088], [SWS_DM_00543], [SWS_DM_01089]. Als meerdere threads van de applicatiesoftware toegang hebben tot dezelfde monitor, berust de synchronisatie bij de applicatie. Alle methoden zijn echter gedeclareerd als uitzonderingsveilig (noexcept) [SWS_DM_00548], [SWS_DM_01088], [SWS_DM_00543], [SWS_DM_01089].

diag_lebenszyklus unoffered Niet aangeboden (Unoffered / Aangemaakt) offered Angeboten (Offered / Aktiv) unoffered->offered Offer() [Erfolg] offered->offered Offer() [kAlreadyOffered] stopped Gestoppt (Stopped / Inaktiv) offered->stopped StopOffer() stopped->offered Offer()

Toestandsdiagram: levenscyclustoestanden en overgangen bij het aanbieden van de service van ara::diag::Monitor. Bronnen: [SWS_DM_01088], [SWS_DM_01089]

Gebruikspad

Het reguliere verloop voor de bewaking van een foutpad omvat de volgende stappen:

  1. Instantiëring: de applicatie maakt de Monitor-instantie aan onder vermelding van de InstanceSpecifier, de callback initMonitor en eventueel benodigde ontdaveringsparameters of de FDC-callback [SWS_DM_00548], [SWS_DM_00549].
  2. Serviceaanbod: via Offer() meldt de monitor zich bij het DM aan als gereed voor ontvangst [SWS_DM_01088].
  3. Initialisatie: het Diagnostic Management informeert de applicatie via de geregistreerde InitMonitorNotifier-callback over aanstaande initialisatiegebeurtenissen [SWS_DM_01088].
  4. Periodieke/eventgebaseerde melding: tijdens de operationele werking meldt de applicatie doorlopend de status van het bewakingspad via ReportMonitorAction(action) [SWS_DM_00543]. De doorgegeven actie bevat ofwel testresultaten (gekwalificeerd/ongekwalificeerd), ofwel opdrachten voor ontdaveringssturing resp. vooropslag (prestorage). Als er monitor-interne debouncing is geconfigureerd, vraagt het DM via de geregistreerde callback desgewenst de foutbegrenzingswaarde op [SWS_DM_00548].
  5. Servicebeëindiging: vóór het afsluiten of bij deactivering van de diagnosefunctie roept de applicatie StopOffer() aan om inkomende DM-berichten te verhinderen [SWS_DM_01089].
Typisch verloop van het Monitor-gebruikAnwendungara::diag::MonitorDiagnostic ManagementMonitor(specifier, initMonitor, ...)Offer()Service anbietenResult<void>Use Case: Initialisatie en bewakinginitMonitor(action)ReportMonitorAction(action)Status aktualisierenoptMonitor-internes DebouncinggetFaultDetectionCounter()std::int8_t FDCUse Case: DeaktivierungStopOffer()Weiterleitung deaktivieren

Sequentiediagram: typische aanroepvolgorde van de initialisatie via de statusmelding tot de deactivering. Bronnen: [SWS_DM_00548], [SWS_DM_01088], [SWS_DM_00543], [SWS_DM_01089]

Foutscenario's

Foutsituaties manifesteren zich bij ara::diag::Monitor op twee verschillende niveaus: als foutcode via ara::core::Result of als runtime-schendingen (violations) van het framework.

De methode Offer() retourneert een ara::core::Result<void>. Bevindt de monitor zich reeds in de aangeboden toestand, dan mislukt de aanroep en levert deze de foutcode DiagOfferErrc::kAlreadyOffered op [SWS_DM_01088].

Ernstige configuratie- of aanroepfouten leiden tot gedefinieerde schendingsmeldingen:

  • InstanceSpecifierMappingIntegrityViolation: de InstanceSpecifier kan in de modelcontext van het proces niet worden opgelost of verwijst niet naar een PortPrototype [SWS_DM_00548].
  • PortInterfaceMappingViolation: De gerefereerde poort is niet getypeerd door een DiagnosticMonitorInterface [SWS_DM_00548].
  • ProcessMappingViolation: er bestaat geen passend gemodelleerd proces voor de runtime-instantie [SWS_DM_00548].
  • InstanceSpecifierAlreadyInUseViolation: de InstanceSpecifier wordt binnen het actuele proces al door een andere monitor gebruikt [SWS_DM_00548].
  • InvalidDebouncingAlgorithmViolation: het in de constructor gekozen ontdaveringsmechanisme wijkt af van de in de DEXT-diagnosebeschrijvingen gemodelleerde ontdaveringsmethode [SWS_DM_00548], [SWS_DM_00549], [SWS_DM_00550].
  • UnexpectedMonitorActionHandlingViolation: aan de methode ReportMonitorAction() wordt een actiewaarde doorgegeven die voor het geconfigureerde ontdaveringsalgoritme niet wordt ondersteund [SWS_DM_00543].

Deze handleiding is gebaseerd op de specificatie AUTOSAR Adaptive Platform Release R25-11.

Ledenkaart

Constructors en destructor

1

Operatoren

1

Klassendiagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__diag__Monitor586 Monitor + Monitor() + operator=() + Offer() + ReportMonitorAction() + StopOffer()

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Monitor functie 6

Monitor constructor for Monitors with Monitor-internal debouncing. using ara::diag::CounterBased; using ara::diag::TimeBased;

Overloads Monitor 6
Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, std::function< std::int8_t()> getFaultDetection Counter) noexcept; SWS_DM_00548
Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, CounterBased defaultValues) noexcept; SWS_DM_00549
Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, TimeBased defaultValues) noexcept; SWS_DM_00550
Monitor (Monitor &)=delete; SWS_DM_01685
Monitor (Monitor &&) noexcept=delete; SWS_DM_01686
Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor) noexcept; SWS_DM_01972

Methoden

Offer functie

With the Offer the application states that it is ready to receive and process initMonitor callouts.

ara::core::Result< void > Offer () noexcept;

Function to report the status information being relevant for error monitoring paths.

void ReportMonitorAction (MonitorAction action) noexcept;
StopOffer functie

This StopOffer will disable the forwarding of request messages from DM.

void StopOffer () noexcept;

Operatoren

operator= functie 2

Monitor shall be a single not assignable instance.

Overloads = 2
Monitor & operator= (Monitor &)=delete; SWS_DM_01683
Monitor & operator= (Monitor &&)=delete; SWS_DM_01684

Documentatie van de methoden

functie Monitor [SWS_DM_00548] Upstream: RS_AP_00121, RS_AP_00137, RS_Diag_04179, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, std::function< std::int8_t()> getFaultDetection Counter) noexcept;

Monitor constructor for Monitors with Monitor-internal debouncing. using ara::diag::CounterBased; using ara::diag::TimeBased;

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceMonitorInternal or DiagnosticEventToDebounceAlgorithmMapping shall not exist.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitorPossibility to register an InitMonitor callback
getFaultDetectionCounterPossibility to register a function to get the current FDC for this event.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00548
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00548@rel:R25-11#47333ac8
Content hash
47333ac8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00548
Status: valid/unmigrated Version: rel:R25-11#c407131c Versionshistorie & Revisions (1 transition, 8 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_00548@rel:R25-11#c407131c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b150023b2026-09-30
  • R19-11rel:R19-11#9dae45942026-10-14
  • R20-11rel:R20-11#1b9245172026-10-14
  • R21-11rel:R21-11#9d09d2232026-10-14
  • R22-11rel:R22-11#96a416ec2026-10-14
  • R23-11rel:R23-11#bc098b922026-10-14
  • R24-11rel:R24-11#5a7c66fa2026-10-14
  • R25-11rel:R25-11#c407131c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Monitor [SWS_DM_00549] Upstream: RS_AP_00137, RS_AP_00121, RS_Diag_04179, RS_Diag_04068, RS_ AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, CounterBased defaultValues) noexcept;

Monitor constructor for Monitors with counter-based debouncing.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceCounterBased.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitorPossibility to register an InitMonitor callback
defaultValuesDefault values for CounterBased debouncing

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00549
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00549@rel:R25-11#29c67ed9
Content hash
29c67ed9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00549
Status: valid/unmigrated Version: rel:R25-11#b6b90a41 Versionshistorie & Revisions (1 transition, 8 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_00549@rel:R25-11#b6b90a41
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#aa05357e2026-09-30
  • R19-11rel:R19-11#409ae35a2026-10-14
  • R20-11rel:R20-11#c96bf0f52026-10-14
  • R21-11rel:R21-11#269dc8742026-10-14
  • R22-11rel:R22-11#0b5b8e002026-10-14
  • R23-11rel:R23-11#86fe0f482026-10-14
  • R24-11rel:R24-11#363e9ef32026-10-14
  • R25-11rel:R25-11#b6b90a412026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Monitor [SWS_DM_00550] Upstream: RS_AP_00121, RS_AP_00137, RS_Diag_04179, RS_Diag_04225, RS_ AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor, TimeBased defaultValues) noexcept;

Monitor constructor for Monitors with time-based debouncing.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceTimeBased.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitorPossibility to register an InitMonitor callback
defaultValuesDefault values for TimeBased debouncing

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00550
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00550@rel:R25-11#a91db187
Content hash
a91db187
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00550
Status: valid/unmigrated Version: rel:R25-11#37a4f2c0 Versionshistorie & Revisions (1 transition, 8 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_00550@rel:R25-11#37a4f2c0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1ba6e97a2026-09-30
  • R19-11rel:R19-11#4f8f56cd2026-10-14
  • R20-11rel:R20-11#cbc0dc0f2026-10-14
  • R21-11rel:R21-11#ed45df312026-10-14
  • R22-11rel:R22-11#7eec884b2026-10-14
  • R23-11rel:R23-11#6ec7d8d22026-10-14
  • R24-11rel:R24-11#1f707ece2026-10-14
  • R25-11rel:R25-11#37a4f2c02026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Monitor [SWS_DM_01685] Upstream: RS_AP_00147

Monitor (Monitor &)=delete;

Monitor shall be a single not copy-able instance.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01685
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01685@rel:R25-11#ba447296
Content hash
ba447296
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01685
Status: valid/unmigrated Version: rel:R25-11#b61bdc4e 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_01685@rel:R25-11#b61bdc4e
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#885cac442026-09-30
  • R23-11rel:R23-11#1187bdc12026-10-14
  • R24-11rel:R24-11#b61bdc4e2026-10-14
  • R25-11rel:R25-11#b61bdc4e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Monitor [SWS_DM_01686] Upstream: RS_AP_00147

Monitor (Monitor &&) noexcept=delete;

Move constructor of Monitor.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01686
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01686@rel:R25-11#b6a9157a
Content hash
b6a9157a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01686
Status: valid/unmigrated Version: rel:R25-11#0958d508 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_01686@rel:R25-11#0958d508
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e3f6b2e12026-09-30
  • R23-11rel:R23-11#f9be95aa2026-10-14
  • R24-11rel:R24-11#0958d5082026-10-14
  • R25-11rel:R25-11#0958d5082026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Monitor [SWS_DM_01972] Upstream: RS_AP_00121, RS_AP_00137, RS_Diag_04179, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

Monitor (const ara::core::InstanceSpecifier &specifier, InitMonitor Notifier initMonitor) noexcept;

Monitor constructor for Monitors without debouncing.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation DiagnosticMonitorPortMapping needs to be typed by a DiagnosticMonitorInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process. InvalidDebouncin- Mismatching Debounce Algorithm in DEXT i.e gAlgorithmViola- DiagnosticEventToDebounceAlgorithmMapping shall be tion mapped to DiagnosticEventToDebounceAlgorithmMapping. DiagnosticDebounceAlgorithmProps which aggregates DiagEventDebounceMonitorInternal or DiagnosticEventToDebounceAlgorithmMapping shall not exist.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype of a DiagnosticMonitorInterface.
initMonitorPossibility to register an InitMonitor callback

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01972
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01972@rel:R25-11#17d6512a
Content hash
17d6512a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01972
Status: valid/unmigrated Version: rel:R25-11#9ab5ff05 Versionshistorie & Revisions (1 transition, 3 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_01972@rel:R25-11#9ab5ff05
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2b82c40a2026-09-30
  • R24-11rel:R24-11#9596c0212026-10-14
  • R25-11rel:R25-11#9ab5ff052026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie Offer [SWS_DM_01088] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04169

ara::core::Result< void > Offer () noexcept;

With the Offer the application states that it is ready to receive and process initMonitor callouts.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 2e8d03769af8 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Met de aanroep van de methode Offer signaleert een Adaptive Application aan Diagnostic Management (DM) dat zij gereed is voor de ontvangst en verwerking van initMonitor-callouts [SWS_DM_01088]. De methode van de klasse ara::diag::Monitor bezit geen parameters en levert ara::core::Result<void> terug [SWS_DM_01088]. Hoewel de naam is gekozen naar analogie van ara::com, betreft het een specifieke implementatie van de diagnosecomponent en mag deze niet worden verward met communicatiediensten AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”.

In geval van een fout retourneert de methode de foutcode DiagOfferErrc::kAlreadyOffered, indien de dienst al eerder werd aangeboden [SWS_DM_01088]. Dit komt overeen met de enumerator voor het melden van reeds actieve aanbiedingen binnen de diagnose-foutdomeinen [SWS_DM_00514]. Bij een succesvolle aanroep bevat het retourobject geen fout.

Wat betreft gelijktijdigheid is de methode gespecificeerd als not thread-safe, waardoor parallelle aanroepen op dezelfde instantie aan applicatiezijde moeten worden gesynchroniseerd [SWS_DM_01088]. Bovendien is de functie als uitzonderingsveilig (exception safe) en met noexcept gedeclareerd [SWS_DM_01088].

In het samenspel dient de interface als ter beschikking gestelde poort voor notificaties van de DM, terwijl de applicatie diagnosetoestanden meldt aan de DM AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”. Het aanbieden via Offer stelt de DM in staat de notifiers initMonitor te triggeren voor monitors met interne, tellergebaseerde of tijdgebaseerde ontstoring AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”. Het beëindigen van de dienstgereedheid geschiedt via de methode StopOffer AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”.

Deze gebruiksinstructie is geautomatiseerd gegenereerd. Alle verklaringen zijn onderbouwd door de specificatie AUTOSAR Adaptive Platform.

Implementer's Guide volgt (complexiteit I2)

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >Returns nothing or an error.

Fehler

FehlercodeBeschreibung
DiagOfferErrc::kAlreadyOfferedrollback_semantics The service is already offered.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01088
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01088@rel:R25-11#5f9206f2
Content hash
5f9206f2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01088
Status: valid/unmigrated Version: rel:R25-11#c26ecf6d Versionshistorie & Revisions (1 transition, 6 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_01088@rel:R25-11#c26ecf6d
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#14a77d032026-09-30
  • R21-11rel:R21-11#faa82eee2026-10-14
  • R22-11rel:R22-11#a9c6d5b82026-10-14
  • R23-11rel:R23-11#2bc534172026-10-14
  • R24-11rel:R24-11#51ad38872026-10-14
  • R25-11rel:R25-11#c26ecf6d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie ReportMonitorAction [SWS_DM_00543] Upstream: RS_Diag_04179, RS_AP_00139, RS_AP_00119

void ReportMonitorAction (MonitorAction action) noexcept;

Function to report the status information being relevant for error monitoring paths.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 8334da733b55 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De synchrone methode ReportMonitorAction van de klasse ara::diag::Monitor meldt status- en monitoringinformatie van een diagnosecontrole aan de foutmonitoring van de Diagnostic Management Daemon [SWS_DM_00543]. Via de parameter action van het type MonitorAction draagt de applicatie een gekwalificeerd dan wel ongekwalificeerd testresultaat over, of besturingscommando's voor het aansturen van het ontdenderen en het triggeren van een pre-opslag (prestorage) [SWS_DM_00543]. De functie levert geen retourwaarde op (void) en is gedeclareerd als noexcept en exception-safe [SWS_DM_00543].

Wordt ReportMonitorAction aangeroepen met een waarde voor action die niet wordt ondersteund door de geconfigureerde ontdaveringsmethode van het diagnose-event, dan genereert de Diagnostic Manager een processchending [SWS_DM_01988]. Bovendien definieert het systeem interne foutcodes in het type DiagErrc, bijvoorbeeld kReportIgnored voor situaties waarin vrijgavevoorwaarden niet zijn vervuld [SWS_DM_00514].

Voor de integratie en concurrency gelden de volgende randvoorwaarden:

  • Thread-safety: De functie is niet thread-safe (not thread-safe) [SWS_DM_00543]. Parallelle aanroepen op dezelfde monitor-instantie moeten aan de aanroeperszijde worden gesynchroniseerd (in tegenstelling tot MultipleMonitor, waarbij de thread-safety configureerbaar is via de constructor [SWS_DM_01698]).
  • Vrijgavevoorwaarden: Als een aan het diagnose-event toegewezen Enable Condition niet is vervuld, wordt de aanroep van ReportMonitorAction genegeerd SWS Diagnostics §7.3.4.1.4 “EnableConditions”.
  • Ontdendering: Gemelde acties zoals kPrefailed wijzigen de interne ontdaverteller volgens de geconfigureerde stapgrootte [SWS_DM_00875], totdat bij het bereiken van de drempelwaarde de fout wordt geclassificeerd als kFinallyDefective [SWS_DM_00024].

Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie AUTOSAR AP R25-11.

Implementer's Guide volgt (complexiteit I2)

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)UnexpectedMoni- ara::diag::Monitor::ReportMonitorAction is called with torActionHan- a parameter action value that is not supported by the used dlingViolation debouncing method.

Parameter (in)

ParameterBeschreibung
actionContains either the last (un-)qualified test result of the diagnostic monitor or commands to control the debouncing or to force a prestorage.

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_00543
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_00543@rel:R25-11#6f9e3eff
Content hash
6f9e3eff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00543
Status: valid/unmigrated Version: rel:R25-11#f21b58da Versionshistorie & Revisions (1 transition, 8 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_00543@rel:R25-11#f21b58da
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#060fb8752026-09-30
  • R19-11rel:R19-11#ecd452012026-10-14
  • R20-11rel:R20-11#601960092026-10-14
  • R21-11rel:R21-11#e35f2a592026-10-14
  • R22-11rel:R22-11#52a806d52026-10-14
  • R23-11rel:R23-11#3d9de7712026-10-14
  • R24-11rel:R24-11#f069565a2026-10-14
  • R25-11rel:R25-11#f21b58da2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie StopOffer [SWS_DM_01089] Upstream: RS_Diag_04169

void StopOffer () noexcept;

This StopOffer will disable the forwarding of request messages from DM.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: e17ef3becf1d Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De methode ara::diag::Monitor::StopOffer deactiveert het doorsturen van verzoeken en berichten vanuit Diagnostic Management (DM) naar de desbetreffende monitor-instantie ([SWS_DM_01089]). De aanroep wordt synchroon uitgevoerd, vereist geen overdrachtsparameters en heeft geen retourwaarde ([SWS_DM_01089]). De bewerking dient als tegenhanger van Offer en stelt een Adaptive Application in staat om de actieve bewaking te onderbreken, mits het bijbehorende systeemdeel tijdelijk niet bewaakt hoeft te worden (AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”). Weliswaar oriënteert de identifier zich op de interfaces uit ara::com, maar de specificatie benadrukt uitdrukkelijk dat het om een zelfstandige implementatie van ara::diag::Monitor gaat (AUTOSAR_AP_SWS_Diagnostics §7.3.4.1.2 “Monitors”).

Wat betreft de foutafhandeling is de functie gedeclareerd als noexcept en geldt deze als uitzonderingsveilig (exception safe); specifieke foutcodes of foutmeldingen bestaan niet ([SWS_DM_01089]). Als wezenlijke beperking is StopOffer geclassificeerd als niet-thread-safe (not thread-safe) ([SWS_DM_01089]). Interpretatie: bij gelijktijdige toegangen tot hetzelfde monitor-object is de aanroeper vermoedelijk zelf verantwoordelijk voor een passende synchronisatie. Vraag Q-3ead3049b4378083 (open)

In het totale systeem past StopOffer binnen een uniform patroon van de diagnosemodule: analoge interfaces voor het deactiveren van het doorsturen van DM-berichten zijn onder meer te vinden bij GenericRoutine ([SWS_DM_00558]), CommunicationControl ([SWS_DM_00810]), EcuResetRequest ([SWS_DM_01017]) en Authentication ([SWS_DM_01131]).

Deze gebruiksinstructie is geautomatiseerd gegenereerd en is gebaseerd op de specificaties van AUTOSAR Adaptive R25-11.

Implementer's Guide volgt (complexiteit I2)

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01089
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01089@rel:R25-11#3f39ee1e
Content hash
3f39ee1e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01089
Status: valid/unmigrated Version: rel:R25-11#66952c09 Versionshistorie & Revisions (1 transition, 6 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_01089@rel:R25-11#66952c09
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#25a3dd982026-09-30
  • R21-11rel:R21-11#ba7933502026-10-14
  • R22-11rel:R22-11#70e8e0742026-10-14
  • R23-11rel:R23-11#b0a4240b2026-10-14
  • R24-11rel:R24-11#44f352c32026-10-14
  • R25-11rel:R25-11#66952c092026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie operator= [SWS_DM_01683] Upstream: RS_AP_00147

Monitor & operator= (Monitor &)=delete;

Monitor shall be a single not assignable instance.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01683
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01683@rel:R25-11#a2ef19f1
Content hash
a2ef19f1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01683
Status: valid/unmigrated Version: rel:R25-11#35cb3ac0 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_01683@rel:R25-11#35cb3ac0
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e8fea5aa2026-09-30
  • R23-11rel:R23-11#f832beb72026-10-14
  • R24-11rel:R24-11#35cb3ac02026-10-14
  • R25-11rel:R25-11#35cb3ac02026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

functie operator= [SWS_DM_01684] Upstream: RS_AP_00147

Monitor & operator= (Monitor &&)=delete;

Move assignment operator of Monitor.

Header-Datei#include "ara/diag/monitor.h"
Scopeclass ara::diag::Monitor

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01684
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01684@rel:R25-11#6357dd03
Content hash
6357dd03
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01684
Status: valid/unmigrated Version: rel:R25-11#0f50b9c9 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_01684@rel:R25-11#0f50b9c9
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#ea640fb12026-09-30
  • R23-11rel:R23-11#e3480a782026-10-14
  • R24-11rel:R24-11#0f50b9c92026-10-14
  • R25-11rel:R25-11#0f50b9c92026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill