D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
build
/
Filename :
146.2adee8cd1146fac3e8ea.js
back
Copy
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[146],{18555:(v,c,t)=>{t.d(c,{Z:()=>n});var r=t(27702);const n=({shouldWrap:l,children:i,wrap:s})=>l?r.cloneElement(s(i)):i},218:(v,c,t)=>{t.d(c,{g:()=>o});var r=t(42844),e=t(27702),n=t(23852),l=t(66310),i=t(73453),s=t(21323);const o=({children:u,icon:d,color:K="secondary",...P})=>{const _=(0,l.wW)(p),f=typeof P.onClick=="function";return e.createElement("div",{className:(0,r.cx)({[_.interactive]:f}),...P},e.createElement(s.x,{color:K},e.createElement(n.K,{direction:"row",alignItems:"center",gap:.5},d&&e.createElement(i.J,{name:d}),u)))},p=()=>({interactive:(0,r.css)` cursor: pointer; `})},18629:(v,c,t)=>{t.d(c,{C0:()=>s,Uv:()=>l,Xq:()=>i});var r=t(27702),e=t(63439),n=t(25357),l=(o=>(o.ContactPoint="contact point",o.Template="template",o.MuteTiming="mute timing",o.AlertRule="alert rule",o.RootNotificationPolicy="root notification policy",o))(l||{});const i=({resource:o})=>r.createElement(e.b,{title:`This ${o} cannot be edited through the UI`,severity:"info"},"This ",o," has been provisioned, that means it was created by config. Please contact your server admin to update this ",o,"."),s=()=>r.createElement(n.C,{text:"Provisioned",color:"purple"})},92273:(v,c,t)=>{t.d(c,{c:()=>n});var r=t(27702),e=t(66310);const n=({children:l})=>{const i=(0,e.l4)();return r.createElement("strong",{style:{color:i.colors.text.primary}},l)}},10146:(v,c,t)=>{t.r(c),t.d(c,{default:()=>A});var r=t(42844),e=t(27702),n=t(23852),l=t(66310),i=t(80011),s=t(66670),o=t(80434),p=t(89746),u=t(73453),d=t(21323),K=t(18555),P=t(14917),_=t(218),f=t(18629),R=t(67045),D=t(92273);const T=()=>{const a=(0,l.wW)(C);return e.createElement(n.K,{direction:"column"},e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"grafana-default-email",policies:["",""]}),e.createElement("div",{className:a.receiversWrapper},e.createElement(E,{type:"email",description:"gilles.demey@grafana.com"})))),e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"New school",provenance:"api"}),e.createElement("div",{className:a.receiversWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(E,{type:"slack",description:"#test-alerts",sendingResolved:!1}),e.createElement(E,{type:"discord"}))))),e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"Japan \u{1F1EF}\u{1F1F5}"}),e.createElement("div",{className:a.receiversWrapper},e.createElement(E,{type:"line"})))),e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"Google Stuff"}),e.createElement("div",{className:a.receiversWrapper},e.createElement(E,{type:"googlechat"})))),e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"Chinese Contact Points"}),e.createElement("div",{className:a.receiversWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(E,{type:"dingding"}),e.createElement(E,{type:"wecom",error:"403 unauthorized"}))))),e.createElement("div",{className:a.contactPointWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(g,{name:"This is a very long title to check if we are dealing with it appropriately, it shouldn't cause any layout issues"}),e.createElement("div",{className:a.receiversWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement(E,{type:"dingding"}))))))},g=a=>{const{name:O,provenance:M,policies:W=[]}=a,I=(0,l.wW)(C),m=!!M;return e.createElement("div",{className:I.headerWrapper},e.createElement(n.K,{direction:"row",alignItems:"center",gap:1},e.createElement(n.K,{alignItems:"center",gap:1},e.createElement(d.x,{variant:"body"},O)),W.length>0?e.createElement(_.g,null,"is used by ",e.createElement(D.c,null,W.length)," notification policies"):e.createElement(_.g,null,"is not used"),m&&e.createElement(f.C0,null),e.createElement(R.L,null),e.createElement(K.Z,{shouldWrap:m,wrap:y=>e.createElement(i.u,{content:"Provisioned items cannot be edited in the UI",placement:"top"},y)},e.createElement(s.zx,{variant:"secondary",size:"sm",icon:"edit",type:"button",disabled:m,"aria-label":"edit-action","data-testid":"edit-action"},"Edit")),e.createElement(o.L,{overlay:e.createElement(p.v,null,e.createElement(p.v.Item,{label:"Export",icon:"download-alt"}),e.createElement(p.v.Divider,null),e.createElement(p.v.Item,{label:"Delete",icon:"trash-alt",destructive:!0,disabled:m}))},e.createElement(s.zx,{variant:"secondary",size:"sm",icon:"ellipsis-h",type:"button","aria-label":"more-actions","data-testid":"more-actions"}))))},E=a=>{const{type:O,description:M,error:W,sendingResolved:I=!0}=a,m=(0,l.wW)(C),y=P.y[O];return e.createElement("div",{className:m.integrationWrapper},e.createElement(n.K,{direction:"column",gap:0},e.createElement("div",{className:m.receiverDescriptionRow},e.createElement(n.K,{direction:"row",alignItems:"center",gap:1},e.createElement(n.K,{direction:"row",alignItems:"center",gap:.5},y&&e.createElement(u.J,{name:y}),e.createElement(d.x,{variant:"body",color:"primary"},O)),M&&e.createElement(d.x,{variant:"bodySmall",color:"secondary"},M))),e.createElement("div",{className:m.metadataRow},e.createElement(n.K,{direction:"row",gap:1},W?e.createElement(e.Fragment,null,e.createElement(d.x,{color:"error",variant:"bodySmall",weight:"bold"},e.createElement(n.K,{direction:"row",alignItems:"center",gap:.5},e.createElement(i.u,{content:"failed to send notification to email addresses: gilles.demey@grafana.com: dial tcp 192.168.1.21:1025: connect: connection refused"},e.createElement("span",null,e.createElement(u.J,{name:"exclamation-circle"})," Last delivery attempt failed"))))):e.createElement(e.Fragment,null,e.createElement(_.g,{icon:"clock-nine"},"Last delivery attempt ",e.createElement(D.c,null,"25 minutes ago")),e.createElement(_.g,{icon:"stopwatch"},"took ",e.createElement(D.c,null,"2s"))),!I&&e.createElement(_.g,{icon:"info-circle"},"Delivering ",e.createElement(D.c,null,"only firing")," notifications")))))},C=a=>({contactPointWrapper:(0,r.css)` border-radius: ${a.shape.borderRadius()}; border: solid 1px ${a.colors.border.weak}; border-bottom: none; `,integrationWrapper:(0,r.css)` position: relative; background: ${a.colors.background.primary}; border-bottom: solid 1px ${a.colors.border.weak}; `,headerWrapper:(0,r.css)` padding: ${a.spacing(1)} ${a.spacing(1.5)}; background: ${a.colors.background.secondary}; border-bottom: solid 1px ${a.colors.border.weak}; border-top-left-radius: ${a.shape.borderRadius()}; border-top-right-radius: ${a.shape.borderRadius()}; `,receiverDescriptionRow:(0,r.css)` padding: ${a.spacing(1)} ${a.spacing(1.5)}; `,metadataRow:(0,r.css)` padding: 0 ${a.spacing(1.5)} ${a.spacing(1.5)} ${a.spacing(1.5)}; border-bottom-left-radius: ${a.shape.borderRadius()}; border-bottom-right-radius: ${a.shape.borderRadius()}; `,receiversWrapper:(0,r.css)``}),A=T},14917:(v,c,t)=>{t.d(c,{y:()=>r});const r={discord:"discord",email:"envelope",googlechat:"google-hangouts-alt",hipchat:"hipchat",line:"line",pagerduty:"pagerduty",slack:"slack",teams:"microsoft",telegram:"telegram-alt"}}}]); //# sourceMappingURL=146.2adee8cd1146fac3e8ea.js.map