Skip to content

Commit

Permalink
Merge pull request #13 from akamai/julia-1.0
Browse files Browse the repository at this point in the history
Julia 1.6 support
  • Loading branch information
bluesmoon committed Sep 11, 2023
2 parents f4bf9a2 + 3145087 commit 1320b35
Show file tree
Hide file tree
Showing 18 changed files with 367 additions and 358 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ os:
- linux

julia:
- 0.4
- 1.0

git:
quiet: true
Expand Down
19 changes: 19 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name = "mPulseAPI"
uuid = "314d2b54-f2c3-11ea-15f2-0bcf2fc50b35"
authors = ["Akamai mPulse DSWB <dswb@akamai.com>"]
version = "1.1.4"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0"
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
LightXML = "9c8b4983-aa76-5018-a973-4c85ecc9e179"
TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Communicate with the mPulse Query & Repository REST APIs to fetch information ab
* mPulseAPI.jl: [https://akamai.github.io/mPulseAPI.jl/](https://akamai.github.io/mPulseAPI.jl/)

### REST APIs that this module uses:
* mPulse Query API: [http://docs.soasta.com/query-api/](http://docs.soasta.com/query-api/)
* SOASTA Repository API: [http://docs.soasta.com/repository-api/](http://docs.soasta.com/repository-api/)
* mPulse Query API: [https://developer.akamai.com/api/web_performance/mpulse_query/v2.html](https://developer.akamai.com/api/web_performance/mpulse_query/v2.html)
* mPulse Repository API: [https://developer.akamai.com/api/web_performance/mpulse_cloudtest_repository/v1.html](https://developer.akamai.com/api/web_performance/mpulse_cloudtest_repository/v1.html)

## Quick and dirty usage
This snippet will get you up and running, see the full documentation for more details.
Expand Down
10 changes: 0 additions & 10 deletions REQUIRE

This file was deleted.

2 changes: 1 addition & 1 deletion docs/build-docs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function getSymbols(mod::Module; order=[Module, DataType, Function])

if file != ""
lines = open(readlines, file)
line = find(x -> ismatch(Regex("^$(declarator[typ])$(name)"), x), lines)
line = find(x -> occursin(Regex("^$(declarator[typ])$(name)"), x), lines)
if length(line) == 0
println(Regex("^$(declarator[typ]) +$(name)"))
println(lines)
Expand Down
6 changes: 3 additions & 3 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Communicate with the mPulse Query & Repository REST APIs to fetch information ab
* mPulseAPI.jl: [https://akamai.github.io/mPulseAPI.jl/](https://akamai.github.io/mPulseAPI.jl/)

### REST APIs that this module uses:
* mPulse Query API: [http://docs.soasta.com/query-api/](http://docs.soasta.com/query-api/)
* SOASTA Repository API: [http://docs.soasta.com/repository-api/](http://docs.soasta.com/repository-api/)
* mPulse Query API: [https://developer.akamai.com/api/web_performance/mpulse_query/v2.html](https://developer.akamai.com/api/web_performance/mpulse_query/v2.html)
* mPulse Repository API: [https://developer.akamai.com/api/web_performance/mpulse_cloudtest_repository/v1.html](https://developer.akamai.com/api/web_performance/mpulse_cloudtest_repository/v1.html)

## Quick and dirty usage
This snippet will get you up and running, see the full documentation for more details.
Expand Down Expand Up @@ -61,7 +61,7 @@ tenant = getRepositoryTenant(token, name="<tenant name from mPulse>")
### function `setEndpoints`
[mPulseAPI.jl#59-67](https://github.com/akamai/mPulseAPI.jl/tree/master/src/mPulseAPI.jl#L59-L67){: .source-link}

Change the SOASTA API endpoint that we connect to. The default is `https://mpulse.soasta.com/concerto`
Change the mPulse API endpoint that we connect to. The default is `https://mpulse.soasta.com/concerto`

#### Example

Expand Down
4 changes: 1 addition & 3 deletions src/Alert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ At least one of `alertID` or `alertName` must be passed in to update the alert o
"""

function postRepositoryAlert(token::AbstractString;
alertID::Int64=0,
alertName::AbstractString="",
Expand Down Expand Up @@ -272,7 +271,6 @@ Returns true if the delete is successful, else false.
"""

function deleteRepositoryAlert(token::AbstractString;
alertID::Int64=0,
alertName::AbstractString=""
Expand All @@ -284,5 +282,5 @@ function deleteRepositoryAlert(token::AbstractString;
Dict{Symbol, Any}(:id => alertID, :name => alertName)
)

return statuscode(resp) == 204
return resp.status == 204
end
Loading

0 comments on commit 1320b35

Please sign in to comment.