示例#1
0
        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));
        }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 public BeaconConfiguration(int multiplicity, DataCollectionLevel dataCollectionLevel, CrashReportingLevel crashReportingLevel)
 {
     Multiplicity        = multiplicity;
     DataCollectionLevel = dataCollectionLevel;
     CrashReportingLevel = crashReportingLevel;
 }