⚝
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 :
~
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
build
/
View File Name :
8054.094788468423bb88ee68.js
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[8054],{6191:(K,M,t)=>{t.d(M,{X:()=>E});var e=t(32196),A=t(96540),O=t(40845);const E=({children:o})=>{const _=(0,O.of)(r);return A.createElement("div",{className:_.root},o)},r=o=>({root:(0,e.css)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:o.spacing(3),minHeight:o.spacing(4)})})},31347:(K,M,t)=>{t.d(M,{Z:()=>A});var e=t(96540);const A=({grow:O,shrink:E})=>e.createElement("div",{style:{display:"block",flexGrow:O,flexShrink:E}})},22354:(K,M,t)=>{t.d(M,{W:()=>P});var e=t(32196),A=t(96540),O=t(40845),E=t(88323),r=t(4603),o=Object.defineProperty,_=Object.defineProperties,T=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,I=(l,n,s)=>n in l?o(l,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[n]=s,f=(l,n)=>{for(var s in n||(n={}))a.call(n,s)&&I(l,s,n[s]);if(m)for(var s of m(n))D.call(n,s)&&I(l,s,n[s]);return l},U=(l,n)=>_(l,T(n)),S=(l,n)=>{var s={};for(var i in l)a.call(l,i)&&n.indexOf(i)<0&&(s[i]=l[i]);if(l!=null&&m)for(var i of m(l))n.indexOf(i)<0&&D.call(l,i)&&(s[i]=l[i]);return s};function P(l){var n=l,{label:s}=n,i=S(n,["label"]);const p=(0,O.of)(c),[g]=(0,A.useState)(()=>Math.random().toString(16).slice(2)),R={SelectContainer:y,ValueContainer:G,SingleValue:G};return A.createElement("div",{className:p.root},s&&A.createElement("label",{className:p.label,htmlFor:g},s,":","\xA0"),A.createElement(E.l6,U(f({openMenuOnFocus:!0,inputId:g},i),{components:R})))}const y=l=>{const{children:n}=l,s=(0,O.of)(c);return A.createElement(r.K,U(f({},l),{className:(0,e.cx)(l.className,s.container)}),n)},G=l=>{const{className:n,children:s}=l,i=(0,O.of)(c);return A.createElement("div",{className:(0,e.cx)(n,i.valueContainer)},s)},c=l=>({root:(0,e.css)({display:"flex",fontSize:12,alignItems:"center"}),label:(0,e.css)({color:l.colors.text.secondary,whiteSpace:"nowrap"}),container:(0,e.css)({background:"none",borderColor:"transparent"}),valueContainer:(0,e.css)({display:"flex",alignItems:"center",flex:"initial",color:l.colors.text.secondary,fontSize:12})})},45710:(K,M,t)=>{t.d(M,{F:()=>r});var e=t(96540),A=t(81580),O=t(88323),E=t(95626);const r=T=>{const m=o(T),a=_(m,T);return e.createElement(A.c,{label:"Group by function","data-testid":"cloud-monitoring-aggregation"},e.createElement(O.l6,{width:"auto",onChange:({value:D})=>T.onChange(D),value:a,options:[{label:"Template Variables",options:T.templateVariableOptions},{label:"Aggregations",expanded:!0,options:m}],placeholder:"Select Reducer",inputId:`${T.refId}-group-by-function`,menuPlacement:"top"}))},o=({metricDescriptor:T})=>{const m=T?.valueType,a=T?.metricKind;return(0,e.useMemo)(()=>!m||!a?[]:(0,E._T)(m,a).map(D=>({...D,label:D.text})),[m,a])},_=(T,m)=>(0,e.useMemo)(()=>[...T,...m.templateVariableOptions].find(D=>D.value===m.crossSeriesReducer),[T,m.crossSeriesReducer,m.templateVariableOptions])},88851:(K,M,t)=>{t.d(M,{c:()=>o});var e=t(2543),A=t.n(e),O=t(96540),E=t(81580),r=t(10354);const o=({refId:_,value:T="",onChange:m})=>{const[a,D]=(0,O.useState)(T??""),I=(0,e.debounce)(m,1e3),f=U=>{D(U.currentTarget.value),I(U.currentTarget.value)};return O.createElement(E.c,{label:"Alias by"},O.createElement(r.p,{id:`${_}-alias-by`,value:a,onChange:f}))}},32467:(K,M,t)=>{t.d(M,{C:()=>T});var e=t(96540),A=t(97801),O=t(81580),E=t(20902),r=t(95626),o=t(28555),_=t(3125);const T=({refId:m,templateVariableOptions:a,onChange:D,query:I,customMetaData:f,datasource:U,metricDescriptor:S,preprocessor:P})=>{const y=(0,e.useMemo)(()=>(0,r.Bl)(f,U),[f,U]);return e.createElement(A.B,null,e.createElement(O.c,{label:"Alignment function",tooltip:"The process of alignment consists of collecting all data points received in a fixed length of time, applying a function to combine those data points, and assigning a timestamp to the result."},e.createElement(o.M,{inputId:`${m}-alignment-function`,templateVariableOptions:a,query:I,onChange:G=>D({...I,...G}),metricDescriptor:S,preprocessor:P})),e.createElement(O.c,{label:"Alignment period",tooltip:y},e.createElement(_.o,{inputId:`${m}-alignment-period`,templateVariableOptions:a,current:I.alignmentPeriod,onChange:G=>D({...I,alignmentPeriod:G}),aligmentPeriods:E.T2})))}},28555:(K,M,t)=>{t.d(M,{M:()=>E});var e=t(96540),A=t(88323),O=t(95626);const E=({inputId:r,query:o,templateVariableOptions:_,onChange:T,metricDescriptor:m,preprocessor:a})=>{const{perSeriesAligner:D}=o;let{valueType:I,metricKind:f}=m||{};const{perSeriesAligner:U,alignOptions:S}=(0,e.useMemo)(()=>(0,O.s2)(I,f,D,a),[I,f,D,a]);return e.createElement(A.l6,{onChange:({value:P})=>T({...o,perSeriesAligner:P}),value:[...S,..._].find(P=>P.value===U),options:[{label:"Template Variables",options:_},{label:"Alignment options",expanded:!0,options:S}],placeholder:"Select Alignment",inputId:r,menuPlacement:"top"})}},34266:(K,M,t)=>{t.d(M,{R:()=>T});var e=t(96540),A=t(97801),O=t(81580),E=t(88323),r=t(20902),o=t(95626),_=t(45710);const T=({refId:m,labels:a=[],query:D,onChange:I,variableOptionGroup:f,metricDescriptor:U})=>{const S=(0,e.useMemo)(()=>[f,...(0,o.zi)([...a,...r.uf])],[a,f]);return e.createElement(A.B,null,e.createElement(O.c,{label:"Group by",tooltip:"You can reduce the amount of data returned for a metric by combining different time series. To combine multiple time series, you can specify a grouping and a function. Grouping is done on the basis of labels. The grouping function is used to combine the time series in the group into a single time series."},e.createElement(E.KF,{inputId:`${m}-group-by`,width:"auto",placeholder:"Choose label",options:S,value:D.groupBys??[],onChange:P=>{I({...D,groupBys:P.map(y=>y.value)})},menuPlacement:"top"})),e.createElement(_.F,{metricDescriptor:U,templateVariableOptions:f.options,crossSeriesReducer:D.crossSeriesReducer,groupBys:D.groupBys??[],onChange:P=>I({...D,crossSeriesReducer:P}),refId:m}))}},84640:(K,M,t)=>{t.d(M,{b:()=>S});var e=t(96540),A=t(50877),O=t(3721),E=t(9e4),r=t(81580),o=t(7650),_=t(66864),T=t(88323),m=t(95626);const a="=",D="AND",I=P=>P.flatMap(({key:y,operator:G,value:c,condition:l})=>[y,G,c,l]).slice(0,-1),f=["=","!=","=~","!=~"].map(A.z),U=["metric.type"],S=({labels:P={},filters:y,onChange:G,variableOptionGroup:c})=>{const l=(0,m.H6)(y),n=l.filter(({key:u})=>!U.includes(u)),s=l.filter(({key:u})=>U.includes(u)),i=(0,e.useMemo)(()=>[c,...(0,m.zi)(Object.keys(P))],[P,c]),p=({key:u="",value:v=""})=>{i.some(B=>B.options?i.some(V=>V.label===u):B.label===u)||i.push({label:u,value:u});const d=P.hasOwnProperty(u)?[c,...P[u].map(A.z)]:[c];return d.some(B=>B.label===v)||d.push({label:v,value:v}),{options:i,valueOptions:d}},g=u=>{const v=u.concat(s).map(({key:L,operator:d,value:N,condition:B})=>({key:L||"",operator:d||a,value:N||"",condition:B||D}));G(I(v))},R=(u,v,L)=>{const{key:d="",operator:N=a,value:B="",condition:V=D}=u,{options:W,valueOptions:F}=p(u);return e.createElement(_.Gy,{spacing:"xs",width:"auto"},e.createElement(T.l6,{"aria-label":"Filter label key",formatCreateLabel:b=>`Use label key: ${b}`,allowCustomValue:!0,value:d,options:W,onChange:({value:b=""})=>v({key:b,operator:N,value:B,condition:V})}),e.createElement(T.l6,{value:N,options:f,onChange:({value:b=a})=>v({key:d,operator:b,value:B,condition:V})}),e.createElement(T.l6,{"aria-label":"Filter label value",placeholder:"add filter value",formatCreateLabel:b=>`Use label value: ${b}`,allowCustomValue:!0,value:B,options:F,onChange:({value:b=""})=>v({key:d,operator:N,value:b,condition:V})}),e.createElement(O.Z,{"aria-label":"Remove",icon:"times",variant:"secondary",onClick:L,type:"button"}))};return e.createElement(E.U,null,e.createElement(r.c,{label:"Filter",tooltip:"To reduce the amount of data charted, apply a filter. A filter has three components: a label, a comparison, and a value. The comparison can be an equality, inequality, or regular expression."},e.createElement(o.o,{items:n,renderItem:R,onChange:g})))}},96444:(K,M,t)=>{t.d(M,{m:()=>E});var e=t(96540),A=t(21744),O=t(94736);function E({query:r,onChange:o,onRunQuery:_}){const T=m=>{m.key==="Enter"&&(m.shiftKey||m.ctrlKey)&&(m.preventDefault(),_())};return e.createElement("span",{"data-testid":O.T.components.queryEditor.mqlMetricsQueryEditor.container.input},e.createElement(A.f,{name:"Query",className:"slate-query-field",value:r,rows:10,placeholder:"Enter a Cloud Monitoring MQL query (Run with Shift+Enter)",onBlur:_,onChange:m=>o(m.currentTarget.value),onKeyDown:T}))}},81381:(K,M,t)=>{t.d(M,{wu:()=>c,kU:()=>P,a5:()=>y});var e=t(96540),A=t(71087),O=t(46819),E=t(18007),r=t(88851),o=t(9e4),_=t(81580),T=t(66864),m=t(15292),a=t(20902),D=t(42467);const I=({refId:l,onChange:n,graphPeriod:s,variableOptionGroup:i})=>e.createElement(o.U,null,e.createElement(_.c,{label:"Graph period",htmlFor:`${l}-graph-period`,tooltip:e.createElement(e.Fragment,null,"Set ",e.createElement("code",null,"graph_period")," which forces a preferred period between points. Automatically set to the current interval if left blank.")},e.createElement(T.Gy,null,e.createElement(m.d,{"data-testid":`${l}-switch-graph-period`,value:s!=="disabled",onChange:p=>n(p.currentTarget.checked?"":"disabled")}),e.createElement(D.oX,{inputId:`${l}-graph-period`,templateVariableOptions:i.options,current:s,onChange:n,disabled:s==="disabled",aligmentPeriods:a.Sv}))));var f=t(96444),U=t(60927),S=t(93651);const P=l=>({projectName:l.getDefaultProject(),crossSeriesReducer:"REDUCE_NONE",alignmentPeriod:"cloud-monitoring-auto",perSeriesAligner:E.Vb.ALIGN_MEAN,groupBys:[],filters:[]}),y=l=>({projectName:l.getDefaultProject(),query:""});function G({refId:l,query:n,datasource:s,onChange:i,onRunQuery:p,customMetaData:g,variableOptionGroup:R,range:u}){const v=(0,e.useCallback)(d=>{let N=!0;if(d?.filters&&d.filters.length>0){for(const B of d.filters)if(B===""){N=!1;break}}i({...n,timeSeriesList:d}),N&&p()},[i,p,n]),L=(0,e.useCallback)(d=>{i({...n,timeSeriesQuery:d}),p()},[i,p,n]);return(0,e.useEffect)(()=>{n.queryType===E.bO.TIME_SERIES_LIST&&!n.timeSeriesList&&i({refId:n.refId,datasource:n.datasource,queryType:E.bO.TIME_SERIES_LIST,timeSeriesList:P(s),aliasBy:n.aliasBy}),n.queryType===E.bO.TIME_SERIES_QUERY&&!n.timeSeriesQuery&&i({refId:n.refId,datasource:n.datasource,queryType:E.bO.TIME_SERIES_QUERY,timeSeriesQuery:y(s),aliasBy:n.aliasBy})},[i,n,s]),e.createElement(A.D,null,(n.queryType===E.bO.ANNOTATION||n.queryType===E.bO.TIME_SERIES_LIST)&&n.timeSeriesList&&e.createElement(S.s,{refId:l,variableOptionGroup:R,customMetaData:g,onChange:v,datasource:s,query:n.timeSeriesList,aliasBy:n.aliasBy,onChangeAliasBy:d=>i({...n,aliasBy:d}),range:u}),n.queryType===E.bO.TIME_SERIES_QUERY&&n.timeSeriesQuery&&e.createElement(e.Fragment,null,e.createElement(O.B,{gap:1,direction:"row"},e.createElement(U.M,{refId:l,datasource:s,onChange:d=>L({...n.timeSeriesQuery,projectName:d}),templateVariableOptions:R.options,projectName:n.timeSeriesQuery.projectName}),e.createElement(r.c,{refId:l,value:n.aliasBy,onChange:d=>i({...n,aliasBy:d})})),e.createElement(f.m,{onChange:d=>L({...n.timeSeriesQuery,query:d}),onRunQuery:p,query:n.timeSeriesQuery.query}),e.createElement(I,{onChange:d=>L({...n.timeSeriesQuery,graphPeriod:d}),graphPeriod:n.timeSeriesQuery.graphPeriod,refId:l,variableOptionGroup:R})))}const c=e.memo(G)},3125:(K,M,t)=>{t.d(M,{o:()=>O});var e=t(96540),A=t(88323);function O({inputId:E,templateVariableOptions:r,onChange:o,current:_,disabled:T,aligmentPeriods:m}){const a=(0,e.useMemo)(()=>m.map(I=>({...I,label:I.text})),[m]),D=(0,e.useMemo)(()=>a.filter(I=>!I.hidden),[a]);return e.createElement(A.l6,{width:"auto",onChange:({value:I})=>o(I),value:[...a,...r].find(I=>I.value===_),options:[{label:"Template Variables",options:r},{label:"Aggregations",expanded:!0,options:D}],placeholder:"Select Period",inputId:E,disabled:T,allowCustomValue:!0,menuPlacement:"top"})}},54647:(K,M,t)=>{t.d(M,{i:()=>_});var e=t(96540),A=t(81580),O=t(94354),E=t(95626),r=t(18007);const o={label:"None",value:r.Ao.None},_=({query:m,metricDescriptor:a,onChange:D})=>{const I=T(a);return e.createElement(A.c,{label:"Pre-processing",tooltip:"Preprocessing options are displayed when the selected metric has a metric kind of delta or cumulative. The specific options available are determined by the metric's value type. If you select 'Rate', data points are aligned and converted to a rate per time series. If you select 'Delta', data points are aligned by their delta (difference) per time series"},e.createElement(O.z,{onChange:f=>{const{perSeriesAligner:U}=m,{valueType:S,metricKind:P}=a??{},{perSeriesAligner:y}=(0,E.s2)(S,P,U,f);D({...m,preprocessor:f,perSeriesAligner:y})},value:m.preprocessor??r.Ao.None,options:I}))},T=m=>{const a=m?.metricKind,D=m?.valueType;return(0,e.useMemo)(()=>{if(!a||a===r.xj.GAUGE||D===r.tD.DISTRIBUTION)return[o];const I=[o,{label:"Rate",value:r.Ao.Rate,description:"Data points are aligned and converted to a rate per time series"}];return a===r.xj.CUMULATIVE?[...I,{label:"Delta",value:r.Ao.Delta,description:"Data points are aligned by their delta (difference) per time series"}]:I},[a,D])}},60927:(K,M,t)=>{t.d(M,{M:()=>E});var e=t(96540),A=t(81580),O=t(88323);function E({refId:r,projectName:o,datasource:_,onChange:T,templateVariableOptions:m}){const[a,D]=(0,e.useState)([]);(0,e.useEffect)(()=>{_.getProjects().then(f=>D(f))},[_]);const I=(0,e.useMemo)(()=>[{label:"Template Variables",options:m},...a],[a,m]);return e.createElement(A.c,{label:"Project"},e.createElement(O.l6,{width:"auto",allowCustomValue:!0,formatCreateLabel:f=>`Use project: ${f}`,onChange:({value:f})=>T(f),options:I,value:{value:o,label:o},placeholder:"Select Project",inputId:`${r}-project`}))}},38054:(K,M,t)=>{t.d(M,{w:()=>R});var e=t(32017),A=t.n(e),O=t(2543),E=t(96540),r=t(50877),o=t(43127),_=t(71087),T=t(96374),m=t(94736),a=t(18007),D=t(81381),I=t(9e4),f=t(81580),U=t(21744),S=t(10354),P=t(60927);const y=u=>({projectName:u.getDefaultProject(),expr:"",step:"10s"});function G({refId:u,query:v,datasource:L,onChange:d,variableOptionGroup:N,onRunQuery:B}){function V(W){W.key==="Enter"&&W.shiftKey&&(B(),W.preventDefault(),W.stopPropagation())}return E.createElement("span",{"data-testid":m.T.components.queryEditor.promQlQueryEditor.container.input},E.createElement(I.U,null,E.createElement(P.M,{refId:u,templateVariableOptions:N.options,projectName:v.projectName,datasource:L,onChange:W=>d({...v,projectName:W})}),E.createElement(U.f,{name:"Query",className:"slate-query-field",value:v.expr,rows:10,placeholder:"Enter a Cloud Monitoring Prometheus query (Run with Shift+Enter)",onBlur:B,onKeyDown:V,onChange:W=>d({...v,expr:W.currentTarget.value})}),E.createElement(f.c,{label:"Min step",tooltip:"Time units and built-in variables can be used here, for example: $__interval, $__rate_interval, 5s, 1m, 3h, 1d, 1y (Default if no unit is specified: 10s)"},E.createElement(S.p,{type:"string",placeholder:"auto",onChange:W=>d({...v,step:W.currentTarget.value}),onKeyDown:V,value:v.step??""}))))}var c=t(6191),l=t(22354),n=t(31347),s=t(20902);const i=u=>{const{query:v,onChange:L,onRunQuery:d}=u,{queryType:N}=v;return E.createElement(c.X,null,E.createElement(l.W,{label:"Query type",options:s.zD,value:N,onChange:({value:B})=>{L({...v,queryType:B}),d()}}),E.createElement(n.Z,{grow:1}))};var p=t(87794),g=t(42467);const R=u=>{const{datasource:v,query:L,onRunQuery:d,onChange:N,range:B}=u,[V,W]=(0,E.useState)(!1);(0,E.useEffect)(()=>{const j=v.migrateQuery(L);A()(j,L)||N({...j})},[L,v,N]);const[F,b]=(0,E.useState)(L),[Ee,Y]=(0,E.useState)(!1),ce={...(0,p.u)(v),...L.sloQuery},k=j=>{N({...L,sloQuery:j}),d()},ee={projectName:v.getDefaultProject(),expr:"",step:"10s",...L.promQLQuery},te=j=>{N({...L,promQLQuery:j})},q=j=>{(j.queryType===a.bO.TIME_SERIES_LIST&&!(0,O.isEqual)(j.timeSeriesList,(0,D.kU)(v))||j.queryType===a.bO.TIME_SERIES_QUERY&&!(0,O.isEqual)(j.timeSeriesQuery,(0,D.a5)(v)))&&Y(!0),N(j)},ne=(u.data?.series.length?u.data?.series[0].meta:{})?.custom??{},$={label:"Template Variables",expanded:!1,options:v.getVariables().map(r.z)};(0,E.useEffect)(()=>{(!L.queryType||!Object.values(a.bO).includes(L.queryType))&&N({...L,queryType:a.bO.TIME_SERIES_LIST})});const X=L.queryType,Z=j=>{Ee&&(F.queryType===a.bO.TIME_SERIES_LIST||F.queryType===a.bO.TIME_SERIES_QUERY)?F.queryType!==j.queryType&&W(!0):N(j),b(j)};return E.createElement("span",{"data-testid":m.T.components.queryEditor.container},E.createElement(_.D,null,E.createElement(T.u,{"data-testid":"switch-query-type-modal",title:"Warning",body:"By switching your query type, your current query will be lost.",isOpen:V,onConfirm:()=>{W(!1),N(F),Y(!1)},confirmText:"Confirm",onDismiss:()=>{W(!1),b(L)}}),E.createElement(i,{query:L,onChange:Z,onRunQuery:d}),X===a.bO.PROMQL&&E.createElement(G,{refId:L.refId,variableOptionGroup:$,onChange:te,onRunQuery:d,datasource:v,query:ee}),X!==a.bO.SLO&&E.createElement(g.wu,{refId:L.refId,variableOptionGroup:$,customMetaData:ne,onChange:q,onRunQuery:d,datasource:v,query:L,range:B||(0,o.E2)()}),X===a.bO.SLO&&E.createElement(g.cH,{refId:L.refId,variableOptionGroup:$,customMetaData:ne,onChange:k,onRunQuery:d,datasource:v,query:ce,aliasBy:L.aliasBy,onChangeAliasBy:j=>N({...L,aliasBy:j})})))}},87794:(K,M,t)=>{t.d(M,{c:()=>G,u:()=>y});var e=t(96540),A=t(9e4),O=t(97801),E=t(81580),r=t(20902),o=t(94736),_=t(95626),T=t(18007),m=t(88851),a=t(88323);const D=({refId:c,current:l,templateVariableOptions:n,onChange:s})=>{const i=r.sR.map(g=>({...g,label:g.text}));l&&!i.find(g=>g.value===l)&&i.push({label:l,text:l,value:l,hidden:!1});const p=i.filter(g=>!g.hidden);return e.createElement(E.c,{label:"Lookback period",htmlFor:`${c}-lookback-period`},e.createElement(a.l6,{inputId:`${c}-lookback-period`,width:"auto",allowCustomValue:!0,value:[...i,...n].find(g=>g.value===l),options:[{label:"Template Variables",options:n},{label:"Predefined periods",expanded:!0,options:p}],onChange:({value:g})=>s(g)}))};var I=t(3125),f=t(60927);const U=({refId:c,query:l,templateVariableOptions:n,onChange:s,datasource:i})=>{const[p,g]=(0,e.useState)([]),{projectName:R,serviceId:u}=l;return(0,e.useEffect)(()=>{!R||!u||i.getServiceLevelObjectives(R,u).then(v=>{g([{label:"Template Variables",options:n},...v])})},[i,R,u,n]),e.createElement(E.c,{label:"SLO"},e.createElement(a.l6,{inputId:`${c}-slo`,width:"auto",allowCustomValue:!0,value:l?.sloId&&{value:l?.sloId,label:l?.sloName||l?.sloId},placeholder:"Select SLO",options:p,onChange:async({value:v="",label:L=""})=>{const N=(await i.getServiceLevelObjectives(R,u)).find(({value:B})=>B===i.templateSrv.replace(v));s({...l,sloId:v,sloName:L,goal:N?.goal})}}))},S=({refId:c,query:l,templateVariableOptions:n,onChange:s,datasource:i})=>e.createElement(E.c,{label:"Selector",htmlFor:`${c}-slo-selector`},e.createElement(a.l6,{inputId:`${c}-slo-selector`,width:"auto",allowCustomValue:!0,value:[...r.ZM,...n].find(p=>p.value===l?.selectorName),options:[{label:"Template Variables",options:n},...r.ZM],onChange:({value:p})=>s({...l,selectorName:p??""})})),P=({refId:c,query:l,templateVariableOptions:n,onChange:s,datasource:i})=>{const[p,g]=(0,e.useState)([]),{projectName:R}=l;return(0,e.useEffect)(()=>{R&&i.getSLOServices(R).then(u=>{g([{label:"Template Variables",options:n},...u])})},[i,R,n]),e.createElement(E.c,{label:"Service"},e.createElement(a.l6,{inputId:`${c}-slo-service`,width:"auto",allowCustomValue:!0,value:l?.serviceId&&{value:l?.serviceId,label:l?.serviceName||l?.serviceId},placeholder:"Select service",options:p,onChange:({value:u="",label:v=""})=>s({...l,serviceId:u,serviceName:v,sloId:""})}))},y=c=>({projectName:c.getDefaultProject(),alignmentPeriod:"cloud-monitoring-auto",perSeriesAligner:T.Vb.ALIGN_MEAN,aliasBy:"",selectorName:"select_slo_health",serviceId:"",serviceName:"",sloId:"",sloName:"",lookbackPeriod:""});function G({refId:c,query:l,datasource:n,onChange:s,variableOptionGroup:i,customMetaData:p,aliasBy:g,onChangeAliasBy:R}){const u=(0,e.useMemo)(()=>(0,_.Bl)(p,n),[p,n]);return e.createElement("span",{"data-testid":o.T.components.queryEditor.sloQueryEditor.container.input},e.createElement(A.U,null,e.createElement(f.M,{refId:c,templateVariableOptions:i.options,projectName:l.projectName,datasource:n,onChange:v=>s({...l,projectName:v})}),e.createElement(P,{refId:c,datasource:n,templateVariableOptions:i.options,query:l,onChange:s}),e.createElement(U,{refId:c,datasource:n,templateVariableOptions:i.options,query:l,onChange:s}),e.createElement(S,{refId:c,datasource:n,templateVariableOptions:i.options,query:l,onChange:s}),l.selectorName===r.ok&&e.createElement(D,{refId:c,onChange:v=>s({...l,lookbackPeriod:v}),current:l.lookbackPeriod,templateVariableOptions:i.options}),e.createElement(O.B,null,e.createElement(E.c,{label:"Alignment period",tooltip:u},e.createElement(I.o,{inputId:`${c}-alignment-period`,templateVariableOptions:i.options,current:l.alignmentPeriod,onChange:v=>s({...l,alignmentPeriod:v}),aligmentPeriods:r.T2}))),e.createElement(m.c,{refId:c,value:g,onChange:R})))}},93651:(K,M,t)=>{t.d(M,{s:()=>R});var e=t(32196),A=t(76459),O=t.n(A),E=t(2543),r=t.n(E),o=t(96540),_=t(9e4),T=t(97801),m=t(81580),a=t(14110),D=t(40845),I=t(88824),f=t(88323),U=t(94736),S=t(95626),P=t(18007),y=t(88851),G=t(32467),c=t(34266),l=t(84640),n=t(81381),s=t(54647),i=t(60927);function p({refId:u,onChange:v,datasource:L,query:d,variableOptionGroup:N,customMetaData:B,aliasBy:V,onChangeAliasBy:W,range:F}){const[b,Ee]=(0,o.useState)({}),[Y,ce]=(0,o.useState)([]),[k,ee]=(0,o.useState)(),[te,q]=(0,o.useState)([]),[ae,ne]=(0,o.useState)([]),[$,X]=(0,o.useState)(""),[Z,j]=(0,o.useState)({...F});(C=>{Z!==null&&(Z.raw.from.toString()!==C.raw.from.toString()||Z.raw.to.toString()!==C.raw.to.toString())&&j({...C})})(F);const ve=(0,D.$j)(),le=(0,I.J)(ve),oe=(0,D.of)(g),{projectName:H,groupBys:me,crossSeriesReducer:ue}=d,z=(0,S.Bf)(d),{templateSrv:se}=L,re=(0,o.useCallback)((C,h)=>C.find(x=>x.type===se.replace(h)),[se]);(0,o.useEffect)(()=>{H&&z&&L.getLabels(z,u,H,{groupBys:me,crossSeriesReducer:ue},Z).then(C=>Ee(C))},[L,me,z,H,u,ue,Z]),(0,o.useEffect)(()=>{(async()=>{if(H){const h=await L.getMetricTypes(H);(0,a.rR)("cloud-monitoring-metric-descriptors-loaded",{count:h.length});const x=Te(h);ce(h),ne(x)}})()},[L,H,oe,le.optionDescription]),(0,o.useEffect)(()=>{const h=(w=>{const ie=re(w,z);return ie?w.filter(J=>J.service===ie.service).map(J=>({service:J.service,value:J.type,label:J.displayName,component:function(){return o.createElement("div",null,o.createElement("div",{className:oe},J.type),o.createElement("div",{className:le.optionDescription},J.description))}})):[]})(Y),x=h.length>0?h[0].service:"",Q=re(Y,z);ee(Q),q(h),X(x)},[Y,re,z,oe,le.optionDescription]);const De=({value:C})=>{const h=Y.filter(x=>x.service===se.replace(C)).map(x=>({service:x.service,value:x.type,label:x.displayName,description:x.description}));d.filters=[],h.length>0&&!h.some(x=>x.value===se.replace(z))?(de(h[0]),X(C),q(h)):(X(C),q(h))},Te=C=>{const h=C.map(x=>({value:x.service,label:(0,E.startCase)(x.serviceShortName)}));return h.length>0?(0,E.uniqBy)(h,x=>x.value):[]},Ie=async C=>{const x=(await L.filterMetricsByType(H,$)).filter(Q=>Q.type.includes(C.toLowerCase())).map(Q=>({value:Q.type,label:Q.displayName,component:function(){return o.createElement("div",null,o.createElement("div",{className:oe},Q.type),o.createElement("div",{className:le.optionDescription},Q.description))}}));return[{label:"Template Variables",options:N.options},...x]},Oe=O()(Ie,400),de=({value:C})=>{const h=re(Y,C);ee(h);const{metricKind:x,valueType:Q}=h,w=x===P.xj.GAUGE||Q===P.tD.DISTRIBUTION?P.Ao.None:P.Ao.Rate,{perSeriesAligner:ie}=(0,S.s2)(Q,x,d.perSeriesAligner,w);Object.assign(d,{...(0,n.kU)(L),projectName:d.projectName,filters:d.filters}),v({...(0,S.LG)({...d,perSeriesAligner:ie},C),preprocessor:w})};return o.createElement("span",{"data-testid":U.T.components.queryEditor.visualMetricsQueryEditor.container.input},o.createElement(_.U,null,o.createElement(T.B,null,o.createElement(i.M,{refId:u,templateVariableOptions:N.options,projectName:H,datasource:L,onChange:C=>{v({...d,projectName:C})}}),o.createElement(m.c,{label:"Service",width:"auto"},o.createElement(f.l6,{width:"auto",onChange:De,isLoading:ae.length===0,value:[...ae,...N.options].find(C=>C.value===$),options:[{label:"Template Variables",options:N.options},...ae],placeholder:"Select Services",inputId:`${u}-service`})),o.createElement(m.c,{label:"Metric name",width:"auto",htmlFor:`${u}-select-metric`},o.createElement("span",{title:$===""?"Select a service first":"Type to search metrics"},o.createElement(f.DW,{width:"auto",onChange:de,value:[...te,...N.options].find(C=>C.value===z),loadOptions:Oe,defaultOptions:[{label:"Template Variables",options:N.options},...te.slice(0,100)],placeholder:"Select Metric",inputId:`${u}-select-metric`,disabled:$===""}))))),o.createElement(o.Fragment,null,o.createElement(l.b,{labels:b,filters:d.filters,onChange:C=>v({...d,filters:C}),variableOptionGroup:N}),o.createElement(_.U,null,o.createElement(s.i,{metricDescriptor:k,query:d,onChange:v}),o.createElement(c.R,{refId:u,labels:Object.keys(b),query:d,onChange:v,variableOptionGroup:N,metricDescriptor:k}),o.createElement(G.C,{refId:u,datasource:L,templateVariableOptions:N.options,query:d,customMetaData:B,onChange:v,metricDescriptor:k,preprocessor:d.preprocessor}),o.createElement(y.c,{refId:u,value:V,onChange:W}))))}const g=u=>(0,e.css)` label: grafana-select-option-description; font-weight: normal; font-style: italic; color: ${u.colors.text.secondary}; `,R=o.memo(p)},42467:(K,M,t)=>{t.d(M,{sy:()=>o,wu:()=>a.wu,oX:()=>y.o,cH:()=>D.c,HX:()=>S});var e=t(60927),A=t(34266),O=t(32467),E=t(84640),r=t(96540);const o=()=>r.createElement("div",{className:"gf-form grafana-info-box alert-info"},r.createElement("div",null,r.createElement("h5",null,"Annotation Query Format"),r.createElement("p",null,"An annotation is an event that is overlaid on top of graphs. Annotation rendering is expensive so it is important to limit the number of rows returned."," "),r.createElement("p",null,"The Title and Text fields support templating and can use data returned from the query. For example, the Title field could have the following text:"),r.createElement("code",null,"{{metric.type}}"," has value: ","{{metric.value}}"),r.createElement("p",null,"Example Result: ",r.createElement("code",null,"monitoring.googleapis.com/uptime_check/http_status has this value: 502")),r.createElement("span",null,"Patterns:"),r.createElement("p",null,r.createElement("code",null,"{{metric.value}}")," = value of the metric/point"),r.createElement("p",null,r.createElement("code",null,"{{metric.type}}")," = metric type e.g. compute.googleapis.com/instance/cpu/usage_time"),r.createElement("p",null,r.createElement("code",null,"{{metric.name}}")," = name part of metric e.g. instance/cpu/usage_time"),r.createElement("p",null,r.createElement("code",null,"{{metric.service}}")," = service part of metric e.g. compute"),r.createElement("p",null,r.createElement("code",null,"{{metric.label.label_name}}")," = Metric label metadata e.g. metric.label.instance_name"),r.createElement("p",null,r.createElement("code",null,"{{resource.label.label_name}}")," = Resource label metadata e.g. resource.label.zone")));var _=t(28555),T=t(88851),m=t(45710),a=t(81381),D=t(87794),I=t(96444),f=t(88575),U=t(88323);const S=({label:c,onChange:l,value:n,options:s,allowCustomValue:i=!1})=>r.createElement(f.D,{label:c},r.createElement(U.l6,{width:25,allowCustomValue:i,value:n,onChange:({value:p})=>l(p),options:s}));var P=t(93651),y=t(3125),G=t(54647)},20902:(K,M,t)=>{t.d(M,{Sv:()=>m,T2:()=>T,ZM:()=>f,ok:()=>I,sR:()=>a,tl:()=>o,uZ:()=>_,uf:()=>D,zD:()=>U});var e=t(18007);const A=71,O=19,E=14,r=28,o=[{text:"none",value:"ALIGN_NONE",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION,e.tD.STRING,e.tD.VALUE_TYPE_UNSPECIFIED,e.tD.BOOL],metricKinds:[e.xj.GAUGE]},{text:"delta",value:"ALIGN_DELTA",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.CUMULATIVE,e.xj.DELTA]},{text:"rate",value:"ALIGN_RATE",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.CUMULATIVE,e.xj.DELTA]},{text:"interpolate",value:"ALIGN_INTERPOLATE",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE]},{text:"next older",value:"ALIGN_NEXT_OLDER",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION,e.tD.STRING,e.tD.VALUE_TYPE_UNSPECIFIED,e.tD.BOOL],metricKinds:[e.xj.GAUGE]},{text:"min",value:"ALIGN_MIN",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"max",value:"ALIGN_MAX",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"mean",value:"ALIGN_MEAN",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"count",value:"ALIGN_COUNT",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.BOOL],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"sum",value:"ALIGN_SUM",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"stddev",value:"ALIGN_STDDEV",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"count true",value:"ALIGN_COUNT_TRUE",valueTypes:[e.tD.BOOL],metricKinds:[e.xj.GAUGE]},{text:"count false",value:"ALIGN_COUNT_FALSE",valueTypes:[e.tD.BOOL],metricKinds:[e.xj.GAUGE]},{text:"fraction true",value:"ALIGN_FRACTION_TRUE",valueTypes:[e.tD.BOOL],metricKinds:[e.xj.GAUGE]},{text:"percentile 99",value:"ALIGN_PERCENTILE_99",valueTypes:[e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"percentile 95",value:"ALIGN_PERCENTILE_95",valueTypes:[e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"percentile 50",value:"ALIGN_PERCENTILE_50",valueTypes:[e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"percentile 05",value:"ALIGN_PERCENTILE_05",valueTypes:[e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"percent change",value:"ALIGN_PERCENT_CHANGE",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA]}],_=[{text:"none",value:"REDUCE_NONE",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION,e.tD.BOOL,e.tD.STRING],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE,e.xj.METRIC_KIND_UNSPECIFIED]},{text:"mean",value:"REDUCE_MEAN",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]},{text:"min",value:"REDUCE_MIN",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE,e.xj.METRIC_KIND_UNSPECIFIED]},{text:"max",value:"REDUCE_MAX",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE,e.xj.METRIC_KIND_UNSPECIFIED]},{text:"sum",value:"REDUCE_SUM",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE,e.xj.METRIC_KIND_UNSPECIFIED]},{text:"std. dev.",value:"REDUCE_STDDEV",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE,e.xj.METRIC_KIND_UNSPECIFIED]},{text:"count",value:"REDUCE_COUNT",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION,e.tD.BOOL,e.tD.STRING],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]},{text:"count true",value:"REDUCE_COUNT_TRUE",valueTypes:[e.tD.BOOL],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"count false",value:"REDUCE_COUNT_FALSE",valueTypes:[e.tD.BOOL],metricKinds:[e.xj.GAUGE,e.xj.DELTA]},{text:"99th percentile",value:"REDUCE_PERCENTILE_99",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]},{text:"95th percentile",value:"REDUCE_PERCENTILE_95",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]},{text:"50th percentile",value:"REDUCE_PERCENTILE_50",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]},{text:"5th percentile",value:"REDUCE_PERCENTILE_05",valueTypes:[e.tD.INT64,e.tD.DOUBLE,e.tD.MONEY,e.tD.DISTRIBUTION],metricKinds:[e.xj.GAUGE,e.xj.DELTA,e.xj.CUMULATIVE]}],T=[{text:"grafana auto",value:"grafana-auto"},{text:"stackdriver auto",value:"stackdriver-auto",hidden:!0},{text:"cloud monitoring auto",value:"cloud-monitoring-auto"},{text:"1m",value:"+60s"},{text:"2m",value:"+120s"},{text:"5m",value:"+300s"},{text:"10m",value:"+600s"},{text:"30m",value:"+1800s"},{text:"1h",value:"+3600s"},{text:"3h",value:"+7200s"},{text:"6h",value:"+21600s"},{text:"1d",value:"+86400s"},{text:"3d",value:"+259200s"},{text:"1w",value:"+604800s"}],m=[{text:"auto",value:"auto"},{text:"1m",value:"1m"},{text:"2m",value:"2m"},{text:"5m",value:"5m"},{text:"10m",value:"10m"},{text:"30m",value:"30m"},{text:"1h",value:"1h"},{text:"3h",value:"3h"},{text:"6h",value:"6h"},{text:"1d",value:"1d"},{text:"3d",value:"3d"},{text:"1w",value:"1w"}],a=[{text:"1m",value:"1m"},{text:"2m",value:"2m"},{text:"5m",value:"5m"},{text:"10m",value:"10m"},{text:"30m",value:"30m"},{text:"1h",value:"1h"},{text:"3h",value:"3h"},{text:"6h",value:"6h"},{text:"24h",value:"24h"},{text:"72h",value:"72h"}],D=["metadata.system_labels.cloud_account","metadata.system_labels.name","metadata.system_labels.region","metadata.system_labels.state","metadata.system_labels.instance_group","metadata.system_labels.node_name","metadata.system_labels.service_name","metadata.system_labels.top_level_controller_type","metadata.system_labels.top_level_controller_name","metadata.system_labels.container_image"],I="select_slo_burn_rate",f=[{label:"SLI Value",value:"select_slo_health"},{label:"SLO Compliance",value:"select_slo_compliance"},{label:"SLO Error Budget Remaining",value:"select_slo_budget_fraction"},{label:"SLO Burn Rate",value:I}],U=[{label:"Builder",value:e.bO.TIME_SERIES_LIST},{label:"MQL",value:e.bO.TIME_SERIES_QUERY},{label:"Service Level Objectives (SLO)",value:e.bO.SLO},{label:"PromQL",value:e.bO.PROMQL}]},94736:(K,M,t)=>{t.d(M,{T:()=>A});const A={components:{queryEditor:{container:"data-testid cloud-monitoring-query-editor",header:{select:"data-testid cloud-monitoring-header"},visualMetricsQueryEditor:{container:{input:"data-testid cloud-monitoring-visual-metrics-query-editor"}},mqlMetricsQueryEditor:{container:{input:"data-testid cloud-monitoring-mql-query-editor"}},sloQueryEditor:{container:{input:"data-testid cloud-monitoring-slo-query-editor"}},promQlQueryEditor:{container:{input:"data-testid cloud-monitoring-prom-ql-query-editor"}}}}}},95626:(K,M,t)=>{t.d(M,{Bf:()=>y,Bl:()=>P,H6:()=>S,LG:()=>G,Su:()=>T,_T:()=>D,cR:()=>_,i0:()=>m,pd:()=>a,s2:()=>f,zi:()=>U,zw:()=>I});var e=t(2543),A=t.n(e),O=t(65879),E=t(72574),r=t(20902),o=t(18007);const _=c=>(0,e.uniqBy)(c,"service"),T=(c,l)=>c.filter(n=>n.service===l),m=(c,l,n,s)=>{const i=T(c,s).map(u=>({value:u.type,name:u.displayName})),p=i.some(u=>u.value===n),g=i.length?i[0].value:"";return{metricTypes:i,selectedMetricType:p?l:g}},a=(c,l,n)=>(n&&n===o.Ao.Rate&&(l=o.xj.GAUGE),c?r.tl.filter(s=>s.valueTypes.indexOf(c)!==-1&&s.metricKinds.indexOf(l)!==-1):[]),D=(c,l)=>l?r.uZ.filter(n=>n.valueTypes.indexOf(c)!==-1&&n.metricKinds.indexOf(l)!==-1):[],I=async(c,l,n)=>{const s="handleLabelKeysQuery",i=await c.getLabels(l,s,n);return[...Object.keys(i),...r.uf]},f=(c=o.tD.DOUBLE,l=o.xj.GAUGE,n=o.Vb.ALIGN_MEAN,s)=>{const i=(0,E.w)(),p=a(c,l,s).map(g=>({...g,label:g.text}));return p.some(g=>g.value===i.replace(n))||(n=p.length>0?p[0].value:o.Vb.ALIGN_MEAN),{alignOptions:p,perSeriesAligner:n}},U=c=>{const l=c.reduce((n,s)=>{const i=s.split(".").map(e.startCase),p=(i.length===2?i:(0,e.initial)(i)).join(" "),g={value:s,label:s};return n[p]?n[p]=[...n[p],g]:n[p]=[g],n},{});return Object.entries(l).map(([n,s])=>({label:n,options:s,expanded:!0}),[])},S=c=>(0,e.chunk)(c,4).map(([l,n,s,i="AND"])=>({key:l,operator:n,value:s,condition:i})),P=(c,l)=>{const{perSeriesAligner:n,alignmentPeriod:s}=c;if(!s||!n)return"";const i=r.tl.find(R=>R.value===l.templateSrv.replace(n)),p=parseInt(s,10);return`${O.secondsToHms(p)} interval (${i?.text??""})`},y=c=>{const l=c?.filters?.findIndex(s=>s==="metric.type");return c?.filters?.[l+2]||""},G=(c,l)=>{if(!c.filters)return c.filters=["metric.type","=",l],c;const n=c?.filters?.findIndex(s=>s==="metric.type");return n===-1?c.filters.push("metric.type","=",l):c.filters[n+2]=l,c}},18007:(K,M,t)=>{t.d(M,{Vb:()=>_,Hm:()=>m,xj:()=>r,Ao:()=>O,bO:()=>e,tD:()=>o});var e=(a=>(a.ANNOTATION="annotation",a.PROMQL="promQL",a.SLO="slo",a.TIME_SERIES_LIST="timeSeriesList",a.TIME_SERIES_QUERY="timeSeriesQuery",a))(e||{});const A={filters:[],groupBys:[],secondaryGroupBys:[]};var O=(a=>(a.Delta="delta",a.None="none",a.Rate="rate",a))(O||{});const E={filters:[],groupBys:[]};var r=(a=>(a.CUMULATIVE="CUMULATIVE",a.DELTA="DELTA",a.GAUGE="GAUGE",a.METRIC_KIND_UNSPECIFIED="METRIC_KIND_UNSPECIFIED",a))(r||{}),o=(a=>(a.BOOL="BOOL",a.DISTRIBUTION="DISTRIBUTION",a.DOUBLE="DOUBLE",a.INT64="INT64",a.MONEY="MONEY",a.STRING="STRING",a.VALUE_TYPE_UNSPECIFIED="VALUE_TYPE_UNSPECIFIED",a))(o||{}),_=(a=>(a.ALIGN_COUNT="ALIGN_COUNT",a.ALIGN_COUNT_FALSE="ALIGN_COUNT_FALSE",a.ALIGN_COUNT_TRUE="ALIGN_COUNT_TRUE",a.ALIGN_DELTA="ALIGN_DELTA",a.ALIGN_FRACTION_TRUE="ALIGN_FRACTION_TRUE",a.ALIGN_INTERPOLATE="ALIGN_INTERPOLATE",a.ALIGN_MAX="ALIGN_MAX",a.ALIGN_MEAN="ALIGN_MEAN",a.ALIGN_MIN="ALIGN_MIN",a.ALIGN_NEXT_OLDER="ALIGN_NEXT_OLDER",a.ALIGN_NONE="ALIGN_NONE",a.ALIGN_PERCENTILE_05="ALIGN_PERCENTILE_05",a.ALIGN_PERCENTILE_50="ALIGN_PERCENTILE_50",a.ALIGN_PERCENTILE_95="ALIGN_PERCENTILE_95",a.ALIGN_PERCENTILE_99="ALIGN_PERCENTILE_99",a.ALIGN_PERCENT_CHANGE="ALIGN_PERCENT_CHANGE",a.ALIGN_RATE="ALIGN_RATE",a.ALIGN_STDDEV="ALIGN_STDDEV",a.ALIGN_SUM="ALIGN_SUM",a))(_||{});const T={filters:[]};var m=(a=>(a.Aggregations="aggregations",a.Aligners="aligners",a.AlignmentPeriods="alignmentPeriods",a.DefaultProject="defaultProject",a.LabelKeys="labelKeys",a.LabelValues="labelValues",a.MetricTypes="metricTypes",a.Projects="projects",a.ResourceTypes="resourceTypes",a.SLO="slo",a.SLOServices="sloServices",a.Selectors="selectors",a.Services="services",a))(m||{})}}]); //# sourceMappingURL=8054.094788468423bb88ee68.js.map