{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources. Success responses include a `source` block to cite. Apizie Finance endpoints (SEC EDGAR, FRED, ECB, U.S. Treasury, GLEIF, World Bank, official:*) need a Finance plan."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:azure-monitor-insights/batch":{"post":{"operationId":"cloud_azure_monitor_insights_batch","summary":"Lists the metric values for multiple resources.","description":"POST /subscriptions/{subscriptionId}/metrics:getBatch","tags":["cloud"],"x-apizie-access":"read","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["endpoint","subscriptionId","metricnamespace","metricnames","body"],"properties":{"endpoint":{"type":"string","description":"The regional endpoint to use, for example https://eastus.metrics.monitor.azure.com. The region should match the region of the requested…"},"api-version":{"type":"string","default":"2024-02-01","description":"The API version to use for this operation."},"subscriptionId":{"type":"string","description":"The subscription identifier for the resources in this batch."},"starttime":{"type":"string","description":"The start time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'. If you have specified the endtime parameter, then…"},"endtime":{"type":"string","description":"The end time of the query. It is a string in the format 'yyyy-MM-ddTHH:mm:ss.fffZ'."},"interval":{"type":"string","default":"PT1M","description":"The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special case for 'FULL' value that returns…"},"metricnamespace":{"type":"string","description":"Metric namespace that contains the requested metric names."},"metricnames":{"type":"array","description":"The names of the metrics (comma separated) to retrieve."},"aggregation":{"type":"string","description":"The list of aggregation types (comma separated) to retrieve. *Examples: average, minimum, maximum*"},"top":{"type":"integer","description":"The maximum number of records to retrieve per resource ID in the request. Valid only if filter is specified. Defaults to 10."},"orderby":{"type":"string","description":"The aggregation to use for sorting results and the direction of the sort. Only one order can be specified. *Examples: sum asc*"},"filter":{"type":"string","description":"The filter is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C…"},"rollupby":{"type":"string","description":"Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like 'City eq Seattle or City eq…"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"official:company"},"data":{},"source":{"type":"object","description":"Where the data came from. Cite it.","properties":{"official":{"type":"boolean"},"provider":{"type":"string","example":"SEC EDGAR"},"publisher":{"type":"string","example":"U.S. Securities and Exchange Commission"},"url":{"type":"string","format":"uri","description":"A page a person can open to check the value"},"apiUrl":{"type":"string","format":"uri","description":"The official API URL that was called (credentials removed)"},"retrievedAt":{"type":"string","format":"date-time"},"license":{"type":"string"},"licenseUrl":{"type":"string","format":"uri"},"attribution":{"type":"string"},"notice":{"type":"string"}}},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}