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 7 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 the 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 of the manual metricNoNonebusiness_value
formatResponse formats: jsonNo  

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

Decimal value of the manual measure

Yes (or text is set)None 
textText value of the manual measureYes (or val is set)None 

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