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()

Analysis top hot issues

Auto analysis hot issues by component and month.

print(client.analysis_hot_issues("Inceptor", '5'))

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.3.tar.gz (6.2 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.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imetis-0.0.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 1ab3e81f9e0a7477312624ba60a3c7e10292fc3c6c7044ae937dd3a46bffeffe
MD5 36fddae484f3415fee5ed8abe3026309
BLAKE2b-256 b191785086289d113a92b62ec8606c9b2a895e4253d8dc25cc8f23b201c7b53c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imetis-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae743b2eab5ae93ce636732d63bea7703a189d75c2bbb04d066472c5a59d164
MD5 029bada0099546442d7cbaf05f561d12
BLAKE2b-256 59fe0f6ee04b468babb8cc347baa71efe7cebfc179d3963af712fe240829d678

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