\CloudMunchCloudmunchService

Class CloudmunchService

Summary

Methods
Properties
Constants
__construct()
notifyUsers()
updateDataContext()
getDataFromContext()
updateCustomContext()
getDataFromCustomContext()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$appContext
$cmDataManager
N/A

Properties

$appContext

$appContext : 

Type

$cmDataManager

$cmDataManager : 

Type

Methods

__construct()

__construct(  $appContext) 

Parameters

$appContext

notifyUsers()

notifyUsers(string  $message, string  $context, string  $id) 

This method is to invoke notification on cloudmunch.

Parameters

string $message

: Notification message.

string $context

: Context for which user is notified.

string $id

: Name of the object.

updateDataContext()

updateDataContext(string  $context, array  $dataArray) 

Updates data in cloudmunch for the context.

Parameters

string $context

: Context for which data is to be updated.

array $dataArray

: Array of data to be updated.

getDataFromContext()

getDataFromContext(string  $context) 

Returns context object.

Parameters

string $context

: Context for which data is to be retreived.

updateCustomContext()

updateCustomContext(string  $context, array  $dataArray, string  $id) 

Method to update custom context.

Parameters

string $context

: custom context name.

array $dataArray
string $id

getDataFromCustomContext()

getDataFromCustomContext(  $context) 

This function accepts data in array format and converts to url string

Example :

array(
'action' => 'listcustomcontext',
'domain' => 'test',
'project' => 'projectname',
'customcontext' => 'projectname_stories',
'fields' => 'sum(story_points)',
'username' => 'CI',
'group_by' => 'fix_versions',
'count' => '*',
'filter' => "{\"fix_versions\":\"10\"}"

);

Parameters

$context

Data to be passed.