Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Table of Contents

Get a List of Manual Measures

DescriptionGet a list of manual measures

URL

/api/manual_measures

MethodGET

Security

Requires User role on the project

Examples

  1. Get all the manual measures on project 'myProject':



  2. Get a manual measure on metric 'business_value' on project 'myProject':

Parameters

Parameter

Description

Required

Default Value

Value

resourceid or key of the projectYesNoneorg.codehaus.sonar:sonar
metricid or key ???? of a manual metricNoNonebusiness_value
formatResponse formats: jsonNojson 

Create a Manual Measure

DescriptionCreate a manual measure

URL

/api/manual_measures

MethodPOST
 Security

Requires Project Administrator role on the project

Examples

  1. Create a manual measure on project 'myProject' being logged in as user 'admin/admin':
    • Manual metric: business_value
    • Value: 5000

Parameters

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

Yes

None

org.codehaus.sonar:sonar

metric

Key of the manual metric

Yes

None

business_value 

val

Value of the manual measure

YesNone 

??????? Pas de description possible ?????

 

   

Delete a Manual Measure

DescriptionDelete a manual measure

URL

/api/manual_measures

MethodDELETE
 Security

Requires Project Administrator role on the project

Examples

  1. Delete manual measure 'business_value' on project 'myProject':

Parameters

Parameter

Description

Required

Default Value

Value

resource

id or key of the project

Yes

None

org.codehaus.sonar:sonar

metric

Key of the manual metric

Yes

None

business_value 

  • No labels