Skip to content

Commit

Permalink
Sampling settings added to logger entity (Azure#2600)
Browse files Browse the repository at this point in the history
  • Loading branch information
promoisha authored and lmazuel committed Mar 7, 2018
1 parent 8b34c73 commit cb7472c
Showing 1 changed file with 98 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,16 @@
"isBuffered": {
"type": "boolean",
"description": "Whether records are buffered in the logger before publishing. Default is assumed to be true."
},
"sampling" : {
"$ref" : "#/definitions/LoggerSamplingContract",
"description": "Sampling settings for an ApplicationInsights logger.",
"example": {
"sampling": {
"samplingType": "adaptive",
"evaluationInterval": "PT2M"
}
}
}
},
"required": [
Expand Down Expand Up @@ -497,6 +507,94 @@
}
},
"description": "Parameters supplied to the Update Logger operation."
},
"LoggerSamplingContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/LoggerSamplingProperties",
"description": "Sampling settings entity contract properties."
}
},
"description": "Sampling settigs contract."
},
"LoggerSamplingProperties": {
"properties": {
"samplingType": {
"type": "string",
"description": "Sampling type.",
"enum": [
"fixed",
"adaptive"
],
"x-ms-enum": {
"name": "SamplingType",
"modelAsString": true,
"values": [
{
"value": "fixed",
"description": "Fixed-rate sampling."
},
{
"value": "adaptive",
"description": "Sampling with a dynamically adjustable rate."
}
]
}
},
"percentage": {
"type": "number",
"format": "double",
"description": "Rate of sampling for fixed-rate sampling."
},
"maxTelemetryItemsPerSecond": {
"type": "integer",
"format": "int32",
"description": "Target rate of telemetry items per second."
},
"evaluationInterval": {
"type": "string",
"format": "duration",
"description": "Rate re-evaluation interval in ISO8601 format.",
"minLength": 1,
"maxLength": 2000
},
"percentageDecreaseTimeout": {
"type": "string",
"format": "duration",
"description": "Duration in ISO8601 format after which it's allowed to lower the sampling rate.",
"minLength": 1,
"maxLength": 2000
},
"percentageIncreaseTimeout": {
"type": "string",
"format": "duration",
"description": "Duration in ISO8601 format after which it's allowed to increase the sampling rate.",
"minLength": 1,
"maxLength": 2000
},
"minPercentage": {
"type": "number",
"format": "double",
"description": "Minimum allowed rate of sampling."
},
"maxPercentage": {
"type": "number",
"format": "double",
"description": "Maximum allowed rate of sampling."
},
"movingAverageRatio": {
"type": "number",
"format": "double",
"description": "Moving average ration assigned to most recent value."
},
"initialPercentage": {
"type": "number",
"format": "double",
"description": "Initial sampling rate."
}
},
"description": "Sampling settings for an ApplicationInsights logger."
}
},
"parameters": {
Expand Down

0 comments on commit cb7472c

Please sign in to comment.