curl --request GET \
--url https://app.miget.com/api/v1/issues \
--header 'Authorization: <api-key>'import requests
url = "https://app.miget.com/api/v1/issues"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.miget.com/api/v1/issues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.miget.com/api/v1/issues",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.miget.com/api/v1/issues"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.miget.com/api/v1/issues")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.miget.com/api/v1/issues")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"kind": "out_of_capacity",
"reason": "<string>",
"open": true,
"subject": {},
"details": {},
"opened_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z"
}
]List why things stopped
The history behind the panel’s Issues page, newest first, open and resolved, at most 100. app_id narrows it to an application with its workers and add-ons, service_id to a service, resource_id to a resource and what runs on it that the caller can see; they are mutually exclusive, and combining two answers 400. Each kind needs that kind’s view permission (apps:view, services:view, resources:view); without a filter it covers the kinds the caller may view.
curl --request GET \
--url https://app.miget.com/api/v1/issues \
--header 'Authorization: <api-key>'import requests
url = "https://app.miget.com/api/v1/issues"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.miget.com/api/v1/issues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.miget.com/api/v1/issues",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.miget.com/api/v1/issues"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.miget.com/api/v1/issues")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.miget.com/api/v1/issues")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"kind": "out_of_capacity",
"reason": "<string>",
"open": true,
"subject": {},
"details": {},
"opened_at": "2023-11-07T05:31:56Z",
"resolved_at": "2023-11-07T05:31:56Z"
}
]Authorizations
Query Parameters
Response
List why things stopped
Why it stopped: out_of_capacity (its resource had no room left for it), crash_loop (it kept crashing and the platform stopped it), out_of_memory (it ran out of memory after every restart and the platform stopped it), awaiting_checkout (a worker of a free-tier application, which free compute does not cover, held until the workspace starts Usage Billing: POST /workspace/pay_per_use/start), cronjob_failed (the last run of a cron job failed; it keeps its schedule)
out_of_capacity, awaiting_checkout, crash_loop, out_of_memory, cronjob_failed What the platform recorded: requested and allowed replicas when there was no room; restarts after a crash, and for an add-on also exit_code and the last lines of its log; for a cron job the failed run's job_name, reason (DeadlineExceeded, BackoffLimitExceeded, OOMKilled, Error), exit_code, message and finished_at

