This commit is contained in:
Sergey Kanzhelev 2017-10-30 23:34:07 -07:00 коммит произвёл Sergey Kanzhelev
Родитель 44c182c806
Коммит cef86f0952
22 изменённых файлов: 1466 добавлений и 5 удалений

5
.gitignore поставляемый
Просмотреть файл

@ -167,4 +167,7 @@ $RECYCLE.BIN/
Web/PerformanceTests_Instrumented/
[Ss]tyle[Cc]op.*
coverage.xml
coverage.xml
bondcodegen.done
bonddefaultcodegen.in

Просмотреть файл

@ -71,7 +71,7 @@
<PackagesDir>$([System.IO.Path]::GetFullPath( $(PackagesDir) ))</PackagesDir>
<!-- Forces EventRegister target to generate ETW manifest file -->
<EtwManifestForceAll>true</EtwManifestForceAll>
<EtwManifestForceAll Condition="$(OS) == 'Windows_NT'">true</EtwManifestForceAll>
<EtwManifestOutDir>$(BinRoot)\$(Configuration)\ETW\$(TargetFramework)\</EtwManifestOutDir>
</PropertyGroup>

Просмотреть файл

@ -16,9 +16,8 @@
<RootNamespace>ApplicationInsightsTypes</RootNamespace>
<AssemblyName>ApplicationInsightsTypes</AssemblyName>
<BondOptions>--collection-interfaces --using="DateTimeOffset=System.DateTimeOffset" --using="TimeSpan=System.TimeSpan" --using="Guid=System.Guid"</BondOptions>
<BondOutputDirectory>$(MSBuildThisFileDirectory)\Generated</BondOutputDirectory>
</PropertyGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
<PackageReference Include="MicroBuild.Core" Version="0.2.0">
<IncludeAssets>All</IncludeAssets>
@ -29,7 +28,7 @@
<PrivateAssets>build</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ItemGroup Condition="$(OS) == 'Windows_NT'">
<BondCodegen Include="..\..\..\Schema\PublicSchema\AvailabilityData.bond">
<Link>StackFrame.bond</Link>
</BondCodegen>

Просмотреть файл

@ -0,0 +1,100 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : AvailabilityData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Instances of AvailabilityData represent the result of executing an availability test.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class AvailabilityData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Attribute("Description", "Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.")]
[global::Bond.Attribute("ActAsRequired", "Renaming testRunId to id.")]
[global::Bond.Id(21), global::Bond.Required]
public string id { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Name of the test that these availability results represents.")]
[global::Bond.Attribute("ActAsRequired", "Renaming testName to name.")]
[global::Bond.Id(41), global::Bond.Required]
public string name { get; set; }
[global::Bond.Attribute("Description", "Duration in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(50), global::Bond.Required]
public string duration { get; set; }
[global::Bond.Attribute("ActAsRequired", "Renaming result to success.")]
[global::Bond.Attribute("Description", "Success flag.")]
[global::Bond.Id(61), global::Bond.Required]
public bool success { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Name of the location where the test was run from.")]
[global::Bond.Id(70)]
public string runLocation { get; set; }
[global::Bond.Attribute("MaxStringLength", "8192")]
[global::Bond.Attribute("Description", "Diagnostic message for the result.")]
[global::Bond.Id(80)]
public string message { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
[global::Bond.Attribute("Description", "Collection of custom measurements.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Id(200), global::Bond.Type(typeof(Dictionary<string, double>))]
public IDictionary<string, double> measurements { get; set; }
public AvailabilityData()
: this("AI.AvailabilityData", "AvailabilityData")
{}
protected AvailabilityData(string fullName, string name)
{
ver = 2;
id = "";
this.name = "";
duration = "";
runLocation = "";
message = "";
properties = new Dictionary<string, string>();
measurements = new Dictionary<string, double>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,50 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : Base_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Data struct to contain only C section with custom fields.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class Base
{
[global::Bond.Attribute("Name", "ItemTypeName")]
[global::Bond.Attribute("Description", "Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.")]
[global::Bond.Id(10)]
public string baseType { get; set; }
public Base()
: this("AI.Base", "Base")
{}
protected Base(string fullName, string name)
{
baseType = "";
}
}
} // AI

Просмотреть файл

@ -0,0 +1,190 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : ContextTagKeys_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("ContextContract", "Emit")]
[global::Bond.Attribute("PseudoType", "JSMap")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class ContextTagKeys
{
[global::Bond.Attribute("Description", "Application version. Information in the application context fields is always about the application that is sending the telemetry.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(10)]
public string ApplicationVersion { get; set; }
[global::Bond.Attribute("Description", "Unique client device id. Computer name in most cases.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(100)]
public string DeviceId { get; set; }
[global::Bond.Attribute("Description", "Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(115)]
public string DeviceLocale { get; set; }
[global::Bond.Attribute("Description", "Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(120)]
public string DeviceModel { get; set; }
[global::Bond.Attribute("Description", "Client device OEM name taken from the browser.")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(130)]
public string DeviceOEMName { get; set; }
[global::Bond.Attribute("Description", "Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(140)]
public string DeviceOSVersion { get; set; }
[global::Bond.Attribute("Description", "The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(160)]
public string DeviceType { get; set; }
[global::Bond.Attribute("Description", "The IP address of the client device. IPv4 and IPv6 is supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.")]
[global::Bond.Attribute("MaxStringLength", "45")]
[global::Bond.Id(200)]
public string LocationIp { get; set; }
[global::Bond.Attribute("Description", "A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.")]
[global::Bond.Attribute("MaxStringLength", "128")]
[global::Bond.Id(300)]
public string OperationId { get; set; }
[global::Bond.Attribute("Description", "The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(305)]
public string OperationName { get; set; }
[global::Bond.Attribute("Description", "The unique identifier of the telemetry item's immediate parent.")]
[global::Bond.Attribute("MaxStringLength", "128")]
[global::Bond.Id(310)]
public string OperationParentId { get; set; }
[global::Bond.Attribute("Description", "Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(320)]
public string OperationSyntheticSource { get; set; }
[global::Bond.Attribute("Description", "The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(330)]
public string OperationCorrelationVector { get; set; }
[global::Bond.Attribute("Description", "Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(400)]
public string SessionId { get; set; }
[global::Bond.Attribute("Description", "Boolean value indicating whether the session identified by ai.session.id is first for the user or not.")]
[global::Bond.Attribute("MaxStringLength", "5")]
[global::Bond.Attribute("Question", "Should it be marked as JSType-bool for breeze?")]
[global::Bond.Id(405)]
public string SessionIsFirst { get; set; }
[global::Bond.Attribute("Description", "In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(505)]
public string UserAccountId { get; set; }
[global::Bond.Attribute("Description", "The browser's user agent string as reported by the browser. This property will be used to extract information regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.")]
[global::Bond.Attribute("MaxStringLength", "2048")]
[global::Bond.Id(510)]
public string UserAgent { get; set; }
[global::Bond.Attribute("Description", "Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.")]
[global::Bond.Attribute("MaxStringLength", "128")]
[global::Bond.Id(515)]
public string UserId { get; set; }
[global::Bond.Attribute("Description", "Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(525)]
public string UserAuthUserId { get; set; }
[global::Bond.Attribute("Description", "Name of the role the application is a part of. Maps directly to the role name in azure.")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(705)]
public string CloudRole { get; set; }
[global::Bond.Attribute("Description", "Name of the instance where the application is running. Computer name for on-premises, instance name for Azure.")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(715)]
public string CloudRoleInstance { get; set; }
[global::Bond.Attribute("Description", "SDK version. See https://github.com/Microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(1000)]
public string InternalSdkVersion { get; set; }
[global::Bond.Attribute("Description", "Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(1001)]
public string InternalAgentVersion { get; set; }
[global::Bond.Attribute("Description", "This is the node name used for billing purposes. Use it to override the standard detection of nodes.")]
[global::Bond.Attribute("MaxStringLength", "256")]
[global::Bond.Id(1002)]
public string InternalNodeName { get; set; }
public ContextTagKeys()
: this("AI.ContextTagKeys", "ContextTagKeys")
{}
protected ContextTagKeys(string fullName, string name)
{
ApplicationVersion = "ai.application.ver";
DeviceId = "ai.device.id";
DeviceLocale = "ai.device.locale";
DeviceModel = "ai.device.model";
DeviceOEMName = "ai.device.oemName";
DeviceOSVersion = "ai.device.osVersion";
DeviceType = "ai.device.type";
LocationIp = "ai.location.ip";
OperationId = "ai.operation.id";
OperationName = "ai.operation.name";
OperationParentId = "ai.operation.parentId";
OperationSyntheticSource = "ai.operation.syntheticSource";
OperationCorrelationVector = "ai.operation.correlationVector";
SessionId = "ai.session.id";
SessionIsFirst = "ai.session.isFirst";
UserAccountId = "ai.user.accountId";
UserAgent = "ai.user.userAgent";
UserId = "ai.user.id";
UserAuthUserId = "ai.user.authUserId";
CloudRole = "ai.cloud.role";
CloudRoleInstance = "ai.cloud.roleInstance";
InternalSdkVersion = "ai.internal.sdkVersion";
InternalAgentVersion = "ai.internal.agentVersion";
InternalNodeName = "ai.internal.nodeName";
}
}
} // AI

Просмотреть файл

@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : DataPointType_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Type of the metric data measurement.")]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public enum DataPointType
{
Measurement,
Aggregation,
}
} // AI

Просмотреть файл

@ -0,0 +1,75 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : DataPoint_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Metric data single measurement.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class DataPoint
{
[global::Bond.Attribute("Description", "Name of the metric.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(10), global::Bond.Required]
public string name { get; set; }
[global::Bond.Attribute("Description", "Metric type.")]
[global::Bond.Id(20)]
public DataPointType kind { get; set; }
[global::Bond.Attribute("Description", "Metric calculated value.")]
[global::Bond.Id(30), global::Bond.Required]
public double value { get; set; }
[global::Bond.Attribute("Description", "Metric weight of the aggregated metric. Should not be set for a measurement.")]
[global::Bond.Id(40), global::Bond.Type(typeof(global::Bond.Tag.nullable<int>))]
public int? count { get; set; }
[global::Bond.Attribute("Description", "Minimum value of the aggregated metric. Should not be set for a measurement.")]
[global::Bond.Id(50), global::Bond.Type(typeof(global::Bond.Tag.nullable<double>))]
public double? min { get; set; }
[global::Bond.Attribute("Description", "Maximum value of the aggregated metric. Should not be set for a measurement.")]
[global::Bond.Id(60), global::Bond.Type(typeof(global::Bond.Tag.nullable<double>))]
public double? max { get; set; }
[global::Bond.Attribute("Description", "Standard deviation of the aggregated metric. Should not be set for a measurement.")]
[global::Bond.Id(70), global::Bond.Type(typeof(global::Bond.Tag.nullable<double>))]
public double? stdDev { get; set; }
public DataPoint()
: this("AI.DataPoint", "DataPoint")
{}
protected DataPoint(string fullName, string name)
{
this.name = "";
kind = DataPointType.Measurement;
}
}
} // AI

Просмотреть файл

@ -0,0 +1,51 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : Data_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Data struct to contain both B and C sections.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class Data<TDomain>
: Base
{
[global::Bond.Attribute("Name", "Item")]
[global::Bond.Attribute("Description", "Container for data item (B section).")]
[global::Bond.Id(20), global::Bond.Type(typeof(global::Bond.Tag.classT)), global::Bond.Required]
public TDomain baseData { get; set; }
public Data()
: this("AI.Data", "Data")
{}
protected Data(string fullName, string name)
{
baseData = global::Bond.GenericFactory.Create<TDomain>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,38 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : Domain_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "The abstract common base of all domains.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class Domain
{
}
} // AI

Просмотреть файл

@ -0,0 +1,101 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : Envelope_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "System variables for a telemetry item.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class Envelope
{
[global::Bond.Attribute("Description", "Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.")]
[global::Bond.Attribute("Name", "SchemaVersion")]
[global::Bond.Id(10)]
public int ver { get; set; }
[global::Bond.Attribute("Description", "Type name of telemetry data item.")]
[global::Bond.Attribute("Name", "DataTypeName")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(20), global::Bond.Required]
public string name { get; set; }
[global::Bond.Attribute("Description", "Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.")]
[global::Bond.Attribute("Name", "DateTime")]
[global::Bond.Attribute("CSType", "DateTimeOffset")]
[global::Bond.Attribute("JSType", "Date")]
[global::Bond.Attribute("HockeyAppMinDateOffsetFromNow", "2592000000")]
[global::Bond.Attribute("MinDateOffsetFromNow", "172800000")]
[global::Bond.Attribute("MaxDateOffsetFromNow", "7200000")]
[global::Bond.Id(30), global::Bond.Required]
public string time { get; set; }
[global::Bond.Attribute("Name", "SamplingRate")]
[global::Bond.Attribute("Description", "Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.")]
[global::Bond.Id(40)]
public double sampleRate { get; set; }
[global::Bond.Attribute("Description", "Sequence field used to track absolute order of uploaded events.")]
[global::Bond.Attribute("Name", "SequenceNumber")]
[global::Bond.Attribute("MaxStringLength", "64")]
[global::Bond.Id(50)]
public string seq { get; set; }
[global::Bond.Attribute("Description", "The application's instrumentation key.")]
[global::Bond.Attribute("Name", "InstrumentationKey")]
[global::Bond.Attribute("MaxStringLength", "40")]
[global::Bond.Id(60)]
public string iKey { get; set; }
[global::Bond.Attribute("Name", "Tags")]
[global::Bond.Attribute("TypeAlias", "ContextTagKeys")]
[global::Bond.Attribute("Description", "Key/value collection of context properties. See ContextTagKeys for information on available properties.")]
[global::Bond.Id(500), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> tags { get; set; }
[global::Bond.Attribute("Name", "TelemetryData")]
[global::Bond.Attribute("Description", "Telemetry data item.")]
[global::Bond.Id(999)]
public Base data { get; set; }
public Envelope()
: this("AI.Envelope", "Envelope")
{}
protected Envelope(string fullName, string name)
{
ver = 1;
this.name = "";
time = "";
sampleRate = 100.0;
seq = "";
iKey = "";
tags = new Dictionary<string, string>();
data = new Base();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : EventData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class EventData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("MaxStringLength", "512")]
[global::Bond.Attribute("Description", "Event name. Keep it low cardinality to allow proper grouping and useful metrics.")]
[global::Bond.Attribute("Question", "Why Custom Event name is shorter than Request name or dependency name?")]
[global::Bond.Id(20), global::Bond.Required]
public string name { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
[global::Bond.Attribute("Description", "Collection of custom measurements.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Id(200), global::Bond.Type(typeof(Dictionary<string, double>))]
public IDictionary<string, double> measurements { get; set; }
public EventData()
: this("AI.EventData", "EventData")
{}
protected EventData(string fullName, string name)
{
ver = 2;
this.name = "";
properties = new Dictionary<string, string>();
measurements = new Dictionary<string, double>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,78 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : ExceptionData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class ExceptionData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("Description", "Exception chain - list of inner exceptions.")]
[global::Bond.Id(50), global::Bond.Type(typeof(List<ExceptionDetails>)), global::Bond.Required]
public IList<ExceptionDetails> exceptions { get; set; }
[global::Bond.Attribute("Description", "Severity level. Mostly used to indicate exception severity level when it is reported by logging library.")]
[global::Bond.Id(60), global::Bond.Type(typeof(global::Bond.Tag.nullable<SeverityLevel>))]
public SeverityLevel? severityLevel { get; set; }
[global::Bond.Attribute("Description", "Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(80)]
public string problemId { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
[global::Bond.Attribute("Description", "Collection of custom measurements.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Id(200), global::Bond.Type(typeof(Dictionary<string, double>))]
public IDictionary<string, double> measurements { get; set; }
public ExceptionData()
: this("AI.ExceptionData", "ExceptionData")
{}
protected ExceptionData(string fullName, string name)
{
ver = 2;
exceptions = new List<ExceptionDetails>();
problemId = "";
properties = new Dictionary<string, string>();
measurements = new Dictionary<string, double>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,80 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : ExceptionDetails_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Exception details of the exception in a chain.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class ExceptionDetails
{
[global::Bond.Attribute("Description", "In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.")]
[global::Bond.Id(10)]
public int id { get; set; }
[global::Bond.Attribute("Description", "The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception")]
[global::Bond.Id(20)]
public int outerId { get; set; }
[global::Bond.Attribute("Description", "Exception type name.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(30), global::Bond.Required]
public string typeName { get; set; }
[global::Bond.Attribute("Description", "Exception message.")]
[global::Bond.Attribute("MaxStringLength", "32768")]
[global::Bond.Id(40), global::Bond.Required]
public string message { get; set; }
[global::Bond.Attribute("Description", "Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.")]
[global::Bond.Id(50)]
public bool hasFullStack { get; set; }
[global::Bond.Attribute("Description", "Text describing the stack. Either stack or parsedStack should have a value.")]
[global::Bond.Attribute("MaxStringLength", "32768")]
[global::Bond.Id(60)]
public string stack { get; set; }
[global::Bond.Attribute("Description", "List of stack frames. Either stack or parsedStack should have a value.")]
[global::Bond.Id(70), global::Bond.Type(typeof(List<StackFrame>))]
public IList<StackFrame> parsedStack { get; set; }
public ExceptionDetails()
: this("AI.ExceptionDetails", "ExceptionDetails")
{}
protected ExceptionDetails(string fullName, string name)
{
typeName = "";
message = "";
hasFullStack = true;
stack = "";
parsedStack = new List<StackFrame>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,67 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : MessageData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into instances of this type. The message does not have measurements.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class MessageData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("MaxStringLength", "32768")]
[global::Bond.Attribute("Description", "Trace message")]
[global::Bond.Id(20), global::Bond.Required]
public string message { get; set; }
[global::Bond.Attribute("Description", "Trace severity level.")]
[global::Bond.Id(30), global::Bond.Type(typeof(global::Bond.Tag.nullable<SeverityLevel>))]
public SeverityLevel? severityLevel { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
public MessageData()
: this("AI.MessageData", "MessageData")
{}
protected MessageData(string fullName, string name)
{
ver = 2;
message = "";
properties = new Dictionary<string, string>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : MetricData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of the Metric item is a list of measurements (single data points) and/or aggregations.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class MetricData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("Description", "List of metrics.")]
[global::Bond.Id(20), global::Bond.Type(typeof(List<DataPoint>)), global::Bond.Required]
public IList<DataPoint> metrics { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
public MetricData()
: this("AI.MetricData", "MetricData")
{}
protected MetricData(string fullName, string name)
{
ver = 2;
metrics = new List<DataPoint>();
properties = new Dictionary<string, string>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,58 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : PageViewData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.")]
[global::Bond.Attribute("Alias", "PageviewData;PageEventData")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class PageViewData
: EventData
{
[global::Bond.Attribute("MaxStringLength", "2048")]
[global::Bond.Attribute("Description", "Request URL with all query string parameters")]
[global::Bond.Id(10)]
public string url { get; set; }
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Attribute("Description", "Request duration in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time.")]
[global::Bond.Id(20)]
public string duration { get; set; }
public PageViewData()
: this("AI.PageViewData", "PageViewData")
{}
protected PageViewData(string fullName, string name)
{
url = "";
duration = "";
}
}
} // AI

Просмотреть файл

@ -0,0 +1,76 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : PageViewPerfData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.")]
[global::Bond.Attribute("Alias", "PageViewPerformanceData;PageviewPerformanceData")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class PageViewPerfData
: PageViewData
{
[global::Bond.Attribute("Description", "Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(10)]
public string perfTotal { get; set; }
[global::Bond.Attribute("Description", "Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(20)]
public string networkConnect { get; set; }
[global::Bond.Attribute("Description", "Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(30)]
public string sentRequest { get; set; }
[global::Bond.Attribute("Description", "Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(40)]
public string receivedResponse { get; set; }
[global::Bond.Attribute("Description", "DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff")]
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Id(50)]
public string domProcessing { get; set; }
public PageViewPerfData()
: this("AI.PageViewPerfData", "PageViewPerfData")
{}
protected PageViewPerfData(string fullName, string name)
{
perfTotal = "";
networkConnect = "";
sentRequest = "";
receivedResponse = "";
domProcessing = "";
}
}
} // AI

Просмотреть файл

@ -0,0 +1,111 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : RemoteDependencyData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class RemoteDependencyData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.")]
[global::Bond.Id(20), global::Bond.Required]
public string name { get; set; }
[global::Bond.Attribute("MaxStringLength", "128")]
[global::Bond.Attribute("Description", "Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.")]
[global::Bond.Id(30)]
public string id { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Result code of a dependency call. Examples are SQL error code and HTTP status code.")]
[global::Bond.Id(40)]
public string resultCode { get; set; }
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Attribute("Description", "Request duration in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.")]
[global::Bond.Attribute("ActAsRequired", "Renaming value to duration.")]
[global::Bond.Id(61), global::Bond.Required]
public string duration { get; set; }
[global::Bond.Attribute("Description", "Indication of successful or unsuccessful call.")]
[global::Bond.Id(120)]
public bool success { get; set; }
[global::Bond.Attribute("MaxStringLength", "8192")]
[global::Bond.Attribute("Description", "Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.")]
[global::Bond.Id(151)]
public string data { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Target site of a dependency call. Examples are server name, host address.")]
[global::Bond.Id(161)]
public string target { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.")]
[global::Bond.Id(162)]
public string type { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(200), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
[global::Bond.Attribute("Description", "Collection of custom measurements.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Id(300), global::Bond.Type(typeof(Dictionary<string, double>))]
public IDictionary<string, double> measurements { get; set; }
public RemoteDependencyData()
: this("AI.RemoteDependencyData", "RemoteDependencyData")
{}
protected RemoteDependencyData(string fullName, string name)
{
ver = 2;
this.name = "";
id = "";
resultCode = "";
duration = "";
success = true;
data = "";
target = "";
type = "";
properties = new Dictionary<string, string>();
measurements = new Dictionary<string, double>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,103 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : RequestData_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class RequestData
: Domain
{
[global::Bond.Attribute("Description", "Schema version")]
[global::Bond.Id(10), global::Bond.Required]
public int ver { get; set; }
[global::Bond.Attribute("MaxStringLength", "128")]
[global::Bond.Attribute("Description", "Identifier of a request call instance. Used for correlation between request and other telemetry items.")]
[global::Bond.Id(20), global::Bond.Required]
public string id { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.")]
[global::Bond.Id(29)]
public string source { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'.")]
[global::Bond.Id(30)]
public string name { get; set; }
[global::Bond.Attribute("CSType", "TimeSpan")]
[global::Bond.Attribute("Description", "Request duration in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff.")]
[global::Bond.Id(50), global::Bond.Required]
public string duration { get; set; }
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Attribute("Description", "Result of a request execution. HTTP status code for HTTP requests.")]
[global::Bond.Id(60), global::Bond.Required]
public string responseCode { get; set; }
[global::Bond.Attribute("Description", "Indication of successful or unsuccessful call.")]
[global::Bond.Id(70), global::Bond.Required]
public bool success { get; set; }
[global::Bond.Attribute("MaxStringLength", "2048")]
[global::Bond.Attribute("Description", "Request URL with all query string parameters.")]
[global::Bond.Id(90)]
public string url { get; set; }
[global::Bond.Attribute("Description", "Collection of custom properties.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Attribute("MaxValueLength", "8192")]
[global::Bond.Id(100), global::Bond.Type(typeof(Dictionary<string, string>))]
public IDictionary<string, string> properties { get; set; }
[global::Bond.Attribute("Description", "Collection of custom measurements.")]
[global::Bond.Attribute("MaxKeyLength", "150")]
[global::Bond.Id(200), global::Bond.Type(typeof(Dictionary<string, double>))]
public IDictionary<string, double> measurements { get; set; }
public RequestData()
: this("AI.RequestData", "RequestData")
{}
protected RequestData(string fullName, string name)
{
ver = 2;
id = "";
source = "";
this.name = "";
duration = "";
responseCode = "";
url = "";
properties = new Dictionary<string, string>();
measurements = new Dictionary<string, double>();
}
}
} // AI

Просмотреть файл

@ -0,0 +1,41 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : SeverityLevel_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Defines the level of severity for the event.")]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public enum SeverityLevel
{
Verbose,
Information,
Warning,
Error,
Critical,
}
} // AI

Просмотреть файл

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Tool : Bond Compiler 0.10.0.0
// File : StackFrame_types.cs
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// <auto-generated />
//------------------------------------------------------------------------------
// suppress "Missing XML comment for publicly visible type or member"
#pragma warning disable 1591
#region ReSharper warnings
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable RedundantNameQualifier
// ReSharper disable InconsistentNaming
// ReSharper disable CheckNamespace
// ReSharper disable UnusedParameter.Local
// ReSharper disable RedundantUsingDirective
#endregion
namespace AI
{
using System.Collections.Generic;
[global::Bond.Attribute("Description", "Stack frame information.")]
[global::Bond.Schema]
[System.CodeDom.Compiler.GeneratedCode("gbc", "0.10.0.0")]
public partial class StackFrame
{
[global::Bond.Attribute("Description", "Level in the call stack. For the long stacks SDK may not report every function in a call stack.")]
[global::Bond.Id(10), global::Bond.Required]
public int level { get; set; }
[global::Bond.Attribute("Description", "Method name.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(20), global::Bond.Required]
public string method { get; set; }
[global::Bond.Attribute("Description", "Name of the assembly (dll, jar, etc.) containing this function.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(30)]
public string assembly { get; set; }
[global::Bond.Attribute("Description", "File name or URL of the method implementation.")]
[global::Bond.Attribute("MaxStringLength", "1024")]
[global::Bond.Id(50)]
public string fileName { get; set; }
[global::Bond.Attribute("Description", "Line number of the code implementation.")]
[global::Bond.Id(60)]
public int line { get; set; }
public StackFrame()
: this("AI.StackFrame", "StackFrame")
{}
protected StackFrame(string fullName, string name)
{
method = "";
assembly = "";
fileName = "";
}
}
} // AI