Beispiel #1
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputSigsciRequests, self).get_scheme()
        scheme.title = ("SigSci Requests")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "delta",
                title="Delta",
                description=
                "This is a numeric value and is recommended to leave at 5",
                required_on_create=True,
                required_on_edit=False))
        scheme.add_argument(
            smi.Argument(
                "site",
                title="Dashboard Site Name",
                description="This is the API Name of the Dashboard Site",
                required_on_create=True,
                required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputdynatrace_problem, self).get_scheme()
        scheme.title = ("Dynatrace Problem")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("dynatrace_tenant", title="Dynatrace Tenant",
                                         description="If you are using Dynatrace Managed, include the environment ID: https://<tenant>/e/<environment>. Add-on forces mandatory HTTPS",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("dynatrace_api_token", title="Dynatrace API Token",
                                         description="https://www.dynatrace.com/support/help/dynatrace-api/",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("dynatrace_collection_interval", title="Dynatrace Collection Interval",
                                         description="Relative timeframe passed to Dynatrace API. Timeframe of data to be collected at each polling interval.",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("ssl_certificate_verification", title="SSL Certificate Verification",
                                         description="",
                                         required_on_create=False,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputazure_devops_pipeline_releases,
                       self).get_scheme()
        scheme.title = ("Azure DevOps Pipeline Releases")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("organization",
                         title="Organization",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        scheme.add_argument(
            smi.Argument("personal_access_token",
                         title="Personal Access Token",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputSigsciActivity, self).get_scheme()
        scheme.title = ("Sigsci Activity")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "delta",
                title="Delta",
                description="Time frame to pull data from Signal Sciences",
                required_on_create=True,
                required_on_edit=False))

        #        scheme.add_argument(smi.Argument("interval", title="Interval",
        #                                         description="This is the interval to run the script, should be the same as the Delta",
        #                                         required_on_create=True,
        #                                         required_on_edit=True))

        return scheme
Beispiel #5
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputmixpanel_live, self).get_scheme()
        scheme.title = ("Mixpanel API: Live")
        scheme.description = (
            "Queries the unofficial and undocumented \"Live\" API which feeds \"Live View\" in Mixpanel\'s UI."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "mixpanel_project",
                title="Mixpanel Project",
                description=
                "Select project credentials to be used for this input.",
                required_on_create=True,
                required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputcybergrx_gapsandremediations, self).get_scheme()
        scheme.title = ("CyberGRX:GapsAndRemediations")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "api_token",
                title="API Token",
                description=
                "Configure a CyberGRX API token from the User Management console.",
                required_on_create=True,
                required_on_edit=False))
        return scheme
Beispiel #7
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputinfoblox_threat_intelligence_context, self).get_scheme()
        scheme.title = ("Infoblox Threat Intelligence context")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("apikey", title="Dossier API Key",
                                         description="from plateform.activetrust.net",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("global_account", title="Global Account",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
Beispiel #8
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputmixpanel_people, self).get_scheme()
        scheme.title = ("Mixpanel API: People")
        scheme.description = ("Retrieve records from Mixpanel\'s engage API for \"People Data\" records.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("mixpanel_project", title="Mixpanel Project",
                                         description="Select project credentials to be used for this input.",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("enable_kvstore", title="Enable KVStore",
                                         description="Write records to specified kvstore.",
                                         required_on_create=False,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("enable_index", title="Enable Indexing",
                                         description="Write records to specified index.",
                                         required_on_create=False,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("kvstore_fields", title="KVStore Fields",
                                         description="JSON formatted object of fields and field types for Mixpanel kvstore fields and lookup definition. If object fails to validate, records will be stored in kvstore but only available via the REST API.",
                                         required_on_create=False,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputdell_networker, self).get_scheme()
        scheme.title = ("dell:networker")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("nw_ip", title="IP Address:",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("nw_port", title="Rest API Port:",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("global_account", title="Global Account",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("nw_dropdown", title="Multiple Dropdown",
                                         description="",
                                         required_on_create=False,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputpuppet_enterprise_extended_details, self).get_scheme()
        scheme.title = ("Puppet Enterprise Extended Details")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("server", title="Server",
                                         description="Input your Puppet Enterprise Server",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("port", title="Port",
                                         description="Input your Puppet Enterprise DB Port (HTTPS 8081, HTTP: 8080)",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
Beispiel #11
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputotx, self).get_scheme()
        scheme.title = ("Open Threat Exchange Indicators")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("api_key", title="OTX API key",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("backfill_days", title="Backfill days",
                                         description="Number of days to backfill pulses and indicators for the first time the input runs",
                                         required_on_create=False,
                                         required_on_edit=False))
        return scheme
Beispiel #12
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputlastpass_users, self).get_scheme()
        scheme.title = ("LastPass Users")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "lastpass_api_url",
                title="LastPass API URL",
                description="LastPass reporting REST API endpoint URL",
                required_on_create=False,
                required_on_edit=False))
        return scheme
Beispiel #13
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputpagerduty_api_incidents, self).get_scheme()
        scheme.title = ("Pagerduty: Incidents")
        scheme.description = ("Retrieves incident data from Pagerduty API (v2).")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("api_token", title="API Token",
                                         description="API token with access to your Pagerduty instance.",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("api_limit", title="API Limit",
                                         description="Max events per API request (100 max).",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("days_ago", title="Initial Days to Sync",
                                         description="Number of days in past to query for initial sync (days ago to now).",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
Beispiel #14
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputokta_identity_cloud, self).get_scheme()
        scheme.title = ("Okta Identity Cloud")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "metric",
                title="Metric",
                description="The metric (data type) you wish to collect",
                required_on_create=True,
                required_on_edit=False))
        scheme.add_argument(
            smi.Argument(
                "global_account",
                title="Okta Account",
                description=
                "Select the Okta Account from the list    ( \"Configuration > Account\" to Add )",
                required_on_create=True,
                required_on_edit=False))
        return scheme
Beispiel #15
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputaccounts, self).get_scheme()
        scheme.title = ("Accounts")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "role_to_list_accounts",
                title="Role to list accounts",
                description=
                "Role to assume in the AWS master account which allows list-accounts. E.g. arn:aws:iam::123456789:role/tf-list-accounts-role",
                required_on_create=True,
                required_on_edit=False))
        return scheme
Beispiel #16
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputct_log, self).get_scheme()
        scheme.title = ("Certificate Transparency")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "log_url",
                title="Certificate Log URL",
                description=
                "The URL of the CT log, e.g. ct.googleapis.com/logs/argon2019/",
                required_on_create=True,
                required_on_edit=False))
        return scheme
