Skip to main content

A Python SDK for Metis.

Project description

Deployment

Support python 3.

pip install imetis

Usage

Create a Metis client

import imetis

client = imetis.MetisClient(metisUrl='https://your.metis.com')
# It is an invalid url, please use your true url.
# If you don't know your metis url, please contact to your metis administrator.

Authenticate

Use your own Metis account to authenticate.

client.authenticate(username='xiaoming.wang@mailbox.com', password='yourPassword')

Search tickets by keyword

Search tickets with a keyword. You can specify how many results you need (default 10).

result = client.ticket_search('hdfs', num=5)

print(result)

Search tickets by TQL (Advanced)

Search tickets with a TQL (a kind of query language) statement. You can specify how many results you need (default 10).

result = client.ticket_search_by_tql('(TICKET_TITLE token match "hdfs upgrade")', num=20)

print(result)

Search JIRA cases by keyword

Search JIRA cases with a keyword. You can specify how many results you need (default 10).

result = client.jira_search('hdfs', num=5)

print(result)

Search WIKI cases by keyword

Search WIKI cases with a keyword. You can specify how many results you need (default 10).

result = client.wiki_search('hdfs', num=5)

print(result)

Search AIOPS cases by keyword

Search AIOPS cases with a keyword. You can specify how many results you need (default 10).

result = client.aiops_search('hdfs', num=5)

print(result)

Search IntKB cases by keyword

Search IntKB cases with a keyword. You can specify how many results you need (default 10).

result = client.intkb_search('hdfs', num=5)

print(result)

Check your own tickets

Check your own tickets. The result will be sent to your email.

client.personal_ticket_check()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imetis-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imetis-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file imetis-0.0.2.tar.gz.

File metadata

  • Download URL: imetis-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.0

File hashes

Hashes for imetis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0c57918734d6eddd6dedaa1ec9d0e280eb3e7426c5cf7452a7e75168793868bc
MD5 df0c627a2f5fdc5eab68df512ad383fd
BLAKE2b-256 c86d0bfabf7f77820ec7f5c682ac9a8d4e53bef795efd6cf1f48549083863721

See more details on using hashes here.

File details

Details for the file imetis-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: imetis-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.0

File hashes

Hashes for imetis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1510403be897ad6de888ed105217a689e3aa8c6a5eaef89f9e4820a75a0a289
MD5 93fca2c6a61c7ff34d0910d186140ce9
BLAKE2b-256 63efbb9caa7a35cac81c40cc4db03ef38c22f3c26147ae52f0c635603f8524a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page