From f9bf9562d4ec72649cf4b07d465c7a5017442b9b Mon Sep 17 00:00:00 2001 From: Srikanta Date: Wed, 16 Sep 2020 09:54:02 -0700 Subject: [PATCH 01/13] Swagger for Monitor Exporters --- .../preview/2020-09-15/swagger.json | 1044 +++++++++++++++++ 1 file changed, 1044 insertions(+) create mode 100644 specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json new file mode 100644 index 000000000000..4de05f017208 --- /dev/null +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json @@ -0,0 +1,1044 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-09-15_Preview", + "title": "ApplicationInsightsClient", + "description": "This document describes the protocol for client requests and responses to the data collection endpoint." + }, + + "x-ms-parameterized-host": { + "hostTemplate": "{Host}/v2/", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Host" + } + ] + }, + "paths": { + "/track": { + "post": { + "summary": "Detect anomalies for the entire series in batch.", + "description": "This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.", + "operationId": "track", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Time series points and period if needed. Advanced model parameters can also be set in the request.", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TelemetryEnvelope" + } + } + } + ], + "consumes": [ + "application/json", + "x-json-stream" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "All of the telemetry items were accepted and processed.", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "206": { + "description": "Partial success. Some of the telemetry items were accepted and processed.", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "400" : { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "402": { + "description": "Payment Required", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "429": { + "description": "Too Many Requests", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + } + } + } + } + }, + "definitions": { + "AvailabilityData": { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "Instances of AvailabilityData represent the result of executing an availability test.", + "required": [ + "ver", + "id", + "name", + "duration", + "success" + ], + "properties": { + "ver": { + "type": "integer", + "x-ms-client-name": "version", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Name of the test that these availability results represent.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "x-nullable": false, + "description": "Success flag." + }, + "runLocation": { + "type": "string", + "description": "Name of the location where the test was run from.", + "maxLength": 1024 + }, + "message": { + "type": "string", + "description": "Diagnostic message for the result.", + "maxLength": 8192 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + + } + } + ] + }, + "Base": { + "x-ms-client-name": "MonitorBase", + "type": "object", + "description": "Data struct to contain only C section with custom fields.", + "properties": { + "baseType": { + "type": "string", + "description": "Name of item (B section) if any. If telemetry data is derived straight from this, this should be null." + }, + "baseData": { + "$ref": "#/definitions/Domain", + "description": "The data payload for the telemetry request" + } + } + }, + "DataPoint" : { + "x-ms-client-name": "MetricDataPoint", + "type": "object", + "description": "Metric data single measurement.", + "required": [ + "name", + "value" + ], + "properties": { + "ns": { + "x-ms-client-name": "namespace", + "type": "string", + "description": "Namespace of the metric.", + "maxLength": 256 + }, + "name": { + "type": "string", + "description": "Name of the metric.", + "maxLength": 1024 + }, + "kind": { + "x-ms-client-name": "dataPointType", + "$ref": "#/definitions/DataPointType", + "description": "Metric type. Single measurement or the aggregated value." + }, + "value": { + "type": "number", + "description": "Single value for measurement. Sum of individual measurements for the aggregation.", + "format": "double" + }, + "count": { + "type":"number", + "format": "int32", + "description": "Metric weight of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "min": { + "type":"number", + "format": "double", + "description": "Minimum value of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "max": { + "type":"number", + "format": "double", + "description": "Maximum value of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "stdDev": { + "type":"number", + "format": "double", + "description": "Standard deviation of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + } + } + }, + "DataPointType" : { + "type": "string", + "description": "Type of the metric data measurement.", + "enum": [ + "Measurement", + "Aggregation" + ] + }, + "Domain" : { + "x-ms-client-name": "MonitorDomain", + "type": "object", + "description": "The abstract common base of all domains.", + "properties": { + "test": { + "type": "string", + "description": "Ignored value." + } + } + }, + "EventData" : { + "x-ms-client-name": "TelemetryEventData", + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "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.", + "required": [ + "ver", + "name" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 512 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + } + ]}, + "ExceptionData" : { + "x-ms-client-name": "TelemetryExceptionData", + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.", + "required": [ + "ver", + "name" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "exceptions": { + "type": "array", + "description": "Exception chain - list of inner exceptions.", + "items": { + "$ref": "#/definitions/ExceptionDetails" + } + }, + "severityLevel": { + "x-nullable": true, + "description": "Severity level. Mostly used to indicate exception severity level when it is reported by logging library.", + "$ref": "#/definitions/SeverityLevel" + + }, + "problemId": { + "type": "string", + "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.", + "maxLength": 1024 + + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + } + ]}, + "ExceptionDetails" : { + "x-ms-client-name": "TelemetryExceptionDetails", + "type": "object", + "description": "Exception details of the exception in a chain.", + "required": [ + "message" + ], + "properties": { + "id": { + "type": "number", + "format": "int32", + "description": "In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting." + }, + "outerId": { + "type": "number", + "format": "int32", + "description": "The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception" + }, + "typeName": { + "type": "string", + "description": "Exception type name.", + "maxLength": 1024 + }, + "message": { + "type": "string", + "description": "Exception message.", + "maxLength": 32768 + }, + "hasFullStack": { + "type": "boolean", + "default": true, + "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." + }, + "stack": { + "type": "string", + "description": "Text describing the stack. Either stack or parsedStack should have a value.", + "maxLength": 32768 + }, + "parsedStack": { + "type": "array", + "description": "List of stack frames. Either stack or parsedStack should have a value.", + "items": { + "$ref": "#/definitions/StackFrame" + } + } + + } + }, + "MessageData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "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 intances of this type. The message does not have measurements.", + "required": [ + "ver", + "message" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "message": { + "type": "string", + "description": "Trace message", + "maxLength": 32768 + }, + "severityLevel": { + "$ref": "#/definitions/SeverityLevel", + "description": "Trace severity level." + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + } + ]}, + "MetricsData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of the Metric item is a list of measurements (single data points) and/or aggregations.", + "required": [ + "ver", + "metrics" + ], + "properties": { + "ver": { + "type": "integer", + "x-ms-client-name": "version", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "metrics": { + "type": "array", + "description": "List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.", + "items": { + "$ref": "#/definitions/DataPoint" + } + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + } + } + } + ]}, + "PageViewData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", + "required": [ + "ver", + "id", + "name" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters", + "maxLength": 2048 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." + }, + "referredUri": { + "type": "string", + "description": "Fully qualified page URI or URL of the referring page; if unknown, leave blank", + "maxLength": 2048 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + + } + } + ] + }, + "PageViewPerfData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "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.", + "required": [ + "ver", + "id", + "name" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters", + "maxLength": 2048 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." + }, + "perfTotal": { + "type": "string", + "description": "Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "networkConnect": { + "type": "string", + "description": "Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "sentRequest": { + "type": "string", + "description": "Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "receivedResponse": { + "type": "string", + "description": "Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "domProcessing": { + "type": "string", + "description": "DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + } + ] + }, + "RemoteDependencyData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.", + "required": [ + "ver", + "name", + "duration" + ], + "properties": { + "ver": { + "type": "integer", + "x-ms-client-name": "version", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.", + "maxLength": 1024 + }, + "resultCode": { + "type": "string", + "description": "Result code of a dependency call. Examples are SQL error code and HTTP status code.", + "maxLength": 1024 + }, + "data": { + "type": "string", + "description": "Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.", + "maxLength": 8192 + }, + "type": { + "type": "string", + "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.", + "maxLength": 1024 + }, + "target": { + "type": "string", + "description": "Target site of a dependency call. Examples are server name, host address.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "description": "Indication of successfull or unsuccessfull call.", + "default": true + + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + + } + } + ] + }, + "RequestData" : { + "allOf": [{ + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", + "required": [ + "ver", + "id", + "duration", + "responseCode", + "success" + ], + "properties": { + "ver": { + "type": "integer", + "x-ms-client-name": "version", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a request call instance. Used for correlation between request and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "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}'.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "description": "Indication of successfull or unsuccessfull call.", + "default": true + }, + "responseCode": { + "type": "string", + "description": "Result of a request execution. HTTP status code for HTTP requests.", + "maxLength": 1024 + }, + "source": { + "type": "string", + "description": "Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters.", + "maxLength": 2048 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + + } + } + ] + }, + "SeverityLevel" : { + "type": "string", + "description": "Defines the level of severity for the event.", + "enum": [ + "Verbose", + "Information", + "Warning", + "Error", + "Critical" + ] + }, + "StackFrame" : { + "type": "object", + "description": "Stack frame information.", + "required": [ + "level", + "method" + ], + "properties": { + "level": { + "type": "number", + "format": "int32", + "description": "" + }, + "method": { + "type": "string", + "description": "Method name.", + "maxLength": 1024 + }, + "assembly": { + "type": "string", + "description": "Name of the assembly (dll, jar, etc.) containing this function.", + "maxLength": 1024 + }, + "fileName": { + "type": "string", + "description": "File name or URL of the method implementation.", + "maxLength": 1024 + }, + "line": { + "type": "number", + "format": "int32", + "description": "Line number of the code implementation." + } + } + }, + "TrackResponse": { + "description": "Response containing the status of each telemetry item.", + "type": "object", + "properties": { + "itemsReceived": { + "type": "number", + "format": "int32", + "description": "The number of items received." + }, + "itemsAccepted": { + "type": "number", + "format": "int32", + "description": "The number of items accepted." + }, + "errors": { + "type":"array", + "description": "An array of error detail objects.", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "ErrorDetails": { + "x-ms-client-name": "TelemetryErrorDetails", + "description": "The error details", + "type": "object", + "properties": { + "index": { + "type": "number", + "format": "int32", + "description": "The index in the original payload of the item." + }, + "statusCode": { + "type": "number", + "format": "int32", + "description": "The item specific [HTTP Response status code](#Response Status Codes)." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "TelemetryEnvelope": { + "x-ms-client-name": "TelemetryItem", + "description": "System variables for a telemetry item.", + "type": "object", + "required": [ + "name", + "time" + ], + "properties": { + "ver": { + "type": "number", + "x-ms-client-name": "version", + "format": "int32", + "default": 1, + "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." + }, + "name": { + "type": "string", + "description": "Type name of telemetry data item." + }, + "time": { + "type": "string", + "format": "date-time", + "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." + }, + "sampleRate": { + "type": "number", + "format": "float", + "default": 100.0, + "description": "Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items." + }, + "seq": { + "type": "string", + "x-ms-client-name": "sequence", + "maxLength": 64, + "description": "Sequence field used to track absolute order of uploaded events." + }, + "iKey": { + "type": "string", + "x-ms-client-name": "instrumentationKey", + "description": "The instrumentation key of the Application Insights resource." + }, + "tags": { + "type": "object", + "description": "Key/value collection of context properties. See ContextTagKeys for information on available properties.", + "additionalProperties": { + "type": "string" + } + }, + "data": { + "$ref": "#/definitions/Base", + "description": "Telemetry data item." + } + } + }, + "ContextTagKeys": { + "type": "string", + "description": "The context tag keys.", + "enum": [ + "ApplicationVersion", + "DeviceId", + "DeviceLocale", + "DeviceModel", + "DeviceOEMName", + "DeviceOSVersion", + "DeviceType", + "LocationIp", + "LocationCountry", + "LocationProvince", + "LocationCity", + "OperationId", + "OperationName", + "OperationParentId", + "OperationSyntheticSource", + "OperationCorrelationVector", + "SessionId", + "SessionIsFirst", + "UserAccountId", + "UserId", + "UserAuthUserId", + "CloudRole", + "CloudRoleVer", + "CloudRoleInstance", + "CloudLocation", + "InternalSdkVersion", + "InternalAgentVersion", + "InternalNodeName " + ], + "x-ms-enum": { + "name": "ContextTagKeys", + "modelAsString": true, + "values": [{ + "value": "ai.application.ver" + },{ + "value": "ai.device.id" + },{ + "value": "ai.device.locale" + },{ + "value": "ai.device.model" + },{ + "value": "ai.device.oemName" + },{ + "value": "ai.device.osVersion" + },{ + "value": "ai.device.type" + },{ + "value": "ai.location.ip" + },{ + "value": "ai.location.country" + },{ + "value": "ai.location.province" + },{ + "value": "ai.location.city" + },{ + "value": "ai.operation.id" + },{ + "value": "ai.operation.name" + },{ + "value": "ai.operation.parentId" + },{ + "value": "ai.operation.syntheticSource" + },{ + "value": "ai.operation.correlationVector" + },{ + "value": "ai.session.id" + },{ + "value": "ai.session.isFirst" + },{ + "value": "ai.user.accountId" + },{ + "value": "ai.user.id" + },{ + "value": "ai.user.authUserId" + },{ + "value": "ai.cloud.role" + },{ + "value": "ai.cloud.roleVer" + },{ + "value": "ai.cloud.roleInstance" + },{ + "value": "ai.cloud.location" + },{ + "value": "ai.internal.sdkVersion" + },{ + "value": "ai.internal.agentVersion" + },{ + "value": "ai.internal.nodeName" + }] + } + } + }, + "parameters": { + "Host": { + "name": "Host", + "description": "Breeze endpoint: https://dc.services.visualstudio.com", + "x-ms-parameter-location": "client", + "default": "https://dc.services.visualstudio.com", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true + } + } + } \ No newline at end of file From 93dd9d348c9092b2057f0b449712b03113394c28 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Sat, 19 Sep 2020 20:55:52 -0700 Subject: [PATCH 02/13] Update Domain to include version --- .../preview/2020-09-15/swagger.json | 76 +++---------------- 1 file changed, 9 insertions(+), 67 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json index 4de05f017208..e150e9a24631 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json @@ -245,10 +245,16 @@ "x-ms-client-name": "MonitorDomain", "type": "object", "description": "The abstract common base of all domains.", + "required": [ + "ver" + ], "properties": { - "test": { - "type": "string", - "description": "Ignored value." + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 } } }, @@ -261,17 +267,9 @@ "type": "object", "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.", "required": [ - "ver", "name" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "name": { "type": "string", "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", @@ -305,17 +303,9 @@ "type": "object", "description": "An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.", "required": [ - "ver", "name" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "exceptions": { "type": "array", "description": "Exception chain - list of inner exceptions.", @@ -410,17 +400,9 @@ "type": "object", "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 intances of this type. The message does not have measurements.", "required": [ - "ver", "message" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "message": { "type": "string", "description": "Trace message", @@ -457,17 +439,9 @@ "type": "object", "description": "An instance of the Metric item is a list of measurements (single data points) and/or aggregations.", "required": [ - "ver", "metrics" ], "properties": { - "ver": { - "type": "integer", - "x-ms-client-name": "version", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "metrics": { "type": "array", "description": "List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.", @@ -494,18 +468,10 @@ "type": "object", "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", "required": [ - "ver", "id", "name" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "id": { "type": "string", "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", @@ -559,18 +525,10 @@ "type": "object", "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.", "required": [ - "ver", "id", "name" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "id": { "type": "string", "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", @@ -638,18 +596,10 @@ "type": "object", "description": "An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.", "required": [ - "ver", "name", "duration" ], "properties": { - "ver": { - "type": "integer", - "x-ms-client-name": "version", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "id": { "type": "string", "description": "Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.", @@ -719,20 +669,12 @@ "type": "object", "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", "required": [ - "ver", "id", "duration", "responseCode", "success" ], "properties": { - "ver": { - "type": "integer", - "x-ms-client-name": "version", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "id": { "type": "string", "description": "Identifier of a request call instance. Used for correlation between request and other telemetry items.", From 08253ae5086084d1cd6dae6508d32579fe21d9b0 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 12:49:22 -0700 Subject: [PATCH 03/13] Add readme and format json --- .../preview/2020-09-15/swagger.json | 1879 +++++++++-------- .../data-plane/Monitor.Exporters/readme.md | 86 + 2 files changed, 1042 insertions(+), 923 deletions(-) create mode 100644 specification/applicationinsights/data-plane/Monitor.Exporters/readme.md diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json index e150e9a24631..fed22393b7c8 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json @@ -1,986 +1,1019 @@ { - "swagger": "2.0", - "info": { - "version": "2020-09-15_Preview", - "title": "ApplicationInsightsClient", - "description": "This document describes the protocol for client requests and responses to the data collection endpoint." - }, - - "x-ms-parameterized-host": { - "hostTemplate": "{Host}/v2/", - "useSchemePrefix": false, - "parameters": [ - { - "$ref": "#/parameters/Host" - } - ] - }, - "paths": { - "/track": { - "post": { - "summary": "Detect anomalies for the entire series in batch.", - "description": "This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.", - "operationId": "track", - "parameters": [ - { - "name": "body", - "in": "body", - "description": "Time series points and period if needed. Advanced model parameters can also be set in the request.", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/TelemetryEnvelope" - } + "swagger": "2.0", + "info": { + "version": "2020-09-15_Preview", + "title": "ApplicationInsightsClient", + "description": "This document describes the protocol for client requests and responses to the data collection endpoint." + }, + "x-ms-parameterized-host": { + "hostTemplate": "{Host}/v2/", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Host" + } + ] + }, + "paths": { + "/track": { + "post": { + "summary": "Detect anomalies for the entire series in batch.", + "description": "This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.", + "operationId": "track", + "parameters": [ + { + "name": "body", + "in": "body", + "description": "Time series points and period if needed. Advanced model parameters can also be set in the request.", + "required": true, + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TelemetryEnvelope" } } - ], - "consumes": [ - "application/json", - "x-json-stream" - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "All of the telemetry items were accepted and processed.", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "206": { - "description": "Partial success. Some of the telemetry items were accepted and processed.", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "400" : { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "402": { - "description": "Payment Required", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "429": { - "description": "Too Many Requests", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/TrackResponse" - } - }, - "503": { - "description": "Service Unavailable", - "schema": { - "$ref": "#/definitions/TrackResponse" - } + } + ], + "consumes": [ + "application/json", + "x-json-stream" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "All of the telemetry items were accepted and processed.", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "206": { + "description": "Partial success. Some of the telemetry items were accepted and processed.", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "402": { + "description": "Payment Required", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "429": { + "description": "Too Many Requests", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/TrackResponse" + } + }, + "503": { + "description": "Service Unavailable", + "schema": { + "$ref": "#/definitions/TrackResponse" } } } } - }, - "definitions": { - "AvailabilityData": { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { - "type": "object", - "description": "Instances of AvailabilityData represent the result of executing an availability test.", - "required": [ - "ver", - "id", - "name", - "duration", - "success" - ], - "properties": { - "ver": { - "type": "integer", - "x-ms-client-name": "version", - "format": "int32", - "description": "Schema version", - "default": 2 - }, - "id": { - "type": "string", - "description": "Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.", - "maxLength": 512 - }, - "name": { - "type": "string", - "description": "Name of the test that these availability results represent.", - "maxLength": 1024 - }, - "duration": { - "type": "string", - "description": "Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." - }, - "success": { - "type": "boolean", - "x-nullable": false, - "description": "Success flag." - }, - "runLocation": { - "type": "string", - "description": "Name of the location where the test was run from.", - "maxLength": 1024 - }, - "message": { - "type": "string", - "description": "Diagnostic message for the result.", - "maxLength": 8192 - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - - } - } - ] - }, - "Base": { - "x-ms-client-name": "MonitorBase", + } + }, + "definitions": { + "AvailabilityData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", - "description": "Data struct to contain only C section with custom fields.", + "description": "Instances of AvailabilityData represent the result of executing an availability test.", + "required": [ + "ver", + "id", + "name", + "duration", + "success" + ], "properties": { - "baseType": { - "type": "string", - "description": "Name of item (B section) if any. If telemetry data is derived straight from this, this should be null." - }, - "baseData": { - "$ref": "#/definitions/Domain", - "description": "The data payload for the telemetry request" + "ver": { + "type": "integer", + "x-ms-client-name": "version", + "format": "int32", + "description": "Schema version", + "default": 2 + }, + "id": { + "type": "string", + "description": "Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Name of the test that these availability results represent.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "x-nullable": false, + "description": "Success flag." + }, + "runLocation": { + "type": "string", + "description": "Name of the location where the test was run from.", + "maxLength": 1024 + }, + "message": { + "type": "string", + "description": "Diagnostic message for the result.", + "maxLength": 8192 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } } - }, - "DataPoint" : { - "x-ms-client-name": "MetricDataPoint", + } + ] + }, + "Base": { + "x-ms-client-name": "MonitorBase", + "type": "object", + "description": "Data struct to contain only C section with custom fields.", + "properties": { + "baseType": { + "type": "string", + "description": "Name of item (B section) if any. If telemetry data is derived straight from this, this should be null." + }, + "baseData": { + "$ref": "#/definitions/Domain", + "description": "The data payload for the telemetry request" + } + } + }, + "DataPoint": { + "x-ms-client-name": "MetricDataPoint", + "type": "object", + "description": "Metric data single measurement.", + "required": [ + "name", + "value" + ], + "properties": { + "ns": { + "x-ms-client-name": "namespace", + "type": "string", + "description": "Namespace of the metric.", + "maxLength": 256 + }, + "name": { + "type": "string", + "description": "Name of the metric.", + "maxLength": 1024 + }, + "kind": { + "x-ms-client-name": "dataPointType", + "$ref": "#/definitions/DataPointType", + "description": "Metric type. Single measurement or the aggregated value." + }, + "value": { + "type": "number", + "description": "Single value for measurement. Sum of individual measurements for the aggregation.", + "format": "double" + }, + "count": { + "type": "number", + "format": "int32", + "description": "Metric weight of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "min": { + "type": "number", + "format": "double", + "description": "Minimum value of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "max": { + "type": "number", + "format": "double", + "description": "Maximum value of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + }, + "stdDev": { + "type": "number", + "format": "double", + "description": "Standard deviation of the aggregated metric. Should not be set for a measurement.", + "x-nullable": true + } + } + }, + "DataPointType": { + "type": "string", + "description": "Type of the metric data measurement.", + "enum": [ + "Measurement", + "Aggregation" + ] + }, + "Domain": { + "x-ms-client-name": "MonitorDomain", + "type": "object", + "description": "The abstract common base of all domains.", + "required": [ + "ver" + ], + "properties": { + "ver": { + "x-ms-client-name": "version", + "type": "integer", + "format": "int32", + "description": "Schema version", + "default": 2 + } + } + }, + "EventData": { + "x-ms-client-name": "TelemetryEventData", + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", - "description": "Metric data single measurement.", + "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.", "required": [ - "name", - "value" + "name" ], "properties": { - "ns": { - "x-ms-client-name": "namespace", - "type": "string", - "description": "Namespace of the metric.", - "maxLength": 256 - }, - "name": { - "type": "string", - "description": "Name of the metric.", - "maxLength": 1024 - }, - "kind": { - "x-ms-client-name": "dataPointType", - "$ref": "#/definitions/DataPointType", - "description": "Metric type. Single measurement or the aggregated value." - }, - "value": { - "type": "number", - "description": "Single value for measurement. Sum of individual measurements for the aggregation.", - "format": "double" - }, - "count": { - "type":"number", - "format": "int32", - "description": "Metric weight of the aggregated metric. Should not be set for a measurement.", - "x-nullable": true - }, - "min": { - "type":"number", - "format": "double", - "description": "Minimum value of the aggregated metric. Should not be set for a measurement.", - "x-nullable": true - }, - "max": { - "type":"number", - "format": "double", - "description": "Maximum value of the aggregated metric. Should not be set for a measurement.", - "x-nullable": true - }, - "stdDev": { - "type":"number", - "format": "double", - "description": "Standard deviation of the aggregated metric. Should not be set for a measurement.", - "x-nullable": true + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 512 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" } + } } - }, - "DataPointType" : { - "type": "string", - "description": "Type of the metric data measurement.", - "enum": [ - "Measurement", - "Aggregation" - ] - }, - "Domain" : { - "x-ms-client-name": "MonitorDomain", + } + ] + }, + "ExceptionData": { + "x-ms-client-name": "TelemetryExceptionData", + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", - "description": "The abstract common base of all domains.", + "description": "An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.", "required": [ - "ver" + "exceptions" ], "properties": { - "ver": { - "x-ms-client-name": "version", - "type": "integer", - "format": "int32", - "description": "Schema version", - "default": 2 + "exceptions": { + "type": "array", + "description": "Exception chain - list of inner exceptions.", + "items": { + "$ref": "#/definitions/ExceptionDetails" } - } - }, - "EventData" : { - "x-ms-client-name": "TelemetryEventData", - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { + }, + "severityLevel": { + "x-nullable": true, + "description": "Severity level. Mostly used to indicate exception severity level when it is reported by logging library.", + "$ref": "#/definitions/SeverityLevel" + }, + "problemId": { + "type": "string", + "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.", + "maxLength": 1024 + }, + "properties": { "type": "object", - "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.", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", - "maxLength": 512 - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } - } - ]}, - "ExceptionData" : { - "x-ms-client-name": "TelemetryExceptionData", - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { + }, + "measurements": { "type": "object", - "description": "An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.", - "required": [ - "name" - ], - "properties": { - "exceptions": { - "type": "array", - "description": "Exception chain - list of inner exceptions.", - "items": { - "$ref": "#/definitions/ExceptionDetails" - } - }, - "severityLevel": { - "x-nullable": true, - "description": "Severity level. Mostly used to indicate exception severity level when it is reported by logging library.", - "$ref": "#/definitions/SeverityLevel" - - }, - "problemId": { - "type": "string", - "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.", - "maxLength": 1024 - - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" } + } + } + } + ] + }, + "ExceptionDetails": { + "x-ms-client-name": "TelemetryExceptionDetails", + "type": "object", + "description": "Exception details of the exception in a chain.", + "required": [ + "message" + ], + "properties": { + "id": { + "type": "number", + "format": "int32", + "description": "In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting." + }, + "outerId": { + "type": "number", + "format": "int32", + "description": "The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception" + }, + "typeName": { + "type": "string", + "description": "Exception type name.", + "maxLength": 1024 + }, + "message": { + "type": "string", + "description": "Exception message.", + "maxLength": 32768 + }, + "hasFullStack": { + "type": "boolean", + "default": true, + "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." + }, + "stack": { + "type": "string", + "description": "Text describing the stack. Either stack or parsedStack should have a value.", + "maxLength": 32768 + }, + "parsedStack": { + "type": "array", + "description": "List of stack frames. Either stack or parsedStack should have a value.", + "items": { + "$ref": "#/definitions/StackFrame" } - ]}, - "ExceptionDetails" : { - "x-ms-client-name": "TelemetryExceptionDetails", + } + } + }, + "MessageData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", - "description": "Exception details of the exception in a chain.", + "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.", "required": [ - "message" + "message" ], "properties": { - "id": { - "type": "number", - "format": "int32", - "description": "In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting." - }, - "outerId": { - "type": "number", - "format": "int32", - "description": "The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception" - }, - "typeName": { - "type": "string", - "description": "Exception type name.", - "maxLength": 1024 - }, - "message": { - "type": "string", - "description": "Exception message.", - "maxLength": 32768 - }, - "hasFullStack": { - "type": "boolean", - "default": true, - "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." - }, - "stack": { - "type": "string", - "description": "Text describing the stack. Either stack or parsedStack should have a value.", - "maxLength": 32768 - }, - "parsedStack": { - "type": "array", - "description": "List of stack frames. Either stack or parsedStack should have a value.", - "items": { - "$ref": "#/definitions/StackFrame" - } - } - - } - }, - "MessageData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { + "message": { + "type": "string", + "description": "Trace message", + "maxLength": 32768 + }, + "severityLevel": { + "$ref": "#/definitions/SeverityLevel", + "description": "Trace severity level." + }, + "properties": { "type": "object", - "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 intances of this type. The message does not have measurements.", - "required": [ - "message" - ], - "properties": { - "message": { - "type": "string", - "description": "Trace message", - "maxLength": 32768 - }, - "severityLevel": { - "$ref": "#/definitions/SeverityLevel", - "description": "Trace severity level." - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } - } - ]}, - "MetricsData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { + }, + "measurements": { "type": "object", - "description": "An instance of the Metric item is a list of measurements (single data points) and/or aggregations.", - "required": [ - "metrics" - ], - "properties": { - "metrics": { - "type": "array", - "description": "List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.", - "items": { - "$ref": "#/definitions/DataPoint" - } - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - } + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" } + } } - ]}, - "PageViewData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { - "type": "object", - "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "string", - "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", - "maxLength": 512 - }, - "name": { - "type": "string", - "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", - "maxLength": 1024 - }, - "url": { - "type": "string", - "description": "Request URL with all query string parameters", - "maxLength": 2048 - }, - "duration": { - "type": "string", - "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." - }, - "referredUri": { - "type": "string", - "description": "Fully qualified page URI or URL of the referring page; if unknown, leave blank", - "maxLength": 2048 - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - - } - } - ] - }, - "PageViewPerfData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { - "type": "object", - "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.", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "string", - "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", - "maxLength": 512 - }, - "name": { - "type": "string", - "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", - "maxLength": 1024 - }, - "url": { - "type": "string", - "description": "Request URL with all query string parameters", - "maxLength": 2048 - }, - "duration": { - "type": "string", - "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." - }, - "perfTotal": { - "type": "string", - "description": "Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" - }, - "networkConnect": { - "type": "string", - "description": "Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" - }, - "sentRequest": { - "type": "string", - "description": "Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" - }, - "receivedResponse": { - "type": "string", - "description": "Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" - }, - "domProcessing": { - "type": "string", - "description": "DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - } - } - ] - }, - "RemoteDependencyData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { - "type": "object", - "description": "An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.", - "required": [ - "name", - "duration" - ], - "properties": { - "id": { - "type": "string", - "description": "Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.", - "maxLength": 512 - }, - "name": { - "type": "string", - "description": "Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.", - "maxLength": 1024 - }, - "resultCode": { - "type": "string", - "description": "Result code of a dependency call. Examples are SQL error code and HTTP status code.", - "maxLength": 1024 - }, - "data": { - "type": "string", - "description": "Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.", - "maxLength": 8192 - }, - "type": { - "type": "string", - "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.", - "maxLength": 1024 - }, - "target": { - "type": "string", - "description": "Target site of a dependency call. Examples are server name, host address.", - "maxLength": 1024 - }, - "duration": { - "type": "string", - "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." - }, - "success": { - "type": "boolean", - "description": "Indication of successfull or unsuccessfull call.", - "default": true - - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - - } + } + ] + }, + "MetricsData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { + "type": "object", + "description": "An instance of the Metric item is a list of measurements (single data points) and/or aggregations.", + "required": [ + "metrics" + ], + "properties": { + "metrics": { + "type": "array", + "description": "List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.", + "items": { + "$ref": "#/definitions/DataPoint" } - ] - }, - "RequestData" : { - "allOf": [{ - "$ref": "#/definitions/Domain" - }, - { - "type": "object", - "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", - "required": [ - "id", - "duration", - "responseCode", - "success" - ], - "properties": { - "id": { - "type": "string", - "description": "Identifier of a request call instance. Used for correlation between request and other telemetry items.", - "maxLength": 512 - }, - "name": { - "type": "string", - "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}'.", - "maxLength": 1024 - }, - "duration": { - "type": "string", - "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." - }, - "success": { - "type": "boolean", - "description": "Indication of successfull or unsuccessfull call.", - "default": true - }, - "responseCode": { - "type": "string", - "description": "Result of a request execution. HTTP status code for HTTP requests.", - "maxLength": 1024 - }, - "source": { - "type": "string", - "description": "Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.", - "maxLength": 1024 - }, - "url": { - "type": "string", - "description": "Request URL with all query string parameters.", - "maxLength": 2048 - }, - "properties": { - "type": "object", - "description": "Collection of custom properties.", - "additionalProperties": { - "type": "string", - "maxLength": 8192 - } - }, - "measurements": { - "type": "object", - "description": "Collection of custom measurements.", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - - } + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } - ] - }, - "SeverityLevel" : { - "type": "string", - "description": "Defines the level of severity for the event.", - "enum": [ - "Verbose", - "Information", - "Warning", - "Error", - "Critical" - ] - }, - "StackFrame" : { + } + } + } + ] + }, + "PageViewData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", - "description": "Stack frame information.", + "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", "required": [ - "level", - "method" + "id", + "name" ], "properties": { - "level": { - "type": "number", - "format": "int32", - "description": "" - }, - "method": { - "type": "string", - "description": "Method name.", - "maxLength": 1024 - }, - "assembly": { - "type": "string", - "description": "Name of the assembly (dll, jar, etc.) containing this function.", - "maxLength": 1024 - }, - "fileName": { - "type": "string", - "description": "File name or URL of the method implementation.", - "maxLength": 1024 - }, - "line": { - "type": "number", - "format": "int32", - "description": "Line number of the code implementation." + "id": { + "type": "string", + "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters", + "maxLength": 2048 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." + }, + "referredUri": { + "type": "string", + "description": "Fully qualified page URI or URL of the referring page; if unknown, leave blank", + "maxLength": 2048 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" } + } } - }, - "TrackResponse": { - "description": "Response containing the status of each telemetry item.", + } + ] + }, + "PageViewPerfData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", + "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.", + "required": [ + "id", + "name" + ], "properties": { - "itemsReceived": { - "type": "number", - "format": "int32", - "description": "The number of items received." - }, - "itemsAccepted": { - "type": "number", - "format": "int32", - "description": "The number of items accepted." - }, - "errors": { - "type":"array", - "description": "An array of error detail objects.", - "items": { - "$ref": "#/definitions/ErrorDetails" - } + "id": { + "type": "string", + "description": "Identifier of a page view instance. Used for correlation between page view and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Event name. Keep it low cardinality to allow proper grouping and useful metrics.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters", + "maxLength": 2048 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days." + }, + "perfTotal": { + "type": "string", + "description": "Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "networkConnect": { + "type": "string", + "description": "Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "sentRequest": { + "type": "string", + "description": "Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "receivedResponse": { + "type": "string", + "description": "Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "domProcessing": { + "type": "string", + "description": "DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff" + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 + } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" } + } } - }, - "ErrorDetails": { - "x-ms-client-name": "TelemetryErrorDetails", - "description": "The error details", + } + ] + }, + "RemoteDependencyData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", + "description": "An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.", + "required": [ + "name", + "duration" + ], "properties": { - "index": { - "type": "number", - "format": "int32", - "description": "The index in the original payload of the item." - }, - "statusCode": { - "type": "number", - "format": "int32", - "description": "The item specific [HTTP Response status code](#Response Status Codes)." - }, - "message": { - "type": "string", - "description": "The error message." + "id": { + "type": "string", + "description": "Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.", + "maxLength": 512 + }, + "name": { + "type": "string", + "description": "Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.", + "maxLength": 1024 + }, + "resultCode": { + "type": "string", + "description": "Result code of a dependency call. Examples are SQL error code and HTTP status code.", + "maxLength": 1024 + }, + "data": { + "type": "string", + "description": "Command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters.", + "maxLength": 8192 + }, + "type": { + "type": "string", + "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.", + "maxLength": 1024 + }, + "target": { + "type": "string", + "description": "Target site of a dependency call. Examples are server name, host address.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "description": "Indication of successful or unsuccessful call.", + "default": true + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } } - }, - "TelemetryEnvelope": { - "x-ms-client-name": "TelemetryItem", - "description": "System variables for a telemetry item.", + } + ] + }, + "RequestData": { + "allOf": [ + { + "$ref": "#/definitions/Domain" + }, + { "type": "object", + "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", "required": [ - "name", - "time" + "id", + "duration", + "responseCode", + "success" ], "properties": { - "ver": { - "type": "number", - "x-ms-client-name": "version", - "format": "int32", - "default": 1, - "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." - }, - "name": { - "type": "string", - "description": "Type name of telemetry data item." - }, - "time": { - "type": "string", - "format": "date-time", - "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." - }, - "sampleRate": { - "type": "number", - "format": "float", - "default": 100.0, - "description": "Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items." - }, - "seq": { - "type": "string", - "x-ms-client-name": "sequence", - "maxLength": 64, - "description": "Sequence field used to track absolute order of uploaded events." - }, - "iKey": { - "type": "string", - "x-ms-client-name": "instrumentationKey", - "description": "The instrumentation key of the Application Insights resource." - }, - "tags": { - "type": "object", - "description": "Key/value collection of context properties. See ContextTagKeys for information on available properties.", - "additionalProperties": { - "type": "string" - } - }, - "data": { - "$ref": "#/definitions/Base", - "description": "Telemetry data item." + "id": { + "type": "string", + "description": "Identifier of a request call instance. Used for correlation between request and other telemetry items.", + "maxLength": 512 + }, + "name": { + "type": "string", + "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}'.", + "maxLength": 1024 + }, + "duration": { + "type": "string", + "description": "Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days." + }, + "success": { + "type": "boolean", + "description": "Indication of successful or unsuccessful call.", + "default": true + }, + "responseCode": { + "type": "string", + "description": "Result of a request execution. HTTP status code for HTTP requests.", + "maxLength": 1024 + }, + "source": { + "type": "string", + "description": "Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.", + "maxLength": 1024 + }, + "url": { + "type": "string", + "description": "Request URL with all query string parameters.", + "maxLength": 2048 + }, + "properties": { + "type": "object", + "description": "Collection of custom properties.", + "additionalProperties": { + "type": "string", + "maxLength": 8192 } + }, + "measurements": { + "type": "object", + "description": "Collection of custom measurements.", + "additionalProperties": { + "type": "number", + "format": "double" + } + } + } + } + ] + }, + "SeverityLevel": { + "type": "string", + "description": "Defines the level of severity for the event.", + "enum": [ + "Verbose", + "Information", + "Warning", + "Error", + "Critical" + ] + }, + "StackFrame": { + "type": "object", + "description": "Stack frame information.", + "required": [ + "level", + "method" + ], + "properties": { + "level": { + "type": "number", + "format": "int32", + "description": "" + }, + "method": { + "type": "string", + "description": "Method name.", + "maxLength": 1024 + }, + "assembly": { + "type": "string", + "description": "Name of the assembly (dll, jar, etc.) containing this function.", + "maxLength": 1024 + }, + "fileName": { + "type": "string", + "description": "File name or URL of the method implementation.", + "maxLength": 1024 + }, + "line": { + "type": "number", + "format": "int32", + "description": "Line number of the code implementation." + } + } + }, + "TrackResponse": { + "description": "Response containing the status of each telemetry item.", + "type": "object", + "properties": { + "itemsReceived": { + "type": "number", + "format": "int32", + "description": "The number of items received." + }, + "itemsAccepted": { + "type": "number", + "format": "int32", + "description": "The number of items accepted." + }, + "errors": { + "type": "array", + "description": "An array of error detail objects.", + "items": { + "$ref": "#/definitions/ErrorDetails" } - }, - "ContextTagKeys": { - "type": "string", - "description": "The context tag keys.", - "enum": [ - "ApplicationVersion", - "DeviceId", - "DeviceLocale", - "DeviceModel", - "DeviceOEMName", - "DeviceOSVersion", - "DeviceType", - "LocationIp", - "LocationCountry", - "LocationProvince", - "LocationCity", - "OperationId", - "OperationName", - "OperationParentId", - "OperationSyntheticSource", - "OperationCorrelationVector", - "SessionId", - "SessionIsFirst", - "UserAccountId", - "UserId", - "UserAuthUserId", - "CloudRole", - "CloudRoleVer", - "CloudRoleInstance", - "CloudLocation", - "InternalSdkVersion", - "InternalAgentVersion", - "InternalNodeName " - ], - "x-ms-enum": { - "name": "ContextTagKeys", - "modelAsString": true, - "values": [{ - "value": "ai.application.ver" - },{ - "value": "ai.device.id" - },{ - "value": "ai.device.locale" - },{ - "value": "ai.device.model" - },{ - "value": "ai.device.oemName" - },{ - "value": "ai.device.osVersion" - },{ - "value": "ai.device.type" - },{ - "value": "ai.location.ip" - },{ - "value": "ai.location.country" - },{ - "value": "ai.location.province" - },{ - "value": "ai.location.city" - },{ - "value": "ai.operation.id" - },{ - "value": "ai.operation.name" - },{ - "value": "ai.operation.parentId" - },{ - "value": "ai.operation.syntheticSource" - },{ - "value": "ai.operation.correlationVector" - },{ - "value": "ai.session.id" - },{ - "value": "ai.session.isFirst" - },{ - "value": "ai.user.accountId" - },{ - "value": "ai.user.id" - },{ - "value": "ai.user.authUserId" - },{ - "value": "ai.cloud.role" - },{ - "value": "ai.cloud.roleVer" - },{ - "value": "ai.cloud.roleInstance" - },{ - "value": "ai.cloud.location" - },{ - "value": "ai.internal.sdkVersion" - },{ - "value": "ai.internal.agentVersion" - },{ - "value": "ai.internal.nodeName" - }] } } }, - "parameters": { - "Host": { - "name": "Host", - "description": "Breeze endpoint: https://dc.services.visualstudio.com", - "x-ms-parameter-location": "client", - "default": "https://dc.services.visualstudio.com", - "required": true, - "type": "string", - "in": "path", - "x-ms-skip-url-encoding": true + "ErrorDetails": { + "x-ms-client-name": "TelemetryErrorDetails", + "description": "The error details", + "type": "object", + "properties": { + "index": { + "type": "number", + "format": "int32", + "description": "The index in the original payload of the item." + }, + "statusCode": { + "type": "number", + "format": "int32", + "description": "The item specific [HTTP Response status code](#Response Status Codes)." + }, + "message": { + "type": "string", + "description": "The error message." + } + } + }, + "TelemetryEnvelope": { + "x-ms-client-name": "TelemetryItem", + "description": "System variables for a telemetry item.", + "type": "object", + "required": [ + "name", + "time" + ], + "properties": { + "ver": { + "type": "number", + "x-ms-client-name": "version", + "format": "int32", + "default": 1, + "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." + }, + "name": { + "type": "string", + "description": "Type name of telemetry data item." + }, + "time": { + "type": "string", + "format": "date-time", + "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." + }, + "sampleRate": { + "type": "number", + "format": "float", + "default": 100.0, + "description": "Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items." + }, + "seq": { + "type": "string", + "x-ms-client-name": "sequence", + "maxLength": 64, + "description": "Sequence field used to track absolute order of uploaded events." + }, + "iKey": { + "type": "string", + "x-ms-client-name": "instrumentationKey", + "description": "The instrumentation key of the Application Insights resource." + }, + "tags": { + "type": "object", + "description": "Key/value collection of context properties. See ContextTagKeys for information on available properties.", + "additionalProperties": { + "type": "string" + } + }, + "data": { + "$ref": "#/definitions/Base", + "description": "Telemetry data item." + } } + }, + "ContextTagKeys": { + "type": "string", + "description": "The context tag keys.", + "enum": [ + "ApplicationVersion", + "DeviceId", + "DeviceLocale", + "DeviceModel", + "DeviceOEMName", + "DeviceOSVersion", + "DeviceType", + "LocationIp", + "LocationCountry", + "LocationProvince", + "LocationCity", + "OperationId", + "OperationName", + "OperationParentId", + "OperationSyntheticSource", + "OperationCorrelationVector", + "SessionId", + "SessionIsFirst", + "UserAccountId", + "UserId", + "UserAuthUserId", + "CloudRole", + "CloudRoleVer", + "CloudRoleInstance", + "CloudLocation", + "InternalSdkVersion", + "InternalAgentVersion", + "InternalNodeName " + ], + "x-ms-enum": { + "name": "ContextTagKeys", + "modelAsString": true, + "values": [ + { + "value": "ai.application.ver" + }, + { + "value": "ai.device.id" + }, + { + "value": "ai.device.locale" + }, + { + "value": "ai.device.model" + }, + { + "value": "ai.device.oemName" + }, + { + "value": "ai.device.osVersion" + }, + { + "value": "ai.device.type" + }, + { + "value": "ai.location.ip" + }, + { + "value": "ai.location.country" + }, + { + "value": "ai.location.province" + }, + { + "value": "ai.location.city" + }, + { + "value": "ai.operation.id" + }, + { + "value": "ai.operation.name" + }, + { + "value": "ai.operation.parentId" + }, + { + "value": "ai.operation.syntheticSource" + }, + { + "value": "ai.operation.correlationVector" + }, + { + "value": "ai.session.id" + }, + { + "value": "ai.session.isFirst" + }, + { + "value": "ai.user.accountId" + }, + { + "value": "ai.user.id" + }, + { + "value": "ai.user.authUserId" + }, + { + "value": "ai.cloud.role" + }, + { + "value": "ai.cloud.roleVer" + }, + { + "value": "ai.cloud.roleInstance" + }, + { + "value": "ai.cloud.location" + }, + { + "value": "ai.internal.sdkVersion" + }, + { + "value": "ai.internal.agentVersion" + }, + { + "value": "ai.internal.nodeName" + } + ] + } + } + }, + "parameters": { + "Host": { + "name": "Host", + "description": "Breeze endpoint: https://dc.services.visualstudio.com", + "x-ms-parameter-location": "client", + "default": "https://dc.services.visualstudio.com", + "required": true, + "type": "string", + "in": "path", + "x-ms-skip-url-encoding": true } - } \ No newline at end of file + } +} diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md new file mode 100644 index 000000000000..7f1da80b8089 --- /dev/null +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md @@ -0,0 +1,86 @@ +## Releases + +> see https://aka.ms/autorest + +A preview release `2020-09-15_Preview` is currently available. +``` yaml $(tag) == 'release_2_0' +input-file: preview/2020-09-15/swagger.json +``` + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-js + - repo: azure-sdk-for-node + - repo: azure-sdk-for-ruby +``` + +## CSharp Settings + +These settings apply only when `--csharp` is specified on the command line. + +``` yaml $(csharp) +csharp: + sync-methods: None + license-header: MICROSOFT_MIT_NO_VERSION + azure-arm: false + namespace: OpenTelemetry.Exporter.AzureMonitor + output-folder: $(csharp-sdks-folder)/Monitor/Exporter.AzureMonitor/src/Generated + clear-output-folder: true +``` + +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + license-header: MICROSOFT_MIT_NO_VERSION + add-credentials: true + payload-flattening-threshold: 2 + namespace: opentelemetry.exporter.azuremonitor + package-name: azure-cognitiveservices-language-textanalytics + clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/monitor/opentelemetry-exporter-azuremonitor/opentelemetry/exporter/azuremonitor +``` + +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/monitor/opentelemetry-exporter-azuremonitor/opentelemetry/exporter/azuremonitor +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +java: + azure-arm: true + namespace: opentelemetry.exporter.azuremonitor + license-header: MICROSOFT_MIT_NO_CODEGEN + payload-flattening-threshold: 1 + output-folder: $(azure-libraries-for-java-folder)/monitor/opentelemetry-exporter-azuremonitor/ + with-optional-parameters: true + with-single-async-method: true +``` From e6325d83619c68edc8fa1cd412f4d9fea7e49556 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 12:59:58 -0700 Subject: [PATCH 04/13] Update readme --- .../data-plane/Monitor.Exporters/readme.md | 93 +++++-------------- 1 file changed, 25 insertions(+), 68 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md index 7f1da80b8089..e1975fc19ba7 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md @@ -1,86 +1,43 @@ -## Releases +# Exporter for Azure Monitor +This is the AutoRest configuration file for Monitor Exporter. -> see https://aka.ms/autorest +## Getting Started -A preview release `2020-09-15_Preview` is currently available. -``` yaml $(tag) == 'release_2_0' -input-file: preview/2020-09-15/swagger.json -``` +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: -## Swagger to SDK +> `autorest readme.md` -This section describes what SDK should be generated by the automatic system. -This is not used by Autorest itself. +To see additional help and options, run: -``` yaml $(swagger-to-sdk) -swagger-to-sdk: - - repo: azure-sdk-for-python - - repo: azure-sdk-for-java - - repo: azure-sdk-for-go - - repo: azure-sdk-for-js - - repo: azure-sdk-for-node - - repo: azure-sdk-for-ruby -``` +> `autorest --help` -## CSharp Settings +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. -These settings apply only when `--csharp` is specified on the command line. +## Configuration -``` yaml $(csharp) -csharp: - sync-methods: None - license-header: MICROSOFT_MIT_NO_VERSION - azure-arm: false - namespace: OpenTelemetry.Exporter.AzureMonitor - output-folder: $(csharp-sdks-folder)/Monitor/Exporter.AzureMonitor/src/Generated - clear-output-folder: true -``` +### Basic Information -## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. -Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. - -``` yaml $(python) -python-mode: create -python: - license-header: MICROSOFT_MIT_NO_VERSION - add-credentials: true - payload-flattening-threshold: 2 - namespace: opentelemetry.exporter.azuremonitor - package-name: azure-cognitiveservices-language-textanalytics - clear-output-folder: true -``` +These are the global settings for the schemaregistry. -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/monitor/opentelemetry-exporter-azuremonitor/opentelemetry/exporter/azuremonitor +```yaml +openapi-type: data-plane +tag: 2020-09-15-preview ``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/monitor/opentelemetry-exporter-azuremonitor/opentelemetry/exporter/azuremonitor -``` +### Tag: 2020-09-15-preview -## Go +These settings apply only when `--tag=2020-09-15-preview` is specified on the command line. -See configuration in [readme.go.md](./readme.go.md) +```yaml $(tag) == '2020-09-15-preview' +input-file: + - preview/2020-09-15/swagger.json +``` -## Java +## Releases -These settings apply only when `--java` is specified on the command line. -Please also specify `--azure-libraries-for-java-folder=`. +> see https://aka.ms/autorest -``` yaml $(java) -java: - azure-arm: true - namespace: opentelemetry.exporter.azuremonitor - license-header: MICROSOFT_MIT_NO_CODEGEN - payload-flattening-threshold: 1 - output-folder: $(azure-libraries-for-java-folder)/monitor/opentelemetry-exporter-azuremonitor/ - with-optional-parameters: true - with-single-async-method: true +A preview release `2020-09-15_Preview` is currently available. +``` yaml $(tag) == 'release_2_0' +input-file: preview/2020-09-15/swagger.json ``` From b94e582fee095990e0976bf4e656b8007246af3d Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 13:47:44 -0700 Subject: [PATCH 05/13] Add examples --- .../2020-09-15_Preview/examples/track.json | 24 +++++++++++++++++++ .../swagger.json | 13 ++++------ .../data-plane/Monitor.Exporters/readme.md | 2 +- 3 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json rename specification/applicationinsights/data-plane/Monitor.Exporters/preview/{2020-09-15 => 2020-09-15_Preview}/swagger.json (99%) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json new file mode 100644 index 000000000000..24df2e83efe5 --- /dev/null +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "Host": "{Host}", + "input": { + "telemetryEnvelope": [ + {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event","time":"2020-09-22T10:12:53.208-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.cloud.roleInstance":"MININT-PLOJ2RD","ai.operation.childid":"75706a2ac9456288"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"myname","properties":{"one":"-1-","two":"-2-"}}}} + {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.RemoteDependency","time":"2020-09-22T10:12:53.211-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.cloud.roleInstance":"MININT-PLOJ2RD","ai.operation.parentId":"75706a2ac9456288"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"GET /200","id":"48ddeeeb10c0bf4c","resultCode":"200","duration":"00:00:00.2590000","success":true,"type":"Http (tracked component)","target":"httpstatuses.com"}}} + {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.207-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.operation.name":"GET /http-dependency/success","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"75706a2ac9456288","duration":"00:00:00.2650000","responseCode":"200","success":true,"name":"GET /http-dependency/success","url":"http://localhost:8080/http-dependency/success"}}} + {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.489-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"a6f442aafed475e12bd54b7cc586cb8b","ai.operation.name":"GET /**","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"f6610a3f5c00d010","duration":"00:00:00.0040000","responseCode":"404","success":false,"name":"GET /**","url":"http://localhost:8080/style-e9d18b2504b962e67dedc17a859dea0d.css"}}} + {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.489-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"a6f442aafed475e12bd54b7cc586cb8b","ai.operation.name":"GET /**","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"f6610a3f5c00d010","duration":"00:00:00.0040000","responseCode":"400","success":false,"name":"GET /**","url":"http://localhost:8080/style-e9d18b2504b962e67dedc17a859dea0d.css"}}} + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "itemsReceived": 5, + "itemsAccepted": 5, + "errors": [] + } + } + } + } \ No newline at end of file diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json similarity index 99% rename from specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json rename to specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index fed22393b7c8..4ae47bb09367 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -84,6 +84,11 @@ "$ref": "#/definitions/TrackResponse" } } + }, + "x-ms-examples": { + "Track examples": { + "$ref": ".//examples//track.json" + } } } } @@ -98,20 +103,12 @@ "type": "object", "description": "Instances of AvailabilityData represent the result of executing an availability test.", "required": [ - "ver", "id", "name", "duration", "success" ], "properties": { - "ver": { - "type": "integer", - "x-ms-client-name": "version", - "format": "int32", - "description": "Schema version", - "default": 2 - }, "id": { "type": "string", "description": "Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.", diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md index e1975fc19ba7..e24f68445e41 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md @@ -39,5 +39,5 @@ input-file: A preview release `2020-09-15_Preview` is currently available. ``` yaml $(tag) == 'release_2_0' -input-file: preview/2020-09-15/swagger.json +input-file: preview/2020-09-15_Preview/swagger.json ``` From a11cc7dc2ce2c22dbde0c6a8961b9d9d94ade34f Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 13:58:47 -0700 Subject: [PATCH 06/13] Format sample json --- .../2020-09-15_Preview/examples/track.json | 60 ++++++++++++------- 1 file changed, 40 insertions(+), 20 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json index 24df2e83efe5..ba38fbfcc743 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -1,24 +1,44 @@ { - "parameters": { - "Host": "{Host}", - "input": { - "telemetryEnvelope": [ - {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event","time":"2020-09-22T10:12:53.208-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.cloud.roleInstance":"MININT-PLOJ2RD","ai.operation.childid":"75706a2ac9456288"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"myname","properties":{"one":"-1-","two":"-2-"}}}} - {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.RemoteDependency","time":"2020-09-22T10:12:53.211-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.cloud.roleInstance":"MININT-PLOJ2RD","ai.operation.parentId":"75706a2ac9456288"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"GET /200","id":"48ddeeeb10c0bf4c","resultCode":"200","duration":"00:00:00.2590000","success":true,"type":"Http (tracked component)","target":"httpstatuses.com"}}} - {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.207-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"f364119ed1ff3bcda0d4ee0896cf785f","ai.operation.name":"GET /http-dependency/success","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"75706a2ac9456288","duration":"00:00:00.2650000","responseCode":"200","success":true,"name":"GET /http-dependency/success","url":"http://localhost:8080/http-dependency/success"}}} - {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.489-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"a6f442aafed475e12bd54b7cc586cb8b","ai.operation.name":"GET /**","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"f6610a3f5c00d010","duration":"00:00:00.0040000","responseCode":"404","success":false,"name":"GET /**","url":"http://localhost:8080/style-e9d18b2504b962e67dedc17a859dea0d.css"}}} - {"ver":1,"name":"Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Request","time":"2020-09-22T10:12:53.489-0700","sampleRate":100.0,"iKey":"b4f83947-968d-4e2f-82ad-804be07697ae","tags":{"ai.internal.sdkVersion":"java:3.0.0-PREVIEW.5","ai.internal.nodeName":"MININT-PLOJ2RD","ai.operation.id":"a6f442aafed475e12bd54b7cc586cb8b","ai.operation.name":"GET /**","ai.cloud.roleInstance":"MININT-PLOJ2RD"},"data":{"baseType":"RequestData","baseData":{"ver":2,"id":"f6610a3f5c00d010","duration":"00:00:00.0040000","responseCode":"400","success":false,"name":"GET /**","url":"http://localhost:8080/style-e9d18b2504b962e67dedc17a859dea0d.css"}}} - ] - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "itemsReceived": 5, - "itemsAccepted": 5, - "errors": [] + "parameters": { + "Host": "{Host}", + "input": { + "telemetryEnvelope": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } } + ] + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 1, + "errors": [] } } - } \ No newline at end of file + } +} From db9898673a5f603f5527c346406b1a9c294e9895 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 14:53:59 -0700 Subject: [PATCH 07/13] Add more samples --- .../2020-09-15_Preview/examples/track.json | 300 ++++++++++++++++-- .../data-plane/Monitor.Exporters/readme.md | 10 +- 2 files changed, 279 insertions(+), 31 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json index ba38fbfcc743..8f3541aa3be4 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -2,31 +2,209 @@ "parameters": { "Host": "{Host}", "input": { - "telemetryEnvelope": [ + "body": [ { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } } } - } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" + } + } + } + } + ] } ] } @@ -39,6 +217,84 @@ "itemsAccepted": 1, "errors": [] } + }, + "206": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 1, + "errors": [] + } + }, + "400": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 0, + "errors": [ + { + "index": 1, + "statusCode": 400, + "message": "103: Field 'time' on type 'Envelope' is older than the allowed min date. Expected: now - 172800000ms, Actual: now - 2694990759ms" + } + ] + } + }, + "402": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 0, + "errors": [ + { + "index": 1, + "statusCode": 402, + "message": "" + } + ] + } + }, + "429": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 0, + "errors": [ + { + "index": 1, + "statusCode": 429, + "message": "" + } + ] + } + }, + "500": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 0, + "errors": [ + { + "index": 1, + "statusCode": 500, + "message": "" + } + ] + } + }, + "503": { + "headers": {}, + "body": { + "itemsReceived": 1, + "itemsAccepted": 0, + "errors": [ + { + "index": 1, + "statusCode": 503, + "message": "" + } + ] + } } } } diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md index e24f68445e41..602702e62ccb 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md @@ -30,14 +30,6 @@ These settings apply only when `--tag=2020-09-15-preview` is specified on the co ```yaml $(tag) == '2020-09-15-preview' input-file: - - preview/2020-09-15/swagger.json + - preview/2020-09-15_Preview/swagger.json ``` -## Releases - -> see https://aka.ms/autorest - -A preview release `2020-09-15_Preview` is currently available. -``` yaml $(tag) == 'release_2_0' -input-file: preview/2020-09-15_Preview/swagger.json -``` From cb3af386de3520713e7b7939f5e0a3698582452b Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 16:28:44 -0700 Subject: [PATCH 08/13] Fix formatting --- .../2020-09-15_Preview/examples/track.json | 370 +++++++++--------- .../preview/2020-09-15_Preview/swagger.json | 6 +- .../data-plane/Monitor.Exporters/readme.md | 11 +- 3 files changed, 197 insertions(+), 190 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json index 8f3541aa3be4..fa5ec6b7b7f8 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -1,213 +1,211 @@ { "parameters": { "Host": "{Host}", - "input": { - "body": [ - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + "body": [ + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - }, - { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } + } + ] + }, + { + "items": [ + { + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } } - ] - } - ] - } + } + ] + } + ] }, "responses": { "200": { diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index 4ae47bb09367..2a80c7c422c3 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -17,14 +17,14 @@ "paths": { "/track": { "post": { - "summary": "Detect anomalies for the entire series in batch.", - "description": "This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.", + "summary": "Track telemetry events", + "description": "This operation sends a sequence of telemetry events that will be monitored by Azure Monitor.", "operationId": "track", "parameters": [ { "name": "body", "in": "body", - "description": "Time series points and period if needed. Advanced model parameters can also be set in the request.", + "description": "The list of telemetry events to track.", "required": true, "schema": { "type": "array", diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md index 602702e62ccb..b1ae6ed86f47 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/readme.md @@ -1,5 +1,5 @@ # Exporter for Azure Monitor -This is the AutoRest configuration file for Monitor Exporter. +> see https://aka.ms/autorest ## Getting Started @@ -15,6 +15,15 @@ For other options on installation see [Installing AutoRest](https://aka.ms/autor ## Configuration +The following are the settings for this using this API with AutoRest. + +``` yaml +# specify the version of Autorest to use +version: 1.0.1-20170402 + +# (more settings here...) +``` + ### Basic Information These are the global settings for the schemaregistry. From cc2a094385597e7bf0134fe751e1b41fa2871110 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 17:30:18 -0700 Subject: [PATCH 09/13] Fix samples path --- .../Monitor.Exporters/preview/2020-09-15_Preview/swagger.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index 2a80c7c422c3..46dac13e7e18 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -87,7 +87,7 @@ }, "x-ms-examples": { "Track examples": { - "$ref": ".//examples//track.json" + "$ref": "examples/track.json" } } } From 7deec1e928d0ab063adce2b4f158b2699cd39a3b Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 20:19:39 -0700 Subject: [PATCH 10/13] Fix json format --- .../2020-09-15_Preview/examples/track.json | 322 ++++++++---------- 1 file changed, 147 insertions(+), 175 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json index fa5ec6b7b7f8..aa55063cea8a 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -3,207 +3,179 @@ "Host": "{Host}", "body": [ { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } }, { - "items": [ - { - "ver": 1, - "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", - "time": "2020-09-22T10:12:53.208-0700", - "sampleRate": 100.0, - "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", - "tags": { - "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", - "ai.internal.nodeName": "MININT-PLOJ2RD", - "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", - "ai.cloud.roleInstance": "MININT-PLOJ2RD", - "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } + "ver": 1, + "name": "Microsoft.ApplicationInsights.b4f83947968d4e2f82ad804be07697ae.Event", + "time": "2020-09-22T10:12:53.208-0700", + "sampleRate": 100.0, + "iKey": "c1f83947-938c-5e2a-82ff-804be07647bc", + "tags": { + "ai.internal.sdkVersion": "java:3.0.0-PREVIEW.5", + "ai.internal.nodeName": "MININT-PLOJ2RD", + "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", + "ai.cloud.roleInstance": "MININT-PLOJ2RD", + "ai.operation.childid": "75706a2ac9456288" + }, + "data": { + "baseType": "EventData", + "baseData": { + "ver": 2, + "name": "myname", + "properties": { + "one": "-1-", + "two": "-2-" } } - ] + } } ] }, From bfbed45f00d6211cdec483662941e7950dde2ccb Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 21:53:43 -0700 Subject: [PATCH 11/13] Update time format --- .../Monitor.Exporters/preview/2020-09-15_Preview/swagger.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index 46dac13e7e18..2ae2fee7e16b 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -843,7 +843,6 @@ }, "time": { "type": "string", - "format": "date-time", "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." }, "sampleRate": { From 49e103836b896fa2f8adb9bfc0cf72384f3251d7 Mon Sep 17 00:00:00 2001 From: Srikanta Date: Tue, 22 Sep 2020 22:07:12 -0700 Subject: [PATCH 12/13] Fix typo --- .../2020-09-15_Preview/examples/track.json | 77 ------------------- .../preview/2020-09-15_Preview/swagger.json | 2 +- 2 files changed, 1 insertion(+), 78 deletions(-) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json index aa55063cea8a..dad4cd1bc839 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/examples/track.json @@ -14,17 +14,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -39,17 +28,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -64,17 +42,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -89,17 +56,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -114,17 +70,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -139,17 +84,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } }, { @@ -164,17 +98,6 @@ "ai.operation.id": "f364119ed1ff3bcda0d4ee0896cf785f", "ai.cloud.roleInstance": "MININT-PLOJ2RD", "ai.operation.childid": "75706a2ac9456288" - }, - "data": { - "baseType": "EventData", - "baseData": { - "ver": 2, - "name": "myname", - "properties": { - "one": "-1-", - "two": "-2-" - } - } } } ] diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index 2ae2fee7e16b..03434451bb3e 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -669,7 +669,7 @@ }, { "type": "object", - "description": "An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.", + "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.", "required": [ "id", "duration", From 3473709a73b098e2f1211cd91ab1bf79807da5cb Mon Sep 17 00:00:00 2001 From: Srikanta Date: Wed, 23 Sep 2020 10:41:16 -0700 Subject: [PATCH 13/13] Add error status --- .../preview/2020-09-15_Preview/swagger.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json index 03434451bb3e..90a37e91a9ee 100644 --- a/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json +++ b/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json @@ -56,30 +56,35 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/TrackResponse" } }, "402": { "description": "Payment Required", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/TrackResponse" } }, "429": { "description": "Too Many Requests", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/TrackResponse" } }, "500": { "description": "Internal Server Error", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/TrackResponse" } }, "503": { "description": "Service Unavailable", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/TrackResponse" }