Beispiel #17
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputcanary_daily_poll, self).get_scheme()
        scheme.title = ("Canary Daily Poll")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("debug_mode",
                         title="Debug Mode",
                         description="Reserved for future use.",
                         required_on_create=False,
                         required_on_edit=False))
        return scheme
Beispiel #18
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputwebex_teams_admin_audit_events, self).get_scheme()
        scheme.title = ("Webex Teams Admin Audit Events")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("refresh_token", title="Refresh Token",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("organization_id", title="Organization ID",
                                         description="Events in this organization",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputwebcrawler, self).get_scheme()
        scheme.title = ("webcrawler")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "lookup",
                title="Product List Name",
                description=
                "Enter the name of the product list which you made using the webcrawler app.",
                required_on_create=True,
                required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputcharity_navigator, self).get_scheme()
        scheme.title = ("USA - Charity Navigator")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("cn_app_id", title="App ID",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("cn_app_key", title="App Key",
                                         description="",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
Beispiel #21
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputf1_2020, self).get_scheme()
        scheme.title = ("F1 2020")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "udp_port_number",
                title="UDP Port Number",
                description=
                "The UDP port number that F1 2020 game is sending data on",
                required_on_create=True,
                required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputm365_user_licensing_details, self).get_scheme()
        scheme.title = ("M365 User Licensing Details")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("data_sourcetype",
                         title="Sourcetype",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        scheme.add_argument(
            smi.Argument("collection_period",
                         title="Period",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        return scheme
Beispiel #23
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputaperture, self).get_scheme()
        scheme.title = ("Aperture")
        scheme.description = ("")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("region",
                         title="Region",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        scheme.add_argument(
            smi.Argument("global_account",
                         title="Global Account",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputgeneral_service, self).get_scheme()
        scheme.title = ("General Service")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument(
                "live",
                title="Monitor Active Session",
                description=
                "Use this to retrieve Active Session Data such as information for all service types, including Meeting Center, Training Center, Event Center, Sales Center, and Support Center.",
                required_on_create=False,
                required_on_edit=False))
        return scheme
Beispiel #25
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputpuppet_enterprise_extended_details, self).get_scheme()
        scheme.title = ("Puppet Enterprise Extended Details")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("token_", title="Token:",
                                         description="curl -k -X POST -H \'Content-Type: application/json\' -d \'{\"login\": \"\", \"password\": \"\",\"lifetime\": \"9y\" }\' https://$:4433/rbac-api/v1/auth/token",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("puppet_enterprise_server_", title="Puppet Enterprise Server:",
                                         description="Put in your FQDN of your Puppet Enterprise Server so the links backs on the dashboards work correctly.",
                                         required_on_create=False,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("server_", title="Server:",
                                         description="Input your Puppet Enterprise Server address.",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("port_", title="Port:",
                                         description="Input your Puppet Enterprise DB Port (HTTPS 8081, HTTP: 8080)",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputkvstore_to_index, self).get_scheme()
        scheme.title = ("kvstore_to_index")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("u_splunk_server", title="Splunk Server",
                                         description="The Remote Splunk Server with the source KVStore",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("u_source_app", title="Source App",
                                         description="The remote app context with the source KVStore Collection",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("u_source_collection", title="Source Collection",
                                         description="The remote source KVStore Collection Name",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("global_account", title="Global Account",
                                         description="The stored rest API credential valid on the remote Splunk Server with permissions to the source KVStore",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
Beispiel #27
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputgithub_api_repos_issues, self).get_scheme()
        scheme.title = ("Github API: Repository Issues")
        scheme.description = ("Retrieves issues from Github\'s repository API endpoint. See documentation: https://developer.github.com/v3/issues/#list-issues-for-a-repository")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("github_owner", title="Owner or Organization",
                                         description="Name of user or Github organization which owns the repository. Example: https://api.github.com/[OWNER]/repo",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("github_repo", title="Repository",
                                         description="Name of repository. Example: https://api.github.com/owner/[REPOSITORY]",
                                         required_on_create=True,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("github_creds", title="Github Credentials",
                                         description="Select stored credentials with appropriate access to specified Github repository.",
                                         required_on_create=True,
                                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputyoutube_translator_service, self).get_scheme()
        scheme.title = ("youtube-translator-service")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("channels_to_load",
                         title="Channels to load",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        scheme.add_argument(
            smi.Argument("service_url_and_port",
                         title="Service URL and port",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        return scheme
Beispiel #29
0
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputstruxureware_alerts, self).get_scheme()
        scheme.title = ("struxureware:alerts")
        scheme.description = (
            "Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu."
        )
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(
            smi.Argument("name",
                         title="Name",
                         description="",
                         required_on_create=True))
        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(
            smi.Argument("dce_account",
                         title="Global Account",
                         description="",
                         required_on_create=True,
                         required_on_edit=False))
        return scheme
    def get_scheme(self):
        """overloaded splunklib modularinput method"""
        scheme = super(ModInputlastpass_event_reporting, self).get_scheme()
        scheme.title = ("LastPass Event Reporting")
        scheme.description = ("Go to the add-on\'s configuration UI and configure modular inputs under the Inputs menu.")
        scheme.use_external_validation = True
        scheme.streaming_mode_xml = True

        scheme.add_argument(smi.Argument("name", title="Name",
                                         description="",
                                         required_on_create=True))

        """
        For customized inputs, hard code the arguments here to hide argument detail from users.
        For other input types, arguments should be get from input_module. Defining new input types could be easier.
        """
        scheme.add_argument(smi.Argument("lastpass_api_url", title="LastPass API URL",
                                         description="LastPass reporting REST API endpoint URL",
                                         required_on_create=False,
                                         required_on_edit=False))
        scheme.add_argument(smi.Argument("time_start", title="Collection Start Time",
                                         description="Supports two formats: epoch and YYYY-mm-dd HH:MM:SS. Supported timezone: PST. If there exists a time checkpoint, this value may be ignored.",
                                         required_on_create=False,
                                         required_on_edit=False))
        return scheme