Microsoft.Insights (stable:2019-03-01)

2024/12/05 • 1 updated methods

Baselines_List (updated)
Description **Lists the metric baseline values for a resource**.
Reference Link ¶

⚶ Changes

{
  "#id": "Baselines_List",
  "$parameters": [
    {
      "#name": "metricnamespace",
      "Description": {
        "new": "Metric namespace that contains the requested metric names.",
        "old": "Metric namespace to query metric definitions for."
      }
    }
  ],
  "$responses": {
    "default": {
      "$properties": {
        "@added_7014d7ce1b9346edbf5421dbd4f54196": {
          "#name": "error",
          "Required": false,
          "Type": "object",
          "$properties": [
            {
              "#name": "code",
              "Description": "Unlocalized string which can be used to programmatically identify the error.",
              "Required": false,
              "Type": "string"
            },
            {
              "#name": "message",
              "Description": "Describes the error in detail and provides debugging information. If Accept-Language is set in the request, it must be localized to that language.",
              "Required": false,
              "Type": "string"
            },
            {
              "#name": "target",
              "Description": "The target of the particular error (for example, the name of the property in error).",
              "Required": false,
              "Type": "string"
            },
            {
              "#name": "details",
              "Description": "An array of additional nested error response info objects, as described by this contract.",
              "Required": false,
              "Type": "array",
              "$items": {
                "Description": "Describes details of an error response.",
                "Type": "object",
                "$properties": [
                  {
                    "#name": "code",
                    "Description": "Unlocalized string which can be used to programmatically identify the error.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "message",
                    "Description": "Describes the error in detail and provides debugging information.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "target",
                    "Description": "The target of the particular error (for example, the name of the property in error).",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "additionalInfo",
                    "Description": "An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.",
                    "Required": false,
                    "Type": "array",
                    "$items": {
                      "Type": "object",
                      "$properties": [
                        {
                          "#name": "type",
                          "Description": "The type of additional information.",
                          "Required": false,
                          "Type": "string"
                        },
                        {
                          "#name": "info",
                          "Description": "The additional information specific to the type.",
                          "Required": false,
                          "Type": "object"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "#name": "additionalInfo",
              "Description": "An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.",
              "Required": false,
              "Type": "array",
              "$items": {
                "Type": "object",
                "$properties": [
                  {
                    "#name": "type",
                    "Description": "The type of additional information.",
                    "Required": false,
                    "Type": "string"
                  },
                  {
                    "#name": "info",
                    "Description": "The additional information specific to the type.",
                    "Required": false,
                    "Type": "object"
                  }
                ]
              }
            }
          ]
        },
        "@removed_b5f44426990a4b8db5be54d19eeb68f2": {
          "#name": "code",
          "Description": "Error code",
          "Required": false,
          "Type": "string"
        },
        "@removed_e6ccf65be9384066a1aa047eb9fd7a11": {
          "#name": "message",
          "Description": "Error message indicating why the operation failed.",
          "Required": false,
          "Type": "string"
        }
      }
    }
  }
}

⚼ Request

GET:  /{resourceUri}/providers/Microsoft.Insights/metricBaselines
{
resourceUri: string ,
metricnames: string ,
metricnamespace: string ,
timespan: string ,
interval: string ,
aggregation: string ,
sensitivities: string ,
$filter: string ,
resultType: string ,
api-version: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}

⚐ Response (200)

{
value:
[
{
id: string ,
type: string ,
name: string ,
properties:
{
timespan: string ,
interval: string ,
namespace: string ,
baselines:
[
{
aggregation: string ,
dimensions:
[
{
name: string ,
value: string ,
}
,
]
,
timestamps:
[
string ,
]
,
data:
[
{
sensitivity: enum ,
lowThresholds:
[
number ,
]
,
highThresholds:
[
number ,
]
,
}
,
]
,
metadataValues:
[
{
name: string ,
value: string ,
}
,
]
,
}
,
]
,
}
,
}
,
]
,
}