8000 java-docs-samples/monitoring/cloud-client at update-versions · unnicris/java-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"monitoring/cloud-client","repo":{"id":104137795,"defaultBranch":"master","name":"java-docs-samples","ownerLogin":"unnicris","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-09-19T22:54:56.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4340806?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"update-versions","listCacheKey":"v0:1618946792.6900768","canEdit":false,"refType":"branch","currentOid":"20c640bd96eba6a4d9b23e76346c23d3e33a459f"},"tree":{"items":[{"name":"src","path":"monitoring/cloud-client/src","contentType":"directory"},{"name":"README.md","path":"monitoring/cloud-client/README.md","contentType":"file"},{"name":"pom.xml","path":"monitoring/cloud-client/pom.xml","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGetting Started with Google Stackdriver Monitoring API and the Google Cloud Client libraries\u003c/h1\u003e\u003ca id=\"user-content-getting-started-with-google-stackdriver-monitoring-api-and-the-google-cloud-client-libraries\" class=\"anchor\" aria-label=\"Permalink: Getting Started with Google Stackdriver Monitoring API and the Google Cloud Client libraries\" href=\"#getting-started-with-google-stackdriver-monitoring-api-and-the-google-cloud-client-libraries\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003e\u003ca href=\"https://cloud.google.com/monitoring/docs/\" rel=\"nofollow\"\u003eGoogle Stackdriver Monitoring API\u003c/a\u003e collects metrics, events, and\nmetadata from Google Cloud Platform, Amazon Web Services (AWS), hosted uptime\nprobes, application instrumentation, and a variety of common application\ncomponents including Cassandra, Nginx, Apache Web Server, Elasticsearch and many\nothers.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThese sample Java applications demonstrate how to access the Stackdriver\nMonitoring API using the \u003ca href=\"https://github.com/GoogleCloudPlatform/google-cloud-java\"\u003eGoogle Cloud Client Library for Java\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eQuickstart\u003c/h2\u003e\u003ca id=\"user-content-quickstart\" class=\"anchor\" aria-label=\"Permalink: Quickstart\" href=\"#quickstart\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eInstall \u003ca href=\"http://maven.apache.org/\" rel=\"nofollow\"\u003eMaven\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eBuild your project with:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn clean package -DskipTests\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn clean package -DskipTests\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eYou can then run a given \u003ccode\u003eClassName\u003c/code\u003e via:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn exec:java -Dexec.mainClass=com.example.monitoring.ClassName \\\n -DpropertyName=propertyValue \\\n\t-Dexec.args=\u0026quot;arg1 'arg 2' arg3\u0026quot;\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn exec:java -Dexec.mainClass=com.example.monitoring.ClassName \\\n -DpropertyName=propertyValue \\\n\t-Dexec.args=\"arg1 'arg 2' arg3\"\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eWrite a time series to a metric (using the quickstart sample)\u003c/h3\u003e\u003ca id=\"user-content-write-a-time-series-to-a-metric-using-the-quickstart-sample\" class=\"anchor\" aria-label=\"Permalink: Write a time series to a metric (using the quickstart sample)\" href=\"#write-a-time-series-to-a-metric-using-the-quickstart-sample\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn exec:java -Dexec.mainClass=com.example.monitoring.QuickstartSample \\\n -DprojectId=YOUR_PROJECT_ID\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn exec:java -Dexec.mainClass=com.example.monitoring.QuickstartSample \\\n -DprojectId=YOUR_PROJECT_ID\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Getting Started with Google Stackdriver Monitoring API and the Google Cloud Client libraries","anchor":"getting-started-with-google-stackdriver-monitoring-api-and-the-google-cloud-client-libraries","htmlText":"Getting Started with Google Stackdriver Monitoring API and the Google Cloud Client libraries"},{"level":2,"text":"Quickstart","anchor":"quickstart","htmlText":"Quickstart"},{"level":3,"text":"Write a time series to a metric (using the quickstart sample)","anchor":"write-a-time-series-to-a-metric-using-the-quickstart-sample","htmlText":"Write a time series to a metric (using the quickstart sample)"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Funnicris%2Fjava-docs-samples%2Ftree%2Fupdate-versions%2Fmonitoring%2Fcloud-client"}},"totalCount":3,"showBranchInfobar":true},"fileTree":{"monitoring":{"items":[{"name":"cloud-client","path":"monitoring/cloud-client","contentType":"directory"}],"totalCount":1},"":{"items":[{"name":".circleci","path":".circleci","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":".mvn","path":".mvn","contentType":"directory"},{"name":"appengine-java8","path":"appengine-java8","contentType":"directory"},{"name":"appengine","path":"appengine","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"dlp","path":"dlp","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"flexible","path":"flexible","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"taskqueue","path":"taskqueue","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"unittests","path":"unittests","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitmodules","path":".gitmodules","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"ISSUE_TEMPLATE.md","path":"ISSUE_TEMPLATE.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"checkstyle-checker.xml","path":"checkstyle-checker.xml","contentType":"file"},{"name":"circle.yml","path":"circle.yml","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"gae-firebase-secrets.json.enc","path":"gae-firebase-secrets.json.enc","contentType":"file"},{"name":"jenkins.sh","path":"jenkins.sh","contentType":"file"},{"name":"mvnw","path":"mvnw","contentType":"file"},{"name":"mvnw.cmd","path":"mvnw.cmd","contentType":"file"},{"name":"pom.xml","path":"pom.xml","contentType":"file"},{"name":"secrets.env.EXAMPLE","path":"secrets.env.EXAMPLE","contentType":"file"},{"name":"secrets.env.enc","path":"secrets.env.enc","contentType":"file"},{"name":"service-account.json.enc","path":"service-account.json.enc","contentType":"file"},{"name":"travis.sh","path":"travis.sh","contentType":"file"}],"totalCount":46}},"fileTreeProcessingTime":16.15921,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/unnicris/java-docs-samples/branches":{"post":"80LAZQKMqtbuJ6duXnacy0iQ-hvVK_KlmQs2DvOGZZAjIwEqtZDMNB-EfsiTbUtirjqvZr2ojpkKgu1S6uW-HA"},"/unnicris/java-docs-samples/branches/fetch_and_merge/update-versions":{"post":"Zw9wW2X25hiYEsi2pjp4bwOTDETmAJStCcHDkRm6PZV65LZWUTpgXb7GdDvQ570pLndpK84esBSHQYvzwd6_Pw"},"/unnicris/java-docs-samples/branches/fetch_and_merge/update-versions?discard_changes=true":{"post":"aBqfrdbEy86YQbIXEjsWQkjzdDkFV4J5ef87MRhG-Bt18Vmg4ghNi76VDppk5tMEZRcRVi1JpsD3f3NTwCJ6sQ"}}},"title":"java-docs-samples/monitoring/cloud-client at update-versions · unnicris/java-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0