export function add_source(metric_uuid, subtype, reload) {
    return fetch_server_api("post", `source/new/${metric_uuid}`, { type: subtype }).then(reload)
}