(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7983],{91175:function(t,e,n){"use strict";n.r(e);var c=n(77837),o=n(82394),a=n(38860),i=n.n(a),r=n(82684),u=n(39440),d=n(75457),p=n(93808),s=n(35686),_=n(35058),l=n(44425),f=n(75399),E=n(46684),b=n(28795),y=n(41143),Z=n(70515),g=n(81728),O=n(28598);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,c)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t){var e=t.pipeline,n=null===e||void 0===e?void 0:e.uuid,c=s.ZP.pipelines.detail(n).data,a=(0,r.useMemo)((function(){return h(h({},null===c||void 0===c?void 0:c.pipeline),e)}),[c,e]),i=(0,r.useMemo)((function(){var t,e,c,a,i,r,u="Trigger active status",d=(0,g.kE)("".concat(u,"_").concat(n,"_").concat((0,g.Lo)())),p="Trigger types",s=(0,g.kE)("".concat(p,"_").concat(n,"_").concat((0,g.Lo)())),E="Trigger frequency",b=(0,g.kE)("".concat(E,"_").concat(n,"_").concat((0,g.Lo)())),Z="Pipeline run status",O=(0,g.kE)("".concat(Z,"_").concat(n,"_").concat((0,g.Lo)())),T="Pipeline runs daily",N=(0,g.kE)("".concat(T,"_").concat(n,"_").concat((0,g.Lo)())),C="Completed pipeline runs daily",I=(0,g.kE)("".concat(C,"_").concat(n,"_").concat((0,g.Lo)())),D="Failed pipeline runs daily",P=(0,g.kE)("".concat(D,"_").concat(n,"_").concat((0,g.Lo)())),k={pipeline_uuid:n,type:f.XO.PIPELINE_SCHEDULES},m={pipeline_uuid:n,type:f.XO.PIPELINE_RUNS},w={configuration:(t={},(0,o.Z)(t,_.eN,["execution_date"]),(0,o.Z)(t,_.bE,[{aggregation:_.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(t,_.Yg,_.aE.DAY),(0,o.Z)(t,"chart_type",_.oV.TIME_SERIES_LINE_CHART),t),data_source:m,type:l.tf.CHART};return{blocks:(r={},(0,o.Z)(r,d,{configuration:(e={},(0,o.Z)(e,_.eN,["status"]),(0,o.Z)(e,_.bE,[{aggregation:_.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(e,_.$1,_.MP.DESCENDING),(0,o.Z)(e,"chart_type",_.oV.BAR_CHART),e),data_source:k,name:u,type:l.tf.CHART,uuid:d}),(0,o.Z)(r,s,{configuration:(c={},(0,o.Z)(c,_.eN,["schedule_type"]),(0,o.Z)(c,"chart_type",_.oV.PIE_CHART),c),data_source:k,name:p,type:l.tf.CHART,uuid:s}),(0,o.Z)(r,b,{configuration:(a={},(0,o.Z)(a,_.eN,["schedule_interval"]),(0,o.Z)(a,_.bE,[{aggregation:_.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(a,_.$1,_.MP.DESCENDING),(0,o.Z)(a,"chart_style",_.JT.HORIZONTAL),(0,o.Z)(a,"chart_type",_.oV.BAR_CHART),a),data_source:k,name:E,type:l.tf.CHART,uuid:b}),(0,o.Z)(r,O,{configuration:(i={},(0,o.Z)(i,_.eN,["status"]),(0,o.Z)(i,_.bE,[{aggregation:_.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(i,_.$1,_.MP.DESCENDING),(0,o.Z)(i,"chart_style",_.JT.HORIZONTAL),(0,o.Z)(i,"chart_type",_.oV.BAR_CHART),i),data_source:m,name:Z,type:l.tf.CHART,uuid:O}),(0,o.Z)(r,N,h(h({},w),{},{name:T,uuid:N})),(0,o.Z)(r,I,h(h({},w),{},{content:"\n@data_source\ndef d(df):\n    return df[df['status'] == '".concat(y.V.COMPLETED,"']\n"),name:C,uuid:I})),(0,o.Z)(r,P,h(h({},w),{},{content:"\n@data_source\ndef d(df):\n    return df[df['status'] == '".concat(y.V.FAILED,"']\n"),name:D,uuid:P})),r),layout:[[{block_uuid:d,width:1},{block_uuid:s,width:1},{block_uuid:b,width:2}],[{block_uuid:O,width:1},{block_uuid:N,width:2}],[{block_uuid:I,width:1},{block_uuid:P,width:1}]]}}),[n]);return(0,O.jsx)(d.Z,{breadcrumbs:[{label:function(){return"Dashboard"}}],pageName:b.M.DASHBOARD,pipeline:a,title:function(t){var e=t.name;return"".concat(e," dashboard")},uuid:"".concat(b.M.DASHBOARD,"_").concat(n),children:(0,O.jsx)(u.Z,{leftOffset:9*Z.iI,pageBlockLayoutTemplate:i,topOffset:E.Mz,uuid:"pipelines/".concat(n,"/dashboard")})})}N.getInitialProps=function(){var t=(0,c.Z)(i().mark((function t(e){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query.pipeline,t.abrupt("return",{pipeline:{uuid:n}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.default=(0,p.Z)(N)},47974:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/dashboard",function(){return n(91175)}])}},function(t){t.O(0,[3662,125,2714,2631,4783,1557,3782,8095,635,9440,9774,2888,179],(function(){return e=47974,t(t.s=e);var e}));var e=t.O();_N_E=e}]);