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

Fish Build Date Metrics #49

Open
hahoyt opened this issue Oct 24, 2023 · 0 comments
Open

Fish Build Date Metrics #49

hahoyt opened this issue Oct 24, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hahoyt
Copy link

hahoyt commented Oct 24, 2023

Hi Guys,
In the Fish Table in Loki, there is a BUILD_TIMESTAMP field that is automatically generated with the full date and a timestamp every time a fish is built in Loki. It's nice for me to do metrics on this timestamp, example, how many fish were build in each month of 2023, so I can gauge my workload. Eric pulled a report directly from Loki for me so that I could do this very thing in April. At the time, he set up a table "FISH_INVENTORY_V" so that an R script could be written to do this in the future.

Can you all create this option for me to run? I'd only really need it maybe once a year but it would be nice to be able to create and archive those metrics each year.

This is what Eric had in the email and an example of querying by year sampled:

**"In R you can set up your SQL to query all columns and filter by any of the columns. This example filters by year sampled:

SELECT
*
FROM
FISH_INVENTORY_V
WHERE
YEAR_SAMPLED >= 2020;

Or query any subset of columns if you don’t need them all:

SELECT
SAMPLE_COUNT
, COMMON_NAME
-- , COLLECTION_TYPE
-- , COLLECTION_ID
, SILLY_CODE
-- , REGION_CODE
-- , QUADRANT
, LOCATION_CODE
, YEAR_SAMPLED
, SAMPLE_DATE
, BUILD_TIMESTAMP
FROM
FISH_INVENTORY_V
WHERE
COMMON_NAME = 'Moose';

Just omit the column or comment it out with a double dash --."**

Thanks,
Heather

@hahoyt hahoyt added the enhancement New feature or request label Oct 24, 2023
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

3 participants