All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.bb8c8232-212.d77c34586a317c59e34d.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-212.d77c34586a317c59e34d.js","mappings":"uQA2BA,MAAMA,KAAY,WAAO,eAAa;AAAA;AAAA,EAIhCC,KAAe,WAAO,QAAM,EAAE,CAAC,CAAE,MAAAC,CAAM,OAAM;AAAA,iBAClCA,EAAM,MAAM,OAAO,UAAU;AAAA,eAC/BA,EAAM,MAAM,KAAK,UAAU;AAAA,WAC/BA,EAAM,OAAO,QAAQ,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAUxC,MAAqBA,CAAK,CAAC;AAAA;AAAA;AAAA;AAAA,aAIpBA,EAAM,OAAO,OAAO,WAAW;AAAA;AAAA,SAEtC,MAAsBA,CAAK,CAAC;AAAA;AAAA;AAAA;AAAA,WAI1B,MAAsBA,CAAK,CAAC;AAAA;AAAA,CAEnC,EAEDD,EAAa,YAAc,SAyC3B,QAtBuB,CAAC,CAAE,MAAAE,CAAM,IAC9B,gBAACH,EAAA,KACEG,EAAM,IAAI,CAAC,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,eAAAC,CAAe,IAChDH,EAKH,gBAAC,KAAW,CAAC,YAAaE,GAAA,KAAAA,EAAe,CAAC,EAAG,IAAKF,CAAA,EAChD,gBAAC,IAAa,CAAC,GAAIA,EAAM,eAAgB,CAACG,CAAA,EACxC,gBAACN,EAAA,CAAa,QAAQ,QACpB,gBAAC,KAAqB,KACnBI,CACH,CACF,CACF,CACF,EAZO,IAcV,CACH,C,uJCjDF,QAxB2B,IAAiB,CAC1C,UAAW,CACT,UAAW,WAAiB,WAC5B,gBAAiB,UACnB,EAEA,iBAAkB,CAChB,MAAO,CACL,gBAAiB,MACnB,CACF,EAEA,QAAS,CACP,KAAM,CAAE,UAAAG,EAAW,gBAAAC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EC,GAAaA,EACbC,GACC,IAAiB,MAAM,yBAAyBQ,EAAQ,IAAI,yBAAyBR,EAAM,OAAO,GAChG,8BAA8B,CAEpC,EAEFS,EAAkB,SAAS,QAAQX,CAAO,CAC5C,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/components/common/PageNavigation.tsx","webpack://graylog-web-interface/./src/components/sidecars/common/CollectorIndicator.jsx","webpack://graylog-web-interface/./src/components/sidecars/common/OperatingSystemIcon.tsx","webpack://graylog-web-interface/./src/components/sidecars/common/SidecarsPageNavigation.tsx","webpack://graylog-web-interface/./src/stores/sidecars/CollectorConfigurationsStore.js","webpack://graylog-web-interface/./src/stores/sidecars/CollectorsStore.js"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Button, ButtonToolbar } from 'components/bootstrap';\nimport { LinkContainer } from 'components/common/router';\nimport { IfPermitted } from 'components/common';\nimport NavItemStateIndicator, {\n  hoverIndicatorStyles,\n  activeIndicatorStyles,\n} from 'components/common/NavItemStateIndicator';\n\nconst Container = styled(ButtonToolbar)`\n  margin-bottom: 10px;\n`;\n\nconst StyledButton = styled(Button)(({ theme }) => css`\n  font-family: ${theme.fonts.family.navigation};\n  font-size: ${theme.fonts.size.navigation};\n  color: ${theme.colors.variant.darker.default};\n  \n  &:hover,\n  &:focus {\n    background: inherit;\n    text-decoration: none;\n  }\n\n  &:hover {\n    color: inherit;\n    ${hoverIndicatorStyles(theme)}\n  }\n\n  &.active {\n    color: ${theme.colors.global.textDefault};\n\n    ${activeIndicatorStyles(theme)}\n\n    &:hover,\n    &:focus {\n      ${activeIndicatorStyles(theme)}\n    }\n`);\n\nStyledButton.displayName = 'Button';\n\ntype Props = {\n  /**\n   * List of nav items. Define permissions, if the item should only be displayed for users with specific permissions.\n   * By default, an item is active if the current URL starts with the item URL.\n   * If you only want to display an item as active only when its path matches exactly, set `exactPathMatch` to true.\n   */\n  items: Array<{\n    title: string,\n    path: string,\n    permissions?: string | Array\n    exactPathMatch?: boolean,\n  }>\n}\n\n/**\n * Simple tab navigation to allow navigating to subareas of a page.\n */\nconst PageNavigation = ({ items }: Props) => (\n  \n    {items.map(({ path, title, permissions, exactPathMatch }) => {\n      if (!path) {\n        return null;\n      }\n\n      return (\n        \n          \n            \n              \n                {title}\n              \n            \n          \n        \n      );\n    })}\n  \n);\n\nexport default PageNavigation;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport PropTypes from 'prop-types';\nimport upperFirst from 'lodash/upperFirst';\n\nimport OperatingSystemIcon from './OperatingSystemIcon';\n\nconst CollectorIndicator = createReactClass({\n  propTypes: {\n    collector: PropTypes.string.isRequired,\n    operatingSystem: PropTypes.string,\n  },\n\n  getDefaultProps() {\n    return {\n      operatingSystem: undefined,\n    };\n  },\n\n  render() {\n    const { collector, operatingSystem } = this.props;\n\n    return (\n      \n         {collector}\n        {operatingSystem &&  on {upperFirst(operatingSystem)}}\n      \n    );\n  },\n});\n\nexport default CollectorIndicator;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport { Icon } from 'components/common';\nimport BrandIcon from 'components/common/BrandIcon';\n\nconst Container = styled.div`\n  display: inline-block;\n  vertical-align: middle;\n  margin-right: 5px;\n  margin-left: 2px;\n`;\n\ntype Props = {\n  operatingSystem: string,\n};\n\nconst matchIcon = (os: string) => {\n  if (os.includes('darwin') || os.includes('mac os')) {\n    return {\n      iconName: 'apple',\n      iconType: 'brand',\n    } as const;\n  }\n\n  if (os.includes('linux')) {\n    return {\n      iconName: 'linux',\n      iconType: 'brand',\n    } as const;\n  }\n\n  if (os.includes('win')) {\n    return {\n      iconName: 'windows',\n      iconType: 'brand',\n    } as const;\n  }\n\n  if (os.includes('freebsd')) {\n    return {\n      iconName: 'freebsd',\n      iconType: 'brand',\n    } as const;\n  }\n\n  return {\n    iconName: 'help',\n    iconType: 'default',\n  } as const;\n};\n\nconst OperatingSystemIcon = ({ operatingSystem }: Props) => {\n  const { iconName, iconType } = matchIcon(operatingSystem.trim().toLowerCase());\n\n  return (\n    \n      {iconType === 'brand'\n        ? \n        : }\n    \n  );\n};\n\nOperatingSystemIcon.propTypes = {\n  operatingSystem: PropTypes.string,\n};\n\nOperatingSystemIcon.defaultProps = {\n  operatingSystem: undefined,\n};\n\nexport default OperatingSystemIcon;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\n\nimport PageNavigation from 'components/common/PageNavigation';\nimport Routes from 'routing/Routes';\nimport { Row } from 'components/bootstrap';\n\nconst NAV_ITEMS = [\n  { title: 'Overview', path: Routes.SYSTEM.SIDECARS.OVERVIEW, exactPathMatch: true },\n  { title: 'Administration', path: Routes.SYSTEM.SIDECARS.ADMINISTRATION },\n  { title: 'Configuration', path: Routes.SYSTEM.SIDECARS.CONFIGURATION },\n  { title: 'Failure Tracking', path: Routes.SYSTEM.SIDECARS.FAILURE_TRACKING },\n];\n\nconst SidecarsPageNavigation = () => (\n  \n    \n  \n);\n\nexport default SidecarsPageNavigation;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\nimport URI from 'urijs';\nimport merge from 'lodash/merge';\n\nimport * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const CollectorConfigurationsActions = singletonActions(\n  'core.CollectorConfigurations',\n  () => Reflux.createActions({\n    all: { asyncResult: true },\n    list: { asyncResult: true },\n    getConfiguration: { asyncResult: true },\n    getConfigurationSidecars: { asyncResult: true },\n    createConfiguration: { asyncResult: true },\n    updateConfiguration: { asyncResult: true },\n    renderPreview: { asyncResult: true },\n    copyConfiguration: { asyncResult: true },\n    delete: { asyncResult: true },\n    validate: { asyncResult: true },\n  }),\n);\n\nexport const CollectorConfigurationsStore = singletonStore(\n  'core.CollectorConfigurations',\n  () => Reflux.createStore({\n    listenables: [CollectorConfigurationsActions],\n    sourceUrl: '/sidecar',\n    configurations: undefined,\n    pagination: {\n      page: undefined,\n      pageSize: undefined,\n      total: undefined,\n    },\n    total: undefined,\n    paginatedConfigurations: undefined,\n    query: undefined,\n\n    getInitialState() {\n      return {\n        configurations: this.configurations,\n        query: this.query,\n        total: this.total,\n        pagination: this.pagination,\n        paginatedConfigurations: this.paginatedConfigurations,\n      };\n    },\n\n    propagateChanges() {\n      this.trigger({\n        configurations: this.configurations,\n        query: this.query,\n        total: this.total,\n        pagination: this.pagination,\n        paginatedConfigurations: this.paginatedConfigurations,\n      });\n    },\n\n    _fetchConfigurations({ query, page, pageSize }) {\n      const baseUrl = `${this.sourceUrl}/configurations`;\n      const search = {\n        query: query,\n        page: page,\n        per_page: pageSize,\n      };\n\n      const uri = URI(baseUrl).search(search).toString();\n\n      return fetch('GET', URLUtils.qualifyUrl(uri));\n    },\n\n    all() {\n      const promise = this._fetchConfigurations({ pageSize: 0 });\n\n      promise\n        .then(\n          (response) => {\n            this.configurations = response.configurations;\n            this.propagateChanges();\n\n            return response.configurations;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collector configurations failed with status: ${error}`,\n              'Could not retrieve configurations');\n          },\n        );\n\n      CollectorConfigurationsActions.all.promise(promise);\n    },\n\n    list({ query = '', page = 1, pageSize = 10 }) {\n      const promise = this._fetchConfigurations({ query: query, page: page, pageSize: pageSize });\n\n      promise\n        .then(\n          (response) => {\n            this.query = response.query;\n\n            this.pagination = {\n              page: response.pagination.page,\n              pageSize: response.pagination.per_page,\n              total: response.pagination.total,\n            };\n\n            this.total = response.total;\n            this.paginatedConfigurations = response.configurations;\n            this.propagateChanges();\n\n            return response.configurations;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collector configurations failed with status: ${error}`,\n              'Could not retrieve configurations');\n          },\n        );\n\n      CollectorConfigurationsActions.list.promise(promise);\n    },\n\n    refreshList() {\n      this.list({ query: this.query, page: this.page, pageSize: this.pageSize });\n    },\n\n    getConfiguration(configurationId) {\n      const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/${configurationId}`));\n\n      promise.catch((error) => {\n        let errorMessage = `Fetching Configuration failed with status: ${error}`;\n\n        if (error.status === 404) {\n          errorMessage = `Unable to find a Configuration with ID <${configurationId}>, please ensure it was not deleted.`;\n        }\n\n        UserNotification.error(errorMessage, 'Could not retrieve Configuration');\n      });\n\n      CollectorConfigurationsActions.getConfiguration.promise(promise);\n    },\n\n    getConfigurationSidecars(configurationId) {\n      const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/${configurationId}/sidecars`));\n\n      promise.catch((error) => {\n        let errorMessage = `Fetching Configuration failed with status: ${error}`;\n\n        if (error.status === 404) {\n          errorMessage = `Unable to find a Configuration with ID <${configurationId}>, please ensure it was not deleted.`;\n        }\n\n        UserNotification.error(errorMessage, 'Could not retrieve Configuration');\n      });\n\n      CollectorConfigurationsActions.getConfigurationSidecars.promise(promise);\n    },\n\n    renderPreview(template) {\n      const requestTemplate = {\n        template: template,\n      };\n\n      const promise = fetch(\n        'POST',\n        URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/render/preview`),\n        requestTemplate,\n      );\n\n      promise\n        .catch(\n          (error) => {\n            UserNotification.error(`Fetching configuration preview failed with status: ${error}`,\n              'Could not retrieve preview');\n          },\n        );\n\n      CollectorConfigurationsActions.renderPreview.promise(promise);\n    },\n\n    createConfiguration(configuration) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/configurations`);\n      const method = 'POST';\n\n      const promise = fetch(method, url, configuration);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', 'Configuration successfully created');\n\n          return response;\n        }, (error) => {\n          UserNotification.error(error.status === 400 ? error.responseMessage : `Creating configuration failed with status: ${error.message}`,\n            'Could not save configuration');\n        });\n\n      CollectorConfigurationsActions.createConfiguration.promise(promise);\n    },\n\n    updateConfiguration(configuration) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/${configuration.id}`);\n\n      const promise = fetch('PUT', url, configuration);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', 'Configuration successfully updated');\n          this.refreshList();\n\n          return response;\n        }, (error) => {\n          UserNotification.error(`Updating Configuration failed: ${error.status === 400 ? error.responseMessage : error.message}`,\n            `Could not update Configuration ${configuration.name}`);\n        });\n\n      CollectorConfigurationsActions.updateConfiguration.promise(promise);\n    },\n\n    copyConfiguration(configurationId, name) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/${configurationId}/${name}`);\n      const method = 'POST';\n\n      const promise = fetch(method, url);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', `Configuration \"${name}\" successfully copied`);\n          this.refreshList();\n\n          return response;\n        }, (error) => {\n          UserNotification.error(`Saving configuration \"${name}\" failed with status: ${error.message}`,\n            'Could not save Configuration');\n        });\n\n      CollectorConfigurationsActions.copyConfiguration.promise(promise);\n    },\n\n    delete(configuration) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/${configuration.id}`);\n      const promise = fetch('DELETE', url);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', `Configuration \"${configuration.name}\" successfully deleted`);\n          this.refreshList();\n\n          return response;\n        }, (error) => {\n          UserNotification.error(`Deleting Configuration failed: ${error.status === 400 ? error.responseMessage : error.message}`,\n            `Could not delete Configuration ${configuration.name}`);\n        });\n\n      CollectorConfigurationsActions.delete.promise(promise);\n    },\n\n    validate(configuration) {\n    // set minimum api defaults for faster validation feedback\n      const payload = {\n        name: ' ',\n        collector_id: ' ',\n        color: ' ',\n        template: ' ',\n      };\n\n      merge(payload, configuration);\n\n      const promise = fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl}/configurations/validate`), payload);\n\n      promise\n        .then(\n          (response) => response,\n          (error) => (\n            UserNotification.error(`Validating configuration \"${payload.name}\" failed with status: ${error.message}`,\n              'Could not validate configuration')\n          ),\n        );\n\n      CollectorConfigurationsActions.validate.promise(promise);\n    },\n\n  }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\nimport URI from 'urijs';\nimport merge from 'lodash/merge';\n\nimport * as URLUtils from 'util/URLUtils';\nimport fetch from 'logic/rest/FetchProvider';\nimport UserNotification from 'util/UserNotification';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const CollectorsActions = singletonActions(\n  'core.Collectors',\n  () => Reflux.createActions({\n    getCollector: { asyncResult: true },\n    all: { asyncResult: true },\n    list: { asyncResult: true },\n    create: { asyncResult: true },\n    update: { asyncResult: true },\n    delete: { asyncResult: true },\n    copy: { asyncResult: true },\n    validate: { asyncResult: true },\n  }),\n);\n\nexport const CollectorsStore = singletonStore(\n  'core.Collectors',\n  () => Reflux.createStore({\n    listenables: [CollectorsActions],\n    sourceUrl: '/sidecar',\n    collectors: undefined,\n    query: undefined,\n    pagination: {\n      page: undefined,\n      pageSize: undefined,\n      total: undefined,\n    },\n    total: undefined,\n    paginatedCollectors: undefined,\n\n    getInitialState() {\n      return {\n        collectors: this.collectors,\n      };\n    },\n\n    propagateChanges() {\n      this.trigger({\n        collectors: this.collectors,\n        paginatedCollectors: this.paginatedCollectors,\n        query: this.query,\n        total: this.total,\n        pagination: this.pagination,\n      });\n    },\n\n    getCollector(collectorId) {\n      const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/collectors/${collectorId}`));\n\n      promise.catch((error) => {\n        let errorMessage = `Fetching Collector failed with status: ${error}`;\n\n        if (error.status === 404) {\n          errorMessage = `Unable to find a collector with ID <${collectorId}>, please ensure it was not deleted.`;\n        }\n\n        UserNotification.error(errorMessage, 'Could not retrieve Collector');\n      });\n\n      CollectorsActions.getCollector.promise(promise);\n    },\n\n    _fetchCollectors({ query, page, pageSize }) {\n      const search = {\n        query: query,\n        page: page,\n        per_page: pageSize,\n      };\n\n      const uri = URI(`${this.sourceUrl}/collectors/summary`).search(search).toString();\n\n      return fetch('GET', URLUtils.qualifyUrl(uri));\n    },\n\n    all() {\n      const promise = this._fetchCollectors({ pageSize: 0 });\n\n      promise\n        .then(\n          (response) => {\n            this.collectors = response.collectors;\n            this.propagateChanges();\n\n            return response.collectors;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collectors failed with status: ${error}`,\n              'Could not retrieve collectors');\n          },\n        );\n\n      CollectorsActions.all.promise(promise);\n    },\n\n    list({ query = '', page = 1, pageSize = 10 }) {\n      const promise = this._fetchCollectors({ query: query, page: page, pageSize: pageSize });\n\n      promise\n        .then(\n          (response) => {\n            this.query = response.query;\n\n            this.pagination = {\n              page: response.pagination.page,\n              pageSize: response.pagination.per_page,\n              total: response.pagination.total,\n            };\n\n            this.total = response.total;\n            this.paginatedCollectors = response.collectors;\n\n            this.propagateChanges();\n\n            return response.collectors;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collectors failed with status: ${error}`,\n              'Could not retrieve collectors');\n          },\n        );\n\n      CollectorsActions.list.promise(promise);\n    },\n\n    refreshList() {\n      this.list({ query: this.query, page: this.pagination.page, pageSize: this.pagination.pageSize });\n    },\n\n    create(collector) {\n      const promise = fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl}/collectors`), collector);\n\n      promise\n        .then(\n          (response) => {\n            UserNotification.success('', 'Collector successfully created');\n            this.collectors = response.collectors;\n            this.propagateChanges();\n\n            return this.collectors;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collectors failed with status: ${error}`,\n              'Could not retrieve collectors');\n          },\n        );\n\n      CollectorsActions.create.promise(promise);\n    },\n\n    update(collector) {\n      const promise = fetch('PUT', URLUtils.qualifyUrl(`${this.sourceUrl}/collectors/${collector.id}`), collector);\n\n      promise\n        .then(\n          (response) => {\n            UserNotification.success('', 'Collector successfully updated');\n            this.collectors = response.collectors;\n            this.propagateChanges();\n\n            return this.collectors;\n          },\n          (error) => {\n            UserNotification.error(`Fetching collectors failed with status: ${error}`,\n              'Could not retrieve collectors');\n          },\n        );\n\n      CollectorsActions.update.promise(promise);\n    },\n\n    delete(collector) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/collectors/${collector.id}`);\n      const promise = fetch('DELETE', url);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', `Collector \"${collector.name}\" successfully deleted`);\n          this.refreshList();\n\n          return response;\n        }, (error) => {\n          UserNotification.error(`Deleting Collector failed: ${error.status === 400 ? error.responseMessage : error.message}`,\n            `Could not delete Collector \"${collector.name}\"`);\n        });\n\n      CollectorsActions.delete.promise(promise);\n    },\n\n    copy(collectorId, name) {\n      const url = URLUtils.qualifyUrl(`${this.sourceUrl}/collectors/${collectorId}/${name}`);\n      const method = 'POST';\n\n      const promise = fetch(method, url);\n\n      promise\n        .then((response) => {\n          UserNotification.success('', `Collector \"${name}\" successfully copied`);\n          this.refreshList();\n\n          return response;\n        }, (error) => {\n          UserNotification.error(`Saving collector \"${name}\" failed with status: ${error.message}`,\n            'Could not save Collector');\n        });\n\n      CollectorsActions.copy.promise(promise);\n    },\n\n    validate(collector) {\n    // set minimum api defaults for faster validation feedback\n      const payload = {\n        id: ' ',\n        service_type: 'exec',\n        executable_path: ' ',\n        default_template: ' ',\n      };\n\n      merge(payload, collector);\n\n      const promise = fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl}/collectors/validate`), payload);\n\n      promise\n        .then(\n          (response) => response,\n          (error) => (\n            UserNotification.error(`Validating collector \"${payload.name}\" failed with status: ${error.message}`,\n              'Could not validate collector')\n          ),\n        );\n\n      CollectorsActions.validate.promise(promise);\n    },\n  }),\n);\n"],"names":["Container","StyledButton","theme","items","path","title","permissions","exactPathMatch","collector","operatingSystem","matchIcon","os","OperatingSystemIcon","iconName","iconType","NAV_ITEMS","CollectorConfigurationsActions","CollectorConfigurationsStore","query","page","pageSize","baseUrl","search","uri","promise","response","error","configurationId","errorMessage","template","requestTemplate","configuration","url","name","payload","CollectorsActions","CollectorsStore","collectorId"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy