⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
build
/
View File Name :
3098.f22ad6dab13d06477be0.js
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[3098],{14591:(F,L,o)=>{o.d(L,{i:()=>x});var e=o(32196),M=o(96540),a=o(40845),h=o(64047);const x=({label:p,description:k,children:$,className:D,size:U="xl"})=>{const I=(0,a.of)(R),[T,N]=(0,M.useState)(!0),s=()=>N(!T);return M.createElement("div",{className:(0,e.cx)(I.wrapper,D)},M.createElement(h.e,{className:I.toggle,size:U,onToggle:s,isCollapsed:T,text:p}),k&&M.createElement("p",{className:I.description},k),M.createElement("div",{className:T?I.hidden:I.content},$))},R=p=>({wrapper:(0,e.css)` margin-top: ${p.spacing(1)}; padding-bottom: ${p.spacing(1)}; `,toggle:(0,e.css)` margin: ${p.spacing(1,0)}; padding: 0; `,hidden:(0,e.css)` display: none; `,description:(0,e.css)` color: ${p.colors.text.secondary}; font-size: ${p.typography.size.sm}; font-weight: ${p.typography.fontWeightRegular}; margin: 0; `,content:(0,e.css)` padding-left: ${p.spacing(3)}; `})},71854:(F,L,o)=>{o.d(L,{e:()=>V});var e=o(32196),M=o(2543),a=o(96540),h=o(49785),x=o(88575),R=o(40845),p=o(10880),k=o(10354),$=o(16504),D=o(88323),U=o(5173),I=o(21744),T=o(55852),N=o(72275);const s=({value:t,onChange:m,readOnly:u=!1})=>{const S=(0,R.of)(i),[b,c]=(0,a.useState)(n(t));(0,a.useEffect)(()=>c(n(t)),[t]);const d=E=>{m(r(E))},P=E=>{const A=b.slice(),C=A.splice(E,1)[0];c(A),C[0]&&d(A)},_=(E,A)=>{const C=b[A],f=b.map((y,W)=>W===A?E:y);c(f),(E[0]||C[0])&&d(f)};return a.createElement("div",null,!!b.length&&a.createElement("table",{className:S.table},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,"Name"),a.createElement("th",null,"Value"),!u&&a.createElement("th",null))),a.createElement("tbody",null,b.map(([E,A],C)=>a.createElement("tr",{key:C},a.createElement("td",null,a.createElement(k.p,{readOnly:u,value:E,onChange:f=>_([f.currentTarget.value,A],C)})),a.createElement("td",null,a.createElement(k.p,{readOnly:u,value:A,onChange:f=>_([E,f.currentTarget.value],C)})),!u&&a.createElement("td",null,a.createElement(N.M,{icon:"trash-alt",tooltip:"delete",onClick:()=>P(C)})))))),!u&&a.createElement(T.$n,{className:S.addButton,type:"button",variant:"secondary",icon:"plus",size:"sm",onClick:()=>c([...b,["",""]])},"Add"))},i=t=>({addButton:(0,e.css)` margin-top: ${t.spacing(1)}; `,table:(0,e.css)` tbody td { padding: 0 ${t.spacing(1)} ${t.spacing(1)} 0; } `}),r=t=>{const m={};for(const[u,S]of t)u&&(m[u]=S);return m},n=t=>Object.entries(t??{}),l=({value:t,onChange:m,readOnly:u=!1})=>{const S=(0,R.of)(g),b=d=>{if(!t)return;const P=t.slice();P.splice(d,1),m(P)},c=(d,P)=>{t&&m(t.map((_,E)=>E===P?d:_))};return a.createElement("div",null,!!t?.length&&t.map((d,P)=>a.createElement("div",{key:P,className:S.row},a.createElement(k.p,{readOnly:u,value:d,onChange:_=>c(_.currentTarget.value,P)}),!u&&a.createElement(N.M,{className:S.deleteIcon,icon:"trash-alt",tooltip:"delete",onClick:()=>b(P)}))),!u&&a.createElement(T.$n,{className:S.addButton,type:"button",variant:"secondary",icon:"plus",size:"sm",onClick:()=>m([...t??[],""])},"Add"))},g=t=>({row:(0,e.css)` display: flex; flex-direction: row; margin-bottom: ${t.spacing(1)}; align-items: center; `,deleteIcon:(0,e.css)` margin-left: ${t.spacing(1)}; `,addButton:(0,e.css)` margin-top: ${t.spacing(1)}; `});var v=o(45124),w=o(14591);const O=t=>({collapsibleSection:(0,e.css)` margin: 0; padding: 0; `,wrapper:(0,e.css)` margin: ${t.spacing(2,0)}; padding: ${t.spacing(1)}; border: solid 1px ${t.colors.border.medium}; border-radius: ${t.shape.radius.default}; position: relative; `,description:(0,e.css)` color: ${t.colors.text.secondary}; font-size: ${t.typography.size.sm}; font-weight: ${t.typography.fontWeightRegular}; margin: 0; `,deleteIcon:(0,e.css)` position: absolute; right: ${t.spacing(1)}; top: ${t.spacing(1)}; `,addButton:(0,e.css)` margin-top: ${t.spacing(1)}; `}),q=({option:t,pathPrefix:m,errors:u,defaultValues:S,readOnly:b=!1})=>{const c=(0,R.of)(O),d=`${m}${t.propertyName}`,P=(0,h.xW)(),{fields:_,append:E,remove:A}=(0,v.r)({name:d,formAPI:P,defaults:S});return a.createElement("div",{className:c.wrapper},a.createElement(w.i,{className:c.collapsibleSection,label:`${t.label} (${_.length})`,description:t.description},(_??S??[]).map((C,f)=>a.createElement("div",{key:f,className:c.wrapper},!b&&a.createElement(N.M,{"data-testid":`${d}.${f}.delete-button`,icon:"trash-alt",tooltip:"delete",onClick:()=>A(f),className:c.deleteIcon}),t.subformOptions?.map(y=>a.createElement(V,{readOnly:b,defaultValue:C?.[y.propertyName],key:y.propertyName,option:y,pathPrefix:`${d}.${f}.`,error:u?.[f]?.[y.propertyName]})))),!b&&a.createElement(T.$n,{"data-testid":`${d}.add-button`,className:c.addButton,type:"button",variant:"secondary",icon:"plus",size:"sm",onClick:()=>E({__id:String(Math.random())})},"Add")))},z=({option:t,pathPrefix:m,errors:u,defaultValue:S,readOnly:b=!1})=>{const c=(0,R.of)(O),d=`${m}${t.propertyName}`,{watch:P}=(0,h.xW)(),_=P(d),E=_===void 0?S:_,[A,C]=(0,a.useState)(!!E);return a.createElement("div",{className:c.wrapper,"data-testid":`${d}.container`},a.createElement("h6",null,t.label),t.description&&a.createElement("p",{className:c.description},t.description),A&&a.createElement(a.Fragment,null,!b&&a.createElement(N.M,{"data-testid":`${d}.delete-button`,icon:"trash-alt",tooltip:"delete",onClick:()=>C(!1),className:c.deleteIcon}),(t.subformOptions??[]).map(f=>a.createElement(V,{readOnly:b,defaultValue:S?.[f.propertyName],key:f.propertyName,option:f,pathPrefix:`${d}.`,error:u?.[f.propertyName]}))),!A&&!b&&a.createElement(T.$n,{className:c.addButton,type:"button",variant:"secondary",icon:"plus",size:"sm",onClick:()=>C(!0),"data-testid":`${d}.add-button`},"Add"))},V=({option:t,invalid:m,pathPrefix:u,pathSuffix:S="",error:b,defaultValue:c,readOnly:d=!1,customValidator:P})=>{const _=`${u}${S}`;return t.element==="subform"?a.createElement(z,{readOnly:d,defaultValue:c,option:t,errors:b,pathPrefix:_}):t.element==="subform_array"?a.createElement(q,{readOnly:d,defaultValues:c,option:t,pathPrefix:_,errors:b}):a.createElement(x.D,{label:t.element!=="checkbox"&&t.element!=="radio"?t.label:void 0,description:t.description||void 0,invalid:!!b,error:b?.message,"data-testid":`${_}${t.propertyName}`},a.createElement(K,{id:`${_}${t.propertyName}`,defaultValue:c,option:t,invalid:m,pathPrefix:_,readOnly:d,pathIndex:u,customValidator:P}))},K=({option:t,invalid:m,id:u,pathPrefix:S="",pathIndex:b="",readOnly:c=!1,customValidator:d})=>{const P=(0,R.of)(G),{control:_,register:E,unregister:A,getValues:C}=(0,h.xW)(),f=`${S}${t.propertyName}`;switch((0,a.useEffect)(()=>()=>{A(f,{keepValue:!1})},[A,f]),t.element){case"checkbox":return a.createElement(p.S,{id:u,readOnly:c,disabled:c,className:P.checkbox,...E(f),label:t.label,description:t.description});case"input":return a.createElement(k.p,{id:u,readOnly:c||j(t,C,b),invalid:m,type:t.inputType,...E(f,{required:H(t,C,b),validate:{validationRule:y=>t.validationRule?B(y,t.validationRule,t.required):!0,customValidator:y=>d?d(y):!0},setValueAs:t.setValueAs}),placeholder:t.placeholder});case"select":return a.createElement($.e,{render:({field:{onChange:y,ref:W,...Y}})=>a.createElement(D.l6,{disabled:c,options:t.selectOptions??void 0,invalid:m,onChange:J=>y(J.value),...Y}),control:_,name:f,defaultValue:t.defaultValue,rules:{validate:{customValidator:y=>d?d(y):!0}}});case"radio":return a.createElement(a.Fragment,null,a.createElement("legend",{className:P.legend},t.label),a.createElement($.e,{render:({field:{ref:y,...W}})=>a.createElement(U.a,{disabled:c,options:t.selectOptions??[],...W}),control:_,defaultValue:t.defaultValue?.value,name:f,rules:{required:t.required?"Option is required":!1,validate:{validationRule:y=>t.validationRule?B(y,t.validationRule,t.required):!0,customValidator:y=>d?d(y):!0}}}));case"textarea":return a.createElement(I.f,{id:u,readOnly:c,invalid:m,placeholder:t.placeholder,...E(f,{required:t.required?"Required":!1,validate:y=>t.validationRule!==""?B(y,t.validationRule,t.required):!0})});case"string_array":return a.createElement($.e,{render:({field:{value:y,onChange:W}})=>a.createElement(l,{readOnly:c,value:y,onChange:W}),control:_,name:f});case"key_value_map":return a.createElement($.e,{render:({field:{value:y,onChange:W}})=>a.createElement(s,{readOnly:c,value:y,onChange:W}),control:_,name:f});default:return console.error("Element not supported",t.element),null}},G=t=>({checkbox:(0,e.css)` height: auto; // native checkbox has fixed height which does not take into account description `,legend:(0,e.css)` font-size: ${t.typography.h6.fontSize}; `}),B=(t,m,u)=>t===""&&!u||RegExp(m).test(t)?!0:"Invalid format",H=(t,m,u)=>t.dependsOn?(0,M.isEmpty)(m(`${u}secureFields`))?!m(`${u}secureSettings.${t.dependsOn}`)&&t.required?"Required":!1:!m(`${u}secureFields.${t.dependsOn}`)&&t.required?"Required":!1:t.required?"Required":!1,j=(t,m,u)=>t.dependsOn?(0,M.isEmpty)(m(`${u}secureFields`))?m(`${u}secureSettings.${t.dependsOn}`):m(`${u}secureFields.${t.dependsOn}`):!1},72275:(F,L,o)=>{o.d(L,{M:()=>h});var e=o(96540),M=o(56034),a=o(55852);const h=({tooltip:x,icon:R,to:p,target:k,onClick:$,className:D,tooltipPlacement:U="top",...I})=>{const T=typeof x=="string"?x:void 0;return e.createElement(M.m,{content:x,placement:U},p?e.createElement(a.z9,{variant:"secondary",fill:"text",icon:R,href:p,size:"sm",target:k,...I,"aria-label":T}):e.createElement(a.$n,{className:D,variant:"secondary",fill:"text",size:"sm",icon:R,type:"button",onClick:$,...I,"aria-label":T}))}},45124:(F,L,o)=>{o.d(L,{r:()=>x});var e=o(2543),M=o.n(e),a=o(96540);const h=[];function x(R){const{name:p,formAPI:k,defaults:$,softDelete:D}=R,{watch:U,getValues:I,reset:T,setValue:N}=k,s=U(p)??$??h,i=(0,a.useCallback)(r=>{const n=JSON.parse(JSON.stringify(I())),l=r(s??[]);T((0,e.set)(n,p,l))},[I,p,T,s]);return{fields:s,append:(0,a.useCallback)(r=>i(n=>[...n,r]),[i]),remove:(0,a.useCallback)(r=>{D?N(`${p}.${r}.__deleted`,!0):i(n=>{const l=n.slice();return l.splice(r,1),l})},[i,p,N,D])}}},21607:(F,L,o)=>{o.d(L,{U:()=>R,r:()=>x});var e=o(79851);const M=(0,e.u)("basic_auth","Basic auth","Sets the `Authorization` header with the configured username and password. Password and password_file are mutually exclusive.",{element:"subform",subformOptions:[(0,e.u)("username","Username",""),(0,e.u)("password","Password",""),(0,e.u)("password_file","Password file","")]}),a=(0,e.u)("tls_config","TLS config","Configures the TLS settings.",{element:"subform",subformOptions:[(0,e.u)("ca_file","CA file","CA certificate to validate the server certificate with."),(0,e.u)("cert_file","Cert file","Certificate for client cert authentication to the server."),(0,e.u)("key_file","Key file","Key file for client cert authentication to the server."),(0,e.u)("server_name","Server name","ServerName extension to indicate the name of the server."),(0,e.u)("insecure_skip_verify","Skip verify","Disable validation of the server certificate.",{element:"checkbox"})]}),h=(0,e.u)("http_config","HTTP Config","Note that `basic_auth`, `bearer_token` and `bearer_token_file` options are mutually exclusive.",{element:"subform",subformOptions:[(0,e.u)("bearer_token","Bearer token","Sets the `Authorization` header with the configured bearer token."),(0,e.u)("bearer_token_file","Bearer token file","Sets the `Authorization` header with the bearer token read from the configured file."),(0,e.u)("proxy_url","Proxy URL","Optional proxy URL."),M,a]}),x=[{name:"Email",description:"Send notification over SMTP",type:"email",info:"",heading:"Email settings",options:[(0,e.u)("to","To",'The email address to send notifications to. You can enter multiple addresses using a "," separator',{required:!0}),(0,e.u)("from","From","The sender address."),(0,e.u)("smarthost","SMTP host","The SMTP host through which emails are sent."),(0,e.u)("hello","Hello","The hostname to identify to the SMTP server."),(0,e.u)("auth_username","Username","SMTP authentication information"),(0,e.u)("auth_password","Password","SMTP authentication information"),(0,e.u)("auth_secret","Secret","SMTP authentication information"),(0,e.u)("auth_identity","Identity","SMTP authentication information"),(0,e.u)("require_tls","Require TLS","The SMTP TLS requirement",{element:"checkbox"}),(0,e.u)("html","Email HTML body","The HTML body of the email notification.",{placeholder:'{{ template "email.default.html" . }}',element:"textarea"}),(0,e.u)("text","Email text body","The text body of the email notification.",{element:"textarea"}),(0,e.u)("headers","Headers","Further headers email header key/value pairs. Overrides any headers previously set by the notification implementation.",{element:"key_value_map"}),a]},{name:"PagerDuty",description:"Send notifications to PagerDuty",type:"pagerduty",info:"",heading:"PagerDuty settings",options:[(0,e.u)("routing_key","Routing key","The PagerDuty integration key (when using PagerDuty integration type `Events API v2`)"),(0,e.u)("service_key","Service key","The PagerDuty integration key (when using PagerDuty integration type `Prometheus`)."),(0,e.u)("url","URL","The URL to send API requests to"),(0,e.u)("client","Client","The client identification of the Alertmanager.",{placeholder:'{{ template "pagerduty.default.client" . }}'}),(0,e.u)("client_url","Client URL","A backlink to the sender of the notification.",{placeholder:'{{ template "pagerduty.default.clientURL" . }}'}),(0,e.u)("description","Description","A description of the incident.",{placeholder:'{{ template "pagerduty.default.description" .}}'}),(0,e.u)("severity","Severity","Severity of the incident.",{placeholder:"error"}),(0,e.u)("details","Details","A set of arbitrary key/value pairs that provide further detail about the incident.",{element:"key_value_map"}),(0,e.u)("images","Images","Images to attach to the incident.",{element:"subform_array",subformOptions:[(0,e.u)("href","URL","",{required:!0}),(0,e.u)("source","Source","",{required:!0}),(0,e.u)("alt","Alt","",{required:!0})]}),(0,e.u)("links","Links","Links to attach to the incident.",{element:"subform_array",subformOptions:[(0,e.u)("href","URL","",{required:!0}),(0,e.u)("text","Text","",{required:!0})]}),h]},{name:"Pushover",description:"Send notifications to Pushover",type:"pushover",info:"",heading:"Pushover settings",options:[(0,e.u)("user_key","User key","The recipient user\u2019s user key.",{required:!0}),(0,e.u)("token","Token","Your registered application\u2019s API token, see https://pushover.net/app",{required:!0}),(0,e.u)("title","Title","Notification title.",{placeholder:'{{ template "pushover.default.title" . }}'}),(0,e.u)("message","Message","Notification message.",{placeholder:'{{ template "pushover.default.message" . }}'}),(0,e.u)("url","URL","A supplementary URL shown alongside the message.",{placeholder:'{{ template "pushover.default.url" . }}'}),(0,e.u)("priority","Priority","Priority, see https://pushover.net/api#priority",{placeholder:'{{ if eq .Status "firing" }}2{{ else }}0{{ end }}'}),(0,e.u)("retry","Retry","How often the Pushover servers will send the same notification to the user. Must be at least 30 seconds.",{placeholder:"1m"}),(0,e.u)("expire","Expire","How long your notification will continue to be retried for, unless the user acknowledges the notification.",{placeholder:"1h"}),(0,e.u)("ttl","TTL","The number of seconds before a message expires and is deleted automatically. Examples: 10s, 5m30s, 8h.",{validationRule:"^(\\d+[s|m|h])+$|^$",element:"input"}),h]},{name:"Slack",description:"Send notifications to Slack",type:"slack",info:"",heading:"Slack settings",options:[(0,e.u)("api_url","Webhook URL","The Slack webhook URL."),(0,e.u)("channel","Channel","The #channel or @user to send notifications to.",{required:!0}),(0,e.u)("icon_emoji","Emoji icon",""),(0,e.u)("icon_url","Icon URL",""),(0,e.u)("link_names","Names link","",{element:"checkbox"}),(0,e.u)("username","Username","",{placeholder:'{{ template "slack.default.username" . }}'}),(0,e.u)("callback_id","Callback ID","",{placeholder:'{{ template "slack.default.callbackid" . }}'}),(0,e.u)("color","Color","",{placeholder:'{{ if eq .Status "firing" }}danger{{ else }}good{{ end }}'}),(0,e.u)("fallback","Fallback","",{placeholder:'{{ template "slack.default.fallback" . }}'}),(0,e.u)("footer","Footer","",{placeholder:'{{ template "slack.default.footer" . }}'}),(0,e.u)("mrkdwn_in","Mrkdwn fields","An array of field names that should be formatted by mrkdwn syntax.",{element:"string_array"}),(0,e.u)("pretext","Pre-text","",{placeholder:'{{ template "slack.default.pretext" . }}'}),(0,e.u)("short_fields","Short fields","",{element:"checkbox"}),(0,e.u)("text","Message body","",{element:"textarea",placeholder:'{{ template "slack.default.text" . }}'}),(0,e.u)("title","Title","",{placeholder:'{{ template "slack.default.title" . }}'}),(0,e.u)("title_link","Title link","",{placeholder:'{{ template "slack.default.titlelink" . }}'}),(0,e.u)("image_url","Image URL",""),(0,e.u)("thumb_url","Thumbnail URL",""),(0,e.u)("actions","Actions","",{element:"subform_array",subformOptions:[(0,e.u)("text","Text","",{required:!0}),(0,e.u)("type","Type","",{required:!0}),(0,e.u)("url","URL","Either url or name and value are mandatory."),(0,e.u)("name","Name",""),(0,e.u)("value","Value",""),(0,e.u)("confirm","Confirm","",{element:"subform",subformOptions:[(0,e.u)("text","Text","",{required:!0}),(0,e.u)("dismiss_text","Dismiss text",""),(0,e.u)("ok_text","OK text",""),(0,e.u)("title","Title","")]}),(0,e.u)("style","Style","")]}),(0,e.u)("fields","Fields","",{element:"subform_array",subformOptions:[(0,e.u)("title","Title","",{required:!0}),(0,e.u)("value","Value","",{required:!0}),(0,e.u)("short","Short","",{element:"checkbox"})]}),h]},{name:"OpsGenie",description:"Send notifications to OpsGenie",type:"opsgenie",info:"",heading:"OpsGenie settings",options:[(0,e.u)("api_key","API key","The API key to use when talking to the OpsGenie API."),(0,e.u)("api_url","API URL","The host to send OpsGenie API requests to."),(0,e.u)("message","Message","Alert text limited to 130 characters."),(0,e.u)("description","Description","A description of the incident.",{placeholder:'{{ template "opsgenie.default.description" . }}'}),(0,e.u)("source","Source","A backlink to the sender of the notification.",{placeholder:'{{ template "opsgenie.default.source" . }}'}),(0,e.u)("details","Details","A set of arbitrary key/value pairs that provide further detail about the incident.",{element:"key_value_map"}),(0,e.u)("tags","Tags","Comma separated list of tags attached to the notifications."),(0,e.u)("note","Note","Additional alert note."),(0,e.u)("priority","Priority","Priority level of alert. Possible values are P1, P2, P3, P4, and P5."),(0,e.u)("responders","Responders","List of responders responsible for notifications.",{element:"subform_array",subformOptions:[(0,e.u)("type","Type",'"team", "user", "escalation" or schedule".',{required:!0}),(0,e.u)("id","ID","Exactly one of these fields should be defined."),(0,e.u)("name","Name","Exactly one of these fields should be defined."),(0,e.u)("username","Username","Exactly one of these fields should be defined.")]}),h]},{name:"VictorOps",description:"Send notifications to VictorOps",type:"victorops",info:"",heading:"VictorOps settings",options:[(0,e.u)("api_key","API key","The API key to use when talking to the VictorOps API."),(0,e.u)("api_url","API URL","The VictorOps API URL."),(0,e.u)("routing_key","Routing key","A key used to map the alert to a team.",{required:!0}),(0,e.u)("message_type","Message type","Describes the behavior of the alert (CRITICAL, WARNING, INFO)."),(0,e.u)("entity_display_name","Entity display name","Contains summary of the alerted problem.",{placeholder:'{{ template "victorops.default.entity_display_name" . }}'}),(0,e.u)("state_message","State message","Contains long explanation of the alerted problem.",{placeholder:'{{ template "victorops.default.state_message" . }}'}),(0,e.u)("monitoring_tool","Monitoring tool","The monitoring tool the state message is from.",{placeholder:'{{ template "victorops.default.monitoring_tool" . }}'}),h]},{name:"Webhook",description:"Send notifications to a webhook",type:"webhook",info:"",heading:"Webhook settings",options:[(0,e.u)("url","URL","The endpoint to send HTTP POST requests to.",{required:!0}),(0,e.u)("max_alerts","Max alerts","The maximum number of alerts to include in a single webhook message. Alerts above this threshold are truncated. When leaving this at its default value of 0, all alerts are included.",{placeholder:"0",inputType:"number",validationRule:"(^\\d+$|^$)",setValueAs:p=>{const k=Number(p);return Number.isFinite(k)?k:0}}),h]},{name:"Discord",description:"Sends notifications to Discord",type:"discord",info:"",heading:"Discord settings",options:[(0,e.u)("title","Title","Templated title of the message",{placeholder:'{{ template "discord.default.title" . }}'}),(0,e.u)("message","Message Content","Mention a group using @ or a user using <@ID> when notifying in a channel",{placeholder:'{{ template "discord.default.message" . }}'}),(0,e.u)("webhook_url","Webhook URL","",{placeholder:"Discord webhook URL",required:!0}),h]},{name:"Cisco Webex Teams",description:"Sends notifications to Cisco Webex Teams",type:"webex",info:"",heading:"Cisco Webex Teams settings",options:[(0,e.u)("api_url","API URL","The Webex Teams API URL",{placeholder:"https://webexapis.com/v1/messages"}),(0,e.u)("room_id","Room ID","ID of the Webex Teams room where to send the messages",{required:!0}),(0,e.u)("message","Message","Message template",{placeholder:'{{ template "webex.default.message" .}}'}),{...h,required:!0}]},{name:"Telegram",description:"Sends notifications to Telegram",type:"telegram",info:"",heading:"Telegram settings",options:[(0,e.u)("api_url","API URL","The Telegram API URL",{placeholder:"https://api.telegram.org"}),(0,e.u)("bot_token","Bot token","Telegram bot token",{required:!0}),(0,e.u)("chat_id","Chat ID","ID of the chat where to send the messages",{required:!0,setValueAs:p=>typeof p=="string"?parseInt(p,10):0}),(0,e.u)("message","Message","Message template",{placeholder:'{{ template "webex.default.message" .}}'}),(0,e.u)("disable_notifications","Disable notifications","Disable telegram notifications",{element:"checkbox"}),(0,e.u)("parse_mode","Parse mode","Parse mode for telegram message",{element:"select",defaultValue:{label:"MarkdownV2",value:"MarkdownV2"},selectOptions:[{label:"MarkdownV2",value:"MarkdownV2"},{label:"Markdown",value:"Markdown"},{label:"HTML",value:"HTML"},{label:"plain text",value:""}]}),h]},{name:"Amazon SNS",description:"Sends notifications to Amazon SNS",type:"sns",info:"",heading:"Amazon SNS settings",options:[(0,e.u)("api_url","API URL","The Amazon SNS API URL"),(0,e.u)("sigv4","SigV4 authentication","Configures AWS's Signature Verification 4 signing process to sign requests",{element:"subform",subformOptions:[(0,e.u)("region","Region","The AWS region. If blank, the region from the default credentials chain is used"),(0,e.u)("access_key","Access key",'The AWS API access_key. If blank the environment variable "AWS_ACCESS_KEY_ID" is used'),(0,e.u)("secret_key","Secret key",'The AWS API secret_key. If blank the environment variable "AWS_ACCESS_SECRET_ID" is used'),(0,e.u)("profile","Profile","Named AWS profile used to authenticate"),(0,e.u)("role_arn","Rule ARN","AWS Role ARN, an alternative to using AWS API keys")]}),(0,e.u)("topic_arn","SNS topic ARN","If you don't specify this value, you must specify a value for the phone_number or target_arn. If you are using a FIFO SNS topic you should set a message group interval longer than 5 minutes to prevent messages with the same group key being deduplicated by the SNS default deduplication window"),(0,e.u)("phone_number","Phone number","Phone number if message is delivered via SMS in E.164 format. If you don't specify this value, you must specify a value for the topic_arn or target_arn"),(0,e.u)("target_arn","Target ARN","The mobile platform endpoint ARN if message is delivered via mobile notifications. If you don't specify this value, you must specify a value for the topic_arn or phone_number"),(0,e.u)("subject","Subject","Subject line when the message is delivered to email endpoints",{placeholder:'{{ template "sns.default.subject" .}}'}),(0,e.u)("message","Message","The message content of the SNS notification",{placeholder:'{{ template "sns.default.message" .}}'}),(0,e.u)("attributes","Attributes","SNS message attributes",{element:"key_value_map"}),h]},{name:"WeChat",description:"Sends notifications to WeChat",type:"wechat",info:"",heading:"WeChat settings",options:[(0,e.u)("api_url","API URL","The WeChat API URL"),(0,e.u)("api_secret","API Secret","The API key to use when talking to the WeChat API"),(0,e.u)("corp_id","Corp ID","The corp id for authentication"),(0,e.u)("message","Message","API request data as defined by the WeChat API",{placeholder:'{{ template "wechat.default.message" . }}'}),(0,e.u)("message_type","Message type","Type of the message type",{element:"select",defaultValue:{label:"Text",value:"text"},selectOptions:[{label:"Text",value:"text"},{label:"Markdown",value:"markdown"}]}),(0,e.u)("agent_id","Agent ID","",{placeholder:'{{ template "wechat.default.agent_id" . }}'}),(0,e.u)("to_user","to user","",{placeholder:'{{ template "wechat.default.to_user" . }}'}),(0,e.u)("to_party","to party","",{placeholder:'{{ template "wechat.default.to_party" . }}'}),(0,e.u)("to_tag","to tag","",{placeholder:'{{ template "wechat.default.to_tag" . }}'})]},{name:"Microsoft Teams",description:"Sends notifications to Microsoft Teams",type:"msteams",info:"",heading:"Microsoft Teams settings",options:[(0,e.u)("webhook_url","Webhook URL","The incoming webhook URL."),(0,e.u)("title","Title","Message title template.",{placeholder:'{{ template "teams.default.title" . }}'}),(0,e.u)("text","Text","Message body template.",{placeholder:'{{ template "teams.default.text" . }}'})]}],R=[(0,e.u)("smtp_from","SMTP from","The default SMTP From header field."),(0,e.u)("smtp_smarthost","SMTP smarthost","The default SMTP smarthost used for sending emails, including port number. Port number usually is 25, or 587 for SMTP over TLS (sometimes referred to as STARTTLS). Example: smtp.example.org:587"),(0,e.u)("smtp_hello","SMTP hello","The default hostname to identify to the SMTP server.",{placeholder:"localhost"}),(0,e.u)("smtp_auth_username","SMTP auth username","SMTP Auth using CRAM-MD5, LOGIN and PLAIN. If empty, Alertmanager doesn't authenticate to the SMTP server."),(0,e.u)("smtp_auth_password","SMTP auth password","SMTP Auth using LOGIN and PLAIN."),(0,e.u)("smtp_auth_identity","SMTP auth identity","SMTP Auth using PLAIN."),(0,e.u)("smtp_auth_secret","SMTP auth secret","SMTP Auth using CRAM-MD5."),(0,e.u)("smtp_require_tls","SMTP require TLS","The default SMTP TLS requirement. Note that Go does not support unencrypted connections to remote SMTP endpoints.",{element:"checkbox"}),(0,e.u)("slack_api_url","Slack API URL",""),(0,e.u)("victorops_api_key","VictorOps API key",""),(0,e.u)("victorops_api_url","VictorOps API URL","",{placeholder:"https://alert.victorops.com/integrations/generic/20131114/alert/"}),(0,e.u)("pagerduty_url","PagerDuty URL","https://events.pagerduty.com/v2/enqueue"),(0,e.u)("opsgenie_api_key","OpsGenie API key",""),(0,e.u)("opsgenie_api_url","OpsGenie API URL","",{placeholder:"https://api.opsgenie.com/"}),(0,e.u)("wechat_api_url","WeChat API URL","",{placeholder:"https://qyapi.weixin.qq.com/cgi-bin/"}),(0,e.u)("wechat_api_secret","WeChat API secret",""),(0,e.u)("wechat_api_corp_id","WeChat API corp id",""),(0,e.u)("webex_api_url","Cisco Webex Teams API URL",""),(0,e.u)("telegram_api_url","The Telegram API URL",""),h,(0,e.u)("resolve_timeout","Resolve timeout","ResolveTimeout is the default value used by alertmanager if the alert does not include EndsAt, after this time passes it can declare the alert as resolved if it has not been updated. This has no impact on alerts from Prometheus, as they always include EndsAt.",{placeholder:"5m"})]},79851:(F,L,o)=>{o.d(L,{u:()=>e});function e(M,a,h,x={}){return{propertyName:M,label:a,description:h,element:"input",inputType:"",required:!1,secure:!1,placeholder:"",validationRule:"",showWhen:{field:"",is:""},dependsOn:"",...x}}},72399:(F,L,o)=>{o.d(L,{FN:()=>T,Iq:()=>h,QX:()=>R,Xo:()=>a,bB:()=>x,jS:()=>p,qg:()=>U});var e=o(2543),M=o.n(e);function a(s,i){const r={};let n=1;return[{name:s.name,items:s.grafana_managed_receiver_configs?.map(g=>{const v=String(n++);r[v]=g;const w=i.find(({type:O})=>O===g.type);return D(v,g,w)})??[]},r]}function h(s,i){const r={};let n=1;const l=Object.entries(s).filter(([v])=>v.endsWith("_configs")&&v!=="grafana_managed_receiver_configs").map(([v,w])=>[v.replace("_configs",""),w]).map(([v,w])=>w.map(O=>{const q=String(n++);if(r[q]={type:v,config:O},!i.find(V=>V.type===v))throw new Error(`unknown cloud notifier: ${v}`);return $(q,v,O)})).flat();return[{name:s.name,items:l},r]}function x(s,i,r,n){return{name:s.name,grafana_managed_receiver_configs:(s.items??[]).map(l=>{const g=i[l.__id],v=n.find(w=>w.type===l.type);return U(l,r,s.name,g,v)})}}function R(s,i){const r={name:s.name};return s.items.forEach(({__id:n,type:l,settings:g,sendResolved:v})=>{const w=T({...g,send_resolved:v??i.sendResolved});`${l}_configs`in r?r[`${l}_configs`]?.push(w):r[`${l}_configs`]=[w]}),r}function p(s,i,r){const n=s.alertmanager_config.receivers??[];if(i.name!==r&&n.find(({name:g})=>g===i.name))throw new Error(`Duplicate receiver name ${i.name}`);if(r&&!n.find(({name:g})=>g===r))throw new Error(`Expected receiver ${r} to exist, but did not find it in the config`);const l={...s,alertmanager_config:{...s.alertmanager_config,receivers:r?n.map(g=>g.name===r?i:g):[...n,i]}};return l.alertmanager_config.route&&r&&i.name!==r&&(l.alertmanager_config.route=k(l.alertmanager_config.route,r,i.name)),l}function k(s,i,r){const n={...s};return n.receiver===i&&(n.receiver=r),n.routes&&(n.routes=n.routes.map(l=>k(l,i,r))),n}function $(s,i,r){return{__id:s,type:i,settings:{...r},secureFields:{},secureSettings:{},sendResolved:r.send_resolved}}function D(s,i,r){const n={__id:s,type:i.type,provenance:i.provenance,secureSettings:{},settings:{...i.settings},secureFields:{...i.secureFields},disableResolveMessage:i.disableResolveMessage};return r?.options.forEach(l=>{l.secure&&n.secureSettings[l.propertyName]&&(delete n.settings[l.propertyName],n.secureFields[l.propertyName]=!0),l.secure&&n.settings[l.propertyName]&&(n.secureSettings[l.propertyName]=n.settings[l.propertyName],delete n.settings[l.propertyName])}),n}function U(s,i,r,n,l){const g={settings:T({...n&&n.type===s.type?n.settings??{}:{},...s.settings??{}}),secureSettings:N(s.secureSettings,n?.secureFields),type:s.type,name:r,disableResolveMessage:s.disableResolveMessage??n?.disableResolveMessage??i.disableResolveMessage},v=l?.options.filter(O=>O.secure).map(O=>O.propertyName)??[],w=(0,e.pick)(g.settings,v);return g.secureSettings={...w,...g.secureSettings},g.settings=(0,e.omit)(g.settings,v),n&&(g.uid=n.uid),g}const I=s=>(0,e.isNil)(s)||s==="";function T(s){return(0,e.isArray)(s)?s.forEach(T):typeof s=="object"&&s!==null&&Object.entries(s).forEach(([i,r])=>{I(r)?delete s[i]:T(r)}),s}function N(s={},i={}){return(0,e.omitBy)(s,(r,n)=>I(r)&&!(n in i))}}}]); //# sourceMappingURL=3098.f22ad6dab13d06477be0.js.map