private IPrivacyConfiguration NewConfigWith(DataCollectionLevel dataCollectionLevel, CrashReportingLevel crashReportingLevel = ConfigurationDefaults.DefaultCrashReportingLevel) { var builder = Substitute.For <IOpenKitBuilder>(); builder.DataCollectionLevel.Returns(dataCollectionLevel); builder.CrashReportingLevel.Returns(crashReportingLevel); return(PrivacyConfiguration.From(builder)); }
/// <summary> /// Set the data collection level /// /// /// <list type="bullet"> /// <item> /// <description><see cref="Dynatrace.OpenKit.DataCollectionLevel.OFF"/> no data collected</description> /// </item> /// <item> /// <description><see cref="Dynatrace.OpenKit.DataCollectionLevel.PERFORMANCE"/> only performance related data is collected</description> /// </item> /// <item> /// <description><see cref="Dynatrace.OpenKit.DataCollectionLevel.USER_BEHAVIOR"/> all available RUM data including performance related data is collected</description> /// </item> /// </list> /// /// Default value: <see cref="Dynatrace.OpenKit.DataCollectionLevel.USER_BEHAVIOR"/> /// </summary> /// <param name="dataCollectionLevel">Data collection level to apply.</param> /// <returns><code>this</code></returns> public AbstractOpenKitBuilder WithDataCollectionLevel(DataCollectionLevel dataCollectionLevel) { DataCollectionLevel = dataCollectionLevel; return(this); }
/// <summary> /// Set the data collection level /// /// /// <list type="bullet"> /// <item> /// <description><see cref="OpenKit.DataCollectionLevel.OFF"/> no data collected</description> /// </item> /// <item> /// <description><see cref="OpenKit.DataCollectionLevel.PERFORMANCE"/> only performance related data is collected</description> /// </item> /// <item> /// <description><see cref="OpenKit.DataCollectionLevel.USER_BEHAVIOR"/> all available RUM data including performance related data is collected</description> /// </item> /// </list> /// /// Default value: <see cref="OpenKit.DataCollectionLevel.USER_BEHAVIOR"/> /// </summary> /// <param name="dataCollectionLevel">Data collection level to apply.</param> /// <returns><code>this</code></returns> public AppMonOpenKitBuilderVB WithDataCollectionLevel(DataCollectionLevel dataCollectionLevel) { wrappedBuilder.WithDataCollectionLevel(dataCollectionLevel); return(this); }
public BeaconConfiguration(int multiplicity, DataCollectionLevel dataCollectionLevel, CrashReportingLevel crashReportingLevel) { Multiplicity = multiplicity; DataCollectionLevel = dataCollectionLevel; CrashReportingLevel = crashReportingLevel; }