PageSourceSearch

https://docs-website-es.netlify.app/9b28813a-facc69843f12e6bf77d5.js

js docs-website-es.netlify.app collected 2026-10-03 10:40:46 UTC 5,914 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdocs_website=self.webpackChunkdocs_website||[]).push([[817],{19856:function(e,t,a){a.r(t);var n=a(96540),s=a(33969),i=a(54572),r=a(18492),o=a(81824),l=a(6609),m=a(96805),c=a(34379),d=a(94759),u=a(91407),p=a(93448),g=a(86230),y=a(10519),h=a(74523),Y=a(52428),f=a(40906),v=a(74093),b=a(45247),w=a(36892),A=a(17437);var k={name:"1no4asi",styles:"@media (max-width: 1240px){position:static;}"},x={name:"ak4j1h",styles:"&.hidden{display:none;}"},S={name:"1rhjmb1",styles:"color:var(--secondary-text-color);font-size:1.125rem;margin-bottom:1rem"},$={name:"1tjvp5v",styles:"grid-area:'page-description'"},C={name:"fzavsu",styles:"display:grid;grid-template-areas:'page-title page-title' 'page-description page-tools' 'content page-tools';grid-template-columns:minmax(0, 1fr) 12.8125rem;grid-column-gap:2rem;@media (max-width: 1240px){grid-template-areas:'page-title' 'page-description' 'page-tools' 'content';grid-template-columns:minmax(0, 1fr);}"};const D=(e,t)=>{const a=e.name.toUpperCase(),n=t.name.toUpperCase();return a<n?-1:a>n?1:0};var z={name:"180fvzp",styles:"margin:0;list-style:none;padding-left:0;font-size:0.875rem"},N={name:"1448csx",styles:"width:1px"},j={name:"g85hdl",styles:"p:last-child{margin-bottom:0;}"},L={name:"b35ub2",styles:"font-size:0.75rem;.dark-mode &{color:var(--secondary-text-color);}"},_={name:"1v5i203",styles:"margin-left:0.5rem;opacity:0;transition:opacity 0.2s ease-out"},q={name:"5tnihr",styles:"display:inline-block;background:none!important;padding:0!important"},T={name:"3nsxpm",styles:"display:flex;align-items:center;color:var(--link-color);text-decoration:none;&:hover svg{opacity:1;}"},I={name:"1jg32sl",styles:"width:25%;word-break:break-word"},P={name:"1bmnxg7",styles:"white-space:nowrap"},U={name:"1mlp49k",styles:"font-size:0.75rem;margin-right:0.5rem"},B={name:"8dk3vg",styles:"margin-bottom:1rem"},E={name:"bjn8wh",styles:"position:relative"},H={name:"gmn5oq",styles:"position:sticky;top:var(--global-header-height);background:var(--primary-background-color);padding:1rem 0;margin-right:-1px;&:hover svg{opacity:1;}@media (max-width: 1240px){position:initial;}"},M={name:"1j3px7c",styles:"&:not(:last-child){margin-bottom:2rem;}"};const R=(0,n.memo)((e=>{let{location:t,event:a,searchedAttribute:n,filteredAttribute:s}=e,i=[];return i=n?a.attributes.filter((e=>{let{name:t}=e;return t.toLowerCase().includes(n.toLowerCase())})).sort(D):s?a.attributes.filter((e=>{let{name:t}=e;return t===s})).sort(D):a.attributes.sort(D),(0,A.Y)("div",{key:`${a.name}-section`,css:M},(0,A.Y)("h2",{css:H},(0,A.Y)("div",{css:E},a.name,(0,A.Y)(m.A,{to:`${t.pathname}?event=${a.name}`,className:"anchor after"},(0,A.Y)(l.A,{name:"fe-link-2",focusable:!1,size:"1rem"})))),(0,A.Y)("div",{"data-swiftype-index":"false",css:B},(0,A.Y)("span",{css:U},"Data ",(r="source",1===a.dataSources.length?r:`${r}s`),":"),(0,A.Y)(u.A,null,a.dataSources.map((e=>(0,A.Y)(d.A,{as:m.A,to:`${t.pathname}?dataSource=${e.name}`,key:e.name},e.name))))),(0,A.Y)("div",{"data-swiftype-index":"false",dangerouslySetInnerHTML:{__html:a.definition}}),(0,A.Y)(c.A,{"data-swiftype-index":"false"},(0,A.Y)("thead",null,(0,A.Y)("tr",null,(0,A.Y)("th",{css:P},"Attribute name"),(0,A.Y)("th",null,"Definition"),(0,A.Y)("th",null,"Data types"))),(0,A.Y)("tbody",null,i.map((e=>{var n,s;const i=new URLSearchParams;return i.set("event",a.name),i.set("attribute",e.name),(0,A.Y)("tr",{key:`${a.name}-${e.name}`},(0,A.Y)("td",{css:I},(0,A.Y)(m.A,{to:`${t.pathname}?${i.toString()}`,css:T},(0,A.Y)("code",{css:q},e.name),(0,A.Y)(l.A,{name:"fe-link-2",size:"1rem",focusable:!1,css:_})),(null===(n=e.units)||void 0===n?void 0:n.label)&&(0,A.Y)("div",{css:L},null===(s=e.units)||void 0===s?void 0:s.label)),(0,A.Y)("td",{key:`${a.name}-${e.name}-def}`,css:j,dangerouslySetInnerHTML:{__html:e.definition}}),(0,A.Y)("td",{css:N},(0,A.Y)("ul",{css:z},e.events.map((a=>(0,A.Y)("li",{key:`${e.name}-${a}`},(0,A.Y)(m.A,{to:`${t.pathname}?event=${a}`},a)))))))})))));var r}));t.default=e=>{let{location:t}=e;const{0:a,1:l}=(0,n.useState)([]),{0:c,1:d}=(0,n.useState)(null),{0:u,1:D}
1=(0,n.useState)(null),{queryParams:z}=(0,g.A)(),{locale:N}=(0,p.A)();"undefined"!=typeof window&&"object"==typeof newrelic&&window.newrelic.setCustomAttribute("pageType","Interactive/AttributeDictionary");const j="en"===N?b:"fr"===N?w:b;(0,n.useEffect)((()=>{let e=j;if(z.has("dataSource")){const t=z.get("dataSource");e=e.filter((e=>e.dataSources.map((e=>e.name)).some((e=>e.includes(t)))))}if(z.has("event")){const t=z.get("event");e=e.filter((e=>e.name===t))}if(z.has("attributeSearch")){const t=z.get("attributeSearch").toLowerCase();e=e.filter((e=>e.attributes.some((e=>{let{name:a}=e;return a.toLowerCase().includes(t)}))))}l(e.map((e=>e.name))),D(z.get("attributeSearch")),d(z.get("attribute"))}),[z]);const{t:L}=(0,r.B)();return(0,A.Y)(v.A,{eventName:"attributeDictionary"},(0,A.Y)(Y.A,{location:t,type:y.Q.BASIC_PAGE.default,title:"New Relic data dictionary"}),(0,A.Y)("div",{css:C},(0,A.Y)(f.A,null,L("strings.dataDictionary.title")),(0,A.Y)("div",{css:$},(0,A.Y)("div",{css:S},(0,A.Y)("p",null,(0,A.Y)(s.x,{i18nKey:"strings.dataDictionary.intro",components:{1:(0,A.Y)(m.A,{to:"https://docs.newrelic.com/docs/nrql/get-started/introduction-nrql-how-nrql-works/"})}})),(0,A.Y)("p",null,L("strings.dataDictionary.introNot.0")),(0,A.Y)("ul",null,(0,A.Y)("li",null,L("strings.dataDictionary.introNot.1")),(0,A.Y)("li",null,L("strings.dataDictionary.introNot.2")),(0,A.Y)("li",null,L("strings.dataDictionary.introNot.3")))),(0,A.Y)("hr",null)),(0,A.Y)(i.A.Content,null,j.map((e=>(0,A.Y)("div",{key:`${e.name}-div`,className:a.includes(e.name)?"":"hidden",css:x},(0,A.Y)(R,{location:t,event:e,filteredAttribute:c,searchedAttribute:u}))))),(0,A.Y)(i.A.PageTools,{css:k},(0,A.Y)(h.A,{events:j,location:t}),(0,A.Y)(o.A,{pageTitle:"Attribute dictionary"}))))}}}]);
2//# sourceMappingURL=9b28813a-facc69843f12e6bf77d5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.