Harness · Schema

PerspectiveQueryDTO

The query object for perspective cost anomalies

DevOpsGitOpsInternal Developer PortalLifecycleSoftware DeliveryCI/CDContinuous DeliveryContinuous Integration

Properties

Name Type Description
filters array The filters for perspective query
groupBy array The group by clause for perspective query
View JSON Schema on GitHub

JSON Schema

harness-perspective-query-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-perspective-query-dto-schema.json",
  "title": "PerspectiveQueryDTO",
  "description": "The query object for perspective cost anomalies",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-anomalies-api-openapi.yml#/components/schemas/PerspectiveQueryDTO",
  "type": "object",
  "properties": {
    "filters": {
      "type": "array",
      "description": "The filters for perspective query",
      "items": {
        "$ref": "#/$defs/QLCEViewFilterWrapper"
      }
    },
    "groupBy": {
      "type": "array",
      "description": "The group by clause for perspective query",
      "items": {
        "$ref": "#/$defs/QLCEViewGroupBy"
      }
    }
  },
  "$defs": {
    "QLCEViewFieldInput": {
      "type": "object",
      "properties": {
        "fieldId": {
          "type": "string"
        },
        "fieldName": {
          "type": "string"
        },
        "identifier": {
          "type": "string",
          "description": "Perspective filter Category, CLUSTER means Kubernetes",
          "enum": [
            "CLUSTER",
            "AWS",
            "GCP",
            "AZURE",
            "OPENAI",
            "ANTHROPIC",
            "AI",
            "AI_TRACE",
            "EXTERNAL_DATA",
            "COMMON",
            "CUSTOM",
            "BUSINESS_MAPPING",
            "LABEL",
            "LABEL_V2"
          ]
        },
        "identifierName": {
          "type": "string"
        }
      }
    },
    "QLCEViewFilter": {
      "type": "object",
      "properties": {
        "field": {
          "$ref": "#/$defs/QLCEViewFieldInput"
        },
        "operator": {
          "type": "string",
          "enum": [
            "NOT_IN",
            "IN",
            "EQUALS",
            "NOT_NULL",
            "NULL",
            "LIKE",
            "SEARCH"
          ]
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "QLCEViewFilterWrapper": {
      "type": "object",
      "properties": {
        "idFilter": {
          "$ref": "#/$defs/QLCEViewFilter"
        },
        "timeFilter": {
          "$ref": "#/$defs/QLCEViewTimeFilter"
        },
        "timeRangeTypeFilter": {
          "type": "string",
          "enum": [
            "LAST_MONTH",
            "CURRENT_MONTH"
          ]
        },
        "viewMetadataFilter": {
          "$ref": "#/$defs/QLCEViewMetadataFilter"
        },
        "ruleFilter": {
          "$ref": "#/$defs/QLCEViewRule"
        }
      },
      "description": "Get Recommendations for a perspective"
    },
    "QLCEViewGroupBy": {
      "type": "object",
      "properties": {
        "entityGroupBy": {
          "$ref": "#/$defs/QLCEViewFieldInput"
        },
        "timeTruncGroupBy": {
          "$ref": "#/$defs/QLCEViewTimeTruncGroupBy"
        }
      }
    },
    "QLCEViewMetadataFilter": {
      "type": "object",
      "properties": {
        "viewId": {
          "type": "string"
        },
        "isPreview": {
          "type": "boolean"
        },
        "preview": {
          "type": "boolean"
        }
      }
    },
    "QLCEViewRule": {
      "type": "object",
      "properties": {
        "conditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QLCEViewFilter"
          }
        }
      }
    },
    "QLCEViewTimeFilter": {
      "type": "object",
      "properties": {
        "field": {
          "$ref": "#/$defs/QLCEViewFieldInput"
        },
        "operator": {
          "type": "string",
          "enum": [
            "AFTER",
            "BEFORE"
          ]
        },
        "value": {
          "type": "number"
        }
      }
    },
    "QLCEViewTimeTruncGroupBy": {
      "type": "object",
      "properties": {
        "resolution": {
          "type": "string",
          "enum": [
            "HOUR",
            "DAY",
            "MONTH",
            "WEEK",
            "QUARTER",
            "YEAR"
          ]
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/harness-perspective-query-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.