-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add some options to getLogs api in datav datasource #290
- Loading branch information
Showing
3 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package utils | ||
|
||
func GetNamespaceServiceHostFromParams(params map[string]interface{}) (namespace string, service string, host string) { | ||
namespaceI := params["namespace"] | ||
if namespaceI != nil { | ||
namespace = namespaceI.(string) | ||
} | ||
|
||
serviceI := params["service"] | ||
if serviceI != nil { | ||
service = serviceI.(string) | ||
} | ||
|
||
hostI := params["host"] | ||
if hostI != nil { | ||
host = hostI.(string) | ||
} | ||
|
||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters