public void CanSetDataCollectionLevelForAppMon() { // given var target = new AppMonOpenKitBuilder(Endpoint, AppID, DeviceID); // when var level = DataCollectionLevel.USER_BEHAVIOR; var obtained = target.WithDataCollectionLevel(level); var config = target.BuildConfiguration().BeaconConfig; // then Assert.That(obtained, Is.InstanceOf <AppMonOpenKitBuilder>()); Assert.That((AppMonOpenKitBuilder)obtained, Is.SameAs(target)); Assert.That(config.DataCollectionLevel, Is.EqualTo(level)); }
/// <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); }