Difference between revisions of "Template: ArticlePEServiceMetrics"
From Genesys Documentation
(Undo revision 104553 by Jose.druker@genesys.com (talk)) (Tag: Undo) |
(updating to fix service name display) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 18: | Line 18: | ||
|CRD=String | |CRD=String | ||
|Annotations=Wikitext | |Annotations=Wikitext | ||
− | |Port= | + | |Port=Wikitext |
|Endpoint=Wikitext | |Endpoint=Wikitext | ||
|MetricsUpdateInterval=String | |MetricsUpdateInterval=String | ||
Line 24: | Line 24: | ||
|AlertsIntro=Wikitext | |AlertsIntro=Wikitext | ||
}} | }} | ||
− | {{#cargo_attach:_table=PEMonitoring}} | + | {{#cargo_attach:_table=PEMonitoring}}{{#cargo_attach:_table=Article}} |
− | </noinclude><includeonly>[[Category:ArticlePEServiceMetrics]] | + | </noinclude><includeonly><!-- |
− | {{#cargo_store:_table=PEMonitoring | + | |
− | |IncludedServiceId={{{IncludedServiceId|}}} | + | adding category for format and TOC |
− | |CRD={{{CRD|}}} | + | |
− | |Annotations={{{Annotations|}}} | + | -->[[Category:ArticlePEServiceMetrics]] |
− | |Port={{{Port|}}} | + | __TOC__<!-- |
− | |Endpoint={{{Endpoint|}}} | + | |
− | |MetricsUpdateInterval={{{MetricsUpdateInterval|}}} }} | + | storing in PEMonitoring tables |
− | {{#cargo_store:_table=ArticlePEServiceMetrics|IncludedServiceId={{{IncludedServiceId|}}} | + | --> |
− | |CRD={{{CRD|}}} | + | {{#cargo_store: |
− | |Annotations={{{Annotations|}}} | + | _table=PEMonitoring |
− | |Port={{{Port|}}} | + | |IncludedServiceId={{{IncludedServiceId|}}} |
− | |Endpoint={{{Endpoint|}}} | + | |CRD={{{CRD|}}} |
− | |MetricsIntro={{{MetricsIntro|}}} | + | |Annotations={{{Annotations|}}} |
− | |AlertsIntro={{{AlertsIntro|}}} | + | |Port={{{Port|}}} |
− | |MetricsUpdateInterval={{{MetricsUpdateInterval|}}} }}<!-- Set MintyDocs topic, including a switch for different treatment for Manual pages -->{{#mintydocs_topic: | + | |Endpoint={{{Endpoint|}}} |
− | |display name={{#cargo_query:tables=IncludedService,ArticlePEServiceMetrics|join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId|fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)|no html|where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}"|group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)}} metrics and alerts | + | |MetricsUpdateInterval={{{MetricsUpdateInterval|}}} |
− | |toc name= | + | }}<!-- |
− | }}<!-- Defining the EPPO Header; all parameters need to be passed to it -->{{EPPOHead|Context=Find the metrics {{#cargo_query:tables=IncludedService,ArticlePEServiceMetrics|join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId|fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)|where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}"|group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)}} exposes and the alerts defined for {{#cargo_query:tables=IncludedService,ArticlePEServiceMetrics|join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId|fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)|where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}"|group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name)}}.|PageType=Article}} | + | |
+ | storing in ArticlePEServiceMetrics tables | ||
+ | -->{{#cargo_store: | ||
+ | _table=ArticlePEServiceMetrics | ||
+ | |IncludedServiceId={{{IncludedServiceId|}}} | ||
+ | |CRD={{{CRD|}}} | ||
+ | |Annotations={{{Annotations|}}} | ||
+ | |Port={{{Port|}}} | ||
+ | |Endpoint={{{Endpoint|}}} | ||
+ | |MetricsIntro={{{MetricsIntro|}}} | ||
+ | |AlertsIntro={{{AlertsIntro|}}} | ||
+ | |MetricsUpdateInterval={{{MetricsUpdateInterval|}}} | ||
+ | }}<!-- | ||
+ | |||
+ | storing values in Article table for general queries | ||
+ | |||
+ | -->{{#cargo_store: | ||
+ | _table=Article | ||
+ | |productshort={{#explode:{{FULLPAGENAME}}|/|0}} | ||
+ | |Product={{MINTYDOCSPRODUCT}} | ||
+ | |Manual={{#explode:{{FULLPAGENAME}}|/|2}} | ||
+ | |PEPageType={{{PEPageType|}}} | ||
+ | }}<!-- | ||
+ | |||
+ | Set MintyDocs topic, including a switch for different treatment for Manual pages | ||
+ | |||
+ | -->{{#mintydocs_topic: | ||
+ | |display name= | ||
+ | {{#if:{{{AltServiceDisplayName|}}} | ||
+ | |{{{AltServiceDisplayName}}} | ||
+ | |{{#cargo_query: | ||
+ | tables= | ||
+ | IncludedService, | ||
+ | ArticlePEServiceMetrics | ||
+ | |join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId | ||
+ | |fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |no html | ||
+ | |where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}" | ||
+ | |group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |default={{#cargo_query: | ||
+ | tables= | ||
+ | Article,MintyDocsManual,Service | ||
+ | |join on= | ||
+ | Article.Manual=MintyDocsManual.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |fields=IF(ShortName IS NULL,Service.Name,ShortName) | ||
+ | |group by=Service.Name | ||
+ | |where=Article._pageName="{{FULLPAGENAME}}" | ||
+ | |no html | ||
+ | }} | ||
+ | }} | ||
+ | }} metrics and alerts | ||
+ | |toc name={{#cargo_query: | ||
+ | tables= | ||
+ | IncludedService, | ||
+ | ArticlePEServiceMetrics | ||
+ | |join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId | ||
+ | |fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |no html | ||
+ | |where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}" | ||
+ | |group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |default={{#cargo_query: | ||
+ | tables= | ||
+ | Article,MintyDocsManual,Service | ||
+ | |join on= | ||
+ | Article.Manual=MintyDocsManual.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |fields=IF(ShortName IS NULL,Service.Name,ShortName) | ||
+ | |group by=Service.Name | ||
+ | |where=Article._pageName="{{FULLPAGENAME}}" | ||
+ | |no html | ||
+ | }} | ||
+ | }} metrics and alerts | ||
+ | }}<!-- | ||
+ | |||
+ | Defining the EPPO Header; all parameters need to be passed to it | ||
+ | -->{{EPPOHead | ||
+ | |Context=Find the metrics {{#cargo_query: | ||
+ | tables= | ||
+ | IncludedService, | ||
+ | ArticlePEServiceMetrics | ||
+ | |join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId | ||
+ | |fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}" | ||
+ | |group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |default={{#cargo_query: | ||
+ | tables= | ||
+ | Article,MintyDocsManual,Service | ||
+ | |join on= | ||
+ | Article.Manual=MintyDocsManual.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |fields=IF(ShortName IS NULL,Service.Name,ShortName) | ||
+ | |group by=Service.Name | ||
+ | |where=Article._pageName="{{FULLPAGENAME}}" | ||
+ | |no html | ||
+ | }} | ||
+ | }} exposes and the alerts defined for {{#cargo_query: | ||
+ | tables=IncludedService,ArticlePEServiceMetrics | ||
+ | |join on=IncludedService.Id=ArticlePEServiceMetrics.IncludedServiceId | ||
+ | |fields=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |where=ArticlePEServiceMetrics._pageName="{{FULLPAGENAME}}" | ||
+ | |group by=IF(IncludedService.ShortName IS NOT NULL,IncludedService.ShortName,IncludedService.Name) | ||
+ | |default={{#cargo_query: | ||
+ | tables= | ||
+ | Article,MintyDocsManual,Service | ||
+ | |join on= | ||
+ | Article.Manual=MintyDocsManual.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |fields=IF(ShortName IS NULL,Service.Name,ShortName) | ||
+ | |group by=Service.Name | ||
+ | |where=Article._pageName="{{FULLPAGENAME}}" | ||
+ | |no html | ||
+ | }} | ||
+ | }}. | ||
+ | |PageType=Article | ||
+ | }}<!-- | ||
+ | |||
+ | formatting table | ||
+ | |||
+ | --> | ||
{{{!}} | {{{!}} | ||
! '''Service''' | ! '''Service''' | ||
Line 51: | Line 170: | ||
!'''Metrics update interval''' | !'''Metrics update interval''' | ||
{{!}}- | {{!}}- | ||
− | {{!}}{{#cargo_query:tables=IncludedService|fields=IF(ShortName IS NOT NULL,ShortName,Name)|where=Id="{{{IncludedServiceId}}}"}} | + | {{!}} {{#if:{{{NoCRDsOrAnnotations|}}} |
+ | |rowspan="2"{{!}} | ||
+ | | | ||
+ | }}{{#if:{{{AltServiceDisplayName|}}} | ||
+ | |{{{AltServiceDisplayName}}} | ||
+ | |{{#cargo_query: | ||
+ | tables=IncludedService | ||
+ | |fields=IF(ShortName IS NOT NULL,ShortName,Name) | ||
+ | |where=Id="{{{IncludedServiceId}}}" | ||
+ | |default={{#cargo_query: | ||
+ | tables= | ||
+ | Article,MintyDocsManual,Service | ||
+ | |join on= | ||
+ | Article.Manual=MintyDocsManual.Manual, | ||
+ | MintyDocsManual.ServiceId=Service.Id | ||
+ | |fields=IF(ShortName IS NULL,Service.Name,ShortName) | ||
+ | |group by=Service.Name | ||
+ | |where=Article._pageName="{{FULLPAGENAME}}" | ||
+ | |no html | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
{{!}}{{{CRD|}}}{{{Annotations|}}} | {{!}}{{{CRD|}}}{{{Annotations|}}} | ||
{{!}}{{{Port|}}} | {{!}}{{{Port|}}} | ||
{{!}}{{{Endpoint|}}} | {{!}}{{{Endpoint|}}} | ||
− | {{!}}{{{MetricsUpdateInterval|}}} | + | {{!}}{{{MetricsUpdateInterval|}}}{{#if:{{{NoCRDsOrAnnotations|}}}|<br/> |
+ | {{!}}- | ||
+ | {{!}} colspan="4"{{!}}{{{NoCRDsOrAnnotations}}}|}} | ||
{{!}}} | {{!}}} | ||
+ | {{#switch:{{{AlertsDefined}}}|No=|Yes|#default= | ||
See details about: | See details about: | ||
* [[{{FULLPAGENAME}}#Metrics|{{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}} metrics]] | * [[{{FULLPAGENAME}}#Metrics|{{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}} metrics]] | ||
− | * [[{{FULLPAGENAME}}#Alerts|{{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}} alerts]] | + | * [[{{FULLPAGENAME}}#Alerts|{{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}} alerts]]}} |
{{AnchorDiv|Metrics}} | {{AnchorDiv|Metrics}} | ||
==Metrics== | ==Metrics== | ||
{{{MetricsIntro|}}} | {{{MetricsIntro|}}} | ||
{{{!}} class="sortable" | {{{!}} class="sortable" | ||
− | ! | + | ! '''Metric and description''' |
! Metric details | ! Metric details | ||
! Indicator of | ! Indicator of | ||
Line 73: | Line 216: | ||
{{AnchorDiv|Alerts}} | {{AnchorDiv|Alerts}} | ||
==Alerts== | ==Alerts== | ||
− | {{#if:{{{AlertsIntro|}}}|{{{AlertsIntro}}}|}} | + | {{#switch:{{{AlertsDefined}}}|No=No alerts are defined for {{#sub:{{MINTYDOCSMANUAL}}|0|-22}}.|Yes|#default={{#if:{{{AlertsIntro|}}}|{{{AlertsIntro}}}|}} |
{{#if:{{{PEAlert|}}}|The following alerts are defined for {{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}}. | {{#if:{{{PEAlert|}}}|The following alerts are defined for {{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}}. | ||
Line 84: | Line 227: | ||
{{{PEAlert|}}} | {{{PEAlert|}}} | ||
{{!}}} | {{!}}} | ||
− | |No alerts are defined for {{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}}.}} | + | |No alerts are defined for {{#sub:{{MINTYDOCSDISPLAYNAME}}|0|-19}}.}}}}[[Category:Linkable]]</includeonly><noinclude>[[Category:PrivateEdition]]</noinclude> |
− | |||
− | </includeonly><noinclude>[[Category:PrivateEdition]]</noinclude> |
Latest revision as of 13:54, September 9, 2022
This is the "ArticlePEServiceMetrics" template. It should be called in the following format:
{{ArticlePEServiceMetrics |IncludedServiceId= |CRD= |Annotations= |Port= |Endpoint= |MetricsIntro= |MetricsUpdateInterval= }}
Edit the page to see the template text. This template defines the table "ArticlePEServiceMetrics". View table. This template adds rows to the table "PEMonitoring", which is declared by the template PEMonitoring. View table.This template adds rows to the table "Article", which is declared by the template Article. View table.