Commit Graph

423 Commits (769c4101c82ed92d00d63845760cf82a918aa144)

Author SHA1 Message Date
Jakub Bednář b6b5befad7
fix(http): The org parameter takes either the ID or Name interchangeably (#14540) 2019-08-06 06:20:26 +02:00
Deniz Kusefoglu bca1af25a9
feat: alerting - Add alert builder (#14550)
* Add check saving flows and change activeTab type

* Add first pass at alertBuilder

* Change TimeMachineEnum type

* Add xy view properties to checks, and convert to and from check View type

* Add Column Header to checks column

* Add change current check type action

* Access view type through properties

* Load xy view options for check view

* Add orgID to check in createCheck

* Clear current check on close CheckEO

* Create Check Alerting Button

* Create check view on edit and new check EO

* Fix edit check eo action bug

* Update threshold types

* When switch schedule from every to cron change the inputs that are visible

* save Current Check from VEO if view type is check

* Add description component to checks

* TimeMachineIDs to TimeMachineID

* Remove bracketed object decleration

* Remove as Threshold type

* Use ViewType instead of typeof

* Create CheckType type

* Remove time machine reducer tests

* Remove check view properties that come from xyView

* Fix EditCheck hooks

* Move status calculations to body of function

* Update redux store when performing check CRUD

* Create add and remove check actions in timeMachine

* Remove trailing space
2019-08-05 17:38:49 -07:00
Christopher Henn 5104cc1f11 fix(ui): handle rate limited and error Flux responses 2019-08-02 13:50:22 -07:00
Jade McGough 5d826961db feat(http): add checks http handler 2019-07-31 19:00:26 -04:00
Christopher Henn 1250be5f80 refactor(ui): inline API type generation
Part of #14482
2019-07-30 09:35:05 -07:00
Deniz Kusefoglu bbc37b4c68
feat: Alerting add alert builder veo state (#14499)
* Define new check, edit check and check view routes with VEO

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* Add task status to other task types

* Put editAlerting route behind feature flag

* add action and reducer for update current check

* Add init edit and new check editor overlay

* Split VEO in to two for new and edit view

* get edit and new CheckEO's ready

* Create getViewForTimeMachine action

* current check should be a partial check

* Fix view typing

* Fix linter errors

* Fix equality

* Catch save VEO errors
2019-07-29 15:54:35 -07:00
Chris Goller 837a410bea
feat(http): gzip compress the query CSV response. (#14495)
If client requests with Accept-Encoding: gzip, then
compress response and return with Content-Encoding: gzip.

This increases the server-side load by about 12%, but saves network bandwidth.

benchmark                     old ns/op     new ns/op     delta
Benchmark_Query_no_gzip-4     123609        137885        +11.55%

benchmark                     old allocs     new allocs     delta
Benchmark_Query_no_gzip-4     149            150            +0.67%

benchmark                     old bytes     new bytes     delta
Benchmark_Query_no_gzip-4     14297         15205         +6.35%
2019-07-29 14:47:55 -05:00
zhulongcheng 41a8174dca docs(http): patch notification rule
/notificationRules/{ruleID}
2019-07-28 22:04:04 +08:00
Alirie Gray c04f3a2b30 chore(tasks): remove old auth code and allow only token auth 2019-07-26 09:51:32 -07:00
Kelvin Wang de7f5dd8e0 fix(http): replace patch n rule to put 2019-07-25 15:15:35 -04:00
Deniz Kusefoglu 613aef698f
Add alerting cards (#14429)
* bump to client 0.5.3

* export Query type from client and create alerting mock

* Bump client to 0.5.5

* Merge all status enums to one type

* Fix threshold visualization types

* Add extra underscore to notification rules

* Use check view type from client

* Add description field to checks, notificationrules and endpoints

* Add init check cards

* Add check card actions

* Correct component name

* Add check card context and toggle

* Add id to notification rule base

* Add notification rule cards

* add checks reducer tests

* user immer for checks reducer

* add tests and immer to notification rule reducer
2019-07-24 00:34:42 -07:00
Jorge Landivar 9dd27067e8
Merge pull request #14009 from influxdata/cancel-runs-schema
chore(tasks): add swagger for canceling task runs
2019-07-23 02:55:06 -05:00
Deniz Kusefoglu e399e656ce
Fix aggregate window: change name parameter to period (#14407) 2019-07-22 13:39:31 -07:00
Deniz Kusefoglu 6e77b64da9
Fix dashboard query swagger definition to reflect reality (#14370) 2019-07-17 19:23:51 -07:00
Deniz Kusefoglu cd4b048ac7
Fix alert types and discriminators (#14358)
* Add discriminator and enum to check types

* Add threshold discriminators and type enum

* Add notification rule discriminators and type enum

* Remove description field

* Fix reference to threshold base

* Move types to ViewBase type from each View Property

* Fix view properties

* Add monotonex to swagger options

* Add empty to view types

* remove whitespace
2019-07-17 11:15:01 -07:00
Deniz Kusefoglu b03e887c37
Fix alerts swagger (#14348)
* Convert operators to strings

* Change queries to query

* fix Check types

* fix notification rules

* fix notification endpoints
2019-07-15 14:07:22 -07:00
Deniz Kusefoglu e9081d68a4
WIP Add alerts and notification swagger definitions (#14324)
* Rename check schema to healthcheck

* add alert schema and endpoints

* Add checkView as a view type


Co-Authored-By: Jade McGough <jademcgough@users.noreply.github.com>
2019-07-12 14:34:36 -07:00
Luke Morris 701501d00d feat(http/me): oauthID could in theory be updated 2019-06-26 14:42:29 -07:00
Luke Morris 225586f83f feat(me): return oauth id with user object 2019-06-26 11:45:34 -07:00
lisale0 1d6a0c5a3c fix pr 2019-06-21 11:55:28 -07:00
lisale0 3330d38984 feat(http): adding createdAt variable 2019-06-20 16:25:38 -07:00
Alirie Gray 0ae2d318b1 chore(tasks): update run limits in swagger and FindRuns 2019-06-12 14:48:32 -07:00
Alirie Gray 04a427e99e feat(tasks): add runID to Log struct 2019-06-06 11:24:38 -07:00
Kelvin Wang 18a0f3f542 fix(influxdb): rename telegraf orgID 2019-06-03 16:20:53 -04:00
docmerlin (j. Emrys Landivar) 15bacd4e60 chore(tasks): add swagger for canceling task runs 2019-05-29 11:28:20 -05:00
kelwang cccdae2421
Merge pull request #13977 from influxdata/org_audit_log
feat(influxdb): add org create and update time
2019-05-28 16:51:18 -07:00
Jade McGough 278da443e6
fix(http): remove accept header from query request swagger (#13625) 2019-05-28 14:44:27 -07:00
Jorge Landivar e6ae9f6231
Fix path: 2019-05-28 16:26:49 -05:00
Jorge Landivar ecd9200302
chore(swagger): fix a few swagger typos 2019-05-28 16:12:44 -05:00
docmerlin (j. Emrys Landivar) 935640cf99 chore(swagger): update swagger to include operationId 2019-05-28 09:24:04 -05:00
Jade McGough 062c02ff8d chore(swagger): split view properties by type 2019-05-24 16:27:56 -07:00
Kelvin Wang b8c2cd6c05 feat(influxdb): add org create and update time 2019-05-20 17:36:29 -07:00
Brandon Farmer ba148f3461 Fix Task schema error, currently preventing client generation 2019-05-20 10:19:11 -07:00
Alirie Gray 576da8f9d2 fix(swagger): add log property to task runs endpoint docs 2019-05-17 14:08:10 -07:00
Kelvin Wang 57ceb9e275 feat(influxdb): bucket created and updated time 2019-05-17 11:49:10 -04:00
Kelvin Wang f75f27c0bd feat(http): add audit log 2019-05-16 10:57:28 -04:00
kelwang 8687cb8039
Merge pull request #13448 from influxdata/create_view_issue
fix(http): create view
2019-05-13 13:33:34 -04:00
Alirie Gray 77934b01c6 feat(tasks): add description field to tasks 2019-05-08 13:39:09 -07:00
Kelvin Wang 717fcc44b3 feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
zhulongcheng 382e49b59b fix(http): make org & orgID optional 2019-04-25 11:13:49 +08:00
Jade McGough 8428c3630c fix(http): update bucket swagger to reflect recent changes 2019-04-24 14:11:38 -07:00
kelwang 49230619e6
Merge pull request #12754 from influxdata/swagger_telegraf_default_get
fix(http): fix telegraf get default swagger
2019-04-24 14:12:00 -04:00
kelwang 54fd1f81ce
Merge pull request #12802 from influxdata/swagger_basic_auth
fix(http): swagger define security schemes
2019-04-24 14:11:45 -04:00
kelwang 6261c274aa
Merge pull request #13444 from influxdata/swagger_orgID_not_required
fix(http): make getting labels orgID optional
2019-04-24 14:11:22 -04:00
kelwang 4acad08ea5
Merge pull request #13519 from influxdata/doc_desc
feat(influxdb): add doc description
2019-04-24 14:11:03 -04:00
kelwang 6ef624142b
Merge pull request #13556 from influxdata/org_desc
feat(influxdb): add org desc
2019-04-24 14:10:20 -04:00
kelwang 3bc1c49e91
Merge pull request #13557 from influxdata/bucket_desc
feat(influxdb): add bucket desc
2019-04-24 11:56:52 -04:00
Kelvin Wang 76cc27751b feat(influxdb): add bucket desc 2019-04-24 11:20:05 -04:00
kelwang e23824e32d
Merge pull request #13357 from zhulongcheng/docs-oplog-user
docs(http): add oplog user
2019-04-24 11:18:39 -04:00
kelwang d6001bf8e1
Merge pull request #13356 from zhulongcheng/docs-trace-span
docs(http): add missing Zap-Trace-Span header
2019-04-24 11:18:07 -04:00
Kelvin Wang 4c9f34122c feat(influxdb): add org desc 2019-04-22 22:40:07 -04:00
Kelvin Wang 3868149a6c fix(http): scraper resp org 2019-04-22 18:39:03 -04:00
Jade McGough b4851d4ecb fix(http): remove incorrect param from labels post 2019-04-19 14:01:24 -07:00
Kelvin Wang 53d95ecf52 feat(influxdb): add doc description 2019-04-19 12:47:31 -04:00
Kelvin Wang 5d195b63e0 fix(http): fix the swagger for cell update 2019-04-19 11:49:39 -04:00
Nathaniel Cook 4c77e3598b Merge branch 'master' into flux-staging 2019-04-18 11:01:22 -06:00
Jade McGough 1b50785fb6
Merge pull request #13449 from influxdata/error-429
chore(http): add 429 response to errors
2019-04-17 22:12:34 -07:00
Todd Persen cd64ec8718 Fix typos in miscellaneous packages 2019-04-17 13:30:22 -07:00
Nathaniel Cook 8b918539db Merge branch 'master' into flux-staging 2019-04-17 12:26:10 -06:00
Jade McGough 64ca8b6f08 chore(http): add 429 response to errors 2019-04-16 16:50:35 -07:00
Kelvin Wang bff7b90829 fix(http): create view 2019-04-16 18:06:39 -04:00
Kelvin Wang cbe26c04b7 fix(http): make getting labels orgID optional 2019-04-16 14:04:29 -04:00
kelwang 57ae0857de
Merge pull request #13412 from influxdata/doc_meta_type
feat(influxdb): add doc meta type
2019-04-16 10:59:36 -04:00
Jade McGough e4018fad81 Revert "docs(http): remove view id"
This reverts commit 78063a747d.
2019-04-15 15:00:52 -07:00
Jade McGough 5a1ae7c704 Revert "fix(http): remove view ID"
This reverts commit 1c6bdb6c3e.
2019-04-15 15:00:40 -07:00
Kelvin Wang 75b19dc1ec feat(influxdb): add doc meta type 2019-04-15 15:48:54 -04:00
zhulongcheng 78063a747d docs(http): remove view id 2019-04-15 23:14:06 +08:00
zhulongcheng d5917878d0 feat(http): find auths by org 2019-04-14 18:06:19 +08:00
zhulongcheng 1c6bdb6c3e fix(http): remove view ID 2019-04-14 12:31:35 +08:00
zhulongcheng 4e54bbf21c docs(http): add oplog user 2019-04-13 00:51:12 +08:00
zhulongcheng 7c5755556e docs(http): add missing Zap-Trace-Span header 2019-04-13 00:14:34 +08:00
jlapacik fbd7596aaa refactor(http): remove /query/spec from swagger file
Closes #12882.
2019-04-12 07:15:27 -07:00
Jade McGough 81e6a7116b feat(http): filter label response by organization 2019-04-12 01:29:32 -07:00
Kelvin Wang 92e82884a6 feat(http): accept label id for template post 2019-04-11 13:16:39 -04:00
kelwang 5958192788
Merge pull request #12795 from influxdata/swagger_scaraper_get_by_id
fix(http): swagger add get target by id
2019-04-11 11:24:54 -04:00
Kelvin Wang ec6895531d feat(http): add document labe handler 2019-04-10 15:08:03 -04:00
kelwang bfcf82d7b5
Merge pull request #13152 from zhulongcheng/docs-rm-view
docs(http): remove unused Views schema
2019-04-08 16:11:55 -04:00
kelwang c7d043a3b4
Merge pull request #13154 from zhulongcheng/doc-rm-view-link
docs(http): remove view link from api links
2019-04-08 16:11:26 -04:00
kelwang 34d631a9fc
Merge pull request #13156 from zhulongcheng/docs-rm-FluxLinks
docs(http): remove FluxLinks schema
2019-04-08 16:11:13 -04:00
Kelvin Wang 8a825a8f9f feat(influxdb): get docs by org id 2019-04-04 12:51:30 -04:00
zhulongcheng 53412e3e6a docs(http): remove FluxLinks schema 2019-04-05 00:16:59 +08:00
zhulongcheng 153ef54d0f docs(http): remove view link from api links 2019-04-04 23:58:13 +08:00
zhulongcheng c745a8dfd9 docs(http): remove unused Views schema 2019-04-04 23:38:11 +08:00
Brandon Farmer 8fc86ba17e Update swagger endpoints to include orgID parameters 2019-04-03 16:44:16 -07:00
Alirie Gray f04de15144
Merge pull request #13109 from influxdata/chore/add-description-to-variables
chore(variables): add description property to Variable struct
2019-04-03 14:00:43 -07:00
Alirie Gray bdd260c25b chore(variables): add description property to Variable struct 2019-04-03 13:36:32 -07:00
Kelvin Wang 1cf600aca9 remove proto 2019-04-03 15:42:25 -04:00
Kelvin Wang bcadefd8cb fix(http): swagger proto definition 2019-04-02 14:26:04 -04:00
Jade McGough 060f893a93 fix(http): update swagger to include correct label add responses 2019-04-01 13:01:24 -07:00
kelwang 6190ba6af3
Merge pull request #13058 from influxdata/swagger_ready_health
fix(http): fix swagger health & ready
2019-04-01 14:43:10 -04:00
Kelvin Wang c09182d0cb fix(http): fix swagger health & ready 2019-04-01 14:02:35 -04:00
Kelvin Wang 4e87f34f96 fix(http): swagger dashboard links 2019-04-01 13:10:33 -04:00
Jade McGough 05f26b0236
Merge pull request #13032 from influxdata/secret-key-links
fix(http): nest secret key response links in swagger
2019-04-01 09:35:28 -07:00
Jade McGough f092a5538a fix(http): start -> started in swagger 2019-04-01 00:46:46 -07:00
Jade McGough d5e9d10e31 fix(http): nest secret key response links in swagger 2019-04-01 00:39:41 -07:00
Jade McGough 5fbed0b6a5
Merge pull request #12978 from influxdata/varible-labels
feat(http): add labels to variables
2019-03-29 17:50:14 -07:00
kelwang 22dd44c4d1
Merge pull request #12955 from influxdata/auth_description_update
feat(kv): add auth description update
2019-03-29 14:08:34 -04:00
kelwang 2f9c0f8ae3
Merge pull request #13017 from influxdata/swagger_variable_map
fix(http): addtional property of variable map
2019-03-29 13:33:45 -04:00
kelwang 1cbfc7320a
Merge pull request #13019 from influxdata/swagger_dashboard_date_time
fix(http): swagger dashboard meta date-time
2019-03-29 13:33:28 -04:00
Kelvin Wang cc23caeb92 fix(http): swagger dashboard meta date-time 2019-03-29 12:21:27 -04:00