Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several metrics to the contacts endpoint #23

Open
asirota opened this issue Feb 5, 2020 · 1 comment
Open

Add several metrics to the contacts endpoint #23

asirota opened this issue Feb 5, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@asirota
Copy link
Member

asirota commented Feb 5, 2020

As it currently stands the contacts endpoint doesn't return any metrics. It would be really useful to have some default metrics start to trickle into the contacts endpoint. That way the default usage of this endpoint in the data source will not require the creation of custom metrics and they can be used out of the box.

In particular these 5 metrics:

Active Member?
Calculated as follows:

CASE 
WHEN IsActiveMember = TRUE THEN 1
ELSE 0
END

Lapsed Member?

CASE 
WHEN IsLapsedMember = TRUE THEN 1
ELSE 0
END

Pending New Member?

CASE 
WHEN IsPendingNewMember = TRUE THEN 1
ELSE 0
END

Pending Renewal?

CASE 
WHEN IsPendingRenewalMember = TRUE THEN 1
ELSE 0
END

Pending Level Change?

CASE 
WHEN Status = "PendingUpgrade" THEN 1
ELSE 0
END
@asirota asirota added the enhancement New feature or request label Feb 5, 2020
@asirota asirota pinned this issue Feb 5, 2020
@asirota
Copy link
Member Author

asirota commented Feb 5, 2020

This will make reports like this easier to make out of the box:

membership summary report

@asirota asirota unpinned this issue Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants