class SimulationReport
A data class representing a report of an attack simulation and training campaign, containing an overview and information about participating users.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/directory/security/attacksimulations/report.py
7 - 17
simple
Purpose
SimulationReport serves as a data container for attack simulation and training campaign reports in Microsoft 365 security services. It inherits from ClientValue, making it suitable for client-side data representation and serialization. The class encapsulates campaign overview information and is designed to be used within the Office 365 security API context for retrieving and managing simulation campaign data.
Source Code
class SimulationReport(ClientValue):
"""
Represents a report of an attack simulation and training campaign, including an overview and users who
participated in the campaign.
"""
def __init__(self, overview=SimulationReportOverview()):
"""
:param SimulationReportOverview overview: Overview of an attack simulation and training campaign.
"""
self.overview = overview
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
overview: A SimulationReportOverview object containing the overview details of the attack simulation and training campaign. Defaults to an empty SimulationReportOverview instance if not provided. This parameter holds summary information about the campaign's execution and results.
Return Value
Instantiation returns a SimulationReport object with the overview attribute set to the provided SimulationReportOverview instance or a default empty overview. The object represents a complete simulation report that can be used for data access, serialization, or further processing within the Office 365 security framework.
Class Interface
Methods
__init__(self, overview=SimulationReportOverview()) -> None
Purpose: Initializes a new SimulationReport instance with an overview of the attack simulation campaign
Parameters:
overview: A SimulationReportOverview object containing campaign overview details. Defaults to an empty SimulationReportOverview instance.
Returns: None - constructor initializes the instance
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
overview |
SimulationReportOverview | Stores the overview information of the attack simulation and training campaign, including summary statistics and campaign details | instance |
Dependencies
office365
Required Imports
from office365.directory.security.attacksimulations.report_overview import SimulationReportOverview
from office365.runtime.client_value import ClientValue
Usage Example
from office365.directory.security.attacksimulations.report_overview import SimulationReportOverview
from office365.directory.security.attacksimulations.simulation_report import SimulationReport
# Create a report with default overview
report = SimulationReport()
# Create a report with a specific overview
overview = SimulationReportOverview()
report_with_overview = SimulationReport(overview=overview)
# Access the overview
report_overview = report.overview
# Typically used when retrieved from Office 365 API
# context.load(simulation_campaign.report)
# context.execute_query()
# campaign_report = simulation_campaign.report
Best Practices
- This class is primarily a data container and should be instantiated with a valid SimulationReportOverview object for meaningful use
- As it inherits from ClientValue, it is designed for client-side representation and may have serialization capabilities inherited from the base class
- Typically instantiated by the Office 365 SDK when retrieving simulation campaign data rather than manually created
- The class is immutable after construction in typical usage - the overview attribute is set during initialization
- When using within the Office 365 SDK context, ensure proper authentication and permissions are configured to access simulation report data
- This class is part of a larger object hierarchy for security simulation management and should be used in conjunction with related classes like SimulationReportOverview
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class SimulationReport_v1 90.7% similar
-
class AttackSimulationSimulationUserCoverage 75.8% similar
-
class Simulation 72.7% similar
-
class AttackSimulationRepeatOffender 67.8% similar
-
class SimulationAutomationRun 66.8% similar