Skip to main content

argus_ticket_rt

This is a plugin to create tickets in Request Tracker from Argus

The API supported is RT V2. RT 4.4 needs RT::Extension::REST2 to support V2, while RT 5.0.0 and later has the support included.

Settings

  • TICKET_PLUGIN must be set to "argus_ticket_rt.RequestTrackerPlugin"

  • TICKET_ENDPOINT: Link to instance, absolute URL

  • TICKET_AUTHENTICATION_SECRET: Standard username/password or token:

    {
        "username": username,
        "password": password
    }
    

    or

    {
        "token": token
    }
    

    It is recommended to create an RT API user and to ensure that that user has the necessary authorization for creating tickets in the relevant queue.

    Username and password login can be disabled if the login happens through an external provider. In that case an authentication token should be used.

    If authentication tokens are enabled in RT they can be created under "Logged in as ..." -> "Settings" -> "Auth tokens".

    This could however be turned off side-wide or just for that specific user. In that case please contact the responsible RT administrator.

  • TICKET_INFORMATION:

    Queue (obligatory)

    {
        "queue": queue_name
    }
    

    Custom fields (optional)

    There are two ways of automatically filling custom fields:

    1. Custom fields that are always the same, independent of the incident. These will be set in custom_fields_set with the name of the custom field as key and the fixed value as value.

      {
          "custom_fields_set" : {
              "name_of_custom_field": set_value,
          }
      }
      
    2. Custom fields that are filled by attributes of the Argus incident. These are set in custom_fields_mapping with the name of the custom field as key and the name of the attribute as it is returned by the API as value (e.g. start_time). If the information can be found in the tags the value consists of a dictionary with tag as the key and the name of the tag as the value (e.g. {"tag": "host"}).

      {
          "custom_fields_mapping" : {
              "name_of_custom_field": attribute_of_incident,
              "name_of_custom_field": {"tag": name_of_tag},
          }
      }
      

Library

The library used is rt instead of rt-client because "rt-client" does not support token authentication.

Code style

argus_ticket_rt uses ruff as a Python source code formatter and linter. Ruff can be installed by running

$ pip install ruff

A pre-commit hook will format new code automatically before committing. To enable this pre-commit hook, run

$ pre-commit install

Running tests

If you have installed tox, the following command will test argus_ticket_rt code against several Django versions, several Python versions, and automatically compute code coverage.

$ tox

An HTML coverage report will be generated. Refer to the tox.ini file for further options.

Metadata

Release files for argus-ticket-rt 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for argus-ticket-rt 1.3.0
File Interpreter ABI Platform
argus_ticket_rt-1.3.0-py3-none-any.whl Python 3 none any Details

Release files / argus_ticket_rt-1.3.0-py3-none-any.whl

Download URL argus_ticket_rt-1.3.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b1027eb87cdd6e1ae9602c22bb139598327763047da8d1851ce3569d6aa7d80
BLAKE2b-256 checksum
How to use checksums
a85335cd0cae17bc7b4cf5cb2661479304821a9e96f6fe831cb1f5f190f4a162
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.3.0 This release

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1

1 release file

1.0.3

1 release file

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page