DEENESPTFRRUARHIKOZHNL

struct ara::diag::SovdBulkData::DeleteByCategoryResult

[SWS_DM_01926] Upstream: RS_Diag_04266

struct DeleteByCategoryResult {...};

Definition of the result type for the "Delete All Bulk Data Defined by Category" method.

Header-Datei#include "ara/diag/sovd_bulk_data.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::SovdBulkData

User GuideAI-GENERATED

Accommodates the results and individual errors that occurred during the category-wise deletion of diagnostic bulk data.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: e28735957e77 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Accommodates the results and individual errors that occurred during the category-wise deletion of diagnostic bulk data.

The structure ara::diag::SovdBulkData::DeleteByCategoryResult provides the aggregated result when deleting all bulk data of a category in the SOVD diagnostic module ([SWS_DM_01926]). It separates the results into successfully deleted entries (deleted_items) and failed instances along with the error cause (failed_items) ([SWS_DM_01842], [SWS_DM_01843]). Callers must evaluate both lists to handle partial successes deterministically.

Context

The structure ara::diag::SovdBulkData::DeleteByCategoryResult acts as a standardized result type for the method “Delete All Bulk Data Defined by Category” in the area of Service-Oriented Vehicle Diagnostics (SOVD) bulk data management ([SWS_DM_01926], AUTOSAR_AP_SWS_Diagnostics §8.53.3 “Struct: DeleteByCategoryResult”). In the AUTOSAR Adaptive diagnostic module (diag), bulk data such as log files, trace recordings, or measurement series can be assigned to semantic categories. If a diagnostic client requests the deletion of all instances of a category via the interface ara::diag::SovdBulkData, this data structure summarizes the overall status of the operation (AUTOSAR_AP_SWS_Diagnostics §8.53.3 “Definition of API class ara::diag::SovdBulkData::DeleteByCategoryResult”).

Typically, an external SOVD client or diagnostic application, the functional diagnostic interface ara::diag::SovdBulkData, and the internal persistence subsystem for bulk data act as interaction partners. The result object bridges the boundary between the synchronous or asynchronous execution unit and the evaluating client by aggregating the status of all affected data objects.

Lifecycle

According to the class definition in header #include "ara/diag/sovd_bulk_data.h", it is a passive data structure (struct) without its own complex state logic ([SWS_DM_01842], [SWS_DM_01843]). It is created on the server side by the diagnostic runtime environment immediately after completion of the category-related bulk data deletion. In doing so, the member variables deleted_items and failed_items are populated with the respective descriptors and error objects.

Since it is a pure data transfer structure, passing to the calling site in the context of the Adaptive Platform is likely to occur by value or move semantics—for example, packaged in an asynchronous result container. Question Q-bafa9fbd3ae683c1 (open) In this process, ownership is completely transferred to the caller. The destruction of the object and the deallocation of memory for the contained ara::core::Vector instances occur deterministically upon leaving the caller scope. No shared concurrency exists at the instance level; parallel deletion requests for different categories create mutually independent instances.

Usage Path

The typical usage sequence comprises initiating the deletion, execution by the diagnostic service, and separate evaluation of the resulting object by the caller:

  1. A diagnostic client requests the removal of all associated bulk data via the method for deleting by category.
  2. The server iterates over the instances of the specified category and executes the deletion operations.
  3. Successfully removed entries are logged in the list deleted_items ([SWS_DM_01842]).
  4. Failed instances are collected with their respective error cause in failed_items ([SWS_DM_01843]).
  5. The aggregated DeleteByCategoryResult is returned to the caller ([SWS_DM_01926]), which acknowledges the successful deletions and evaluates any errors.
Sequence of bulk data deletion by category with DeleteByCategoryResultDiagnostic clientara::diag::SovdBulkDataMassendaten-SpeicherRequest deletion by categoryIdentify and delete instances of the categoryReport results per instance (success / error)Create DeleteByCategoryResult (populate deleted_items, failed_items)Pass DeleteByCategoryResultUse Case: Ergebnisauswertungdeleted_items verarbeitenopt!failed_items.empty()Perform error analysis for DeletionError entries

Sequence diagram: Sequence of bulk data deletion by category from request through aggregation to evaluation. Sources: [SWS_DM_01926], [SWS_DM_01842], [SWS_DM_01843], AUTOSAR_AP_SWS_Diagnostics §8.53.3 “Struct: DeleteByCategoryResult”.

Error Scenarios

A central feature of bulk data deletion is the possibility of partial success. Because a category can bundle a large number of independent data records, the overall operation does not necessarily fail in the event of individual errors. For the caller, the division into two separate vectors presumably means that partial processing takes place without an atomic rollback. Question Q-35307a7eccf0afa9 (open)

Failed deletions of individual data records are conveyed via the element failed_items, which is typed as ara::core::Vector<DeletionError> ([SWS_DM_01843], AUTOSAR_AP_SWS_Diagnostics §8.53.3.1.2 “failed_items”). As a precondition for a complete success notification, callers must check whether failed_items.empty() holds true. If the list contains elements, the specific deletion error (for example, locking due to active read access or insufficient permissions) can be analyzed for each affected bulk data instance. At the same time, deleted_items reliably documents all data records that could be deleted despite the presence of individual errors ([SWS_DM_01842]).

This guide is based on the AUTOSAR Adaptive Platform R25-11 specification and was generated automatically.

UML class diagram

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

G nara__diag__SovdBulkData__DeleteByCategoryResult960 «struct» DeleteByCategoryResult + deleted_items + failed_items

Constants

deleted_items variable

List of bulk data ids that were successfully deleted.

failed_items variable

A list of DeletionErrors that contains the bulk data instances with corresponding deletion errors.

Documentation of constants / variables

variable deleted_items [SWS_DM_01842] Upstream: RS_Diag_04266

ara::core::Vector<BulkDataMetaDataDescriptor> deleted_items;

List of bulk data ids that were successfully deleted.

Header-Datei#include "ara/diag/sovd_bulk_data.h"
Scopestruct ara::diag::SovdBulkData::DeleteByCategoryResult
Symboldeleted_items
Typara::core::Vector< BulkDataMetaDataDescriptor >

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

Record
AUTOSAR/AP/record/SWS_DM_01842
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01842@rel:R25-11#11561d29
Content hash
11561d29
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01842
Status: valid/unmigrated Version: rel:R25-11#b9891c5c 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_01842@rel:R25-11#b9891c5c
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#11561d292026-09-30
  • R23-11rel:R23-11#e3ec21992026-10-14
  • R24-11rel:R24-11#e3ec21992026-10-14
  • R25-11rel:R25-11#b9891c5c2026-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

variable failed_items [SWS_DM_01843] Upstream: RS_Diag_04266

ara::core::Vector<DeletionError> failed_items;

A list of DeletionErrors that contains the bulk data instances with corresponding deletion errors.

Header-Datei#include "ara/diag/sovd_bulk_data.h"
Scopestruct ara::diag::SovdBulkData::DeleteByCategoryResult
Symbolfailed_items
Typara::core::Vector< DeletionError >

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

Record
AUTOSAR/AP/record/SWS_DM_01843
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01843@rel:R25-11#ef03ad53
Content hash
ef03ad53
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01843
Status: valid/unmigrated Version: rel:R25-11#6a7b18c2 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_01843@rel:R25-11#6a7b18c2
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#ef03ad532026-09-30
  • R23-11rel:R23-11#3a03e0212026-10-14
  • R24-11rel:R24-11#3a03e0212026-10-14
  • R25-11rel:R25-11#6a7b18c22026-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