Skip to main content

Responsible for sending commands to Seon DevOps microsoft Real Time job

Project description

Goal

It is reponsible for sending command to Devops Microsoft Real Time Job

Installation

To install devops_microsoft_client_real_time, run this command in your terminal:

pip install devops_microsoft_client_real_time

Usage

To use devops_microsoft_client_real_time in a Python project:

from pprint import pprint
from devops_microsoft_client_real_time.factory.factory import Factory
from devops_microsoft_client_real_time.factory.service_enum import Service

project_service = Factory.create(Service.ScrumProject)
team_project_service = Factory.create(Service.ProjectTeam)
team_member_service = Factory.create(Service.TeamMember)
sprint_service = Factory.create(Service.Sprint)
user_story_service = Factory.create(Service.UserStory)
task_service = Factory.create(Service.ScrumDevelopmentTask)
product_backlog_sprint_backlog_service = Factory.create(Service.Product_backlog)


organization = "Organization UUID SEON"
tfs_key = ""
tfs_url = ""
application = "Application UUID SEON"

pprint ("enviando os dados - Project")

content_task = {
    'createdDate': '2019-11-29T21:11:46.8222058Z',
    'eventType': 'workitem.created',
    'id': '69',
    'resource': {'fields':{'System.WorkItemType': 'Task'}}, 
    'resourceContainers': 
        {
            'account': {'baseUrl': 'https://dev.azure.com/paulossjunior/','id': '16ad67c1-3286-44bb-a0bb-d8ef245f21d2'},
            'collection': {'baseUrl': 'https://dev.azure.com/paulossjunior/','id': '31d31367-7618-485a-a500-f2dcb12e14ec'},
            'project': {'baseUrl': 'https://dev.azure.com/paulossjunior/','id': '0cfe9a70-c6ce-45b0-a898-d3594fc6a08a'}
        }

    }

data = {'organization_id': organization, 
                "tfs_key": tfs_key, 
                "tfs_url": tfs_url,
                "application": application, 
                "content": content_task
        }  

pprint ("enviando as task")
task_service.integrate(organization,data)

Project details


Download files

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

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page