@grafana/alerting
Version:
Grafana Alerting Library – Build vertical integrations on top of the industry-leading alerting solution
1 lines • 952 B
Source Map (JSON)
{"version":3,"file":"util.mjs","sources":["../../../../src/grafana/api/util.ts"],"sourcesContent":["/**\n * @TODO move this to some shared package, currently copied from Grafana core (app/api/utils)\n */\n\nimport { config } from '@grafana/runtime';\n\nexport const getAPINamespace = () => config.namespace;\n\nexport const getAPIBaseURL = (group: string, version: string) =>\n `/apis/${group}/${version}/namespaces/${getAPINamespace()}` as const;\n\n// By including the version in the reducer path we can prevent cache bugs when different versions of the API are used for the same entities\nexport const getAPIReducerPath = (group: string, version: string) => `${group}/${version}` as const;\n"],"names":[],"mappings":";;AAMa,MAAA,eAAA,GAAkB,MAAM,MAAO,CAAA;AAE/B,MAAA,aAAA,GAAgB,CAAC,KAAA,EAAe,OAC3C,KAAA,CAAA,MAAA,EAAS,KAAK,CAAI,CAAA,EAAA,OAAO,CAAe,YAAA,EAAA,eAAA,EAAiB,CAAA;AAGpD,MAAM,oBAAoB,CAAC,KAAA,EAAe,YAAoB,CAAG,EAAA,KAAK,IAAI,OAAO,CAAA;;;;"}