Esempio n. 1
0
        public void CanSetDataCollectionLevelForDynatrace()
        {
            // given
            var target = new DynatraceOpenKitBuilder(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 <DynatraceOpenKitBuilder>());
            Assert.That((DynatraceOpenKitBuilder)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 DynatraceOpenKitBuilderVB WithDataCollectionLevel(DataCollectionLevel dataCollectionLevel)
 {
     wrappedBuilder.WithDataCollectionLevel(dataCollectionLevel);
     return(this);
 }