{
  "components": {
    "schemas": {
      "MonitorStatusSignalStatus": {
        "properties": {
          "series": {
            "description": "This field is deprecated.",
            "items": {
              "$ref": "#/components/schemas/SignalStatusSeriesStatus"
            },
            "type": "array"
          },
          "severity": {
            "type": "string"
          },
          "signal_labels": {
            "description": "Signal labels.",
            "items": {
              "$ref": "#/components/schemas/commonLabel"
            },
            "type": "array"
          },
          "started_at": {
            "description": "When the signal started firing: the earliest among its firing severities.",
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/stateunstableAlertingState"
          }
        },
        "type": "object"
      },
      "SignalStatusSeriesStatus": {
        "description": "This message is deprecated.",
        "properties": {
          "labels": {
            "description": "Series labels.",
            "items": {
              "$ref": "#/components/schemas/commonLabel"
            },
            "type": "array"
          },
          "severity": {
            "type": "string"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/stateunstableAlertingState"
          }
        },
        "type": "object"
      },
      "apiError": {
        "properties": {
          "message": {
            "description": "An error message describing what went wrong.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "commonLabel": {
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "stateunstableAlertingState": {
        "description": " - ALERTING_STATE_PASS: Monitor is not triggered.\n - ALERTING_STATE_PENDING: Monitor is triggered but not yet alerting.\n - ALERTING_STATE_ALERTING: Monitor is triggered and alerting.\n - ALERTING_STATE_MUTED: Monitor is triggered but is muted.",
        "enum": [
          "ALERTING_STATE_PASS",
          "ALERTING_STATE_PENDING",
          "ALERTING_STATE_ALERTING",
          "ALERTING_STATE_MUTED"
        ],
        "type": "string"
      },
      "stateunstableEchoResponse": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "stateunstableListMonitorStatusesResponse": {
        "properties": {
          "monitor_statuses": {
            "items": {
              "$ref": "#/components/schemas/stateunstableMonitorStatus"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "stateunstableMonitorStatus": {
        "description": "MonitorStatus contains the status of a monitor.",
        "properties": {
          "severity": {
            "type": "string"
          },
          "signals": {
            "items": {
              "$ref": "#/components/schemas/MonitorStatusSignalStatus"
            },
            "type": "array"
          },
          "slug": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/stateunstableAlertingState"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "Chronosphere API token",
        "in": "header",
        "name": "API-Token",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "\n\u003cb\u003eWARNING: This API is unstable and is meant for experimentation only. Do not\nuse this API in production. The endpoints and schemas referenced in this\ndocumentation will be changed or removed without notice and without any\nbackwards compatibility guarantee. Note that even though this API is unstable,\nit is still connected to production data, so use with caution.\u003c/b\u003e",
    "title": "State Unstable API",
    "version": "UNSTABLE"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/unstable/state/echo": {
      "get": {
        "operationId": "Echo",
        "parameters": [
          {
            "in": "query",
            "name": "message",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/stateunstableEchoResponse"
                }
              }
            },
            "description": "A successful response."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiError"
                }
              }
            },
            "description": "An unexpected error response."
          }
        },
        "tags": [
          "StateUnstable"
        ]
      }
    },
    "/api/unstable/state/monitors-statuses": {
      "get": {
        "operationId": "ListMonitorStatuses",
        "parameters": [
          {
            "description": "Filter by monitor slug.\nIf all filters are empty, return status for all monitors.",
            "in": "query",
            "name": "monitor_slugs",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter monitor state by owning collection.",
            "in": "query",
            "name": "collection_slugs",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Filter monitor state by owning team.",
            "in": "query",
            "name": "team_slugs",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "include_signal_statuses must be true for include_series_statuses to be true.",
            "in": "query",
            "name": "include_signal_statuses",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "include_signal_statuses must be true for include_series_statuses to be true.\nThis field is deprecated.",
            "in": "query",
            "name": "include_series_statuses",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "in": "query",
            "name": "sort_by",
            "schema": {
              "enum": [
                "SORT_BY_STATE"
              ],
              "type": "string"
            }
          },
          {
            "description": "Optional signal filters in PromQL matcher syntax, e.g. `service=\"foo\"` or\n`namespace=~\"prod-.*\"`. Semantically identical to signal_filters and\nAND-ed with it; representable as a repeated query parameter on GET.",
            "in": "query",
            "name": "signal_filter_exprs",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/stateunstableListMonitorStatusesResponse"
                }
              }
            },
            "description": "A successful response."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/apiError"
                }
              }
            },
            "description": "An unexpected error response."
          }
        },
        "tags": [
          "StateUnstable"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://{tenant}.chronosphere.io",
      "variables": {
        "tenant": {
          "default": "tenant",
          "description": "tenant ID assigned by the service provider"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "StateUnstable"
    }
  ]
}