PageSourceSearch

https://docs-website-fr.netlify.app/component---src-pages-install-…onfig-agent-name-js-d9d56318bdeb01d6b719.js

js docs-website-fr.netlify.app collected 2026-10-03 10:40:41 UTC 14,798 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdocs_website=self.webpackChunkdocs_website||[]).push([[227],{43775:function(e,t,n){n.d(t,{A:function(){return A}});n(96540);var o=n(2643),a=n(37567),i=n(58168),r=n(80045),s=n(6609),l=n(96805),d=n(36248),c=n(17586),p=n(28007),u=n(17437);const m=["fileRelativePath","onClick","instrumentation"];var g={name:"1twd3r0",styles:"font-size:1rem;margin-right:0.5rem"},v={name:"rkiwex",styles:"font-size:1rem"};var h=e=>{let{fileRelativePath:t,onClick:n,instrumentation:a}=e,h=(0,r.A)(e,m);const{t:f}=(0,c.A)(),y=(0,d.A)(n,{eventName:"editThisPageClick",category:"EditPage",component:null==a?void 0:a.component}),{site:{siteMetadata:{repository:b,branch:A}}}=(0,p.useStaticQuery)("3009400645");return(0,u.Y)(o.A,(0,i.A)({},h,{as:l.A,to:`${b}/blob/${A}/${t||""}`,onClick:y,css:v}),(0,u.Y)(s.A,{name:"fe-edit",css:g}),f("github.editPage"))},f=n(93448);var y={name:"1svhly8",styles:"width:100%;height:3rem;&:hover{color:var(--secondary-text-color);}"},b={name:"1yofo1d",styles:"margin:0;padding:0;border:none"};var A=e=>{let{className:t,fileRelativePath:n}=e;const{locale:i}=(0,f.A)();return(0,u.Y)(a.A.Section,{className:t,css:b},n&&"en"===i&&(0,u.Y)(h,{fileRelativePath:n,variant:o.A.VARIANT.OUTLINE,instrumentation:{component:"ContributingGuidelines"},css:y}))}},54572:function(e,t,n){n.d(t,{A:function(){return m}});n(96540);var o=n(27051),a=n(82519),i=n(80669),r=n(97736),s=n(17437);var l={name:"c1lcoh",styles:"position:absolute;top:0;bottom:0;left:0;right:0;padding:var(--site-content-padding);overflow:auto"},d={name:"1z03zi3",styles:"grid-area:sidebar;border-right:1px solid var(--divider-color);height:calc(100vh - var(--global-header-height));position:sticky;top:var(--global-header-height);@media screen and (max-width: 760px){display:none;}"};var c=e=>{let{children:t,className:n}=e;return(0,s.Y)("aside",{"data-swiftype-index":!1,css:d,className:n},(0,s.Y)("div",{css:l},t))};var p={name:"1lbjosz",styles:"display:grid;grid-template-columns:var(--sidebar-width) minmax(0, 1fr);grid-template-areas:'sidebar main' 'sidebar footer';grid-template-rows:1fr auto;min-height:calc(100vh - var(--global-header-height));@media screen and (max-width: 760px){grid-template-columns:minmax(0, 1fr);grid-template-areas:'main' 'footer';grid-template-rows:unset;}"};const u=e=>{let{className:t,children:n}=e;return(0,s.Y)("div",{css:p,className:t},n)};u.Content=o.A,u.Main=i.A,u.PageTools=r.A,u.Footer=a.A,u.Sidebar=c;var m=u},74093:function(e,t,n){n.d(t,{A:function(){return u}});var o=n(96540),a=n(54171),i=n(77387),r=n(96),s=n(17437);const l=(0,r.A)("div",{target:"e1izzndv0"})({name:"1axn5ie",styles:"display:flex;justify-content:center;align-items:center;border-radius:4px;background:var(--secondary-background-color);height:100%;width:calc(100vw - var(--sidebar-width) - 3rem);h3{color:var(--secondary-text-color);}"});var d=()=>(0,s.Y)(l,null,(0,s.Y)("h3",null,"Oops! Something went wrong."));let c=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).state={hasError:!1},t}(0,i.A)(t,e),t.getDerivedStateFromError=function(){return{hasError:!0}};var n=t.prototype;return n.componentDidCatch=function(e,t){this.props.addPageAction({error:e,errorInfo:t,category:"PageErrored",eventName:this.props.eventName})},n.render=function(){return this.state.hasError?(0,s.Y)(d,null):this.props.children},t}(o.Component);var p=c;var u=e=>{let{eventName:t,children:n}=e;return(0,s.Y)(p,{addPageAction:a.b,eventName:t},n)}},18525:function(e,t,n){var o=n(58168),a=(n(96540),n(17437));var i={name:"v50zng",styles:"grid-area:page-title;&::before{content:'';display:block;margin-top:-5px;}"};t.A=e=>(0,a.Y)("h1",(0,o.A)({css:i},e))},59535:function(e,t,n){n.r(t),n.d(t,{default:function(){return le}});var o=n(54506),a=n(64467),i=n(96540),r=n(86230),s=n(54171),l=n(54572),d=n(6746),c=n(43775),p=n(5919),u=n(81824),m=n(18525),g=n(3742),v=n(67066),h=n(58168),f=n(72155),y=n(17437),b=n(2643),A=n(28007);var w=e=>{let{className:t,name:n}=e;const{allFile:{nodes:o}}=(0,A.useStaticQuery)("3353503303"),a=o.find((e=>e.name===n));return(0,y.Y)("img",{className:t,alt:a.name,src:a.publicURL})};var x={name:"ol9ofu",styles:"font-size:0.875rem"},Y={name:"1r15max",styles:"margin-bottom:0;max-height:3rem;max-width:80%"};var N=e=>{let{displayName:t,value:n,logo:o,onChange:a,isSelected:i}=e;return(0,y.Y)(b.A,{role:"option","aria-selected":i,onClick:()=>a(n),variant:b.A.VARIANT.OUTLINE,css:(0,y.AH)("display:flex;flex-direction:column;align-items:center;text-align:center;padding:0.5rem;color:var(--system-text-primary-light);border:",i?"1.25px solid var(--attention-notification-info)":" 1px solid #3a444b",";background:var(--system-background-app-light);.light-mode &{border:",i?"1.25px solid var(--attention-notification-info)":"1px solid var(--system-border-strong-light)",";}div{white-space:normal;line-height:1.2;}","")},o&&(0,y.Y)(w,{name:o,css:Y}),(0,y.Y)("div",{css:x},t))},T=n(96805),O=n(6609),_=n(60404);var C=n(2739).Bd?i.useLayoutEffect:i.useEffect,E=n(80045),k=n(14212);const P=["name","size","style"],I=e=>{let{name:t,size:n,style:o}=e,a=(0,E.A)(e,P);const i=k.A[t.split("fe-").pop()];return(0,y.Y)(_.animated.svg,(0,h.A)({},a,{style:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",css:(0,y.AH)("fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;width:",n,";height:",n,";","")}),i)};I.defaultProps={size:"1em"};var S=I;const j=n.g.ResizeObserver||function(){};var z={name:"1dvcxr3",styles:"padding:1rem"},G={name:"d3v9zr",styles:"overflow:hidden"}
1,L={name:"1o9hz83",styles:"display:block;color:inherit!important"},R={name:"uaob3j",styles:"margin-left:0.5rem"},$={name:"1j6h5xb",styles:"display:flex;align-items:center;flex:1;position:relative;font-size:1rem;margin-top:0;margin-bottom:0;text-align:left;font-weight:400"},D={name:"1opn34h",styles:"--color-transition-duration:0.3s;--color-transition-easing:ease-out;cursor:pointer;padding:0.75rem;display:flex;align-items:center;transition:background var(--color-transition-duration) var(--color-transition-easing);border:none;background:transparent;code{transition:background var(--color-transition-duration) var(--color-transition-easing);}&:hover,&:focus{background:var(--primary-hover-color);outline:none;.anchor svg{opacity:1;}}"},q={name:"1iqeurl",styles:"display:flex;flex-direction:column;border-radius:3px;border:1px solid var(--border-color);box-shadow:var(--shadow-1);.dark-mode &{box-shadow:var(--shadow-2);}"};const F=e=>{let{label:t,id:n,children:o,isOpen:a,onClick:r,placeholder:s}=e;const{0:l,1:d}=(0,i.useState)(),{0:c,1:p}=(0,i.useState)(0),{height:u}=(0,_.useSpring)({height:a?c:0}),m=(0,_.useSpring)({transform:a?"rotate(90deg)":"rotate(0deg)",color:"var(--primary-text-color)"}),g=function(e){var t=(0,i.useRef)();return(0,i.useEffect)((function(){t.current=e})),t.current}(a),v=(0,i.useMemo)((()=>new j((e=>{let[t]=e;const{height:n}=t.target.getBoundingClientRect();p(n)}))),[]);return C((()=>(l&&v.observe(l),()=>v.disconnect())),[l]),(0,y.Y)("div",{css:q},(0,y.Y)("button",{onClick:r,type:"button",css:D},(0,y.Y)("h5",{id:n,css:$},(0,y.Y)("span",null,null!=t?t:s),n&&(0,y.Y)(T.A,{to:`#${n}`,className:"anchor",css:R},(0,y.Y)(O.A,{name:"fe-link-2",css:L}))),(0,y.Y)(S,{style:m,name:"fe-chevron-right"})),(0,y.Y)(_.animated.div,{style:{height:a&&g?"auto":u},css:G},(0,y.Y)("div",{ref:d,"aria-hidden":!a,css:z},o)))};F.defaultProps={isOpen:!0};var U=F;var B={name:"jf0g0w",styles:"display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));grid-gap:1rem"},H={name:"akdqam",styles:"margin-top:1rem"};var M=e=>{let{options:t,onChange:n,value:o,label:a,placeholder:r,defaultOpen:s=!0}=e;const{0:l,1:d}=(0,i.useState)(s),c=(0,f.A)(o);(0,i.useEffect)((()=>{l&&null!==o&&null===c&&d(!1)}),[o,l,c]);const p=o&&t.find((e=>e.value===o));return(0,y.Y)("div",{css:H},(0,y.Y)("h4",null,a),(0,y.Y)(U,{label:null==p?void 0:p.displayName,placeholder:r,onClick:()=>d(!l),isOpen:l},(0,y.Y)("div",{role:"listbox",css:B},t.map((e=>(0,y.Y)(N,(0,h.A)({key:`${a}-${e.displayName}`,onChange:e=>{n(e),d(!1)},isSelected:o===e.value},e)))))))};var Q={name:"hltamm",styles:"margin-top:2rem"};var V=e=>{let{selectOptions:t,mdx:n,onChange:o,showGuided:a}=e;const{body:i}=n;return(0,y.Y)("div",null,t.map((e=>(0,y.Y)(M,{key:`${e.label}${e.optionType}`,options:e.options,onChange:t=>o(t,e),value:e.value,label:e.label,placeholder:e.placeholder,defaultOpen:!e.value}))),(0,y.Y)("div",{css:Q},a&&i&&(0,y.Y)(g.A,{body:i})))};var W=e=>{let{optionType:t,selectOptions:n,mdx:o,onChange:a,showGuided:i}=e;const r=n.find((e=>e.optionType===t)),{body:s}=o;return(0,y.Y)("div",null,(0,y.Y)(M,{label:r.label,onChange:e=>a(e,r),value:r.value,options:r.options,placeholder:r.placeholder,defaultOpen:!r.value}),i&&s&&(0,y.Y)(g.A,{body:s}))};var X=e=>{let{mdx:t,className:n}=e;return(0,y.Y)("div",{className:n},(null==t?void 0:t.body)&&(0,y.Y)(g.A,{body:null==t?void 0:t.body}))},J=n(52428),K=n(10519),Z=n(74093);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){(0,a.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ne=e=>e.trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/,"-").replace(/[^a-z0-9-]/g,"");var oe={name:"13e2c49",styles:"gap:0;@media (max-width: 1240px){display:none;}"},ae={name:"8clgg4",styles:"@media (min-width: 1240px){display:none;}"},ie={name:"1yp7290",styles:"margin-bottom:2rem"},re={name:"1yp7290",styles:"margin-bottom:2rem"},se={name:"tq8wg6",styles:"display:grid;
1grid-template-areas:'mt-disclaimer mt-disclaimer' 'page-title page-title' 'content page-tools';grid-template-columns:minmax(0, 1fr) 12.8125rem;grid-column-gap:2rem;padding:0;@media screen and (max-width: 1240px){grid-template-areas:'mt-disclaimer' 'page-title' 'content' 'page-tools';grid-template-columns:minmax(0, 1fr);}"};var le=e=>{var t;let{data:n,location:a}=e;const{installConfig:h={}}=n,{title:f,intro:b,steps:A,appInfo:w,agentConfigFile:x,whatsNext:Y,agentName:N,metaDescription:T}=h,{queryParams:O,setQueryParam:_,deleteQueryParam:C}=(0,r.A)(),{0:E,1:k}=(0,i.useState)(!1),{0:P,1:I}=(0,i.useState)(0),{0:S,1:j}=(0,i.useState)([]),{0:z,1:G}=(0,i.useState)(!1);"undefined"!=typeof window&&"object"==typeof newrelic&&(window.newrelic.setCustomAttribute("pageType","Interactive/Install"),window.newrelic.setCustomAttribute("agentName",N));const L=w.map((e=>te(te({},e),{},{value:O.has(e.optionType)?O.get(e.optionType):null}))),R=e=>{let t=e.split("");return t[0]=t[0].toUpperCase(),t=t.join(""),t},$=(e,t)=>{if(null!==e||void 0!==e){_(t.optionType,e);const n=t.options.some((t=>t.value===e&&!0===t.recommendedGuided));k(n),(0,s.b)({eventName:"appInfoOptionSelected",category:`${R(t.optionType)}AppInfoOptionSelect`,value:e,path:a.pathname,agentName:N,recommendedGuided:n})}else C(t.optionType,e)},D=e=>{let{name:t}=e;S.includes(t)||((0,s.b)({eventName:"agentConfigFileUpdated",category:`${R(t)}AgentConfigFileUpdated`,key:t,path:a.pathname,agentName:N}),j([].concat((0,o.A)(S),[t])))},q=e=>{I(e)},F=e=>{let{optionType:t,options:n}=e;if(O.has(t)){const e=O.get(t);return n.some((t=>{let{value:n}=t;return n===e}))}return!1},U=e=>{let{mdx:t,skip:n}=e;if(n)return null;const{frontmatter:o,body:a}=t,{componentType:i}=o;if("agentConfig"===i){var r;const{inputOptions:e,fileName:n}=o;return(0,y.Y)(v.A,{config:null==x||null===(r=x.internal)||void 0===r?void 0:r.content,inputOptions:e,fileName:n,tipMdx:t,onChange:D})}if("appInfoConfig"===i)return(0,y.Y)(V,{showGuided:E,onChange:$,selectOptions:L,mdx:t});if("appInfoConfigOption"===i){const{optionType:e}=o;return(0,y.Y)(W,{showGuided:E,onChange:$,selectOptions:L,optionType:e,mdx:t})}return a&&(0,y.Y)(g.A,{body:a})},B=A.reduce(((e,t,n)=>{var a,i;const{content:r,step:s}=(e=>{const{overrides:t}=e;let n=!1;if(t)for(const o of t){const{selectedOptions:t,isConditionalStep:a}=o,i=t.every(F);if(i&&a)return{content:U(e),step:e};if(i)return{content:U(o),step:o};a&&(n=!0)}return n?{content:null}:{content:U(e),step:e}})(t);if(null===r)return e;const{mdx:l}=s;return[].concat((0,o.A)(e),[{content:r,step:s,stepHeadings:{id:`${ne(null==l||null===(a=l.frontmatter)||void 0===a?void 0:a.headingText)}-${n+1}`,text:null==l||null===(i=l.frontmatter)||void 0===i?void 0:i.headingText}}])}),[]),H=B.map((e=>{let{stepHeadings:t}=e;return t}));return(0,i.useEffect)((()=>{G(!0)}),[]),(0,y.Y)(Z.A,{eventName:"install"},(0,y.Y)(J.A,{location:a,title:f,description:T,type:K.Q.INTERACTIVE_INSTALL_PAGE}),(0,y.Y)(l.A.Main,{css:se},(0,y.Y)(l.A.Content,null,(0,y.Y)(m.A,null,f),(0,y.Y)("div",{css:re},(0,y.Y)(g.A,{body:null===(t=b.mdx)||void 0===t?void 0:t.body})),(0,y.Y)("div",null,z?(0,y.Y)(d.A,null,B.map(((e,t)=>{var n;let{content:o,step:{mdx:a}}=e;const{descriptionText:i,headingText:r}=null==a?void 0:a.frontmatter;return(0,y.Y)(d.A.Step,{number:t+1,title:r,active:P===t,key:t,onMouseOver:()=>q(t),onFocus:()=>q(t),id:`${ne(null===(n=a.frontmatter)||void 0===n?void 0:n.headingText)}-${t+1}`},i&&(0,y.Y)("p",{css:ie},i),o)}))):null),(0,y.Y)(X,{mdx:Y.mdx}),(0,y.Y)(c.A,{css:ae})),(0,y.Y)(l.A.PageTools,{css:oe},(0,y.Y)(c.A,null),(0,y.Y)(p.A,{headings:H}),(0,y.Y)(u.A,{pageTitle:f}))))}},10519:function(e,t,n){n.d(t,{Q:function(){return o},Y:function(){return a}});const o={BASIC_PAGE:{default:"page",apiDoc:"api_doc",troubleshooting:"troubleshooting_doc"},LANDING_PAGE:"term_page_landing_page",RELEASE_NOTE:"release_notes",WHATS_NEW:"nr1_announcement",EOL:"nr1_announcement",ATTRIBUTE_DEFINITION:"attribute_definition",EVENT_DEFINITION:"event_definition",API_LANDING_PAGE:"term_page_api_menu",TABLE_OF_CONTENTS:"views_page_menu",AUTO_INDEX_PAGE:"views_page_menu",WHATS_NEW_PAGE:"views_page_content",EOL_PAGE:"views_page_content",INTERACTIVE_INSTALL_PAGE:"interactive_install_page"}
1,a={q1:"The information on the docs site is credible.",q2:"The information in the docs is trustworthy.",q3:"The docs site is easy to use.",q4:"The docs site has a clean and simple presentation.",q5:"I will likely visit the docs site in the future.",q6:"It's easy to navigate within the docs.",q7:"I found the docs site to be attractive.",q8:"New Relic's docs read as if a friend is explaining things to me."}},2739:function(e,t,n){n.d(t,{Bd:function(){return o}});var o="undefined"!=typeof window}}]);
2//# sourceMappingURL=component---src-pages-install-install-config-agent-name-js-d9d56318bdeb01d6b719.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.