sample-apps icon indicating copy to clipboard operation
sample-apps copied to clipboard

Sample for storing config parameters

Open crackytsi opened this issue 7 years ago • 2 comments

Hello, Please provide an example how to store config data within a sample-app. e.g. json config file.

crackytsi avatar Jun 08 '18 12:06 crackytsi

Hi, By store config data do you mean storing app configuration values on disk? If you want the values to persist between upgrades of the app then you should write to /store. I would advise using the qpylib helper method for getting the store path and this will correctly resolve /store both while running in QRadar and while running locally with the sdk.

asmith-IBM avatar Jul 04 '18 14:07 asmith-IBM

Hi, Yes, thats right. I would appreciate it if there is a sample app showing how to do this according to best practises.

CR

Von: QRadarSampleApps [mailto:[email protected]] Gesendet: Mittwoch, 4. Juli 2018 16:50 An: ibm-security-intelligence/sample-apps [email protected] Cc: Racky, Christopher [email protected]; Author [email protected] Betreff: Re: [ibm-security-intelligence/sample-apps] Sample for storing config parameters (#1)

Hi, By store config data do you mean storing app configuration values on disk? If you want the values to persist between upgrades of the app then you should write to /store. I would advise using the qpylib helper method for getting the store path and this will correctly resolve /store both while running in QRadar and while running locally with the sdk.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/ibm-security-intelligence/sample-apps/issues/1#issuecomment-402500675, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALEqycwG4xCLFF95WeV1DO7Sxd1oEbcoks5uDNYYgaJpZM4UgCT8.

crackytsi avatar Jul 18 '18 11:07 crackytsi