-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
829eda0
commit 653f813
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
cyences_app_for_splunk/appserver/static/js/build/cs_configuration.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import Heading from '@splunk/react-ui/Heading'; | ||
import SearchTable from './components/SearchTable'; | ||
|
||
|
||
|
||
const searchQuery = `| rest /services/apps/local splunk_server=local | ||
| search label IN ("DA-ESS-ContentUpdate", "Splunk Common Information Model", "Flow Map Viz") | ||
| eval is_installed="Installed" | ||
| table label, is_installed, disabled | ||
| append | ||
[| makeresults count=1 | ||
| eval label="DA-ESS-ContentUpdate", disabled="-", is_installed="Not Installed", link="https://splunkbase.splunk.com/app/3449/" | ||
| table label, is_installed, disabled, link] | ||
| append | ||
[| makeresults count=1 | ||
| eval label="Splunk Common Information Model", disabled="-", is_installed="Not Installed", link="https://splunkbase.splunk.com/app/1621/" | ||
| table label, is_installed, disabled, link] | ||
| append | ||
[| makeresults count=1 | ||
| eval label="Flow Map Viz", disabled="-", is_installed="Not Installed", link="https://splunkbase.splunk.com/app/4657/" | ||
| table label, is_installed, disabled, link] | ||
| stats first(*) as * by label | ||
| eval disabled = case(disabled=0, "Enabled", disabled=1, "Disabled", 1==1, "-") | ||
| rename label as "App Name", is_installed as "Installation Status", link as "Splunkbase Link", disabled as "Enabled/Disabled" | ||
` | ||
|
||
export default function CyencesDependencies() { | ||
|
||
return ( | ||
<div style={{ marginLeft: '20px' }}> | ||
<Heading>App Dependencies</Heading> | ||
<SearchTable searchQuery={searchQuery} /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters