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

Scheduled searches #165

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

fjerlov-cs
Copy link
Contributor

Add scheduled search

scheduled-search.yaml

name: scheduled-search
description: some-description-2
queryString: foo=bar bar=foo
queryStart: 24h
queryEnd: now
timeZone: UTC-02:00
schedule: 0 * * * *
backfillLimit: 0
enabled: true
actionNames:
- testing
labels:
- some-label-3
- some-label-4
queryOwnershipType: Organization
/Users/fjerlov/Library/Caches/JetBrains/GoLand2023.3/tmp/GoLand/___list scheduled-searches list DemoView
                 ID                |       NAME       |    DESCRIPTION     | QUERY START | QUERY END | TIMEZONE  | SCHEDULE  | BACKFILL LIMIT | ACTION NAMES |           LABELS           | ENABLED | RUN AS USER ID | QUERY OWNERSHIP TYPE  
+----------------------------------+------------------+--------------------+-------------+-----------+-----------+-----------+----------------+--------------+----------------------------+---------+----------------+----------------------+
  YXPdEBHFRe5Gbw7J8o7y59UtlQUp5O3q | scheduled-search | some-description-2 | 24h         | now       | UTC-02:00 | 0 * * * * |              0 | testing      | some-label-3, some-label-4 | true    |                | Organization          

/Users/fjerlov/Library/Caches/JetBrains/GoLand2023.3/tmp/GoLand/___show scheduled-searches show DemoView scheduled-search
                          ID | YXPdEBHFRe5Gbw7J8o7y59UtlQUp5O3q  
                        Name | scheduled-search                  
                 Description | some-description-2                
                Query String | foo=bar bar=foo                   
                 Query Start | 24h                               
                   Query End | now                               
                    TimeZone | UTC-02:00                         
                    Schedule | 0 * * * *                         
              Backfill Limit | 0                                 
                     Enabled | true                              
                     Actions | testing                           
              Run As User ID |                                   
         LastScheduledSearch | 0                                 
  TimeOfNextPlannedExecution | 1719496800000                     
                      Labels | some-label-3, some-label-4        
          QueryOwnershipType | Organization    

Tested func (a *ScheduledSearches) Update(viewName string, updateScheduledSearch *ScheduledSearch) (*ScheduledSearch, error) { manually.

@fjerlov-cs fjerlov-cs requested a review from a team as a code owner June 27, 2024 13:15
api/scheduled-search.go Outdated Show resolved Hide resolved
api/scheduled-search.go Outdated Show resolved Hide resolved
@fjerlov-cs fjerlov-cs force-pushed the fjerlov/scheduled-search-2 branch from 3d190dc to ae7bc7e Compare June 27, 2024 13:20
@fjerlov-cs fjerlov-cs changed the title Scheduled search Scheduled searches Jun 27, 2024
@fjerlov-cs fjerlov-cs force-pushed the fjerlov/scheduled-search-2 branch from ae7bc7e to 53d61db Compare June 27, 2024 13:42
Copy link
Contributor

@jespermbyskov jespermbyskov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

api/internal/humiographql/scheduled-search.go Outdated Show resolved Hide resolved
cmd/humioctl/scheduled_searches_list.go Outdated Show resolved Hide resolved
@fjerlov-cs fjerlov-cs force-pushed the fjerlov/scheduled-search-2 branch from 53d61db to e0f8624 Compare June 28, 2024 08:18
@fjerlov-cs fjerlov-cs force-pushed the fjerlov/scheduled-search-2 branch from e0f8624 to 4a038e9 Compare June 28, 2024 08:20
@SaaldjorMike SaaldjorMike merged commit 517aa79 into humio:master Jun 28, 2024
2 checks passed
@fjerlov-cs fjerlov-cs deleted the fjerlov/scheduled-search-2 branch August 1, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants