RTI Connext Modern C++ API Version 7.3.0
|
<<extension>> Configures the use of the RTI Monitoring Library 2.0 to collect and distribute RTI Connext telemetry data. More...
#include <rti/core/policy/CorePolicy.hpp>
Public Member Functions | |
Monitoring () | |
Creates the default policy (monitoring is disabled). More... | |
Monitoring & | enable (bool the_enable) |
Enables the collection and distribution of telemetry data for an RTI Connext application using RTI Monitoring Library 2.0. More... | |
bool | enable () const |
Getter (see setter with the same name). More... | |
Monitoring & | application_name (const rti::core::optional_value< std::string > &the_application_name) |
Sets the name of the resource that represents this RTI Connext application. More... | |
Monitoring & | application_name (const char *the_application_name) |
Sets the name of the resource that represents this RTI Connext application. More... | |
rti::core::optional_value< std::string > | application_name () const |
Getter (see setter with the same name). More... | |
Monitoring & | distribution_settings (const MonitoringDistributionSettings &the_distribution_settings) |
Configures the distribution of telemetry data. More... | |
const MonitoringDistributionSettings & | distribution_settings () const |
Gets the distribution settings by const-reference (see setter). More... | |
MonitoringDistributionSettings & | distribution_settings () |
Gets the distribution settings by reference (see setter). More... | |
Monitoring & | telemetry_data (const MonitoringTelemetryData &the_telemetry_data) |
Configures the telemetry data that will be distributed. More... | |
const MonitoringTelemetryData & | telemetry_data () const |
Gets the telemetry data by const-reference (see setter). More... | |
MonitoringTelemetryData & | telemetry_data () |
Gets the telemetry data by reference (see setter). More... | |
Static Public Member Functions | |
static Monitoring | Enabled () |
Returns an instance that enables Monitoring with default settings. More... | |
static Monitoring | Disabled () |
Returns an instance that disables Monitoring. More... | |
<<extension>> Configures the use of the RTI Monitoring Library 2.0 to collect and distribute RTI Connext telemetry data.
|
inline |
Creates the default policy (monitoring is disabled).
|
inlinestatic |
Returns an instance that enables Monitoring with default settings.
|
inlinestatic |
Returns an instance that disables Monitoring.
Monitoring & rti::core::policy::Monitoring::enable | ( | bool | the_enable | ) |
Enables the collection and distribution of telemetry data for an RTI Connext application using RTI Monitoring Library 2.0.
Note: Enabling and disabling RTI Monitoring Library 2.0 while DDS Entities are being created or deleted is not a safe operation. The entities created while RTI Monitoring Library 2.0 is being enabled may not be monitored. In that case, children entities from that entity (invisible to the library) will not be monitored either.
[default] false
bool rti::core::policy::Monitoring::enable | ( | ) | const |
Getter (see setter with the same name).
Monitoring & rti::core::policy::Monitoring::application_name | ( | const rti::core::optional_value< std::string > & | the_application_name | ) |
Sets the name of the resource that represents this RTI Connext application.
the_application_name | An optional string. An unset value indicates that the application name will be automatically assigned. A set value will set an application name. |
[default] Unset
When this member is set to a value, the resource identifier representing this application will be:
/applications/<application_name>
This is the resource identifier that will be used to send commands to this application from the RTI Observability Dashboards.
The application_name should be unique across the RTI Connext system; however, RTI Monitoring Library 2.0 does not currently enforce uniqueness.
When this member is not set, RTI Monitoring Library 2.0 will automatically assign a resource identifier with this format:
/applications/<host_name:process_id:uuid>
Monitoring & rti::core::policy::Monitoring::application_name | ( | const char * | the_application_name | ) |
Sets the name of the resource that represents this RTI Connext application.
the_application_name | The application name. Cannot be NULL. |
When this member is set to a value, the resource identifier representing this application will be:
/applications/<application_name>
This is the resource identifier that will be used to send commands to this application from the RTI Observability Dashboards.
The application_name should be unique across the RTI Connext system; however, RTI Monitoring Library 2.0 does not currently enforce uniqueness.
When this member is not set, RTI Monitoring Library 2.0 will automatically assign a resource identifier with this format:
/applications/<host_name:process_id:uuid>
rti::core::optional_value< std::string > rti::core::policy::Monitoring::application_name | ( | ) | const |
Getter (see setter with the same name).
Monitoring & rti::core::policy::Monitoring::distribution_settings | ( | const MonitoringDistributionSettings & | the_distribution_settings | ) |
Configures the distribution of telemetry data.
const MonitoringDistributionSettings & rti::core::policy::Monitoring::distribution_settings | ( | ) | const |
Gets the distribution settings by const-reference (see setter).
MonitoringDistributionSettings & rti::core::policy::Monitoring::distribution_settings | ( | ) |
Gets the distribution settings by reference (see setter).
Monitoring & rti::core::policy::Monitoring::telemetry_data | ( | const MonitoringTelemetryData & | the_telemetry_data | ) |
Configures the telemetry data that will be distributed.
const MonitoringTelemetryData & rti::core::policy::Monitoring::telemetry_data | ( | ) | const |
Gets the telemetry data by const-reference (see setter).
MonitoringTelemetryData & rti::core::policy::Monitoring::telemetry_data | ( | ) |
Gets the telemetry data by reference (see setter).