Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  • Description: myDescription

curl -u admin:admin -d "resource=myProject&metric=business_value&val=5000&desc=myDescription" http://localhost:9000/api/manual_measures

...

Parameter

Description

Required

Default Value

Example 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)None10.0
textText value of the manual measureYes (or val is set)Noneabc
descDescriptionNoNonemyDescription

Delete a Manual Measure

DescriptionDelete a manual measure

URL

/api/manual_measures

HTTP MethodDELETE
Security

Requires Project Administrator role on the project

...