Add RestSpec and Snapshot for Gobblin Throttling service
Project: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/commit/ee39a463 Tree: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/tree/ee39a463 Diff: http://git-wip-us.apache.org/repos/asf/incubator-gobblin/diff/ee39a463 Branch: refs/heads/master Commit: ee39a46383206a8b178a294fb59b3407d9353fbd Parents: da62451 Author: Abhishek Tiwari <[email protected]> Authored: Sun Jul 30 23:34:25 2017 -0700 Committer: Abhishek Tiwari <[email protected]> Committed: Sun Jul 30 23:34:25 2017 -0700 ---------------------------------------------------------------------- ...lin.restli.throttling.policies.restspec.json | 20 +++++++ ...lin.restli.throttling.policies.snapshot.json | 55 ++++++++++++++++++++ 2 files changed, 75 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/ee39a463/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/idl/org.apache.gobblin.restli.throttling.policies.restspec.json ---------------------------------------------------------------------- diff --git a/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/idl/org.apache.gobblin.restli.throttling.policies.restspec.json b/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/idl/org.apache.gobblin.restli.throttling.policies.restspec.json new file mode 100644 index 0000000..f2b10f5 --- /dev/null +++ b/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/idl/org.apache.gobblin.restli.throttling.policies.restspec.json @@ -0,0 +1,20 @@ +{ + "name" : "policies", + "namespace" : "org.apache.gobblin.restli.throttling", + "path" : "/policies", + "schema" : "org.apache.gobblin.restli.throttling.Policy", + "doc" : "A Rest.li endpoint for getting the {@link ThrottlingPolicy} associated with a resource id.\n\ngenerated from: org.apache.gobblin.restli.throttling.PoliciesResource", + "collection" : { + "identifier" : { + "name" : "policiesId", + "type" : "string" + }, + "supports" : [ "get" ], + "methods" : [ { + "method" : "get" + } ], + "entity" : { + "path" : "/policies/{policiesId}" + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-gobblin/blob/ee39a463/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/snapshot/org.apache.gobblin.restli.throttling.policies.snapshot.json ---------------------------------------------------------------------- diff --git a/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/snapshot/org.apache.gobblin.restli.throttling.policies.snapshot.json b/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/snapshot/org.apache.gobblin.restli.throttling.policies.snapshot.json new file mode 100644 index 0000000..7e65913 --- /dev/null +++ b/gobblin-restli/gobblin-throttling-service/gobblin-throttling-service-api/src/main/snapshot/org.apache.gobblin.restli.throttling.policies.snapshot.json @@ -0,0 +1,55 @@ +{ + "models" : [ { + "type" : "record", + "name" : "Policy", + "namespace" : "org.apache.gobblin.restli.throttling", + "doc" : "A throttling policy for Gobblin throttling service.", + "fields" : [ { + "name" : "resource", + "type" : "string", + "doc" : "Resource for which this policy applied." + }, { + "name" : "policyName", + "type" : "string", + "doc" : "The name of the policy." + }, { + "name" : "parameters", + "type" : { + "type" : "map", + "values" : "string" + }, + "doc" : "Parameters for this policy." + }, { + "name" : "metrics", + "type" : { + "type" : "map", + "values" : "string" + }, + "doc" : "Metrics for this policy." + }, { + "name" : "policyDetails", + "type" : "string", + "doc" : "Human readable policy details." + } ] + } ], + "schema" : { + "name" : "policies", + "namespace" : "org.apache.gobblin.restli.throttling", + "path" : "/policies", + "schema" : "org.apache.gobblin.restli.throttling.Policy", + "doc" : "A Rest.li endpoint for getting the {@link ThrottlingPolicy} associated with a resource id.\n\ngenerated from: org.apache.gobblin.restli.throttling.PoliciesResource", + "collection" : { + "identifier" : { + "name" : "policiesId", + "type" : "string" + }, + "supports" : [ "get" ], + "methods" : [ { + "method" : "get" + } ], + "entity" : { + "path" : "/policies/{policiesId}" + } + } + } +} \ No newline at end of file
